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

Download data at point of interest or at a given radius around point #97

Open
AdrienWehrle opened this issue Nov 9, 2023 · 2 comments
Assignees
Labels
enhancement New feature or request

Comments

@AdrienWehrle
Copy link
Owner

AdrienWehrle commented Nov 9, 2023

At the moment, a bounding box must be given by user to download data. Some users expressed the wish to download data at a given point and its surroundings, which then requires to compute the coordinates at a given distance around the point of interest.

This could be implemented in earthspy by downloading given bounding_box a list of two values (corresponding to the coordinates of a point) instead of 4 (the 4 coordinates of the bounding box) and a new optional argument for the distance around point. If distance equals 0 (default), only return the very pixel.

@AdrienWehrle AdrienWehrle added the enhancement New feature or request label Nov 9, 2023
@AdrienWehrle AdrienWehrle self-assigned this Nov 9, 2023
@AdrienWehrle AdrienWehrle changed the title Download data at a radius around point Download data at point of interest (or at a given radius around point) Nov 9, 2023
@AdrienWehrle AdrienWehrle changed the title Download data at point of interest (or at a given radius around point) Download data at point of interest or at a given radius around point Nov 9, 2023
@AdrienWehrle
Copy link
Owner Author

Use shb.to_utm_bbox with coordinate duplicates, then add/subtract distance in meters if radius is given

@AdrienWehrle
Copy link
Owner Author

AdrienWehrle commented Jan 2, 2024

For radius = 0, better download an image that's a big bigger than the point of interest and extract data at point using rasterio's methods, and return locally + write as csv

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

No branches or pull requests

1 participant