Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Specific points to xarray #52

Closed
wep69 opened this issue Jul 12, 2022 · 3 comments
Closed

Specific points to xarray #52

wep69 opened this issue Jul 12, 2022 · 3 comments

Comments

@wep69
Copy link

wep69 commented Jul 12, 2022

Dear Aaron Zuzpan

Thank you very much for this wonderful package.
I have in my assets a shp with 64 points, also locally as geojson. I tried following your instruction here , #28, to download sentinel-2 bands to xarray of those specifics 64 points. But, the total points depends of scale and region, being differents in number and localization of those 64.
There is any way to download those specific points to xarray?.

Thank in advance.

Walter Pereira

@aazuspan
Copy link
Owner

Hi @wep69, the instructions in #28 would give you a 2D image array over a region, but it sounds like you want 1D values at each of the 64 points?

If so, you could follow #28, use your points as the region and set the scale to 10 or 20. That will give you a 2D array that covers all your points. Then follow this to extract a 1D time series at each point.

If you don't need xarray functionality and just want an array of values, you could try some non-wxee solutions. If you have just one image for each point, you could try using geemap with this tutorial. If you have a time series of images at each point, you could try this tutorial.

@wep69
Copy link
Author

wep69 commented Jul 14, 2022

Thank you for your exhaustive answer. The first alternative is a satisfactory solution for my needings.

@aazuspan
Copy link
Owner

No problem!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants