List of files for command options

424 views
Skip to first unread message

Yogendra Karna

unread,
Feb 1, 2018, 3:06:16 AM2/1/18
to LAStools - efficient tools for LiDAR processing
Hi,

I am just wondering how to use -lof for executing any of the commands from lastools. I have made one list of files named list_2012_lidar.txt (attached herewith) then execute for las2las command for writing the las file separately extracting the class 2. The code I have executed and the error found is shown below. I am also wondering whether we can use the -lof function for most of the commands of lastools or not.

F:\Softwares\LasToolsLIcense\LAStools\bin>las2las -i -lof "F:/RQ1_RQ2/data/rawdata/2016/Clip_plot/list_2016_lidar.txt" -merged -o class2.las -keep_class 2 

WARNING: cannot parse 'F:/RQ1_RQ2/data/rawdata/2012/Clip_plot/1_HS_Anorm.las' wi
th 'xyz'. skipping ...
WARNING: cannot parse 'F:/RQ1_RQ2/data/rawdata/2012/Clip_plot/1_HS_Bnorm.las' wi
th 'xyz'. skipping ...
WARNING: cannot parse 'F:/RQ1_RQ2/data/rawdata/2012/Clip_plot/1_HS_Cnorm.las' wi
th 'xyz'. skipping ...
WARNING: cannot parse 'F:/RQ1_RQ2/data/rawdata/2012/Clip_plot/4_HS_Anorm.las' wi
th 'xyz'. skipping ...
WARNING: cannot parse 'F:/RQ1_RQ2/data/rawdata/2012/Clip_plot/4_HS_Bnorm.las' wi
th 'xyz'. skipping ...
WARNING: cannot parse 'F:/RQ1_RQ2/data/rawdata/2012/Clip_plot/4_HS_Cnorm.las' wi
th 'xyz'. skipping ...
WARNING: cannot parse 'F:/RQ1_RQ2/data/rawdata/2012/Clip_plot/11_MS_Anorm.las' w
ith 'xyz'. skipping ...
WARNING: cannot parse 'F:/RQ1_RQ2/data/rawdata/2012/Clip_plot/11_MS_Bnorm.las' w
ith 'xyz'. skipping ...
WARNING: cannot parse 'F:/RQ1_RQ2/data/rawdata/2012/Clip_plot/11_MS_Cnorm.las' w
ith 'xyz'. skipping ...
WARNING: cannot parse 'F:/RQ1_RQ2/data/rawdata/2012/Clip_plot/12_MS_Anorm.las' w
ith 'xyz'. skipping ...
WARNING: cannot parse 'F:/RQ1_RQ2/data/rawdata/2012/Clip_plot/12_MS_Bnorm.las' w
ith 'xyz'. skipping ...
WARNING: cannot parse 'F:/RQ1_RQ2/data/rawdata/2012/Clip_plot/12_MS_Cnorm.la' wi
th 'xyz'. skipping ...
ERROR: could not parse any lines with 'xyz'
ERROR: cannot open lasreadertxt with file name 'F:/RQ1_RQ2/data/rawdata/2016/Cli
p_plot/list_2016_lidar.txt'
ERROR: could not open lasreader
usage:
las2las -i *.las -utm 13N
las2las -i *.laz -first_only -olaz
las2las -i *.las -drop_return 4 5 -olaz
las2las -latlong -target_utm 12T -i in.las -o out.las
las2las -i in.laz -target_epsg 2972 -o out.laz
las2las -point_type 0 -lof file_list.txt -merged -o out.las
las2las -remove_vlr 2 -scale_rgb_up -i in.las -o out.las
las2las -i in.las -keep_xy 630000 4834500 630500 4835000 -keep_z 10 100 -o out.l
as
las2las -i in.txt -iparse xyzit -keep_circle 630200 4834750 100 -oparse xyzit -o
 out.txt
las2las -i in.las -remove_padding -keep_scan_angle -15 15 -o out.las
las2las -i in.las -rescale 0.01 0.01 0.01 -reoffset 0 300000 0 -o out.las
las2las -i in.las -set_version 1.2 -keep_gpstime 46.5 47.5 -o out.las
las2las -i in.las -drop_intensity_below 10 -olaz -stdout > out.laz
las2las -i in.las -last_only -drop_gpstime_below 46.75 -otxt -oparse xyzt -stdou
t > out.txt

Your help will be highly appreciated.

Thanks and Regards,
Yogendra


list_2012_lidar.txt

Martin Isenburg

unread,
Feb 1, 2018, 6:16:17 AM2/1/18
to LAStools - efficient command line tools for LIDAR processing
Hello,

because of the extra "-i" in your command line, everything gets screwed up.

las2las -i -lof "F:/RQ1_RQ2/data/rawdata/2016/Clip_plot/list_2016_lidar.txt" -merged -o class2.las -keep_class 2 

because of the "-i" the "-lof" is considered a file name (that is then skipped) instead of a command-line switch and then the "list_2016_lidar.txt" file is - based on its ending"  considered and treated as an input ASCII file containing XYZ points. Simply use

las2las -lof "F:/RQ1_RQ2/data/rawdata/2016/Clip_plot/list_2016_lidar.txt" -merged -o class2.las -keep_class 2

instead.

Regards,

Martin @rapidlasso

Susana Gonzalez

unread,
Feb 1, 2018, 7:55:54 PM2/1/18
to last...@googlegroups.com

Hi,

Use -i for input and -lof for a list of files

 

las2las -i F:/RQ1_RQ2/data/rawdata/2012/Clip_plot/*.las -merged -o class2.las -keep_class 2 

 

las2las -lof "F:/RQ1_RQ2/data/rawdata/2016/Clip_plot/list_2016_lidar.txt" -merged -o class2.las -keep_class 2 

 

You can use these two switches in any tool

Cheers

Susana

--

Reply all
Reply to author
Forward
0 new messages