cedadev / checksit

File-checking made simple
BSD 3-Clause "New" or "Revised" License
1 stars 1 forks source link

For CDL reader, make sure attributes of each data type are parsed correctly #11

Closed agstephens closed 2 years ago

agstephens commented 2 years ago

E.g.:

lon:valid_min = 2LL ;
lon:valid_min = 2.2f ;

Which others might exist?

http://www-c4.ucsd.edu/netCDF/netcdf-guide/guide_5.html#SEC25

agstephens commented 2 years ago

Defined in ncdump source code:

https://github.com/Unidata/netcdf-c/blob/main/ncdump/ncdump.c#L575

Looks like you can see all these in the formatting...

b
f
s
NaNf
Infinityf
NaN
Infinity
UB
uUS
U
ldLL
luULL
agstephens commented 2 years ago

Implemented as follows:

https://github.com/cedadev/checksit/blob/specs-fmt-checks-etc/checksit/readers/cdl.py#L101-L109