Comments (7)
@rsjones94 I can see about adding these features to the interpolation. RGB will admittedly be a bit tricky to do. As for now though, if you want the average number of returns per pulse for a cell, you can use the LidarPointStats tool.
from whitebox-tools.
If I may piggyback on this, it would be great to be able to select the cell assignment type in lidar_tin_gridding to maximum for example. I believe it currently assigns the minimum (or average) value in the cell to the pixel. It leads to more 'pitting' in the DSM for our purposes. I attach two images to compare. This is lidar data from a Leica SPL100 single photon system and the dataset has high point density so permits the generation of 25cm surface rasters
DSM made with wbt using
wbt.lidar_tin_gridding(
parameter="elevation",
returns="first",
resolution=0.25)
IMAGE 1
DSM made with ArcMap (LAS Dataset to Raster, maximum cell assignment, natural neighbour void filling method (which should not matter at the point densities involved in this case))
IMAGE 2
Information for a specific cell.
layer ending in _buf20_DSM is wbt generated DSM (image 1)
layer ending in DSM is provider generated DSM
test is one of 4 lidar points in 25cm raster cell
test_first is ArcMap generated DSM (image 2)
from whitebox-tools.
@jfprieur I'm not quite sure what you mean be the maximum value. The LidarTinGridding tool doesn't choose the minimum, mean, or maximum in the cell. It fits a triangulation to the points and then uses the planar equation of each triangular facet to interpolate (linearly) the value of the distribution at the set of grid cell centres. Also, are you aware of the LidarBlockMinimum and LidarBlockMaximum tools? If you have further issues/requests, I'd ask that you open a dedicated issue separate from this thread.
from whitebox-tools.
Thank you for the quick reply, I should have looked at the documentation more thoroughly (I did look I swear!), of course the tin_gridding tool functions like its name ;) I should have noticed that.
The BlockMinimum and BlockMaximum tools seem to do exactly what I want. Sorry for the confusion.
from whitebox-tools.
@jfprieur No problem. I do certainly need to improve the documentation for many of the LiDAR tools to make it easier for users like yourself to know which tool does what. I'm working on it but the list of things to do is ever expanding and time is ever contracting...
from whitebox-tools.
@rsjones94 Okay, I just committed code to allow for interpolating the return number, number of returns, and the RGB colour information of points to the LidarTinGridding, LidarIdwInterpolation, and LidarNearestNeighbourGridding tools. To be clear however, because these are interpolation tools, that estimate the value of the underlying distribution at the grid cell centre points (i.e. a point value rather than an area value), you still won't be able to estimate the average number of returns per pulse within a grid cell using these data. While you could always have calculated this statistic using the number of points and number of pulse rasters output from the LidarPointStats tool, I have also updated this tool with this commit to include an additional 'average number of points per pulse' output to make it easier (i.e. it saves you have to divide the one output raster by the other.
I have not had a chance to test these new features as I don't have ready access to a LAS file containing colour information. If you get a chance to test them sometime, please let me know if you run into any issues. In the meantime, I am going to close this issue as resolved. Note, the new features won't be available until I release the next public release of WhiteboxTools, unless you build from source.
from whitebox-tools.
Awesome! Thanks for your work on this this; WBT is a wonderful tool for many people
from whitebox-tools.
Related Issues (20)
- ListUniqueValuesRaster HOT 3
- Wrong results of DirectDecorrelationStretch
- Bug with IndividualTreeDetection detecting trees very close together HOT 5
- ClipLidarToPolygon is modifying retained point data HOT 1
- Geomorphons - edge effects and difficulties in geographic coordinates
- WhiteboxWorkflows: kernel dies if file not found
- whitebox.Runner() urllib.error.URLError: <urlopen error unknown url type: https> HOT 1
- whitebox_tools 'Unrecognized tool name NormalizeLidar' HOT 16
- Whitebox-Worflows: Erroneous results when using raster files in NAD83 projection HOT 1
- DTM outputs have a shift between tiles HOT 3
- lidar_digital_surface_model extent changed HOT 1
- Feature Requests: lidar_digital_surface_model HOT 2
- FlowAccumulationFullWorkflow gracefully exits without writing all 3 results
- documentation of PercentElevRange
- [feature request] add option to use D-infinity pointer grid in ElevationAboveStream
- "extract_by_attribute" tool missing from "whitebox_tools.py" (?) HOT 3
- TimeInDayLight - error when calculating local almanac
- WhiteboxWorkflows: Filters based on DEM reading not working
- Arc::try_unwrap fails intermittently during breach_depressions_least_cost
- LidarThinHighDensity throw "panicked at 'index out of bounds:'" depending on the resolution
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 whitebox-tools.