Skip to content

Getting the time, ID, etc. of tiles. #166

Answered by gjoseph92
ATL-Flaneur asked this question in Q&A
Discussion options

You must be logged in to vote

@ATL-Flaneur I'm not quite sure what you're asking here. Time, ID, band, projection, and all other STAC metadata are stored in the coordinates of the DataArray (item in your case). If you're not familiar with the xarray data model, you might want to read https://docs.xarray.dev/en/stable/user-guide/data-structures.html#coordinates first to understand how coordinates work.

In this case, it looks like you've used stackstac on a single item. But item.time, item.id, item.band, item["proj:epsg"], etc. will give you that metadata.

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by ATL-Flaneur
Comment options

You must be logged in to vote
0 replies
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