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

Add a get_nan_array method to the Raster class. #277

Closed
adehecq opened this issue Aug 24, 2022 · 0 comments · Fixed by #308
Closed

Add a get_nan_array method to the Raster class. #277

adehecq opened this issue Aug 24, 2022 · 0 comments · Fixed by #308
Labels
enhancement Feature improvement or request

Comments

@adehecq
Copy link
Member

adehecq commented Aug 24, 2022

Currently, to convert the masked_array in self.data to a regular array with Nans, one can use the function in spatial_tools get_array_and_mask. It would be easier to make it a method of the Raster class directly.
I suggest naming it Raster.get_nan_array, unless there are other suggestions?

One might need to consider an equivalent for get_mask too.

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

Successfully merging a pull request may close this issue.

1 participant