Batch process for Land Cover Change | How path two different raster at each cicle? #264
-
Hi Luca and Friends I'm exploring the capability of SCP to batch a Land Cover Change process for a set of 'places', in order to compare the changes in land cover classes between an initial and future condition. The filenames structure is: "ClimClass_TIME_Site.tif", where "TIME" can be "Hist" for initial land cover raster, and "Fut" for future land cover raster. This couple of files for each "Site". All files are in the same folder "ClimClass_All". Tried different configurations (e.g. same filename for each site, but in different folder for "Hist" and "Fut" conditions), but the process doesn't work. Using the scrip showed below, the error message in QGIS is "Information [4] : Select a raster; raster is not loaded" My main questions are:
Thanks in advance for your help and support for this development. !working_dir!; 'C:/..../ClimClass_All/' !for_file_in!;'!working_dir!', 'tif' land_cover_change; reference_raster_path: '!file_directory!, Hist, tif'; new_raster_path : '!file_directory!, Fut, tif'; output_raster_path : '!file_directory!_change'; !end_for_file! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
Hi @efbustos , unfortunately the batch tool is not suitable for filtering all the required inputs. |
Beta Was this translation helpful? Give feedback.
Hi @efbustos ,
unfortunately the batch tool is not suitable for filtering all the required inputs.
You could consider using Python, and the new library Remotior Sensus which also includes a tool for Cros classification which is basically the same as land cover change comparing all the input classes with the option
cross_matrix=True
.With Python you could easily filter input files, or create lists of file to be processed.