Skip to content

Commit ea5e52d

Browse files
author
Joe Hamman
committed
Merge pull request #74 from UW-Hydro/feature/sample_datasets
add rasm and pnw sample configurations using git lfs
2 parents 8d103b0 + 2cb7922 commit ea5e52d

15 files changed

+188
-121
lines changed

.gitattributes

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
*.nc filter=lfs diff=lfs merge=lfs -text
2+
*.csv filter=lfs diff=lfs merge=lfs -text

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ rvic.egg-info
2121
# Configuration Files #
2222
#######################
2323
*cfg
24+
samples/cases/*
2425

2526
# Packages #
2627
############

config/rvic_convert_example.cfg

Lines changed: 0 additions & 95 deletions
This file was deleted.

config/rvic_convolution_example.cfg renamed to samples/configs/rvic.convolution.rasm.cfg

Lines changed: 12 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -19,13 +19,10 @@ VERBOSE:True
1919
#-- ====================================== --#
2020

2121
#--case run directory (char) --#
22-
CASE_DIR : /path/to/%(CASEID)s/
23-
24-
#--RVIC tag (char) --#
25-
RVIC_TAG : 1.0beta
22+
CASE_DIR : ./samples/cases/%(CASEID)s/
2623

2724
#--case description (char) --#
28-
CASEID : testing
25+
CASEID : sample_rasm_convolution
2926

3027
#--case description (char) --#
3128
CASESTR : a simple test run
@@ -39,7 +36,7 @@ CALENDAR : noleap
3936
RUN_TYPE : drystart
4037

4138
#--Run start date (yyyy-mm-dd-hh). Only used for startup and drystart runs (char) --#
42-
RUN_STARTDATE : 1989-01-01-01
39+
RUN_STARTDATE : 1979-09-01-00
4340

4441
#-- ====================================== --#
4542

@@ -106,7 +103,7 @@ RVICHIST_OUTTYPE: grid, array
106103
RVICHIST_NCFORM: NETCDF4_CLASSIC, NETCDF4_CLASSIC
107104

108105
#-- Output parameter file compression options --#
109-
# Descriptions of these options can be found in
106+
# Descriptions of these options can be found in
110107
RVICHIST_NETCDF_ZLIB: False
111108
RVICHIST_NETCDF_COMPLEVEL: 4
112109
RVICHIST_NETCDF_SIGFIGS: None
@@ -119,7 +116,7 @@ RVICHIST_UNITS: m3/s, m3/s
119116

120117
[DOMAIN]
121118
#--rof domain file (char) -->
122-
FILE_NAME: /path/to/domain.lnd.nc
119+
FILE_NAME: ./samples/domains/domain.lnd.wr50a_ar9v4.100920.nc
123120
LONGITUDE_VAR: xc
124121
LATITUDE_VAR: yc
125122
AREA_VAR: area
@@ -136,24 +133,24 @@ FILE_NAME: None
136133

137134
[PARAM_FILE]
138135
#--rvic parameter file file (char) -->
139-
FILE_NAME:/path/to/rvic.prm.nc
136+
FILE_NAME: ./samples/cases/sample_rasm_parameters/params/sample_rasm_parameters.rvic.prm.wr50a.20151024.nc
140137

141138
#-- ====================================== --#
142139
[INPUT_FORCINGS]
143-
DATL_PATH:/path/to/
140+
DATL_PATH: ./samples/forcings/
144141

145142
# prfix.$YYYY[-$MM-[$DD[-$HH]]].nc
146-
DATL_FILE: inputs.lnd.h.$YYYY-$MM.nc
143+
DATL_FILE: rasm_sample_runoff.nc
147144

148145
#--variable names (char) -->
149146
TIME_VAR: time
150-
LATITUDE_VAR: lat
151-
DATL_LIQ_FLDS: l2x_Flrl_rofliq
147+
LATITUDE_VAR: yc
148+
DATL_LIQ_FLDS: Runoff, Baseflow
152149

153150
#--start date, date formate YYYY[-MM[-DD]] (char) -->
154-
START:1989-01
151+
START:
155152

156153
#--end date, date formate YYYY[-MM[-DD]] (char) -->
157-
END:1989-12
154+
END:
158155

159156
#-- ====================================== --#
Lines changed: 133 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,133 @@
1+
#-- ========================================================================== --#
2+
#-- --#
3+
#-- This RVIC namelist contains options and paths for the --#
4+
#-- development of the RVIC parameter file. --#
5+
#-- --#
6+
#-- --#
7+
#-- ========================================================================== --#
8+
9+
# Note: namelist is parsed by the python ConfigParser module. %(Interploation) is
10+
# supported inside [sections] only.
11+
12+
[OPTIONS]
13+
#-- ====================================== --#
14+
#--Level to log output at (char) --#
15+
# valid values: DEBUG, INFO, WARNING, ERROR, CRITICAL
16+
LOG_LEVEL:DEBUG
17+
18+
#--Print output to console in addition to the log file (bool) --#
19+
# valid values: True, False
20+
VERBOSE:True
21+
22+
#--Delete temporary files, only used if REMAP=True (bool) --#
23+
# valid values: True, False
24+
CLEAN: False
25+
26+
#--case description (char) --#
27+
CASEID: sample_pnw_parameters
28+
29+
#--routing domain grid shortname (char) --#
30+
GRIDID: pnw
31+
32+
#--case run directory (char) --#
33+
CASE_DIR: ./samples/cases/%(CASEID)s
34+
35+
#--Directory to use for temporary read/write operations (char) --#
36+
TEMP_DIR:%(CASE_DIR)s/temp/
37+
38+
#--Remap Unit Hydrographs from [ROUTING] grid to [DOMAIN] grid (bool) --#
39+
# valid values: True, False
40+
REMAP:False
41+
42+
#--Aggregate all [POUR_POINTS] inside each [DOMAIN] grid cell (bool) --#
43+
# This should only be used when routing to coastal grid cells for CESM
44+
AGGREGATE:False
45+
46+
#--Size of pad to add to aggregated files prior to remapping (int) --#
47+
AGG_PAD:25
48+
49+
#-- Output parameter file format (char) --#
50+
# Valid Values: NETCDF3_CLASSIC, NETCDF3_64BIT, NETCDF4_CLASSIC, and NETCDF4
51+
# For use with CESM, NETCDF3_CLASSIC is recommended.
52+
NETCDF_FORMAT:NETCDF3_CLASSIC
53+
54+
#-- Output parameter file compression options --#
55+
# Descriptions of these options can be found in
56+
NETCDF_ZLIB: False
57+
NETCDF_COMPLEVEL: 4
58+
NETCDF_SIGFIGS: None
59+
60+
#-- Length of unit hydrograph subset in days (int) --#
61+
SUBSET_DAYS:10
62+
63+
#-- Constrain the final unit hydrographs sum to be less than or equal to the domain fractions --#
64+
# True when routing to coastal grid cells, else False
65+
CONSTRAIN_FRACTIONS: False
66+
67+
SEARCH_FOR_CHANNEL: True
68+
69+
#-- ====================================== --#
70+
71+
[POUR_POINTS]
72+
#-- ====================================== --#
73+
#-- Path to Pour Points File (char) --#
74+
# A comma separated file of outlets to route to [lons, lats] - one coordinate pair per line (order not important)
75+
# May optionally include a column [names] - which will (if not aggregating) be included in param file
76+
FILE_NAME: ./samples/pour_points/columbia_sample_pour_points.csv
77+
78+
#-- ====================================== --#
79+
80+
[UH_BOX]
81+
#-- ====================================== --#
82+
#-- Path to UH Box File (char) --#
83+
# This defines the unit hydrograph to rout flow to the edge of each grid cell.
84+
# A comma separated file of [time in seconds, unit hydrograph ordinate] - one timestep per line
85+
# The timestep should be 1hr (3600 sec) or less.
86+
FILE_NAME: ./samples/uh_box/UH_Columbia_hourly.csv
87+
88+
#-- Number of Header lines to ignore in [UH_BOX]FILE_NAME (INT) --#
89+
HEADER_LINES = 1
90+
#-- ====================================== --#
91+
92+
[ROUTING]
93+
#-- ====================================== --#
94+
#-- Path to routing inputs netcdf (char) --#
95+
FILE_NAME: ./samples/flow_directions/pnw.RVIC.input_20140218.nc
96+
97+
#-- netCDF Variable Names --#
98+
LONGITUDE_VAR: lon
99+
LATITUDE_VAR: lat
100+
FLOW_DISTANCE_VAR: Flow_Distance
101+
FLOW_DIRECTION_VAR: Flow_Direction
102+
BASIN_ID_VAR: Basin_ID
103+
SOURCE_AREA_VAR: Source_Area
104+
105+
#-- Velocity and diffusion --#
106+
# The velocity and diffusion parameters may either be specified as variables in
107+
# the routing netcdf (char) or as a single value (float or int)
108+
VELOCITY: 1
109+
DIFFUSION: 2000
110+
111+
#-- Output Interval --#
112+
# Timestep of output unit hydrographs. Must be a multiple of the timestep in the UH_BOX
113+
OUTPUT_INTERVAL:86400
114+
115+
#-- Maximum time for runoff to reach outlet (days) --#
116+
BASIN_FLOWDAYS:50
117+
118+
#-- Maximum time for runoff to pass through a grid cell (days) --#
119+
CELL_FLOWDAYS:2
120+
#-- ====================================== --#
121+
122+
[DOMAIN]
123+
#-- ====================================== --#
124+
#-- Path to cesm complient domain file (char) --#
125+
FILE_NAME: ./samples/domains/domain.lnd.bpa304.20140311.nc
126+
127+
#-- netCDF Variable Names --#
128+
LONGITUDE_VAR: lon
129+
LATITUDE_VAR: lat
130+
LAND_MASK_VAR: mask
131+
FRACTION_VAR: frac
132+
AREA_VAR: area
133+
#-- ====================================== --#

0 commit comments

Comments
 (0)