Closed tomkralidis closed 5 years ago
@tomkralidis: We could add an argument in the openNAFile()
call such as ignore_header_lines=<n>
that will ignore any number of initial lines (default: 0). Would that give you what you needed to use nappy
for this context?
thanks @agstephens. That would be really valuable. Can we also carry the ignored header lines as a property? Example:
>>> n = openNAFile('al000106.b23', ignore_header_lines=1)
# and then the resulting object would have a header_lines (list) property
>>> n.ignore_header_lines
['FAST H. O3SONDE ALERT NWT OZONE 06-Jan-2000 23:00:0007-Jan-2000 02:00:000001']
Then the downstream application can have this information on hand (and be responsbile for processing).
cc'ing @acapparelli for further comments.
The Network for the Detection of Atmospheric Composition Change (NDACC) project has a 2160 variation which adds a line at the beginning of the file.
Snippet from ftp://ftp.cpc.ncep.noaa.gov/ndacc/station/alert/ames/o3sonde/al000106.b23:
Running against master results in the following traceback