-
Notifications
You must be signed in to change notification settings - Fork 19
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 metrics from demcompare #602
Comments
I understand the previous discussion to go to geoutils for the simple metrics and to have metrics on geoutils, but i see now a dichotomy with matrix_2D metrics (svf, hillshade) that are kept in xdem. I feel here we split the metrics in geoutils and xdem, I feel that we will have difficulty to have a common unique way of automating metric computation through a CLI pipeline (such as demcompare). It was my question in : GlacioHack/xdem#551 In demcompare pipeline, we can choose also svf, hillshade metric to generate them based on pipeline configuration file. I don't know if I am clear, please tell me if not. So before finalizing this function, I think it could be important to be sure how we plan to use this structure from user and pipeline point of view and see if this design match. To be discussed... for compute_surface_normal and remove_nan_and_flatten in demcompare, it was not well architectured, so take the easier approach with xdem/geoutils philosophy in mind. Geoutils seem the best way, i agree. |
I did not fully realize that under "metrics" were many different functions: from a single value metric (mean, STD), to a distribution (PDF) and visualization (hillshade). I think we might have only shortly mentioned this during our discussion in August, and I agree with @duboise-cnes that in that case, wrapping all of this directly in xDEM would make the most sense. Additionally, it seems the primary use of the |
Context
The purpose of this ticket is to implement the
demcompare
metrics intogeoutils
. We have decided not to include them inxdem
because these measurements apply specifically to rasters.Code
We propose first to copy the
metric
directory fromdemcompare
intogeoutils
.Example script:
To do:
matrix_2d_metrics
file and open a ticket to move the SVF to the terrain attributes inxdem
(also check theinit
file).compute_surface_normal
andremove_nan_and_flatten
functions ingeoutils
.Tests
For testing, you can retrieve and adapt the following files:
Documentation
A section should be added inspired by the demcompare documentation.
The text was updated successfully, but these errors were encountered: