That's what I was asking - if anybody knows if this is even possible, and if
it was: How do you do it? For example when I tried running the following, it
just seemed to cause some sort of freaky loop where the command prompt window
filled with the lines from the bat and then just kept fluttering like
something could have been happening, but there was no data showing up after
several minutes in the target output directory.
I think I'm getting closer … and pardon me for my inexperience is showing :)
The line above has many things wrong with it beginning with the confusion that
I've introduced by using the executable name in the naming of the directory
*with spaces*
There hopefully is a more elegant / succinct way of writing but this bat is
working at least:
Using python script to run mcc-lidar in parallel is an excellent idea. Here is
one alternative that you can use to run mcc-lidar batch file without
multithreading. Create a .bat file with the following code, put it in
the same folder as your las files and double-click to run the file.
@jedfrechette - Thank you for the link and the idea, though I'm unable to run
with it - I wish understood more.
@rupeshs - Thank you very much for this; it is very much a gift that is well
appreciated :)
After a few trials and errors (thank goodness for Ctrl+C) and in getting
reacquainted with eight-dot-three, I made a slight modification to allow using
a single source directory for data in and then upon completion move results
into a separate folder:
[b]s15t03m.bat[/b]@ECHO offecho Adding MCC-LIDAR folder to PATH environment variable...PATH="C:\Program Files (x86)\MCC-LIDAR 2.1\bin";%PATH%for %%a in (..\data\*.las) do (echo Running MCC-LIDAR on "%%a" ...mcc-lidar "%%a" "%%a-out.las" -s 1.5 -t 0.3)PAUSEMOVE c:\mcctests\data\*out.las c:\mcctests\s15t03mPAUSEECHO on
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Is it possible to batch process an entire folder of .las files through mcc-
lidar and to output those files (elsewhere) with same names?
Have you tried making a .bat file?
Hi Andy,
That's what I was asking - if anybody knows if this is even possible, and if
it was: How do you do it? For example when I tried running the following, it
just seemed to cause some sort of freaky loop where the command prompt window
filled with the lines from the bat and then just kept fluttering like
something could have been happening, but there was no data showing up after
several minutes in the target output directory.
Hi Andy,
I think I'm getting closer … and pardon me for my inexperience is showing :)
The line above has many things wrong with it beginning with the confusion that
I've introduced by using the executable name in the naming of the directory
*with spaces*
There hopefully is a more elegant / succinct way of writing but this bat is
working at least:
Can you suggest any means of improving it?
Thank you very much.
Kelly
You could replace the the windows .bat file with a threaded Python script so
that multiple mcc-lidar commands run in parallel. For example:
http://stackoverflow.com/questions/9874042/using-pythons-multiprocessing- module-to-execute-simultaneous-and-separate-seawa
Using python script to run mcc-lidar in parallel is an excellent idea. Here is
one alternative that you can use to run mcc-lidar batch file without
multithreading. Create a .bat file with the following code, put it in
the same folder as your las files and double-click to run the file.
@jedfrechette - Thank you for the link and the idea, though I'm unable to run
with it - I wish understood more.
@rupeshs - Thank you very much for this; it is very much a gift that is well
appreciated :)
After a few trials and errors (thank goodness for Ctrl+C) and in getting
reacquainted with eight-dot-three, I made a slight modification to allow using
a single source directory for data in and then upon completion move results
into a separate folder:
Great, thanks everyone for helping Kelly!
Hello,
Above, in the call for the variable input
%%a
and then for MCC-LIDAR to write out that variable appended with
, the result is something like:
If I try and use %~n to write only the name before being appended with the
-out.las, MCC-LIDAR doesn't run; i.e.;
Admittedly, this is trivial, I was just curious why it doesn't work :)
Thanks!
Kelly