geomagpy / magpy

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

IAGA02 header - Data interval typ does not support required format #83

Closed leonro closed 7 years ago

leonro commented 7 years ago

Chalres Blais:

On the header again, the Data Interval Type output from your program is like:

Data Interval Type 60.0 ( ) |

However, current format is like:

Data Interval Type Average 1-Minute (00:30-01:29)

And IAGA2002 documentation states it should be something like what we currently do. Unfortunately, I can't tweak the header to have the same output since its expecting the "DataSamplingRate" to be numeric as opposed to a string "Average 1-Minute". I don't know if the others think this is a big problem (I personally don't).

leonro commented 7 years ago

This is also updated now and you now have two possibilties: a) you just define it yourself by providing keyword 'DataIntervalType' e.g. data.header['DataIntervalType'] = 'Average 1-Minute (00:30-01:29)' b) or it will be determined automatically providung outputs like e.g. 1-minute (00:30-01:29) according to the IAGA 2002 format description I do not use any additional words like average, instantenuous, etc. which are not mentioned within the description. empty brackets correspond to instantenuous. Some details on filtering (like function and passband) are added to the comment section if the data.filter() method is used