Skip to content

MODIS LAI STAC ('modis-15A2H-061') may have broken time metadata? #102

Answered by TomAugspurger
erthward asked this question in Q&A
Discussion options

You must be logged in to vote

Thanks for the easily reproducible example.

The MODIS items (I think all of the collections) use a null datetime since they are composites over some time period. If you check items[0].datetime you'll see it's None, while items[0].properties["start_datetime"] and end_datetime are valid.

The time dimension returned by stackstac is comes from the datetime. The properties like start_datetime should be available as coordinates, and you should be able to make them a dimension with something like da.swap_dims({"time": "start_datetime"})

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@erthward
Comment options

Answer selected by erthward
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants