I hope you can help me with this.
I have this in the model designer and I looking for a solution because I need to run this process in many layers (150) and I dont know if is possible to select a folder and all the files as inputs.
1 Answer
You can execute the model as a batch process.
I select all files with 72
in the name in this folder:
The tricky part is to name the outputs.
This expression replaces the input path with C:/TEMP/model_outputs
and use input file name and appends _output.tif
to the output file name (use forward slashes in path). Replace @input_raster_layer
to match your input parameter name (yellow input box in first screenshot):
concat(
replace(
file_path( @input_raster_layer ),
file_path( @input_raster_layer ),
'C:/TEMP/model_outputs'),
concat('/',
base_file_name(@input_raster_layer), '_output.tif'))