Replies: 1 comment
-
You may get better answers asking the stackstac developpers. I can give you some tips but it will depend on how your data and mask actually looks:
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello everyone,
I've been using xarray for some time now and recently started using stackstac. I'm currently working on a problem where I need to extract the mean values of an index (such as NDVI) for each polygon (about 300 in number) and store them as individual CSV files for each polygon independently which is taking more than 24 hours.
However, the process of storing these values as individual CSV files for each polygon is taking more than 24 hours. I'm seeking assistance in optimizing this process to reduce the time required. Any suggestions would be greatly appreciated. Below are steps:
STEP1 :
I am fetching the Sentinel-2 Level 2A data from the AWS SpatioTemporal Asset Catalog (STAC) API hosted at "https://earth-search.aws.element84.com/v1" for a period of 1 year and the number of items retrieved are 135 and creating a stack.
The dimensions of the sentinel_stack are 135 timestamps, with size of (11034, 10980, 3)
STEP2 : Computing ndvi using the bands.
STEP3: Extracting the mean ndvi for each polygon by clipping the xarray to polygon.
Beta Was this translation helpful? Give feedback.
All reactions