Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
102 commits
Select commit Hold shift + click to select a range
d6ba7b6
removed unused code
SanchitMinocha Aug 21, 2024
f698045
replace type with geom_type due to deprecation
SanchitMinocha Aug 21, 2024
132f701
Deletion of metsim input to save space
SanchitMinocha Aug 21, 2024
12fa855
Added landsat 5 script for TMS-OS
SanchitMinocha Sep 9, 2024
a55e6e8
Added landsat 7 script for tmsos.
SanchitMinocha Sep 9, 2024
0c8b715
Used landsat 5 and 7 script for TMS-OS in sarea fn
SanchitMinocha Sep 9, 2024
9b74736
added ssc component calculation in landsat7
SanchitMinocha Nov 4, 2024
49ba479
added ssc component calculation in landsat5
SanchitMinocha Nov 4, 2024
b52362d
added ssc component calculation in landsat8
SanchitMinocha Nov 4, 2024
f4977cf
added ssc component calculation in landsat9
SanchitMinocha Nov 4, 2024
df7218c
added ssc component calculation in sentinel 2
SanchitMinocha Nov 4, 2024
6385ad7
Added pixel by pixel ratios for SSC as well
SanchitMinocha Nov 4, 2024
8069e14
NSSC integration script from multiple sensors
SanchitMinocha Nov 11, 2024
797bf6b
Creating nssc alongside tmsos
SanchitMinocha Nov 11, 2024
a2ccb8a
Step 13 creating nssc files in rat outputs
SanchitMinocha Nov 11, 2024
16a0c10
Step 14 convert nssc to final outputs
SanchitMinocha Nov 11, 2024
91f55fc
Added code to create climate TS for catchment
SanchitMinocha Nov 30, 2024
c4ced3e
Addition of final output of climate TS for catchment
SanchitMinocha Nov 30, 2024
69a1855
Added necessary paths and sclimate TS in step14
SanchitMinocha Nov 30, 2024
0d73fc6
Error handling for cases where reservoir is small and clustering or z…
SanchitMinocha Dec 22, 2024
537a201
handled error handling for small reservoirs when clustering or zhao-g…
SanchitMinocha Dec 22, 2024
4be8653
Bug Fix: Stderr was missing & Exception was not correctly coded.
SanchitMinocha Dec 22, 2024
e2b0c9b
removed dupli
SanchitMinocha Dec 22, 2024
63ebadf
Handling of error "too many concurrent aggregations" for larger reser…
SanchitMinocha Dec 25, 2024
57496a2
Fixed bug: no gdf
SanchitMinocha Jan 1, 2025
42e4a7c
Bug Fix: correctly intialized some status flags to independently run …
SanchitMinocha Jan 10, 2025
32e6bc9
Added ability to run aec files with comments
SanchitMinocha Jan 10, 2025
60d85b6
Bug Fix: Corrected the calculation of cloud_percent for optical data …
SanchitMinocha Jan 10, 2025
7f7ffdb
Handled AEC creation for reservoirs built after DEM data retrieval
SanchitMinocha Jan 10, 2025
ff8cf46
Bug Fix: Corrected the save file path of catchment climate ts
SanchitMinocha Jan 10, 2025
770eb80
Bug Fix: added square brackets for np.nansum
SanchitMinocha Jan 10, 2025
6c4e51b
S2_SR asset has been deprecated. Using S2_SR_HARMONIZED instead
SanchitMinocha Jan 10, 2025
f0c89d6
Added the missing libraries in the dev environment
SanchitMinocha Jan 11, 2025
31c170c
Added error handling for failing to create meteorological time series
SanchitMinocha Jan 13, 2025
56de5cb
Corrected cloud percent by doing elementwise sum rather than column s…
SanchitMinocha Jan 13, 2025
33ada0e
Added mission end date for landsat 5 to finish processing early
SanchitMinocha Jan 13, 2025
a551c59
Evaporation can now be calculated even if vic results are deleted but…
SanchitMinocha Jan 13, 2025
768808e
Added routing workspace, landsat 5,7 & 9 scratch folders to cleaning …
SanchitMinocha Jan 13, 2025
0488fde
Bug Fix: corrected AEC extrapolation code to handle missing Dam Height
SanchitMinocha Jan 13, 2025
1cc6cf6
Added warning about the number of reservoirs for which creating meteo…
SanchitMinocha Jan 13, 2025
974a7a8
Added evaporation calculation from previous file if no vic results or…
SanchitMinocha Jan 13, 2025
2a643c2
Corrected warning for skipping inflow calculation if routing output i…
SanchitMinocha Jan 13, 2025
c92474e
Bug Fix: If Dam Height is NONE, print it in level2 log
SanchitMinocha Jan 13, 2025
9d4ab52
Bug Fix: Handled clipping of very small catchment ROI compared to res…
SanchitMinocha Jan 13, 2025
85ec9be
Removed temporary correction to fix an earlier bug
SanchitMinocha Jan 13, 2025
3b2052a
Meaning as mandatory step Z (Final step) and independent of step -14;…
SanchitMinocha Jan 15, 2025
73c8b68
Added options to clean up basin parameter files and combined NetCDF m…
SanchitMinocha Jan 15, 2025
bc74c54
Bug FIx: forcings path is not a single path
SanchitMinocha Jan 15, 2025
43226eb
made multiple_basins parameter optional
SanchitMinocha Jan 21, 2025
2d99224
corrected spelling of 'successfully'
SanchitMinocha Jan 24, 2025
5774777
AEC extrapolation even when dam height is not available
SanchitMinocha Jan 25, 2025
7066094
BUG Fix: Round Up function round down negative numbers
SanchitMinocha Jan 25, 2025
7d91e0f
improvement: Step 9 now always create basin_reservoir_shapefile with …
SanchitMinocha Jan 25, 2025
4d92c11
Error handling for dates when error is too many concurrent aggregatio…
SanchitMinocha Jan 30, 2025
d681853
Error handling for the error computation timed out & added check to p…
SanchitMinocha Jan 30, 2025
bfb596a
Bug Fix: Corrected error handling of NSSC calculation, separated from…
SanchitMinocha Jan 30, 2025
8b0f090
Bug Fix: corrected import of plugins module for forecasting & improve…
SanchitMinocha Jan 30, 2025
97cc801
Added level-2 log path in level-1 log file.
SanchitMinocha Jan 30, 2025
8fe1dc2
added log mode and log detail levels in log files
SanchitMinocha Jan 30, 2025
dac62f7
improved design of logs to standout the detail level and mode
SanchitMinocha Jan 30, 2025
8eec3e8
improved design of logs
SanchitMinocha Jan 30, 2025
3b0a089
added newline after each basin run in level-1 log
SanchitMinocha Jan 30, 2025
f683639
Made the function get_first_obs efficient
SanchitMinocha Feb 3, 2025
9ec430e
Added error handling if no _scratch files are formed.
SanchitMinocha Feb 3, 2025
3708876
Added error handling for computation timed out due to small spatial s…
SanchitMinocha Feb 3, 2025
1169fe8
adjusted the medium and large scale to further resolve error for larg…
SanchitMinocha Feb 3, 2025
e5bc116
Using success_status to further process in case of errors
SanchitMinocha Feb 3, 2025
6192973
Corrected labeling of warnings and error for changing scale in case o…
SanchitMinocha Feb 3, 2025
c9c5a4f
corrected area calculations for different spatial scales in s2
SanchitMinocha Feb 3, 2025
d07a087
Syntax error fix: ee.Number should multiply
SanchitMinocha Feb 3, 2025
9e14b7e
corrected formula of cloud area and cloud percent due to calculation …
SanchitMinocha Feb 3, 2025
964d35f
Revert "Syntax error fix: ee.Number should multiply"
SanchitMinocha Feb 3, 2025
3257068
Revert "corrected formula of cloud area and cloud percent due to calc…
SanchitMinocha Feb 3, 2025
140c18e
Revert "corrected area calculations for different spatial scales in s2"
SanchitMinocha Feb 3, 2025
3c8f852
Bug Fix: Sometimes band order was inconsistent leading to error in cr…
SanchitMinocha Feb 4, 2025
0bded09
added coide to simplify geometry of complex shapes for surface area e…
SanchitMinocha Feb 6, 2025
d3f8ac2
Import math was missing
SanchitMinocha Feb 6, 2025
0e740f3
Bug Fix: Vic Memory Allocation Error coz of NaNs in Active Cells in V…
SanchitMinocha Feb 13, 2025
197bedf
Bug Fix: Handling infinities before normalizing SSC
SanchitMinocha Feb 13, 2025
4c6604b
simplification of complex geometries for processing in AEC step as well
SanchitMinocha Feb 14, 2025
ce04767
Bug Fix: Only those reservoir geometries will be selected which are w…
SanchitMinocha Mar 1, 2025
eab5005
Bug Fix: Added MaxPixels for AEC estimation to avoid error
SanchitMinocha Mar 2, 2025
51b9760
Added usage of optical data only when Sar based correction fails.
SanchitMinocha Mar 15, 2025
3deb2d2
Bug Fix: Reading of large meteorlogical combined NetCDF files used to…
SanchitMinocha Apr 10, 2025
306d2c8
Bug Fix: If error was other than computation time out, it used to stu…
SanchitMinocha Apr 10, 2025
5a4723f
Bug Fix: If reservoir is large and contains a lot of grid points, eva…
SanchitMinocha Apr 10, 2025
1527bc2
Asc file will be vreated directly from tif file if present in step 7 …
SanchitMinocha Jul 5, 2025
85ef4ef
removed unnecessary parameters & changed aec path to the ones in rat …
SanchitMinocha Jul 5, 2025
2f21aba
Step 13 will noe throw Exception if reservoir shapefile is not present.
SanchitMinocha Jul 5, 2025
e02701f
removed unnecessary parameters and its related code: not required
SanchitMinocha Jul 5, 2025
8d7a445
Bug Fix: Handled cases when evaporation is calculated for same time p…
SanchitMinocha Aug 17, 2025
1cbc74d
Bug Fix: Handled case when id column is not given for reservoir shape…
SanchitMinocha Aug 17, 2025
6bf8a3c
Bug Fix: Handled case when dam height column is not provided in reser…
SanchitMinocha Aug 17, 2025
d9ac118
Bug Fix: Code corrected to skip AEC Extrapolation in case dam locatio…
SanchitMinocha Aug 17, 2025
672f9f1
Added NSSC as a different test.
SanchitMinocha Aug 17, 2025
f0f1eae
Bug Fix: Catchment Climate should throw warning if no catchment file …
SanchitMinocha Aug 17, 2025
1698519
Updated google drive link & test data expected outputs for new Sarea …
SanchitMinocha Aug 17, 2025
d90fbcd
updated test output in docs tutorial
SanchitMinocha Aug 17, 2025
00f3b91
Updated configuration file for new cleaning parameters and catchment …
SanchitMinocha Aug 17, 2025
24e3179
Updated configuration parameters for catchment climate functionality …
SanchitMinocha Aug 17, 2025
7d2feb8
Added plugins section in configuration docs
SanchitMinocha Aug 17, 2025
6812a9a
Updated test data & params link for gdrive and dropbox
SanchitMinocha Aug 17, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions docs/Configuration/basins_metadata.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@ To implement this feature RAT uses `basins_metadata` which is a csv file that is

![Screenshot of Basins_Metadata.csv](../images/configure/basins_metadata_sample.jpg)

It should definitely have the index `basin_name` for section `BASIN` as it needs to be different for all basins and same is true for `basin_id`. Rest all those parameters which do not vary between basins can be provided in the configuration file and those which will vary must be provided in the `basins_metadata` csv file.
It should definitely have the index `basin_name` for section `BASIN` as it needs to be different for all basins and same is true for `basin_id`. Rest all those parameters which do not vary between basins can be provided in the configuration file and those which will vary must be provided in the `basins_metadata` csv file. A special index `run`for section `BASIN` must be used in `basins_metadata` and it's value should be set to 1 to indicate which river basins should RAT run, otherwise 0.

!!! tip_note "Tip"
1. To make use of `basins_metadata`, `multiple_basin_run` in `GLOBAL` section should be `true`.
2. The values of `basin_name` from `basins_metadata` should be provided in the list `basins_to_process` for all the river basins for which you want to run RAT for.
2. The values of `run` in `BASIN` must be provided as either 1 or 0 for each basin in the `basins_metadata` where 1 is for all the river basins for which you want to run RAT for.
3. A sample copy of `basins_metadata` is provided in 'params' folder inside `project_dir` with the name of 'basins_metadata_sample.csv'.
130 changes: 100 additions & 30 deletions docs/Configuration/rat_config.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,22 @@ RAT config file has 12 major sections that defines several parameters which are
-1
-2
```


* <h6 class="parameter_heading">*`cleaning`* :</h6>
<span class="requirement">Optional parameter</span>

<span class="parameter_property">Description </span>: Boolean flag indicating whether to do cleaning during RAT run. If True, it cleans the data specified by the [`CLEAN UP`](#clean-up) section in the configuration file.

<span class="parameter_property">Default </span>: False

<span class="parameter_property">Syntax </span>: If you want to delete data produced by RAT and want to use `CLEAN UP` section, then
```
GLOBAL:
cleaning: True
```
!!! note
If you want to use [`CLEAN UP` section](#clean-up), `cleaning` must be True.

* <h6 class="parameter_heading">*`project_dir`* :</h6>
<span class="requirement">Required parameter</span>

Expand Down Expand Up @@ -143,19 +158,6 @@ RAT config file has 12 major sections that defines several parameters which are
basins_metadata: /Cheetah/rat_project/params/basins_metadata_sample.csv
```

