editr2dRfile:
Enter the parameters of a concrete r2dRue analysis and store them in a file.
Description
This function facilitates the at once specification of all the parameters corresponding to a given r2dRue analysis. The parameters are saved to a text file that may be subsequently read by read2dRfile() to perform the analysis in batch mode.
Usage
editr2dRfile(conf = "")
Arguments
conf
Name of the parameters file to be created or edited.
Details
The user is prompted with questions to enter the following parameters. Default values are suggested if editing an existing parameters file.
comment
Description of this run. 255 characters maximum
pOut
Output directory. Specify the full path
viRgf
Name of the Vegetation Index raster group
rainRgf
Name of the precipitation raster group
petRgf
Name of the Potential Evapo-Transpiration raster group
sYear
Start moment (year) of these raster groups. Format: yyyy
sMonth
Start moment (month) of these raster groups. Format: mm
mHidro
Start month of hydrological year
acum
Number of cumulative months for preceding rain
yIni
Start year of this run
yEnd
End year of this run
driver
GIS format for raster images. A GDAL driver name
flag
Missing value flag for raster images
The output file can be also edited with a text editor.
It is recommended to set a new output directory if any parameter is changed for a new analysis of the same dataset. Otherwise, existing results will be overwritten.
Raster groups contain sequences of file names associated with their respective time-series. It is assumed here that time-series: start at the same moment and match in length ; are at a monthly resolution; and have no gaps in between.
A summary of the available time-series and number of hydrological years is offered just before the user is prompted to enter the parameters of a particular run.