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

Resampling and interpolating #144

Open
ph-kev opened this issue Oct 24, 2024 · 0 comments
Open

Resampling and interpolating #144

ph-kev opened this issue Oct 24, 2024 · 0 comments

Comments

@ph-kev
Copy link
Member

ph-kev commented Oct 24, 2024

When making the interpolation, ClimaAnalysis uses something along the lines of Intp.interpolate(dims_tuple, data, Intp.Gridded(Intp.Linear())). This causes issues with resampling along the longitude dimension as the boundary condition is Intp.Periodic() as oppose to Intp.Periodic(OnCell()). This means that anything beyond the last point in longitude dimension is effectively ignored and the value of the first point in the longitude dimension is used.

The solution is not as simple as using Intp.Periodic(OnCell()) instead of Intp.Periodic() in that part of the code because the grid is not necessarily uniform if there are more than 2 dimensions. For example, you might want to resample with longitude, latitude, and time as dimensions. It is unclear to me how to approach this issue.

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

1 participant