jblindsay / whitebox-tools

An advanced geospatial data analysis platform
https://www.whiteboxgeo.com/
MIT License
945 stars 161 forks source link

Trend Surface tool suggested improvement to documentation #421

Closed Hornbydd closed 1 month ago

Hornbydd commented 1 month ago

I have been exploring the Trend Surface tool, with the idea of detrending a DEM for hydrological analysis. I wanted to compare this tool against the Trend tool in ArcPro.

The help file says:

Numerical stability is enhanced by transforming the x, y, z data by their minimum values before performing the regression analysis. These transform parameters are also reported in the output report.

To a non specialist in this subject what does transforming the x, y, z data by their minimum values mean and what does that entail? Here I think the help file needs updating to explain what this means.

jblindsay commented 1 month ago

Thanks Duncan, I've modified it so that it states: "Numerical stability is enhanced by transforming the x, y, z data by subtracting their minimum values before performing the regression analysis. These transform parameters are also reported in the output report."

asub-sandwich commented 1 month ago

After this fix, building now raises an error in tools/lidar_analysis/ascii_to_las.rs:391:25 line_data (389) is not mutable but re-assigned at 391.

jblindsay commented 1 month ago

Thanks for catching that @asub-sandwich. I've just uploaded a fix for that.