* <h6 class="parameter_heading">*`basins_to_process`* :</h6>
<span class="requirement">Required parameter</span>

<span class="parameter_property">Description </span>: List of basins to run RAT for within the `basins_metadata`. The list values must match with the values of `basin_name` in `BASIN` section in `basins_metadata`. For more information, please look [multiple basin run](../basins_metadata).

<span class="parameter_property">Default </span>: It is blank by default and can be filled by the user.

<span class="parameter_property">Syntax </span>: If you want to run RAT for basins Sabine and Nueces, then
```
GLOBAL:
basins_to_process: ['Sabine','Nueces']
```

### Basin

* <h6 class="parameter_heading">*`region_name`* :</h6>
Expand Down Expand Up @@ -712,38 +714,74 @@ This section of the configuration file describes the parameters defined by `rout
2. If `station_global_data` is `False`, 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'.
3. 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.

* <h6 class="parameter_heading">*`catchment_vector_file`* :</h6>
<span class="requirement">Optional parameter</span>

<span class="parameter_property">Description </span>: 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.

<span class="parameter_property">Default </span>: It is blank by default and can be filled by the user.

<span class="parameter_property">Syntax </span>: If `catchment_vector_file` has the path *'/Cheetah/rat_project/custom_files/catchments.geojson/'*, then
```
POST_PROCESSING:
catchment_vector_file : /Cheetah/rat_project/custom_files/catchments.geojson
```

* <h6 class="parameter_heading">*`catchment_vector_file_columns_dict`* :</h6>
<span class="requirement">Optional parameter</span>

<span class="parameter_property">Description </span>: 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.

<span class="parameter_property">Default </span>: `{id_column : 'GRAND_ID', dam_name_column : 'DAM_NAME'}`

<span class="parameter_property">Syntax </span>: If `catchment_vector_file` has column names 'GRAND_ID' and 'DAM_NAME', then
```
POST_PROCESSIN:
catchment_vector_file_columns_dict: {id_column : 'GRAND_ID', dam_name_column : 'DAM_NAME'}
```
or
```
POST_PROCESSIN:
catchment_vector_file_columns_dict:
id_column: GRAND_ID
dam_name_column: DAM_NAME
```

### Clean Up

* <h6 class="parameter_heading">*`clean_preprocessing`* :</h6>
<span class="requirement">Required parameter</span>
!!!note
To use this section, `cleaning` should be set to True in [Global Section](#global) of the configuration file. This section is Optional if `cleaning` is `False` or not provided in Global section.

* <h6 class="parameter_heading">*`clean_processing`* :</h6>
<span class="requirement">Optional parameter</span>

<span class="parameter_property">Description </span>: `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`.
<span class="parameter_property">Description </span>: `True` if 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`.

