-
Notifications
You must be signed in to change notification settings - Fork 42
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
[POC] add missing stats #660
Comments
Looks good! Link to our previous discussion: GlacioHack/geoutils#602 (forgot it was in GeoUtils). I only have a couple main remarks:
Other small remarks:
And I really like the idea of this function behind called in |
Not so much to add to @rhugonnet comments, already large ;) Other question: where is the status of more complex demcompare metric or stats for non scalar element such as hillshade, svf . I remember the discussion that a structure in xdem would be better to automate more "stats" possibilities than only scalar and to put the metric structure in xdem then. thanks for the work |
Context
It is essential for current users of demcompare, such as QI or IGN, to have a quick and concise way of obtaining a wide range of basic metrics when performing DEM analysis. This ticket aims to address this need.
Although it is clear that, thanks to its ability to work with rasters and its coupling with NumPy for basic metric calculations, we must ensure that these metrics are easy to manipulate, retrieve, and potentially process, especially for automation tasks like implementing a CLI.
Implementation
We propose creating a
get_metrics()
function in the raster module.Example usage:
.info()
method of the DEM.List of metrics:
Tests
Add tests for the
get_metrics()
function:None
that returns all metrics.Additionally, verify the behavior of the
.info()
method.Documentation
Update the documentation for both geoutils and xDEM to include this new functionality.
Internal Testing
Ensure that it works seamlessly with xDEM.
Estimation
3 days
The text was updated successfully, but these errors were encountered: