I have an irregular LiDAR point cloud dataset, so when I try to create a DEM or DSM, the points are connected across the irregular edges of the LiDAR point cloud.
I thought that creating a mask would help, but this doesn't seem to work. Here is my example code:
lasd = "mylasd.lasd" arcpy.env.mask = "myMask" ## this is boundary of LiDAR point cloud outname = "dem" dem_layer = arcpy.CreateUniqueName('dem_layer') arcpy.MakeLasDatasetLayer_management(lasd, dem_layer,class_code=classCodes, return_values=return_Vals) arcpy.conversion.LasDatasetToRaster(dem_layer, outname, "ELEVATION", "BINNING AVERAGE LINEAR", "FLOAT", "CELLSIZE", 10, 1) arcpy.Delete_management(dem_layer)
Using the mask doesn't result in any difference. Is the correct way to create the DEM and then, crop it? This seems more time-intensive, so I want to avoid this step if possible.