1::
2:: a batch script for quality checking of poor tiles
3::
4
5::
6:: specify parameters
7::
8
9:: allows you to run the script from other folders
10set PATH=%PATH%;D:\lastools\bin;
11
12:: here we specify the directory (e.g. the folder) in which the
13:: bad tiles are stored
14set BAD_TILES_FOLDER=D:\data_fiji\FMG1986
15
16:: here we specify in which format the bad tiles are stored in
17:: the BAD_TILES_FOLDER folder
18set TILE_FORMAT=laz
19
20:: here we specify the directory (e.g. the folder) in which the
21:: temporary files are stored
22set TEMP_FILES=D:\data_fiji\temp
23
24:: here we specify the directory (e.g. the folder) in which the
25:: resulting quality reports are stored
26set OUTPUT_DIRECTORY=D:\data_fiji\quality
27
28:: here we specify the number of cores we want to run on
29set NUM_CORES=7
30
31rmdir %TEMP_FILES% /s /q
32
33::
34:: loop over all bad tiles
35::
36
37for %%f IN (%BAD_TILES_FOLDER%\*.%TILE_FORMAT%) DO (
38::FOR /R %%f IN (*.*) DO (
39  ECHO processing %BAD_TILES_FOLDER%\%%~nxf to %OUTPUT_DIRECTORY%\%%~nf.png
40  mkdir %TEMP_FILES%
41  CALL lassplit -i %BAD_TILES_FOLDER%\%%~nxf -by_gps_time_interval 500 -olaz -odir %TEMP_FILES%
42  CALL lasoverlap -i %TEMP_FILES%\*.laz -files_are_flightlines -o %OUTPUT_DIRECTORY%\%%~nf.png -utm 60K
43  rmdir %TEMP_FILES% /s /q
44)
45
46echo "bye bye"
47