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

Feature request for resampling of rectilinear grids #14

Open
mjo22 opened this issue Jan 24, 2024 · 1 comment
Open

Feature request for resampling of rectilinear grids #14

mjo22 opened this issue Jan 24, 2024 · 1 comment

Comments

@mjo22
Copy link

mjo22 commented Jan 24, 2024

Hello, I was wondering what the timeline is on adding interpolation routines for nd rectilinear grids. I am currently a user of jax.scipy.map_coordinates for data on a 3D cartesian grid, and I’m hoping to transition soon to this package for a routine that is similarly fast and supports cubic splines.

@mjo22 mjo22 changed the title Feature request for i Feature request for resampling of rectilinear grids Jan 24, 2024
@f0uriest
Copy link
Owner

f0uriest commented Feb 1, 2024

1, 2, and 3d are currently supported. I'm not sure when I'll have time to look into nd.

For the case you describe I think the existing interp3d method would work, just pass integer ranges for the x, y, z coordinates. IE, if your data is shape(Nx, Ny, Nz, ...) then x = np.arange(Nx) etc.

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

2 participants