Comments (6)
The code that performs the interpolation is fairly simple:
Lines 28 to 45 in 3200403
and consistent with the notebook.
The question that follows is then: what do we do about it?
Allowing for grids that are reversed is certainly feasible.
But do we want to also allow unsorted vertical grid points?
from croco.
My preference would be for the former.
from croco.
Ah OK! I could have read more carefully fast_insterp3D.c. Maybe the least we could do, if we don't want to modify the routine, is to add a mention in the docstrings or even add a test in interp2z
?
from croco.
Agreed, could you please push a commit updating the doc?
Could you also modify the title of this issue with something like: "more general orders of input vertical grids for fast_interp3D " ?
We'll list this issue as a new feature request to remember a PR should be proposed at some point in order to allow interpolation with vertical grids with opposite orders.
from croco.
done
from croco.
There's a new method in xgcm to interpolate (see xgcm tutorial in crocosi : xgcmgrid.transform). The target coordinate must be monotonically increasing or decreasing. Performance seems quite good. May be it could help...
@NoeLahaye , @apatlpo
from croco.
Related Issues (17)
- get_z needs update HOT 2
- chunking options when opening CROCOrun objects HOT 1
- update interp2z in gridop.py HOT 3
- List of issues for meeting HOT 4
- minor error and suggestions for postp _adjust_grid HOT 2
- get_p in gridop HOT 1
- beta plane Coriolis still wrong in postp HOT 1
- fsturb roadmap
- get vertical modes out HOT 1
- postp file loading behaviour: grid and his
- xgcm vs. croco run HOT 2
- list of changes / improvements HOT 3
- test on dimensions in `interp2z` fails if no name HOT 5
- "overwrite" in postp.store_diagnostic does not do the job HOT 2
- vmodes minor cleaning up and improvement HOT 4
- bug when chunking with zarr HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from croco.