lascanopy -loc add functionality to include names of circles

74 views
Skip to first unread message

Mattias Nyström

unread,
Mar 14, 2016, 4:30:33 PM3/14/16
to LAStools - efficient tools for LiDAR processing
I have a request to a functionality I need in lascanopy. If I'm using -files_are_plots, I can add the -name parameter to have a name in the output CSV-file. In my case, I'm using the -loc parameter and I would like to supply a csv-file with the following fields: "name center_x center_y radius". Could you add a functionality so I can get the names in the output csv-file when using the -loc parameter? For example, when I specify the parameter -names, that will mean that I also have name column in my csv-file.

This is from the lascanopy README, i.e. how it is today (14th March 2016):
  If your input files are plots you can use the '-files_are_plots'
  option. Here you can ask for the file '-names' to be added to
  the output CSV file. You can also query a list of circular plots
  from a text file with each line listing: "center_x center_y radius"
  with a command like:

  lascanopy -i forest\*.laz -loc circles.txt -cov -p 50 95 -o plots.csv

Best regards, 
Mattias Nyström
Swedish University of Agricultural Sciences

Jan Rombouts

unread,
Mar 14, 2016, 11:51:09 PM3/14/16
to last...@googlegroups.com

We would use this functionality if it were available.

 

 

Jan

 

 

 

 

Jan Rombouts | Resources Manager | OneFortyOne Plantations Pty Ltd

P: +61 8 87242705 | M: +61 419842136 | e: jrom...@onefortyone.com

P.O. Box 1383, Mount Gambier  SA  5290  | Web: https://onefortyone.com

Martin Isenburg

unread,
Jul 26, 2016, 12:30:11 PM7/26/16
to LAStools - efficient command line tools for LIDAR processing
Hello,

this '-names' functionality will be available in the next release for the '-loc' (list of circles) and the '-lor' (list of rectangles) ways to list a number of plots. Here an example that us using a normalized version of fusa.laz together with the four attached list of circles / rectangles that come in two versions (with and without names):

D:\LAStools\bin>lasheight -i ..\data\fusa.laz -replace_z -o fuse_norm.laz

======================================================

D:\LAStools\bin>lascanopy -v -i fusa_norm.laz ^
                                            -loc fusa_circular_plots.txt ^
                                            -all -avg -max -p 75 ^
                                            -o fusa_plots.csv
done with all. skipped 1 plot and 0 were empty. total time 0.438 sec.
D:\LAStools\bin>more fusa_plots.csv
index,center_x,center_y,radius,all,max,avg,p75
0,277788.000,6122460.000,3,145,9.18,5.51,7.15
1,277810.000,6122327.000,3,110,14.94,12.02,13.37
3,277899.000,6122434.000,3,133,1.78,1.74,1.78
4,277965.000,6122282.000,3,124,0.00,0.00,0.00

======================================================

D:\LAStools\bin>lascanopy -v -i fusa_norm.laz ^
                                            -names -loc fusa_circular_plots_names.txt ^
                                            -all -avg -max -p 75 ^
                                            -o fusa_plots.csv
done with all. skipped 1 plot and 0 were empty. total time 0.421 sec.
D:\LAStools\bin>more fusa_plots.csv
index,name,center_x,center_y,radius,all,max,avg,p75
0,c_plot1,277788.000,6122460.000,3,145,9.18,5.51,7.15
1,c_plot2,277810.000,6122327.000,3,110,14.94,12.02,13.37
3,c_plot4,277899.000,6122434.000,3,133,1.78,1.74,1.78
4,c_plot5,277965.000,6122282.000,3,124,0.00,0.00,0.00

======================================================

D:\LAStools\bin>lascanopy -v -i fusa_norm.laz ^
                                            -drop_xy 277780 6122450 277799 6122469 ^
                                            -names -loc fusa_circular_plots_names.txt ^
                                            -all -avg -max -p 75 ^
                                            -o fusa_plots.csv
done with all. skipped 1 plot and 1 was empty. total time 0.422 sec.
D:\LAStools\bin>more fusa_plots.csv
index,name,center_x,center_y,radius,all,max,avg,p75
0,c_plot1,277788.000,6122460.000,3,0,-,-,-
1,c_plot2,277810.000,6122327.000,3,110,14.94,12.02,13.37
3,c_plot4,277899.000,6122434.000,3,133,1.78,1.74,1.78
4,c_plot5,277965.000,6122282.000,3,124,0.00,0.00,0.00

======================================================

D:\LAStools\bin>lascanopy -v -i fusa_norm.laz ^
                                            -lor fusa_rectangular_plots.txt ^
                                            -all -avg -max -p 75 ^
                                            -o fusa_plots.csv
done with all. skipped 1 plot and 0 were empty. total time 0.437 sec.
D:\LAStools\bin>more fusa_plots.csv
index,ll_x,ll_y,ur_x,ur_y,all,max,avg,p75
0,277788.000,6122460.000,277792.000,6122466.000,112,9.36,7.03,8.15
1,277810.000,6122327.000,277814.000,6122333.000,100,14.84,13.99,14.53
3,277899.000,6122434.000,277903.000,6122440.000,113,1.73,1.69,1.71
4,277965.000,6122282.000,277969.000,6122288.000,119,0.00,0.00,0.00

======================================================

D:\LAStools\bin>lascanopy -v -i fusa_norm.laz ^
                                            -names -lor fusa_rectangular_plots_names.txt ^
                                            -all -avg -max -p 75 ^
                                            -o fusa_plots.csv
done with all. skipped 1 plot and 0 were empty. total time 0.437 sec.
D:\LAStools\bin>more fusa_plots.csv
index,name,ll_x,ll_y,ur_x,ur_y,all,max,avg,p75
0,r_plot1,277788.000,6122460.000,277792.000,6122466.000,112,9.36,7.03,8.15
1,r_plot2,277810.000,6122327.000,277814.000,6122333.000,100,14.84,13.99,14.53
3,r_plot4,277899.000,6122434.000,277903.000,6122440.000,113,1.73,1.69,1.71
4,r_plot5,277965.000,6122282.000,277969.000,6122288.000,119,0.00,0.00,0.00

======================================================

D:\LAStools\bin>lascanopy -v -i fusa_norm.laz ^
                                            -drop_xy 277780 6122450 277799 6122469 ^
                                            -names -lor fusa_rectangular_plots_names.txt ^
                                            -all -avg -max -p 75 ^
                                            -o fusa_plots.csv
done with all. skipped 1 plot and 1 was empty. total time 0.414 sec.
D:\LAStools\bin>more fusa_plots.csv
index,name,ll_x,ll_y,ur_x,ur_y,all,max,avg,p75
0,r_plot1,277788.000,6122460.000,277792.000,6122466.000,0,-,-,-
1,r_plot2,277810.000,6122327.000,277814.000,6122333.000,100,14.84,13.99,14.53
3,r_plot4,277899.000,6122434.000,277903.000,6122440.000,113,1.73,1.69,1.71
4,r_plot5,277965.000,6122282.000,277969.000,6122288.000,119,0.00,0.00,0.00

========================================================
fusa_circular_plots.txt
fusa_circular_plots_names.txt
fusa_rectangular_plots.txt
fusa_rectangular_plots_names.txt

Luis Barreiro

unread,
Aug 9, 2016, 12:36:34 PM8/9/16
to LAStools - efficient tools for LiDAR processing
Hi Martin,

It would be nice to also have this functionality when using -lop (list of polygons). Do you think is possible to include it in next release?

Regards,
Luis Barreiro
Reply all
Reply to author
Forward
0 new messages