<span class="parameter_property">Default </span>: `False`

<span class="parameter_property">Syntax </span>: If you want to delete intermediate pre-processed data for a river basin,
<span class="parameter_property">Syntax </span>: If you want to delete intermediate pre-processed and post-processed data for a river basin,
```
CLEAN_UP:
clean_preprocessing: True
clean_processing: True
```

* <h6 class="parameter_heading">*`clean_metsim`* :</h6>
<span class="requirement">Required parameter</span>
<span class="requirement">Optional parameter</span>

<span class="parameter_property">Description </span>: `True` if you want to delete intermediate metsim outputs for a river basin after the RAT run. Otherwise, `False`.
<span class="parameter_property">Description </span>: `True` if you want to delete intermediate metsim inputs and outputs for a river basin after the RAT run. Otherwise, `False`.

<span class="parameter_property">Default </span>: `False`

<span class="parameter_property">Syntax </span>: If you want to delete intermediate metsim outputs for a river basin,
<span class="parameter_property">Syntax </span>: If you want to delete intermediate metsim inputs and outputs for a river basin,
```
CLEAN_UP:
clean_metsim: True
```

* <h6 class="parameter_heading">*`clean_vic`* :</h6>
<span class="requirement">Required parameter</span>
<span class="requirement">Optional parameter</span>

