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

Allow a halo to be added by indices and subspace #759

Closed
davidhassell opened this issue Apr 12, 2024 · 0 comments · Fixed by #760
Closed

Allow a halo to be added by indices and subspace #759

davidhassell opened this issue Apr 12, 2024 · 0 comments · Fixed by #760
Labels
enhancement New feature or request
Milestone

Comments

@davidhassell
Copy link
Collaborator

It would be useful if the indices and subspace methods of cf.Field and cf.Domain could be configured to add a halo to the selected subspace.

The use case for this is regridding. For instance, when regridding global data to a smaller region it will improve performance if a subspace of the global data that contains the smaller region is regridded, rather than the global field. The easiest way to find the smallest such a subspace is to calculate the bounding box of the smaller region and then extract that "plus a halo" from the global data. The halo is needed to ensure that the subspace is a bit larger (as opposed to a bit smaller) than the target region.

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

Successfully merging a pull request may close this issue.

1 participant