Coverage for pyrdnap/v1grid/__init__.py: 100%
5 statements
« prev ^ index » next coverage.py v7.10.7, created at 2026-05-09 18:20 -0400
« prev ^ index » next coverage.py v7.10.7, created at 2026-05-09 18:20 -0400
2# -*- coding: utf-8 -*-
4u'''Variant 1 grid files, but B{only} columns C{NAP_h_...}, C{lat_corr_} and
5C{lon_corr_} of the original C{RDNAPTRANS2018_v220627/...1/nlgeo2018.txt} and
6C{...1/rdcorr2018.txt} grid files and encoded into Python as 3 row-order
7matrices, each a 481-tuple of 301-arrays of floats.
9Of the 144,781 floats (481 x 301) in each of the C{lat_corr_} and C{lon_corr_}
10columns of the original grid file C{...1/rdcorr2018.txt} only 55,139 respectively
1155,348 are non-zero between indices [8598:93827] respectively [8598:93830].
13As a result, the first 28 and the last 169 rows (in total 197 rows or 41% of
14481) can all be represented by the same 301-array of single-precision zeros.
15There are other stretches of zeros, but none amount to 301 or more.
17The non-zeros in C{lat_corr_} and C{lon_corr_} colums are initially stored as
18a 349- respectively 317-tuple of runs of non-zeros plus a start and end index.
19Upon import, the runs are re-formatted into a row-order matrix, a 481-tuple of
20301-arrays of floats.
22The combined size of these 3 grid files is 2 MB vs 9.7 MB for the original 2.
23'''
24from pyrdnap.v1grid.nlgeo2018_txt_NAP_h import _NAP_h # noqa: F401
25from pyrdnap.v1grid.rdcorr2018_txt_lat_corr import _lat_corr # noqa: F401
26from pyrdnap.v1grid.rdcorr2018_txt_lon_corr import _lon_corr # noqa: F401
28__all__ = ()
29__version__ = '26.05.08'