-
Notifications
You must be signed in to change notification settings - Fork 72
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 option to grid_coordinates to return 1D coordinate arrays #382
Comments
I agree with this! We would need to think what to do with the |
Good point! It doesn't make sense to use |
I agree that if we want to avoid allocating large coordinate arrays it doesn't make sense to generate huge |
Sounds OK to me. Probably doesn’t matter too much which way we go since using both options together is extremely unlikely (famous last words 🥲). |
Description of the desired feature:
Currently,
verde.grid_coordinates
always callsnp.meshgrid
to produce 2D coordinate arrays. However, when buildingxarray
objects we usually have to undo. That's a bit wasteful can creates problems for very large grids. To counteract this, I propose adding a newmeshgrid=True
option togrid_coordinates
. By default, the behaviour is unchanged. But passingmeshgrid=False
will return the 1D coordinate arrays instead.Are you willing to help implement and maintain this feature?
Always but happy for someone else to do this 🙂
The text was updated successfully, but these errors were encountered: