stcorp / harp

Data harmonization toolset for scientific earth observation data
http://stcorp.github.io/harp/doc/html/index.html
BSD 3-Clause "New" or "Revised" License
55 stars 19 forks source link

Fix S5P L2 datetime variable #146

Closed svniemeijer closed 7 years ago

svniemeijer commented 7 years ago

The quantity stored is currently the start time. So we should use datetime_start, but then also include a datetime_length to still allow calculation of datetime again (or just store a calculated datetime together with datetime_start).

The datetime length is given by the time_coverage_resolution global attribute (in ISO 8601 "PT%(interval_seconds)fS" format). For most products this is 1080 ms in nominal operation, except for "L2O3PR", which uses 3240 ms due to coaddition.

svniemeijer commented 7 years ago

Fixed in 4f170233fb6f3857cfccaf1a1678bb5eeeb9dc5a.