geomagpy / magpy

MagPy (or GeomagPy) is a Python package for analysing and displaying geomagnetic data.
BSD 3-Clause "New" or "Revised" License
45 stars 27 forks source link

Definitive data checking: yearmean* file not found #96

Closed teraita closed 3 years ago

teraita commented 5 years ago

Environment: Version 0.4.7 (Python 2.7) in Mac OS X 10.12

The definitive data checking routine can not find the yearmean.imo file from given path. The binaries are found.

MagPy_0 4 7_dd_check_read_yearmean_issue
leonro commented 5 years ago

The problem had its origin in a wrong interpretation of the comment section. If comments startet with 1 and 2 they were tried to be interpreted as data lines. This crashed and the file could not be read. Solved that in 1aa8cf560232d7d6c3050332c0f0cc1a29bd5789

leonro commented 3 years ago

Issue is fixed from 0.9.3 onwards. Please note: yearmean files are freeform text files and it is very difficult to interprete all imaginable variations within a not well structured file.