This repository has been archived by the owner on May 19, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
control.cfg
executable file
·198 lines (160 loc) · 5.82 KB
/
control.cfg
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
#VIC Output to NetCDF Configuration File
# Generalized configuration file for VTN script
[OPTIONS]
# Wild card enabled path
input_files: GCMINDIRECTORY
# Input file format type
# valid values: ascii, binary
# Note: binary files require all "columns" to be included the the fields section below.
input_file_format: ascii
# If input_file_format == binary
# Also specify the following parameters
# bin_dt_sec: time step of input data (seconds)
# bin_start_date: 1988-01-01-00
# bin_end_date: 1988-01-01-00
# input grid type (if False, Read from domain section below)
# valid values: True, False
regular_grid: True
# Output directory
out_directory: GCMOUTDIRECTORY
# Memory Mode Options:
# standard: read entire vic file at once and immediately write each segment disk
# big_memory: read all vic file at once and store in array, write full arrays at the end
# original: read chunks of vic files (1 segment at a time) and store in array, write full segment array once all files have been read. This is the same mode that vic2nc.c uses.
memory_mode: big_memory
# Chunksize (Number of VIC files to read before writing to netcdf)
# only valid for standard memory mode
chunksize: 100
# Prefix for output files
out_file_prefix: GCMOUTPREFIX
# netCDF format
# Valid Values: NETCDF3_CLASSIC, NETCDF3_64BIT, NETCDF4_CLASSIC, and NETCDF4
out_file_format: NETCDF4
# Output File Precision
# This can be overwritten by the variable specific attribute: type
# Valid Values: single, double
precision: single
# Start date for first netcdf (will ignore data before) (Format: '%Y-%m-%d-%H')
# start_date: 1988-01-01-00
start_date: YEARBEGIN-01-01-00
# End data for last netcdf (Format: '%Y-%m-%d-%H')
end_date: YEAREND-12-31-00
# VIC Calendar
# Valid Values : standard, gregorian, proleptic_gregorian noleap, 365_day, 360_day, julian, all_leap, 366_day
calendar: standard
# Time interval to use when splitting into seperate files
# Valid Values: day, month, year, decade, all
time_segment: year
# VIC output file dimensions
# Valid Values: int (0, +N), False, None
snow_bands: False
veg_tiles: False
soil_layers: 3
# Grid File (domain file): uncomment if grid is irregular or you want to use a domain file
#[DOMAIN]
#filename: /Users/jhamman/Dropbox/RASM_Joe/routing_inputs/pour_points/domain.lnd.wr50a_ar9v4.100920.nc
#longitude_var: xc
#latitude_var: yc
#y_x_dims: nj, ni
## Non-coordinate variables to include in each netcdf
#copy_vars: frac, mask, area, xv, yv
# -------------------------------------------------------------------- #
[GLOBAL_ATTRIBUTES]
title: Climate change scenario simulation using MACA CNRM-CM5_rcp85 rcp 8.5
version: VIC.4.2.d
grid: Livneh et al. 2015
#history: Created: $TIME by $USER
#institution: Los Alamos National Lab
#source: Katrina E. Bennett Critical Watersheds Project
#references: Primary Historical Reference for VIC: Liang, X., D. P. Lettenmaier, E. F. Wood, and S. J. Burges, 1994: A Simple hydrologically Based Model of Land Surface Water and Energy Fluxes for GSMs, J. Geophys. Res., 99(D7), 14,415-14,428.
#comment: Output from the Variable Infiltration Capacity Macroscale Hydrologic Model
#Conventions: CF-1.6
# -------------------------------------------------------------------- #
# FIELDS
# Reguired attribute: column -> column in ascii vic file
# units --> variable units
# Type attribute: if a variable should not conform to the [OPTIONS]precision set above,
# a variable specific value can be added [$FIELD]type
# Valid datatype specifiers include: 'f4' (32-bit floating point), 'f8' (64-bit floating point), 'i4' (32-bit signed integer), 'i2' (16-bit signed integer), 'i8' (64-bit singed integer), 'i1' (8-bit signed integer), 'u1' (8-bit unsigned integer), 'u2' (16-bit unsigned integer), 'u4' (32-bit unsigned integer), 'u8' (64-bit unsigned integer), or 'S1' (single-character string). The unsigned integer types and the 64-bit integer type can only be used if the file format is NETCDF4.
# Binary input Files: if [OPTIONS]input_file_format == binary, each variable must have the following attributes
# bin_dtypes attribute: binary data type. Valid values: Any numpy datatype string (i.e. b, i, u, f, c, S, a, U, V). These strings may be prepended with '>' (big-endian), '<' (little-endian), or '=' (hardware-native, the default), to specify the byte order.
# bin_mult attribute: multiplier for compressed data. Default = 1.0
# If the attribute dim4 is present and multiple columns are specified, the variable will be stored as 4-dimensions
# Any other attribute may be added (except reserved attriubtes such as _FillValue)
[Precipitation]
column:3
units: mm
description: Precipitation
[Evaporation]
column:4
units: mm
description: Evaporation
[Runoff]
column:5
units: mm
description: Runoff
[Baseflow]
column:6
units: mm
description: Baseflow
[SWE]
column:7
units: mm
description: Snow water equivalent
[Soil_liquid]
column:8, 9, 10
units: mm
description: Fractional volumetric soil moisture
dim4: soil_layers
[Snow_depth]
column:11
units: cm
description: Depth of snow pack
[Snow_cover]
column:12
units: fraction
description: Fraction of gridcell covered with snow
[Tair]
column:13
units: C
description: Surface air temperature
[Relhumid]
column:14
units: percent
description: Relative humidity
[Pressure]
column:15
units: kPa
description: Near surface atmospheric pressure
[Wind]
column:16
units: m/s
description: Wind speed
[Swnet]
column: 17
units: w/m^2
description: Net shortwave radiation at the surface
[Lwnet]
column: 18
units: w/m^2
description: Net longwave radiation at the surface
[Latht]
column:19
units: w/m^2
description: Latent heat flux
[Senht]
column:20
units: w/m^2
description: Sensible heat flux
[Lai]
column:21
units: m2/m2
description: Leaf area index
[Vpd]
column:22
units: kPa
description: Near surface vapor pressure deficit
[Albedo]
column:23
units: fraction
description: Albedo of surface cover