On windows, try something like this in a cmd window cd \path\to\tifs for %f in (*.tif) do otbcli_MeanShiftSmoothing -in %f -fout %f-out.tif -spatialr x -ranger y -maxiter z
On Monday, May 22, 2017 at 12:49:53 PM UTC-4, Flint Freakwood wrote: > > Of course I'm using Windows :D I'll try to find a way to make it work for > Windows. Thanks a lot for your input! > > Am Sonntag, 21. Mai 2017 22:08:55 UTC+2 schrieb Stephen Woodbridge: >> >> It is bash or sh shell script. >> You can type it into a command line terminal, or >> put it in file like doit.sh and run it with >> sh doit.sh >> >> This presumes you are on linux, it you on windows then there is some >> equivalent bat file commands to do the same thing. >> >> On Sunday, May 21, 2017 at 1:52:27 PM UTC-4, Flint Freakwood wrote: >>> >>> Hey there! Thanks a lot for answering, I really appreciate it! However I >>> have trouble understanding where to put that. For me it looks like a python >>> code or something - do I save it as a python file and go ahead from there? >>> I'll try things out until I receive an answer :) >>> >>> Thanks again! >>> >>> >>> Am Sonntag, 21. Mai 2017 19:43:04 UTC+2 schrieb Stephen Woodbridge: >>> >>>> How about something like: >>>> >>>> for tif in directory/*.tif ; do >>>> out=$tif-out.tif >>>> otbcli_MeanShiftSmoothing -in $tif -fout $out -spatialr x -ranger y >>>> -maxiter z >>>> done >>>> >>>> >>>> >>>> On Sunday, May 21, 2017 at 11:25:56 AM UTC-4, Flint Freakwood wrote: >>>>> >>>>> Hey there! I want to smooth multiple *.tif-files and would like to do >>>>> it as a batch process so I don't have to smooth every picture by hand. >>>>> The >>>>> command line input I begin with looks like this: >>>>> >>>>> otbcli_MeanShiftSmoothing -in Input.tif -fout Output.tif -spatialr x >>>>> -ranger y -maxiter z >>>>> >>>>> How do I go about processing the whole folder or every tif-file in the >>>>> folder? >>>>> >>>>> Thanks in advance :) >>>>> >>>> -- -- Check the OTB FAQ at http://www.orfeo-toolbox.org/FAQ.html You received this message because you are subscribed to the Google Groups "otb-users" group. To post to this group, send email to otb-users@googlegroups.com To unsubscribe from this group, send email to otb-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/otb-users?hl=en --- You received this message because you are subscribed to the Google Groups "otb-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to otb-users+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.