podaac / l2ss-py

Level 2 subsetter with Harmony integration
https://podaac.github.io/l2ss-py/
Apache License 2.0
11 stars 11 forks source link

Empty output file when temporal range is too close to the metadata timestamp #250

Closed ank1m closed 3 months ago

ank1m commented 3 months ago

During our L2SS-B-S-C regression tests we noticed StitchEE failures for some of the edge-cases. When we looked deeper, it turned out that the l2ss-py produced file with empty arrays. It happens when the requested temporal subsetting is on the edge of the file timestamp. For example, for granule TEMPO_NO2_L2_V01_20240123T231358Z_S013G03.nc the metadata timestamp is 2024-01-23 23:13:58. So if we request temporal subsetting up to 2024-01-23 23:13:59 (shifted by 1 second) this particular granule is included. But when l2ss-py starts subsetting, the more precise time information in the file has no data points for anything within [, 2024-01-23 23:13:59] time range. The output file has an empty array in it.

ank1m commented 3 months ago

This issue has been investigated before, and no clear consensus was reached. The discussion with harmony community is still on-going and things might change in the future.