ARR 2019 Ensembles Processing: Difference between revisions
Content deleted Content added
Line 26:
:<tt>"C:\TUFLOW\Utilities\asc_to_asc_w64.exe" -b -out "C:\Projects\Project_1024\Processing\Max_grid.flt" -max "C:\Projects\Project_1024\Processing\Grid_1.flt" "C:\Projects\Project_1024\Processing\Grid_2.flt"</tt><br>
*A wild card (*) can be used to avoid typing all the file names. Instead ASC_to_ASC utility will automatically read all the files with the same start and end of the filename.<br>
:<u>Example:</u><br>
:<tt>"C:\TUFLOW\Utilities\asc_to_asc_w64.exe" -b -out Max_grid.flt -max Grid_*.flt</tt><br>
:Instead:<br>
:<tt>"C:\TUFLOW\Utilities\asc_to_asc_w64.exe" -b -out Max_grid.flt -max Grid_1.flt Grid_2.flt Grid_3.flt Grid_4.flt Grid_5.flt Grid_6.flt Grid_7.flt Grid_8.flt Grid_9.flt Grid_10.flt</tt><br>
*Looping through variables in a batch file can also be used to make the processing more efficient. Example of such batch file is below:<br>
:<pre>@echo off
:: This sets the variables as local, so you can use another batch file with A and B variables
SetLocal
::set path to TUFLOW_to_GIS Utility
set ASC_to_ASC="C:\TUFLOW\Utilities\asc_to_asc_w64.exe"
:: set up variables
set A=060m 120m 180m
set B=tp01 tp02 tp03 tp04 tp05 tp06 tp07 tp08 tp09 tp10
:: Loop Through
FOR %%a in (%A%) do (
FOR %%b in (%B%) DO (
%ASC_to_ASC% -b -statMedian ARR_5m_1p_%%a_%%b_001.flt
)
)
pause</pre>
|