Comments (4)
Also, @rhugonnet and @adehecq, if you have any recommendations of how to make a minimal (non-)working example, I'm all ears. It's a float32 DEM with ICESat-2 points that should work just like in the test. But it doesn't!
from xdem.
Wait what the heck is the difference between Raster.value_at_coords
and Raster.interp_points
?? I see that they have almost the same docstring and I've invariably used both interchangeably.
from xdem.
I have a deadline today, will look in more details tomorrow.
Quick answer on your last question:
- The
value_at_coords
function extracts the closest point value to the coords or its average (any type of reductor function) within a square window of a certain size (doesn't require to load the entire Raster). - The
interp_points
function performs a regular grid interpolation (nearest, linear, cubic) to extract the values at the coords.
More details in the examples: https://geoutils.readthedocs.io/en/stable/analysis_examples/index.html#point-extraction
But, yes, we definitely need to change the names and improve the docstrings of those functions...
from xdem.
I have a deadline today, will look in more details tomorrow.
Quick answer on your last question:
* The `value_at_coords` function extracts the closest point value to the coords or its average (any type of reductor function) within a square window of a certain size (doesn't require to load the entire Raster). * The `interp_points` function performs a regular grid interpolation (nearest, linear, cubic) to extract the values at the coords.
More details in the examples: https://geoutils.readthedocs.io/en/stable/analysis_examples/index.html#point-extraction But, yes, we definitely need to change the names and improve the docstrings of those functions...
Thanks for the info! That makes more sense now. But perhaps they could just be one function with an "interpolate" kwarg to value_at_coords
? Either way, a docstring improvement would be great! I'll add an issue in geoutils.
from xdem.
Related Issues (20)
- Remove legacy NumPy random number generator
- Clarify which angle is needed for DirectionalBias HOT 1
- Add function `Coreg.run()` or `Coreg.fit_and_apply()` to run both `fit()` and `apply()` steps simultaneously
- Remove classes `Bias1D`, `Bias2D` in favor of a `nd` argument defined on instantiation?
- Make `DEM.to_vcrs()` not inplace by default
- Improve `fit.robust_nfreq_sumsin_fit()` with fast fourier transform?
- Fix error with `robust_nfreq_sumsin_fit()` in CI
- Coverage error in CI HOT 1
- Unpin `coverage<7` in CI once `coveragepy-lcov` fixed
- Test in `test_biascorr` fails randomly with optimizer error
- Collect references of projects using xdem HOT 1
- Update coreg examples to use `fit_and_apply`
- Homogenize typing between xDEM and GeoUtils
- Speed-up tests of pipeline combinations using `subsample` with `random_state`
- Test `Coreg` module with `DEM` inputs instead of `Raster`
- Generalize `scipy.interpolate.RectBivariateSpline` into any regular grid interpolator in `NuthKaab` for consistent package-wide resampling
- Optimize coregistration module performance for Xarray/Raster objects
- Improve 1d binning plots HOT 2
- Bug with raster-point coregistration HOT 1
- Rename `Coreg.meta` into a clearer naming before documenting it
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 xdem.