ICOS-Carbon-Portal / pylib

Python library for direct access to ICOS time series data.
12 stars 3 forks source link

Timestamp conversion #131

Closed claudiodonofrio closed 1 year ago

claudiodonofrio commented 1 year ago

Currently the timestamp of binary files is assumed to be UNIX timestamp in milliseconds. However this is not always true. A check is necessary to get the format (ms, s, h, d) and then convert the timestamp accordingly.

a preliminary fix is provided in the branch https://github.com/ICOS-Carbon-Portal/pylib/tree/cd_fieldsites in commit https://github.com/ICOS-Carbon-Portal/pylib/commit/73d80bb85df448c6246d0f9a8e7c0b0bf9538b52 But that branch was for testing only. The part for fixing the timestamp is valid to all digital objects in the pylib, not only for fieldsites objects. I suggest to create a new branch for fixing the timestamp issure.