cedadev / nappy

NASA Ames Processing in PYthon (NAPPy) - a Python library for reading, writing and converting NASA Ames files.
BSD 3-Clause "New" or "Revised" License
9 stars 13 forks source link

Bug prevents access to auxilliary variables #43

Closed LukeJones123 closed 2 years ago

LukeJones123 commented 2 years ago

Description

I find that I can't access the auxilliary variables from certain Ames files from the NDACC database - the function na_file method getAuxVariables() returned an empty list even when auxilliary variables are present in the file.

What I Did

An example file header is ...

Woods P.            FTIR        ABERDEEN    TOTALCOL    23-JAN-1994 12:00:0007-MAY-1994 12:00:000001
30  1010
Woods, Peter; Bell, William; Paton-Walsh, Clare; Gardiner, Tom; Gould, Adrian; Donohoue, Liam
National Physical Laboratory (NPL)
Daily mean vertical column amounts from FTIR  ground-based experiment, 1993/1994 SESAME I;ground-based.
NDSC
1  1
1994 01 23   1994 05 07 
0
Julian Day of Observation 
5
1.0E+16 1.0E+14 1.0E+13 1.0E+13 1.0E+13
999 999 999 999 999 
N2O vertical column amount; molecules/cm**2
HNO3 vertical column amount; molecules/cm**2
ClONO2 vertical column amount; molecules/cm**2
HCl vertical column amount; molecules/cm**2
HF vertical column amount; molecules/cm**2
5
1.0 1.0 1.0 0.1 0.1 
9999 9999 9999 9999 9999
Year of Observation
Month number of Observation
Day of month
Latitude of observer; degrees N
Longtitude of observer; degrees E
0
3
Estimated overall uncertainties are: N2O 6.4%; HNO3 14.3%; ClONO2 24.4%; HCl 9.7%; HF 7.7%.
Estimated daily precision (neglecting line parameter uncertainties) are: N2O 4.9%; HNO3 6.8%; ClONO2 20.4%; HCl 7.7%; HF 5.7%.
     N2O  HNO3 ClONO2  HCl   HF
 13 1994  1 13  572  -21
     999   999  257    999   999
agstephens commented 2 years ago

Hi @LukeJones123, is this fixed now?

LukeJones123 commented 2 years ago

Hi @agstephens. Yes, this is fixed now.

agstephens commented 2 years ago

Thanks

LukeJones123 commented 2 years ago

Will you be releasing 2.0.2 soon? It would be nice to point my code at an official release rather than a temporary branch. Thanks.