Clay-foundation / model

The Clay Foundation Model (in development)
https://clay-foundation.github.io/model/
Apache License 2.0
299 stars 38 forks source link

Timestamp in TIF metadata for data pipeline output #70

Closed yellowcap closed 5 months ago

yellowcap commented 9 months ago

To facilitate its use and persist beyond the file name.

See also https://github.com/Clay-foundation/model/pull/54#pullrequestreview-1761464883

weiji14 commented 9 months ago

Looking at whether there's a standard to encode the acquisition datetime in a GeoTIFF at https://gdal.org/drivers/raster/gtiff.html#metadata. A couple of options:

Both of these expect a datetime (with year, month, date, hour, minute second) though, but currently we are only storing YYYY-MM-DD. Which one should we go for?

yellowcap commented 9 months ago

Looking at whether there's a standard to encode the acquisition datetime in a GeoTIFF at https://gdal.org/drivers/raster/gtiff.html#metadata. A couple of options:

Sorry only saw this now. Went with simple date. But can adapt in v3.

yellowcap commented 7 months ago

Looking into this, changing this tag needs refactoring also in the data-pipeline, finding the simple "date" tag and replace it with the choice of use ACQUISITIONDATETIME or TIFFTAG_DATETIME.

yellowcap commented 5 months ago

This is in the date tag in the tiff files for v0.1 and v0.2, and will move into the STAC Item / stacchip index for v1.