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 runcommand. 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 -
Optional parametercleaning:Description : Boolean flag indicating whether to do cleaning during RAT run. If True, it cleans the data specified by the
CLEAN UPsection in the configuration file.Default : False
Syntax : If you want to delete data produced by RAT and want to use
CLEAN UPsection, thenNote
If you want to use
CLEAN UPsection,cleaningmust be True. -
Required parameterproject_dir:Description : Absolute path of RAT project directory.
Default : Specified by
-dor--diroption ofrat initcommand.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_dirSyntax : If RAT data directory has the name 'data' and has the path '/Cheetah/rat_project/data', then
Tip
data_dirdoes not necessarily have to be insideproject_direven 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
-gor--global_dataoption has been provided withrat initcommand, 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.jsonNote
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
-gor--global_dataoption has been provided withrat initcommand, then the default value is {'id':'MRBID'} for the defaultbasin_shpfile.Otherwise, left blank to be filled by the user.Syntax : If
orbasin_shpfilehas 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
-gor--global_dataoption has been provided withrat initcommand, 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_filemust be provided inMETSIMsection 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 :
Trueif you want to run RAT for multiple basins usingrat runcommand according to the parametersbasins_metadataandbasins_to_process.Falseotherwise. For more information, please look multiple basin run.Default :
FalseSyntax : 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_metadatafile has a path '/Cheetah/rat_project/params/ basins_metadata_sample.csv', 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_namecan 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_nameinside 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_namecan be 'Sabine'.Caution
Do not use blank spaces in
region_nameandbasin_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_dictin Global section. It is used to map the basin in thebasin_shpfileover 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
startdate. Otherwise, False.Default :
TrueSyntax : 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
Note
- Starting from v3.0.14, the end date can now be set to a date on or before the current day.
- For RAT runs that overlap with the period from three days prior to the current day up to the current day, meteorological data is sourced as nowcasts—precipitation data from the GEFS server and temperature and wind data from the GFS server.
-
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_upis 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_upis True, the value ofvic_init_state_dateis ignored. - Every time you run RAT successfully, it by default saves a VIC state file for the
enddate. - Generally, the value of
vic_init_state_dateshould 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_upis False andvic_init_state_dateis 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_initcommand. -
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 runcommand. 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_fileonce you userat initcommand. - You do not need to manually update
metsim_param_fileas 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_fileis only required ifelevation_tif_filein 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_namein 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_initcommand. -
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 runcommand. 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_fileis optional and can be left blank if all the required parameters are defined inVIC PARAMETERSsection.Tip
- RAT 3.0 automatically downloads a sample of
vic_param_fileonce you userat initcommand. - You do not need to manually update
vic_param_fileas 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 PARAMETERSsection.
- RAT 3.0 automatically downloads a sample of
-
Required parametervic_global_data:Description :
Trueif vic "global" (relative to basin) soil and domain parameter information is available and needs to be cropped for the basin.Falseotherwise. 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 :
TrueSyntax : 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_datais True,vic_global_param_dir,vic_basin_continent_param_filenameandvic_basin_continent_domain_filenameare the required parameters.vic_soil_param_fileandvic_domain_fileare ignored. - If
vic_global_datais False,vic_soil_param_fileandvic_domain_fileare required andvic_global_param_dir,vic_basin_continent_param_filenameandvic_basin_continent_domain_filenameare 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_dirby 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_dirby 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_datamust 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_datamust 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_initcommand. -
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 runcommand. 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_fileis optional and can be left blank if all the required parameters are defined inROUTING PARAMETERSsection.Tip
- RAT 3.0 automatically downloads a sample of
route_param_fileonce you userat initcommand. - You do not need to manually update
route_param_fileas 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 PARAMETERSsection.
- 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.tifNote
- 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_fileand 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 :
Trueif reservoir information is available in a vector file. It can be "global" (relative to basin) and will be automatically filtered for the basin.Falseif you don't have reservoir information in a vector file. For more information about routing station file, click here.Default :
TrueSyntax : 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_datais True,stations_vector_fileandstations_vector_file_columns_dictare the required parameters andstation_latlon_pathis ignored. - If
station_global_datais False,station_latlon_pathis required whereasstations_vector_fileandstations_vector_file_columns_dictare 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.shpTip
To use this parameter, make sure
station_global_dataisTrue. -
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_filehas 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_DDTip
- To use this parameter, make sure
station_global_dataisTrue. - 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_dataisFalse.
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_filehas 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_SKMNote
- If
station_global_dataisTrue, the values of 'id_column' and 'dam_name_column' inreservoir_vector_fileshould match with that of 'id_column' and 'name_column' instations_vector_file. - If
station_global_dataisFalse, the values of 'dam_name_column' inreservoir_vector_fileshould match with that of 'name' column instation_latlon_path. 'id_column' is not required in this case and will be ignored if provided.
- If
-
Optional parameterbot_filter:Description : The BOT (Bias Outlier Trend) Filter can be used to have granular control over the filtering applied to surface area (SA) time series. It corrects the Optical satellite based surface area results using SAR (Synthetic Aperture Radar) data and a set of three filters. To use the filter, set 'apply' to 'true' and set the three thresholds. Bias_threshold: The intensity of filtering out optical SA values that has a bias from SAR value. Outlier_threshold: The intensity of filtering out outlier values in the Optical SA time series Trend_threshold: The intensity of filtering out optical SA values whose trend differs from SAR trend Threshold ranges: (Off: 0 - 9: MAX) Eg. Relatively Aggressive filtering set: [8,8,8]
Default :
{apply: false, bias_threshold: 9, outlier_threshold: 8, trend_threshold: 9}Syntax : If filtering for surface area is required to be run, then
Note
Setting
bot_filterapplytofalsein a subsequent run after it was madetruewill result in Surface Area reverting toTMSOSbased values.
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_dirhas the path '/Cheetah/rat_project/custom_files/aec/', thenNote
- If
station_global_dataisTrue, 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_dataisFalse, 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
-
Optional parametercatchment_vector_file:Description : Absolute path of the catchment vector file where the geometry is represented by reservoirs' catchment polygons. It can be "global" (relative to basin) and will be automatically filtered for the basin. It can have unique id column and dam name column.
Default : It is blank by default and can be filled by the user.
Syntax : If
catchment_vector_filehas the path '/Cheetah/rat_project/custom_files/catchments.geojson/', then -
Optional parametercatchment_vector_file_columns_dict:Description : Dictionary of column names for
catchment_vector_file. The dictionary must have keys 'id_column' and 'dam_name_column' and their values should be the actual name of the corresponding columns respectively.Default :
{id_column : 'GRAND_ID', dam_name_column : 'DAM_NAME'}Syntax : If
orcatchment_vector_filehas column names 'GRAND_ID' and 'DAM_NAME', then
Clean Up
Note
To use this section, cleaning should be set to True in Global Section of the configuration file. This section is Optional if cleaning is False or not provided in Global section.
-
Optional parameterclean_processing:Description :
Trueif you want to delete intermediate pre-processed and post-processed data for a river basin except global raw data downloaded from servers after the RAT run. Otherwise,False.Default :
FalseSyntax : If you want to delete intermediate pre-processed and post-processed data for a river basin,
-
Optional parameterclean_metsim:Description :
Trueif you want to delete intermediate metsim inputs and outputs for a river basin after the RAT run. Otherwise,False.Default :
FalseSyntax : If you want to delete intermediate metsim inputs and outputs for a river basin,
-
Optional parameterclean_vic:Description :
Trueif you want to delete intermediate vic inputs and outputs, and any vic initial soil state file that is older than 20 days, for a river basin after the RAT run. Otherwise,False.Default :
FalseSyntax : 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,
-
Optional parameterclean_routing:Description :
Trueif you want to delete intermediate routing inputs and outputs, and any routing initial state file that is older than 20 days, for a river basin after the RAT run. Otherwise,False.Default :
FalseSyntax : 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,
-
Optional parameterclean_gee:Description :
Trueif 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 :
FalseSyntax : If you want to delete gee produced small chunk files of surface area time series for a river basin,
Note
If
clean_geeisTrue, 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. -
Optional parameterclean_altimetry:Description :
Trueif 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 :
FalseSyntax : If you want to delete raw altimetry data for a river basin,
Note
If
clean_altimetryisTrue, 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. -
Optional parameterclean_basin_parameter_files:Description :
Trueif you want to delete parameter files related to the basin. Otherwise,False.Default :
FalseSyntax : If you want to delete parameter files related to basin,
-
Optional parameterclean_basin_meteorological_data:Description :
Trueif you want to delete combined meteorological data of the basin which is required to hot-start RAT for next RAT run. Otherwise,False.Default :
FalseSyntax : If you want to delete combined meteorological data of the basin,
Note
It should be noted that combined meteorological data is the data that helps in running VIC (hydrological model) without any spin-up for next run. Without this data, RAT needs to run the hydrological model for extra 2-3 years. You should use
clean_basin_meteorological_dataif you want to recreate combined meteorological data file for a river basin in the next RAT run. -
Optional parameterclean_previous_outputs:Description :
Trueif 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 :
FalseSyntax : If you want to delete raw altimetry data that takes a lot of time to download for a river basin,
Note
If
clean_previous_outputsisTrue, the previous outputs are cleaned before executing any step insteps.Tip
You should use
clean_previous_outputsif 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. In case the new outputs and previous outputs have some coinciding dates, RAT will replace the previous outputs with the new outputs for these 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
-sor--secretsoption ofrat initcommand.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 initcommand.
Plugins
This section of the configuration file is optional and can be used to run different Plugins as mentioned here. It should be used to describe the parameters required by a plugin that you want to use.