RAT Configuration File
RAT Configuration settings are defined by a 'yaml'/'yml' file. rat init
command provides a rat_config.yaml
file which is partially auto-filled for user's convenience and rat_config_template.yaml
file which is just a template for the required rat configuration settings. User can use the latter to manually fill configuration file if they choose/feel not to use the auto-partially-filled configuration file.
Note
rat_config.yaml
and rat_config_template.yaml
files are present inside params
directory at ./rat_project/params/
.
RAT runs over one single river-basin at a time. But RAT 3.0 has the flexibility to run over multiple river-basins using a single configuration file and thus avoids the need to have one configuration file for each river-basin.
Tip
Though time taken by RAT to operate over all the basins will be same if you use rat run
command individually for each basin's configuration file or if you use that command for the single configuration file representing multiple basins, It will be convenient to have one single configuration file rather than multiple configuration files.
RAT config file has 12 major sections that defines several parameters which are needed to run rat. Each section parameters are indented to right by 4 spaces as compared to section heading. Parameters of each section are described below.
Note
For RAT Configuration File section, Default value is the auto-filled value of a parameter inserted by rat init
command in the rat_config
or rat_config_template
files.
Global
-
Required parametersteps
:Description : List of steps that you want RAT to run using
rat run
command. There are total 14 steps that RAT can run, details of which can be found here.Default :
[1,2,3,4,5,6,7,8,9,10,11,12,13,14]
Syntax : If you want to run RAT's step 1 and 2 only, then
or -
Required parameterproject_dir
:Description : Absolute path of RAT project directory.
Default : Specified by
-d
or--dir
option ofrat init
command.Syntax : If RAT project directory has the name 'rat_project' and has the path '/Cheetah/rat_project', then
-
Required parameterdata_dir
:Description : Absolute path of RAT output data directory. It can be an empty directory which will be used by RAT to store log files, intermediate and final outputs.
Default : A directory named 'data' inside
project_dir
Syntax : If RAT data directory has the name 'data' and has the path '/Cheetah/rat_project/data', then
Tip
data_dir
does not necessarily have to be insideproject_dir
even though it is recommended to do so. In case you don't have enough memory inproject_dir
, this tip can be handy. -
Required parameterbasin_shpfile
:Description : Absolute path of the shapefile containing the polygons of the basin on which you want to run RAT. The shapefile must have a primary key column (unique id) for each basin in the shapefile. Currently 'json' and shapefile ('shp') are the supported formats.
Default : If
-g
or--global_data
option has been provided withrat init
command, then the default path is 'project_dir
/global_data/global_basin_data/shapefiles/mrb_basins.json', otherwise left blank.Syntax : If basin shapefile has the path '/Cheetah/rat_project/global_data/global_basin_data /shapefiles/mrb_basins.json', then
GLOBAL: basin_shpfile: /Cheetah/rat_project/global_data/global_basin_data/shapefiles/mrb_basins.json
Note
Default shapefile is downloaded along with global-database and is provided by Global Runoff Data Centre (GRDC). It has all the major river basins of the world.
-
Required parameterbasin_shpfile_column_dict
:Description : Dictionary of column names for
basin_shpfile
. The dictionary must have a key 'id' and it's value should be the primary key (unique-id) column name.Default : If
-g
or--global_data
option has been provided withrat init
command, then the default value is {'id':'MRBID'} for the defaultbasin_shpfile
.Otherwise, left blank to be filled by the user.Syntax : If
orbasin_shpfile
has a column named 'Basin-ID' where each basin has a unique id, then -
Optional parameterelevation_tif_file
:Description : Absolute path of a raster file having the global elevation data in 'geotif' format. Elevation should be in meters and the crs should be 'WGS84'.
Default : If
-g
or--global_data
option has been provided withrat init
command, path is 'project_dir
/global_data/global_elevation_data/World_e-Atlas-UCSD_SRTM30-plus_v8.tif', otherwise left blank.Syntax : If elevation raster file has a path '/Cheetah/rat_project/global_data/global_elevation_data/elevation.tif', then
Note
- If this parameter is not provided, then
metsim_domain_file
must be provided inMETSIM
section of the config file. - Default elevation raster 'geotif' file is downloaded along with global-database and uses SRTM-30_Plus version-8 data product which is provided by University of California San Diego (UCSD). This dataset is a 30-arc second resolution global topography/bathymetry grid developed from a wide variety of data sources.
- If this parameter is not provided, then
-
Required parametermultiple_basin_run
:Description :
True
if you want to run RAT for multiple basins usingrat run
command according to the parametersbasins_metadata
andbasins_to_process
.False
otherwise. For more information, please look multiple basin run.Default :
False
Syntax : If you want to run RAT for just one basin, then
-
Required parameterbasins_metadata
:Description : Absolute path of the basins metadata file in csv format. It is a csv file that is multi-indexed and have same index as this configuration file. For more information, please look multiple basin run.
Default : It is blank by default and can be filled by the user.
Syntax : If
basins_metadata
file has a path '/Cheetah/rat_project/params/ basins_metadata_sample.csv', then -
Required parameterbasins_to_process
:Description : List of basins to run RAT for within the
basins_metadata
. The list values must match with the values ofbasin_name
inBASIN
section inbasins_metadata
. For more information, please look multiple basin run.Default : It is blank by default and can be filled by the user.
Syntax : If you want to run RAT for basins Sabine and Nueces, then
Basin
-
Required parameterregion_name
:Description : Name of the region in which the basin is located. It is used only to store RAT outputs in a directory named
region_name
. Multiple basins can have a sameregion_name
.Default : It is blank by default and should be filled by the user.
Syntax : If you want to run RAT for, say 'Sabine' basin, then the
region_name
can be 'Texas' as the basin lies in Texas state or 'North_America'. -
Required parameterbasin_name
:Description : Name of the basin. It is used only to store RAT outputs in a directory named
basin_name
inside a directory namedregion_name
. Each basins should have a uniquebasin_name
.Default : It is blank by default and should be filled by the user.
Syntax : If you want to run RAT for, say 'Sabine' basin, then the
basin_name
can be 'Sabine'.Caution
Do not use blank spaces in
region_name
andbasin_name
. Instead, use underscore (_). -
Required parameterbasin_id
:Description : Unique ID of the basin. It is value of the column 'id' defined in
basin_shpfile_column_dict
in Global section. It is used to map the basin in thebasin_shpfile
over which you want to run RAT for.Default : It is blank by default and should be filled by the user.
Syntax : If you want to run RAT for, say 'Sabine' basin, and the 'unique-id' column has a value of, say 2341, then
-
Required parameterspin_up
:Description : True, if you want RAT to run VIC with a spin up period, recommended if you are running RAT first time for a particular basin and you don't have VIC State File for
start
date. Otherwise, False.Default :
True
Syntax : Suppose, if you have run RAT for the period 2022-03-01 to 2022-08-01 and want to run RAT for second time for a period 2022-08-01 to 2022-08-31, then
-
Required parameterstart
:Description : Start date of the time period for which you want to run RAT in the format
yyyy-mm-dd
.Default : It is blank by default and should be filled by the user.
Syntax : Suppose, if you want to run RAT for a period 2022-08-01 to 2022-08-31, then
-
Required parameterend
:Description : End date of the time period for which you want to run RAT in the format
yyyy-mm-dd
.Default : It is blank by default and should be filled by the user.
Syntax : Suppose, if you want to run RAT for a period 2022-08-01 to 2022-08-31, then
-
Optional parametervic_init_state_date
:Description : It is the date (in format
yyyy-mm-dd
) for which you have the initial state VIC pARAMETERS available so thatspin_up
is not required. VIC use these soil state parameters to initialize.Default : It is blank by default and can be filled by the user.
Syntax : Suppose, if you have run RAT for the period 2022-03-01 to 2022-08-01 and want to run RAT for second time for a period 2022-08-01 to 2022-08-31, then
Note
- If
spin_up
is True, the value ofvic_init_state_date
is ignored. - Every time you run RAT successfully, it by default saves a VIC state file for the
end
date. - Generally, the value of
vic_init_state_date
should be same (or as close as possible) to the vic_init_state_date. Since VIC initializes with the soil parameters of that date, it is best practice to start running RAT from the same date.
Caution
If
spin_up
is False andvic_init_state_date
is blank or not provided, the RAT results will not have any significance for the initial 24-28 months of the simulated time period as they were produced using VIC computed inflow without considering any spin up. - If
Metsim
-
Required parametermetsim_env
:Description : Absolute path of the directory in which virtual metsim python environment has been installed.
Default : '
project_dir
/models/metsim'Syntax : If metsim python environment has the path '/Cheetah/rat_project/models/metsim', then
Reminder
MetSim gets automatically installed at the above mentioned default path, once you use
rat_init
command. -
Required parametermetsim_param_file
:Description : Absolute path of the parameter file required by MetSim in 'yaml' format. Details about the parameter file is available here. It can also be the path to sample metsim parameter file as RAT automatically updates it during
rat run
command. For further information, see the tip below.Default : '
project_dir
/params/metsim/params.yaml'Syntax : If metsim parameter file has the path '/Cheetah/rat_project/params/metsim/params.yaml', then
Tip
- RAT 3.0 automatically downloads a sample of
metsim_param_file
once you userat init
command. - You do not need to manually update
metsim_param_file
as RAT automatically updates it with the known parameters (which usually includes input and output paths, data formats, start and end dates, etc.). If there is any constant parameter that you want to update (not necessary), you can do it in the default sample copy.
- RAT 3.0 automatically downloads a sample of
-
Optional parametermetsim_domain_file
:Description : Absolute path of the domain parameter file required by MetSim in NetCDF format. Details about the domain parameter file is available here.
Default : It is blank by default and can be filled by the user.
Syntax : If metsim domain parameter file has the path '/Cheetah/rat_project/custom_files/metsim_domain.nc', then
Note
metsim_domain_file
is only required ifelevation_tif_file
in Global section is not provided, otherwise it is ignored. RAT 3.0 automatically prepares a metsim domain file using an elevation raster and basin polygon. -
Optional parameterhistorical_precipitation
:Description : Absolute path of the historical precipitation data (>= 3years) that extends atleast over the polygon of
basin_name
in NetCDF format. If provided, it will be used by RAT for climatology based correction of satellite precipitationDefault : It is blank by default and can be filled by the user.
Syntax : If historical precipitation file has the path '/Cheetah/rat_project/custom_files/ historical_precipitation.nc', then
VIC
-
Required parametervic_env
:Description : Absolute path of the directory in which virtual vic python environment has been installed.
Default : '
project_dir
/models/vic'Syntax : If vic python environment has the path '/Cheetah/rat_project/models/vic', then
Reminder
VIC gets automatically installed at the above mentioned default path, once you use
rat_init
command. -
Optional parametervic_param_file
:Description : Absolute path of the vic's global parameter file required by vic in 'txt' format. Details about the parameter file is available here. It is used as a sample vic global parameter file as RAT automatically updates it during
rat run
command. For further information, see the tip below.Default : '
project_dir
/params/vic/vic_params.txt'Syntax : If vic parameter file has the path '/Cheetah/rat_project/params/vic/vic_params.txt', then
Note
vic_param_file
is optional and can be left blank if all the required parameters are defined inVIC PARAMETERS
section.Tip
- RAT 3.0 automatically downloads a sample of
vic_param_file
once you userat init
command. - You do not need to manually update
vic_param_file
as RAT automatically updates it with the known parameters (which usually includes input and output paths, data formats, start and end dates, etc.). If there is any parameter value that you want to define and don't want RAT to update it, you can do it in theVIC PARAMETERS
section.
- RAT 3.0 automatically downloads a sample of
-
Required parametervic_global_data
:Description :
True
if vic "global" (relative to basin) soil and domain parameter information is available and needs to be cropped for the basin.False
otherwise. If False, you should have vic soil and domain parameter files that can be used "as it is" by VIC. For more information about vic soil paramater file, click here and for vic domain parameter file, click here.Default :
True
Syntax : If you have vic soil and domain parameter files for the whole continent or the country in which the basin lies, then
Note
- Default "global" vic soil parameter and domain files for each continent is downloaded along with global-database and was prepared by Jacob et al.(2021).
- If
vic_global_data
is True,vic_global_param_dir
,vic_basin_continent_param_filename
andvic_basin_continent_domain_filename
are the required parameters.vic_soil_param_file
andvic_domain_file
are ignored. - If
vic_global_data
is False,vic_soil_param_file
andvic_domain_file
are required andvic_global_param_dir
,vic_basin_continent_param_filename
andvic_basin_continent_domain_filename
are ignored.
-
Optional parametervic_global_param_dir
:Description : Absolute path of the directory contining the vic's global soil parameter and domain files required by vic.
Default : '
project_dir
/global_data/global_vic_params'Syntax : If you want to run VIC for a basin in North America and you have the vic soil parameter and domain files for the North America in the directory '/Cheetah/rat_project/global_data/global_vic_params', then
-
Optional parametervic_basin_continent_param_filename
:Description : Name of the vic soil parameter file in 'NetCDF' format which must have parameter information of a larger extent as compared to the basin so that it can be cropped (i.e. global relative to basin).
Default : It is blank by default and can be filled by the user.
Syntax : If you want to run VIC for a basin in North America and you have the vic soil parameter file for the North America in
vic_global_param_dir
by the name 'namerica_params.nc', then -
Optional parametervic_basin_continent_domain_filename
:Description : Name of the vic domain parameter file in 'NetCDF' format which must have parameter information of a larger extent as compared to the basin so that it can be cropped (i.e. global relative to basin).
Default : It is blank by default and can be filled by the user.
Syntax : If you want to run VIC for a basin in North America and you have the vic domain parameter file for the North America in
vic_global_param_dir
by the name 'namerica_domain.nc', then -
Optional parametervic_soil_param_file
:Description : Absolute path of the vic soil parameter file in 'NetCDF' format which could be used "as it is" by VIC.
vic_global_data
must be False to use this parameter, otherwise ignored.Default : It is blank by default and can be filled by the user.
Syntax : If you want to run VIC for a basin whose vic soil parameter file is at the path '/Cheetah/rat_project/custom_files/basin_vic_soil_params.nc', then
-
Optional parametervic_domain_file
:Description : Absolute path of the vic soil parameter file in 'NetCDF' format which could be used "as it is" by VIC.
vic_global_data
must be False to use this parameter, otherwise ignored.Default : It is blank by default and can be filled by the user.
Syntax : If you want to run VIC for a basin whose vic soil parameter file is at the path '/Cheetah/rat_project/custom_files/basin_vic_domain.nc', then
VIC Parameters
This section is optional and describes the parameters defined by vic_param_file
. As vic_param_file
is used as a template and RAT 3.0 automatically updates all the parameter values, this section can be used by you to define any parameter's value that you don't want to get update automatically in vic_param_file
. To know about the available parameters, click here.
For instance, if you want to update the number of moisture layers (NLAYER
) used by the VIC model and want to define the name of forcing type for air temperature (AIR_TEMP
) as 'temp' to be read from the forcing file:
Tip
Parameter keywords are case sensitive and please refer this page for this section to have a look what case you should use for a particular parameter.
Routing
-
Required parameterroute_model
:Description : Absolute path of the routing model.
Default : '
project_dir
/models/routing/rout'Syntax : If routing model has the path '/Cheetah/rat_project/models/routing/rout', then
Reminder
Routing model gets automatically installed and compiled at the above mentioned default path, once you use
rat_init
command. -
Optional parameterroute_param_file
:Description : Absolute path of the routing parameter file required by routing in 'txt' format. Details about the parameter file is available here. It is used as a sample parameter file as RAT automatically updates it during
rat run
command. For further information, see the tip below.Default : '
project_dir
/params/routing/route_param.txt'Syntax : If routing parameter file has the path '/Cheetah/rat_project/params/routing/route_param.txt', then
Note
route_param_file
is optional and can be left blank if all the required parameters are defined inROUTING PARAMETERS
section.Tip
- RAT 3.0 automatically downloads a sample of
route_param_file
once you userat init
command. - You do not need to manually update
route_param_file
as RAT automatically updates it with the known parameters (which usually includes input and output paths, data formats, start and end dates, etc.). If there is any parameter value that you want to define and don't want RAT to update it, you can do it in theROUTING PARAMETERS
section.
- RAT 3.0 automatically downloads a sample of
-
Required parameterglobal_flow_dir_tif_file
:Description : Absolute path of the flow direction raster file in 'geotif' format. The provided raster file must have flow direction information of a larger or equal extent as compared to the basin in WGS84 projection and the resolution of this file must be 0.0625°. This file is used to create another file in a format required by Routing, details of which is available here.
Default : '
project_dir
/global_data/global_drt_flow_file/global_drt_flow_16th.tif'Syntax : If routing parameter file has the path '/Cheetah/rat_project/global_data/global_drt_flow_file/global_drt_flow_16th.tif', then
ROUTING: global_flow_dir_tif_file: /Cheetah/rat_project/global_data/global_drt_flow_file/global_drt_flow_16th.tif
Note
- RAT 3.0 requires the resolution of the flow direction file as 1/16th or 0.0625°.
- Default flow direction raster 'tif' file with the required resolution of 0.0625° in WGS84 projection is downloaded along with global-database and is provided by NTSG Group at University of Montana.
- Numbers that represnt flow directions in the default flow direction file is as follows:
1 = east
2 = southeast
4 = south
8 = southwest
16 = west
32 = northwest
64 = north
128 = northeast
255 = no flow
-
Optional parameterreplace_flow_directions
:Description : Dictionary of key value pairs where key represents the flow direction in
global_flow_dir_tif_file
and that flow direction number will then be replaced by the value of that key.Default :
{ 1 : 3, 4 : 5, 2 : 4, 8 : 6, 16 : 7, 32 : 8, 64 : 1,128 : 2, 255 : 0 }
Syntax : If you want to replace flow directions 2 and 4 by 4 and 5 respectively in
global_flow_dir_tif_file
, thenorROUTING: replace_flow_directions: { 4 : 5, # first replace 4 by 5 2 : 4, # and then replace 2 by 4. }
Note
Flow direction numbers as required by Routing in each grid cell is as follows:
0 = no flow
1 = north
2 = northeast
3 = east
4 = southeast
5 = south
6 = southwest
7 = west
8 = northwestTip
Replacing of directions takes place sequentially in the order provided. So if you want to replace 2 by 4 and 4 by 5 then first replace 4 by 5 and then replace 2 by 4. If you do the other way round, then there will be no directions with value 4.
-
Required parameterstation_global_data
:Description :
True
if reservoir information is available in a vector file. It can be "global" (relative to basin) and will be automatically filtered for the basin.False
if you don't have reservoir information in a vector file. For more information about routing station file, click here.Default :
True
Syntax : If you have reservoir information in a shapefile, then
Note
- Default "global" reservoirs and dam data is downloaded along with global-database in the form of shapefiles and uses the Global Reservoir and Dam (GRanD) database version 1.3
- If
station_global_data
is True,stations_vector_file
andstations_vector_file_columns_dict
are the required parameters andstation_latlon_path
is ignored. - If
station_global_data
is False,station_latlon_path
is required whereasstations_vector_file
andstations_vector_file_columns_dict
are ignored.
-
Optional parameterstations_vector_file
:Description : Absolute path of the dam/station vector file where the geometry is represented by point location of dams and there must be unique id, name, longitude and latitude columns. It can be "global" (relative to basin) and will be automatically filtered for the basin. It is used to create routing station file. For more information about routing station file, click here.
Default : '
project_dir
/global_data/global_dam_data/GRanD_dams_v1_3_filtered.shp'Syntax : If reservoir station file has the path '/Cheetah/rat_project/global_data/global_dam_data/GRanD_dams_v1_3_filtered.shp', then
ROUTING: stations_vector_file : Cheetah/rat_project/global_data/global_dam_data/GRanD_dams_v1_3_filtered.shp
Tip
To use this parameter, make sure
station_global_data
isTrue
. -
Optional parameterstations_vector_file_columns_dict:
:Description : Dictionary of column names for
stations_vector_file
. The dictionary must have keys 'id_column', 'name_column', 'lon_column' and 'lat_column' and their values should be the actual name of the corresponding columns respectively. The 'id_column' value should be unique for all stations in the vector file.Default :
{id_column: GRAND_ID, name_column: DAM_NAME, lon_column: LONG_DD, lat_column: LAT_DD}
Syntax : If
stations_vector_file
has column names 'GRAND_ID', 'DAM_NAME', 'LONG_DD' and 'LAT_DD', thenorROUTING: stations_vector_file_columns_dict: {id_column: GRAND_ID, name_column: DAM_NAME, lon_column: LONG_DD, lat_column: LAT_DD}
ROUTING: stations_vector_file_columns_dict: id_column: GRAND_ID name_column: DAM_NAME lon_column: LONG_DD lat_column: LAT_DD
Tip
- To use this parameter, make sure
station_global_data
isTrue
. - The default value is only useful if you are using the GRanD dam shapefile provided with global database of RAT 3.0.
- To use this parameter, make sure
-
Optional parameterstation_latlon_path:
:Description : Absolute path of station file in csv format with columns 'run', 'name', 'lon' and 'lat'. The 'run' column values should be 1 for stations for which routing should be executed otherwise 0.
Default : It is blank by default and can be filled by the user.
Syntax : If station csv file has the path '/Cheetah/rat_project/custom_files/station_lat_lon.csv', then
Tip
To use this parameter, make sure
station_global_data
isFalse
.
Routing Parameters
This section of the configuration file describes the parameters defined by route_param_file
. As route_param_file
is used as a template and RAT 3.0 automatically updates all the parameter values, this section can be used by you to define any parameter's value that you don't want to get update automatically in route_param_file
. To know about the available parameters, click here.
Note
By default, RAT 3.0 uses a standard unit hydrograph file which is downloaded when RAT is initialized using rat init
command. To know more about the unit hydrograph file, click here.
Tip
To improve accuracy of inflow values for a river basin, VIC and routing models can be calibrated. To know more, click here.
GEE
-
Required parameterreservoir_vector_file
:Description : Absolute path of the reservoir vector file where the geometry is represented by reservoir polygons. It can be "global" (relative to basin) and will be automatically filtered for the basin. It can have unique id column, dam name column and surface area columns.
Default : '
project_dir
/global_data/global_reservoir_data/GRanD_reservoirs_v1_3.shp'Syntax : If reservoir station file has the path '/Cheetah/rat_project/global_data/global_reservoir_data/GRanD_reservoirs_v1_3.shp', then
-
Required parameterreservoir_vector_file_columns_dict
:Description : Dictionary of column names for
reservoir_vector_file
. The dictionary must have keys 'id_column', 'dam_name_column' and 'area_column' and their values should be the actual name of the corresponding columns respectively. 'area' column should have value of average surface area of reservoirs in square Kilometers.Default :
{id_column : 'GRAND_ID', dam_name_column : 'DAM_NAME', area_column : 'AREA_SKM'}
Syntax : If
reservoir_vector_file
has column names 'GRAND_ID', 'DAM_NAME' and 'AREA_SKM', thenorROUTING: reservoir_vector_file_columns_dict: {id_column : 'GRAND_ID', dam_name_column : 'DAM_NAME', area_column : 'AREA_SKM'}
ROUTING: reservoir_vector_file_columns_dict: id_column: GRAND_ID dam_name_column: DAM_NAME area_column: AREA_SKM
Note
- If
station_global_data
isTrue
, the values of 'id_column' and 'dam_name_column' inreservoir_vector_file
should match with that of 'id_column' and 'name_column' instations_vector_file
. - If
station_global_data
isFalse
, the values of 'dam_name_column' inreservoir_vector_file
should match with that of 'name' column instation_latlon_path
. 'id_column' is not required in this case and will be ignored if provided.
- If
Post Processing
-
Optional parameteraec_dir
:Description : Absolute path of the directory containing area elevation curve (AEC) files in csv format for all reservoirs. If for any reservoir AEC file is missing, it will be automatically created using digital elevation model inside this directory.
Default : It is blank by default and can be filled by the user.
Syntax : If
aec_dir
has the path '/Cheetah/rat_project/custom_files/aec/', thenNote
- If
station_global_data
isTrue
, AEC file names should be <'id_column' value><'dam_name_column' value where spaces are replaced by ''>. For example, the file name for a reservoir with 'dam_name' as 'Tehri Dam' and 'id' as 115 will be '115_Tehri_Dam.csv'. - If
station_global_data
isFalse
, AEC file names should be <'dam_name_column' value where spaces are replaced by '_'>. For example, the file name for a reservoir with 'dam_name' as 'Tehri Dam' will be 'Tehri_Dam.csv'. - Each AEC file should have two columns with headers as 'Elevation' and 'CumArea'. 'Elevation' should be in meters and 'CumArea' should be in square Kilometers.
- If
Clean Up
-
Required parameterclean_preprocessing
:Description :
True
if you want to delete intermediate pre-processed data for a river basin except global raw data downloaded from servers after the RAT run. Otherwise,False
.Default :
False
Syntax : If you want to delete intermediate pre-processed data for a river basin,
-
Required parameterclean_metsim
:Description :
True
if you want to delete intermediate metsim outputs for a river basin after the RAT run. Otherwise,False
.Default :
False
Syntax : If you want to delete intermediate metsim outputs for a river basin,
-
Required parameterclean_vic
:Description :
True
if you want to delete intermediate vic inputs and outputs, and any vic initial soil state file that is older than 15 days, for a river basin after the RAT run. Otherwise,False
.Default :
False
Syntax : If you want to delete intermediate vic inputs and outputs, and any vic initial soil state file that is older than 15 days for a river basin,
-
Required parameterclean_routing
:Description :
True
if you want to delete intermediate routing inputs and outputs, and any routing initial state file that is older than 15 days, for a river basin after the RAT run. Otherwise,False
.Default :
False
Syntax : If you want to delete intermediate routing inputs and outputs, and any routing initial state file that is older than 15 days for a river basin,
-
Required parameterclean_gee
:Description :
True
if you want to delete gee produced small chunk files of surface area time series for a river basin after the RAT run. Otherwise,False
.Default :
False
Syntax : If you want to delete gee produced small chunk files of surface area time series for a river basin,
Note
If
clean_gee
isTrue
, it will not delete the final gee outputs that will be appended with new data in next RAT run. To delete that, useclean_previous_outputs
. -
Required parameterclean_altimetry
:Description :
True
if you want to delete raw altimetry data that takes a lot of time to download for a river basin after the RAT run. Otherwise,False
.Default :
False
Syntax : If you want to delete raw altimetry data for a river basin,
Note
If
clean_altimetry
isTrue
, it will not delete the extracted altimetry data that will be appended with new data in next RAT run. To delete that, useclean_previous_outputs
. -
Required parameterclean_previous_outputs
:Description :
True
if you want to delete previous outputs, gee extracted surface area time series and altimetry extracted height data produced by last RAT run. Otherwise,False
.Default :
False
Syntax : If you want to delete raw altimetry data that takes a lot of time to download for a river basin,
Note
If
clean_previous_outputs
isTrue
, the previous outputs are cleaned before executing any step insteps
.Tip_note
You should use
clean_previous_outputs
if you want to have fresh outputs of RAT for a river basin. Otherwise, by default RAT will keep appending the new outputs to the same files and will concatenate data by calendar dates.
Confidential
-
Reuired parametersecrets:
:Description : Absolute path of secrets file in ini format with credentials for IMERG, AVISO and GEE as mentioned here.
Default : Specified by
-s
or--secrets
option ofrat init
command.Syntax : If secrets file has the path '/Cheetah/rat_project/secrets/secrets.ini', then
Note
It will be left blank if '-s' argument is not provided in
rat init
command.