"""
The first 25 data records in an EDT file are always reserved for standard level data. The standard levels are sorted according to ascending height. The 26th data record contains ground level data. The rest of the levels are sorted according to ascending height.
"""
That's exactly what the original code is doing at [2]
From the PC-CORA format at [1]
""" The first 25 data records in an EDT file are always reserved for standard level data. The standard levels are sorted according to ascending height. The 26th data record contains ground level data. The rest of the levels are sorted according to ascending height. """
That's exactly what the original code is doing at [2]
[1] https://badc.nerc.ac.uk/data/ukmo-rad-hires/pc-coradata.html [2] https://github.com/vnoel/pycode/blob/35bd471bc82828685dd814cb690a43d42d0ffc42/pccora.py#L149