Incorrect parsing in getIONEX.py
Opened this issue · 0 comments
infy-infy commented
if readdata: data = np.fromstring(" -".join(line.strip().split("-")), sep=" ") * exponent
This line doesn't parse case when all number places in value are used (there's 5 places per value in data in IONEX file) correctly. It's better to split them by 5 characters, not by space.- Using just
datetime.datetime
in parsing data in IONEX header also is not enough: sometimes they use 24th hour of current day instead of 0 hour of next day, what leads todatetime
error. So this case should be handled separately.