gjoseph92 / stackstac

Turn a STAC catalog into a dask-based xarray
https://stackstac.readthedocs.io
MIT License
232 stars 49 forks source link

Accessing VZA and SZA bands? #229

Closed J6767 closed 7 months ago

J6767 commented 8 months ago

I need to calculate air mass factor (AMF), which requires viewing zenith angle (VZA), and solar zenith angle (SZA).

If you manually download a Sentinel-2 product, the 2D band "sun_zenith" is found under "Bands/sun", and "view_zenith_mean" is found under "Bands/view".

They are also present in the metadata, as Values_list, under Geometric_Info/Tile_Angles.

How can I access these bands, or metadata, using stackstac, please? Many thanks.

gjoseph92 commented 8 months ago

Hi @J6767, how are you accessing the data? Without a minimal reproducible example, there's not much I can do to help, or even confirm whether it's an issue with stackstac, or with the data provider.