<span class="parameter_property">Description </span>: `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`.
<span class="parameter_property">Description </span>: `True` if 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`.

<span class="parameter_property">Default </span>: `False`

Expand All @@ -754,9 +792,9 @@ This section of the configuration file describes the parameters defined by `rout
```

* <h6 class="parameter_heading">*`clean_routing`* :</h6>
<span class="requirement">Required parameter</span>
<span class="requirement">Optional parameter</span>

<span class="parameter_property">Description </span>: `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`.
<span class="parameter_property">Description </span>: `True` if 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`.

<span class="parameter_property">Default </span>: `False`

Expand All @@ -767,7 +805,7 @@ This section of the configuration file describes the parameters defined by `rout
```

* <h6 class="parameter_heading">*`clean_gee`* :</h6>
<span class="requirement">Required parameter</span>
<span class="requirement">Optional parameter</span>

<span class="parameter_property">Description </span>: `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`.

Expand All @@ -782,7 +820,7 @@ This section of the configuration file describes the parameters defined by `rout
If `clean_gee` is `True`, it will not delete the final gee outputs that will be appended with new data in next RAT run. To delete that, use `clean_previous_outputs`.

* <h6 class="parameter_heading">*`clean_altimetry`* :</h6>
<span class="requirement">Required parameter</span>
<span class="requirement">Optional parameter</span>

<span class="parameter_property">Description </span>: `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`.

Expand All @@ -796,8 +834,36 @@ This section of the configuration file describes the parameters defined by `rout
!!!note
If `clean_altimetry` is `True`, it will not delete the extracted altimetry data that will be appended with new data in next RAT run. To delete that, use `clean_previous_outputs`.

* <h6 class="parameter_heading">*`clean_basin_parameter_files`* :</h6>
<span class="requirement">Optional parameter</span>

<span class="parameter_property">Description </span>: `True` if you want to delete parameter files related to the basin. Otherwise, `False`.

<span class="parameter_property">Default </span>: `False`

<span class="parameter_property">Syntax </span>: If you want to delete parameter files related to basin,
```
CLEAN_UP:
clean_basin_parameter_files: True
```

* <h6 class="parameter_heading">*`clean_basin_meteorological_data`* :</h6>
<span class="requirement">Optional parameter</span>

<span class="parameter_property">Description </span>: `True` if you want to delete combined meteorological data of the basin which is required to hot-start RAT for next RAT run. Otherwise, `False`.

<span class="parameter_property">Default </span>: `False`

