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

combine extract and read_array #96

Open
MAfarrag opened this issue Jul 6, 2024 · 0 comments
Open

combine extract and read_array #96

MAfarrag opened this issue Jul 6, 2024 · 0 comments

Comments

@MAfarrag
Copy link
Member

MAfarrag commented Jul 6, 2024

Is your feature request related to a problem? Please describe.

  • The read_array method can read the whole band, read a window using top_left_corner and width and height, or a polygon geodataframe.
  • The extract method extracts the values at the location of point geometry, the extract now reads the entire dataset to extract the values and used array slicing to access the array, which is not efficient if the dataset is big.
  • the extract method could be merged into the read_array method where a new parameter can be added points and the values can be extracted using the same way in the extract method now if the dataset is small, In case that the dataset is big the method can locate the points in the array and then use the src.ReadAsArray(xoff, yoff, xwindow, ywindow) to read the values while the dataset is on desk.
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

1 participant