Getting the time, ID, etc. of tiles. #166
-
Doing How can I display the time, id, band, projection, or other metadata in the coordinates and attribute fields?
|
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
@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 ( In this case, it looks like you've used stackstac on a single item. But |
Beta Was this translation helpful? Give feedback.
-
@gjoseph92 Thanks for the reply. Appending |
Beta Was this translation helpful? Give feedback.
@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.