Skip to content

Conversation

@erikvansebille
Copy link
Member

This PR implements a fast XConstantField interpolation for Fields that are simply a constant.

Also, this PR includes a small fix to the InvDistLandTracer interpolator when only running one particle (since not_all_land could then be [True], throwing an Index error later)

@VeckoTheGecko
Copy link
Contributor

VeckoTheGecko commented Nov 6, 2025

Was constant field interpolation not working before? I feel that adding support for constant fields via #2054 would probably be a simpler solution than adding a custom interpolator?

@erikvansebille
Copy link
Member Author

The point is that this is a faster interpolation, because it doesn't create a set of indices or requires an xarray.isel. I think it's an important/useful addition. And yes, we should also implement #2054, but that is a different topic

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Backlog

Development

Successfully merging this pull request may close these issues.

3 participants