Return stackstac.stack() as xr.Dataset #198
FlorisCalkoen
started this conversation in
Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi, is there a specific reason for
stackstac.stack()
to return the stack asxr.DataArray
and not asxr.Dataset
? In the type of analyses that I do it is often easier to hold the data in axr.Dataset
(see below). Would it be possible to add an optional argument tostackstac.stack()
to return the stack asxr.Dataset
?Compute spectral indices as xr.DataArray
For me it would be it would be convenient to have the spectral indices in the same object as the surface reflectance data. However, as the data comes in
xr.DataArray
, with several coordinates associated to the different dimensions, it is awkward to concat a newxr.DataArray
along a dimension:Compute spectral indices from xr.Dataset
When the data would be hold in a
xr.Dataset
such operation would be much more obvious:Would it be possible to add a
as_dataset
argument tostackstac.stack()
?Beta Was this translation helpful? Give feedback.
All reactions