Hello,
Below I copied a text file (.gmd extension).
I would like to be able to recreate this several times being able to change some of the values. Each files needs to be save with the counter (075-407 attached and a .gmd extension)
....
NAME OF INITIAL LANDUSE IMAGE : gr_lc_01b_075_fp
SUITABILITY IMAGE FOR SIMULATION 1 : c2_mce_075
These should change together: gr_lc_01b_XXX_fp & c2_mce_XXX (XXX goes from 075 - 407)
....
RGNVAL REGION NAME # CELLS BEGIN END BEGIN END
1 Region 1 294276 152838 140000 78439 91277
Each of these four numbers will be different for each iteration from 074-407. I have them right now in an excel file. Please advise how to incorporate this into the script.
.....
NAME OF OUTPUT LANDUSE IMAGE : delete_test
I would like the output name to be updated with the number from the iteration (075-407, e.g. output_075)
.....
Thank you kindly,
I really appreciate annotated code so that I might one day now how to do this myself,
Cheers,
MJ
text that needs to be copied and or updated starts immediately below:
**************************
**********
**********
**********
*******
* THIS FILE CONTAINS THE VALUES OF THE PARAMETERS REQUIRED *
* FOR THE GEOMOD MODULE, WHICH AUTOMATICALLY IS GENERATED IN *
* IDRISI. STRONGLY RECOMMEND REEDITING IN IDRISI IF NECESSARY.*
**************************
**********
**********
**********
*******
TIME TO BEGIN GEOMOD, INCLUSIVE : 2001
TIME TO END GEOMOD, INCLUSIVE : 2016
TIME STEP IN TIME UNITS : 1
# NEIGHBORS AWAY TO SEARCH,0=NO NIBBLE : 1
WRITE DEBUG OUTPUT TO LOG FILE,YES=1 : 0
NAME OF STRATA/MASK IMAGE : N/A
NAME OF INITIAL LANDUSE IMAGE : gr_lc_01b_075_fp
DO ENVIR. IMPACT ANALYSIS? 1=YES, 0=NO : 0
CMP/READ SUITABILITY SCORES(0=CP,1=RD) : 1
NUMBER OF RUNS ONCE : 1
SUITABILITY IMAGE FOR SIMULATION 1 : c2_mce_075
DO VALIDATION ANALYSIS? 1=YES, 0=NO : 0
SINCE NO VALIDATION IMAGE, LANDUSE CHANGE INFO READ FROM FOLLOWS:
LANDUSE STATE 1 LANDUSE STATE 2
RGNVAL REGION NAME # CELLS BEGIN END BEGIN END
1 Region 1 294276 152838 140000 78439 91277
# OF TIMES OF OUTPUT BESIDE END TIME : 0
NAME OF OUTPUT LANDUSE IMAGE : delete_test
Start Free Trial