Coverage for pyrdnap / v2grid / __init__.py: 100%

7 statements  

« prev     ^ index     » next       coverage.py v7.14.0, created at 2026-06-14 13:03 -0400

1 

2# -*- coding: utf-8 -*- 

3 

4u'''Extract from the compressed C{RDNAPTRANS(tm)2018_v229627} 

5variant 2 C{naptrans2018.txt.zip} and C{rdtrans2018.txt.zip} 

6grid files B{only} the C{NAP_...}, C{lat_corr_} and C{lon_corr_} 

7columns and encode each in Python as a row-order matrix, a 

8481-tuple of 301-arrays of single- or double precision floats. 

9''' 

10from pyrdnap.v_grids import _d_array, _f_array, _RxC, _v_grid_txt 

11 

12__all__ = () 

13__version__ = '26.06.14' 

14 

15_NAP_h = _v_grid_txt(2, 'naptrans', 2, _f_array) 

16_lat_corr = _v_grid_txt(2, 'rdtrans', 2, _d_array) 

17_lon_corr = _v_grid_txt(2, 'rdtrans', 3, _d_array) 

18 

19assert _NAP_h._RxC == _lat_corr._RxC == _lon_corr._RxC == _RxC