SatelliteApplicationsCatapult / stac-portal-backend

Service to support the stac-portal-frontend that adds assets to a STAC catalogue
MIT License
1 stars 1 forks source link

Acquisition date populated wrong for Maxar data #18

Open chrsphr opened 1 year ago

chrsphr commented 1 year ago

datetime on a stac item should be the acquisition date . This is currently being populated from in the Maxar data and should be . (earliest and latest Acquisition time should also be populated as additional fields to capture time range - https://github.com/radiantearth/stac-spec/blob/master/item-spec/common-metadata.md#date-and-time-range)

could be moved into the timestamp extension data - https://github.com/stac-extensions/timestamps
chrsphr commented 1 year ago

stac_generator_service.py is populating time_acquired as the current date time: https://github.com/SatelliteApplicationsCatapult/stac-portal-backend/blob/e0a97122564757e3daceb489bada33be3459b4f8/app/main/service/stac_generator_service.py#L38-42

... so this will probably be affecting Planet too. Should use the 'acquired' field for this