<span class="parameter_property">Syntax </span>: If you want to delete combined meteorological data of the basin,
```
CLEAN_UP:
clean_basin_meteorological_data: True
```
!!! 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_data` if you want to recreate combined meteorological data file for a river basin in the next RAT run.

* <h6 class="parameter_heading">*`clean_previous_outputs`* :</h6>
<span class="requirement">Required parameter</span>
<span class="requirement">Optional parameter</span>

<span class="parameter_property">Description </span>: `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`.

Expand Down Expand Up @@ -828,4 +894,8 @@ This section of the configuration file describes the parameters defined by `rout
secrets: /Cheetah/rat_project/secrets/secrets.ini
```
!!! note
It will be left blank if '-s' argument is not provided in `rat init` command.
It will be left blank if '-s' argument is not provided in `rat init` command.

### Plugins

This section of the configuration file is optional and can be used to run different Plugins as mentioned [here](../../Plugins/). It should be used to describe the parameters required by a plugin that you want to use.
Binary file modified docs/images/tutorials/KarnatakaFloods/test_output.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
6 changes: 6 additions & 0 deletions environment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,14 @@ dependencies:
- ruamel_yaml
- yaml
- gdown
- plotly
- cfgrib
- conda-build
- gfortran
- make
- gdal
- libnetcdf
- libgdal-netcdf
- pip
- pip:
- geonetworkx
5 changes: 3 additions & 2 deletions src/rat/cli/rat_init_config.py
Original file line number Diff line number Diff line change
@@ -1,13 +1,14 @@
DOWNLOAD_LINKS_DROPBOX = {
'route_model': "https://www.dropbox.com/scl/fi/1kjivr13kyf6gn7wlhbzt/routing.zip?rlkey=zq8j501amqyirfprcgb9dquec&dl=1",
'params': "https://www.dropbox.com/scl/fi/9qk9bwrbawryx79o7cclg/params.zip?rlkey=j5dqxipkvwuo3nso4dl1cxaux&dl=1",
'params': "https://www.dropbox.com/scl/fi/zvluibsnhz36k4smzcavv/params.zip?rlkey=uqbxdi4ulr9dv4u4imktf605m&st=r0qrt2gd&dl=1",
'global_data': "https://www.dropbox.com/scl/fi/dhy3y3e9dw6tg89vt6x66/global_data.zip?rlkey=uvy6772cj5bpdfvtvqa4u8enj&st=4sti44e7&dl=1",
'global_vic_params': "https://www.dropbox.com/s/jsg2wu62qi2ltwz/global_vic_params.zip?dl=1",
}

## For google drive link, https://drive.google.com/file/d/<ID>/view?usp=sharing, use https://drive.google.com/uc?id=<ID>
DOWNLOAD_LINKS_GOOGLE = {
'route_model': "https://drive.google.com/uc?id=1zr3VH0wy-XN-yF2_n0xic89_PiT_V_Mb",
'params': "https://drive.google.com/uc?id=1LAGivWvgBdtJvDWzkGKorzfjPEKvO69k",
'params': "https://drive.google.com/uc?id=1o5TH8GBmP4rjvFFROQmbid-ILMJw7xiS",
'global_data': "https://drive.google.com/uc?id=1Obm_cKPFoumJKhcNTvFxIZNkSU3OmgT_",
'global_vic_params': "https://drive.google.com/uc?id=16P95eu2yG0i77ac_NrmTSVutNtVXWNeA",
}
Expand Down
6 changes: 4 additions & 2 deletions src/rat/cli/rat_test_config.py
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
from datetime import date

DOWNLOAD_LINK_DROPBOX = {
'test_data': "https://www.dropbox.com/scl/fi/f1pnyz9mo178kweh3agtf/test_data.zip?dl=1&rlkey=qxvsfrhc2li55dh4yj4a03bq2"
'test_data': "https://www.dropbox.com/scl/fi/q88v9qpg20rhzhj8v4ktq/test_data.zip?rlkey=j6y1mlhc8vgzaicdofj4hn8g4&st=l7bcqmx1&dl=1"
}

## For google drive link, https://drive.google.com/file/d/<ID>/view?usp=sharing, use https://drive.google.com/uc?id=<ID>
DOWNLOAD_LINK_GOOGLE = {
'test_data': "https://drive.google.com/uc?id=1F5Z6f4rX7nBSXXo7XYGK_XC0i5-G6zBF"
'test_data': "https://drive.google.com/uc?id=1yV2zfqovPjAyWI4yWL5lhN7_GWaXL2Va"
}

PATHS = {
Expand Down
3 changes: 3 additions & 0 deletions src/rat/cli/rat_test_verify.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,9 @@ def verify_test_results(self):

print("############################## Test-6 (Surface Area) ##############################",end="\n")
self._verify_test_results_for_var('sarea_tmsos','Surface Area')

print("############################## Test-7 (NSSC) ##############################",end="\n")
self._verify_test_results_for_var('nssc','Normalized Suspended Sediment Concentration')

# Comparing true and estimated files for a variable
def _verify_test_results_for_var(self, var_to_observe, var_to_display):
Expand Down
Loading