geospace-code / georinex

Python RINEX 2 / 3 NAV / OBS / sp3 reader & batch convert to HDF5 with C-like speed
MIT License
220 stars 91 forks source link

GeoRinex Python strange behaviour on a NAV RINEX v3.03 #72

Open GC1102 opened 3 years ago

GC1102 commented 3 years ago

Hi, I've found your library on Git and it's great. I've been using it for few projects I have and all is ok, but the attached RINEX file (NAV data). All data are set to nan.

MAT100ITA_R_20203360000_01H_MN.zip

Is there any trick to use for it?

Cheers, Gianni

scivision commented 2 years ago

can you try it with the current "main" branch of georinex? This issue may be resolved. In general there are a lot of nan, as any time or variable not assigned for the given SV is NaN.

For me this file is not all NaN.

Example:

>>> nav = georinex.load("MAT100ITA_R_20203360000_01H_MN.zip")

>>> nav["Crs"].isnull().all()

array(False)
G10 = nav.sel(sv="G10").dropna(how="all", dim="time")
(Pdb) G10
<xarray.Dataset>
Dimensions:           (time: 2)