Configuration file
- Required:
- Always
- Name:
- User-specified
- Read by:
InitConstants()
InitTerrainMaps()
InitMetSources()
InitTables()
InitDump()- Format:
- ASCII
- Purpose:
- Contains model settings, input file names and paths, vegetation and soil attributes, and information on what to output when.
- Comments:
- This filename is provided as a command-line argument to DHSVM. The
file is organized in sections, which contain key-entry pairs. The file
is free format, which means that correct reading of the file is not
dependent on spaces and/or the order of the key-entry pairs within a
section. The keys are not case sensitive. The entries are case sensitive.
Comments are preceded by a '#', and run from the occurrence of '#' until the end of the line. Consequently, you can comment out an entire line or place a comment after an entry. It is important to place the key-entry pair in the correct section, because it will not be found if it is in another section. Since DHSVM will only use the keys that it requires you can leave empty entries for keys that are not needed. For example, if you are running the model in point mode, you do not have to fill out the routing section. If you have already filled it out you can leave it, DHSVM will not use the information. This allows easy switching between point and basin mode.
Model sections are identified by keywords contained in square brackets. Key-entry pairs are identified by the key name followed by an equal sign. If a required key is missing, an error message will be printed to
stderrspecifying the missing key.The easiest way to set up the initial configuration file is to download the configuration file template and fill out the required fields.
- Details:
- The following sections are included in the input file:
- Options:
- The individual options are discussed in more detail on the Model
Options page. This is simply a complete listing of all possible
keys in this section with a very brief description:
Formatformat of the map input files, either BIN,NETCDF, orBYTESWAP<required> Extentspatial extent of the model run, either POINTorBASIN<required> Gradienthow the subsurface flow gradient is calculated, either TOPOGRAPHYorWATERTABLE<required> Flow routingeither NETWORKorUNIT_HYDROGRAPH<required> Sensible heat fluxcalculate sensible heat flux, either TRUEorFALSE<required> Interpolationmethod of meteorological interpolation, either INVDIST,NEAREST, orVARCRESS<required> MM5whether to use MM5 output as input, either TRUEorFALSE<required> QPFuse QPF with MM5, either TRUEorFALSE<required> PRISMwhether PRISM maps should be used to interpolate precipitation, either TRUEorFALSE<required> PRISM data pathpath for PRISM files (see next entry for details) (string) PRISM = TRUE PRISM data extensionfile extension for PRISM files The complete name for the prism files is of the form: " <PRISM data path>.xx.<PRISM data extension>", wherexxis a 2-digit integer inidicating the month (use a leading zero for number smaller than 10). (string)PRISM = TRUE Canopy radiation attenuation modemethod for calculating radiation attenuation through the canopy, either FIXEDorVARIABLE<required> Shadingwhether shading maps should be used, either TRUEorFALSE<required> Shading data pathpath for shading files (see next entry for details) (string) Shading = TRUE Shading data extensionextension for shading files. The complete name for the shading files is of the form: " <shading data path>.xx.<shading data extension>", wherexxis a 2-digit integer inidicating the month (use a leading zero for number smaller than 10). (string)Shading = TRUE Skyview data pathpath for skyview file (string) Shading = TRUE Snotelwhether snotel test is called for, either TRUEorFALSE<required> Outsidewhether stations outside the bounding box are used, either TRUEorFALSE<required> Rhoverrideset RH to 100% during precipitation events, either TRUEorFALSE<required> Precipitation sourceeither RADARorSTATIONMM5 = FALSE Wind sourceeither MODELorSTATIONMM5 = FALSE Temperature lapse rateeither CONSTANTorVARIABLEMM5 = FALSE Precipitation lapse rateeither CONSTANT,MAP, orVARIABLEMM5 = FALSE Cressman radiusCressman radius in model pixels (integer) interpolation = VARCRESS Cressman StationsNumber of stations to include in Cressman interpolation (integer) interpolation = VARCRESS
- Area:
- All possible keys in the area section are:
Coordinate systemname of coordinate system (string) <required> Extreme northnorthern edge of bounding box (double) <required> Extreme Westwestern edge of bounding box (double) <required> Center latitudelatitude of center of the bounding box (North positive) (float) <required> Center longitudelongitude of center of the bounding box (East positive) (float) <required> Time zone meridianstandard meridian for the time zone (float) <required> Number of rowsnumber of rows in the map input files (integer) <required> Number of columnsnumber of columns in the map input files (integer) <required> Grid spacinggrid resolution in meters (float) <required> Point northnorth coordinate for point (double) extent = POINT Point easteast coordinate for point (double) extent = POINT
- Time:
- All possible keys in the time section are:
Time stepmodel timestep in hours (float) <required> Model startstart date of the model run (MM/DD/YYYY-HH) <required> Model endend date of the model run (MM/DD/YYYY-HH) <required>
- Constants:
- All possible keys in the constants section are:
Ground roughnessaerodynamic roughness of bare ground in meters (float) <required> Snow roughnessaerodynamic roughness of the snow surface in meters (float) <required> Rain thresholdtemperature in °C above which all precipitation falls as rain (float) <required> Snow thresholdtemperature in °C below which all precipitation falls as snow (float) <required> Snow water capacityliquid water holding capacity of snow (0-1) (float) <required> Reference heightreference height for meteorological observations in meters (float). For model stability, it should be at least 10m higher than the highest canopy height. For STATION met data, which are usually at low elevation (2 or 10 m), the input wind data should be rescaled to this height. <required> Rain LAI multipliermultiplier for LAI to determine interception capacity for rain (float) <required> Snow LAI multipliermultiplier for LAI to determine interception capacity for snow (float) <required> Min intercepted snowlower threshold for storage of intercepted snow (float) <required> Outside basin valueoutside basin value in mask file (unsigned char) <required> Temperature lapse ratetemperature lapse rate in °C/m (float) Temperature lapse rate = CONSTANT Precipitation lapse ratePrecipitation lapse rate in m/m (float) (string) Precipitation lapse rate = CONSTANT
- Terrain:
- All possible keys in the terrain section are:
DEM filepath for DEM file (string) <required> Basin mask filepath for basin mask file (string) <required>
- Routing:
- All possible keys in the routing section are listed below. Either
a stream network must be specified, or a travel time file and unit hydrograph
file must be provided. If you decided to use a road network as well,
it is assumed that you are using a stream network as well.
Stream network filepath for stream network file (string) Stream map filepath for stream map file (string) Stream class filepath for stream class file (string) Road network filepath for road network file (string) Road map filepath for road map file (string) Road class filepath for road class file (string) Travel time filepath for travel time file (string) Unit hydrograph filepath for unit hydrograph file (string)
- Meteorology:
- All possible keys in the meteorology section are:
Number of stationsnumber of met stations (integer) MM5 = FALSE Station name iname of station i (i between 1 and number of stations) (string) MM5 = FALSE North coordinate inorthern coordinate of station i (i between 1 and number of stations) (float) MM5 = FALSE East coordinate ieastern coordinate of station i (i between 1 and number of stations) (float) MM5 = FALSE Elevation ielevation of station i in m (i between 1 and number of stations) (float) MM5 = FALSE Station file ipath for station file i (i between 1 and number of stations) (string) MM5 = FALSE MM5 Startstart date of the MM5 files (MM/DD/YYYY-HH) MM5 = TRUE MM5 Temperature filepath for MM5 temperature file (string) MM5 = TRUE MM5 Humidity filepath for MM5 humidity file (string) MM5 = TRUE MM5 Wind speed filepath for MM5 wind speed file (string) MM5 = TRUE MM5 Shortwave filepath for MM5 shortwave file (string) MM5 = TRUE MM5 Longwave filepath for MM5 longwave file (string) MM5 = TRUE MM5 Precipitation filepath for MM5 precipitation file (string) MM5 = TRUE MM5 Terrain filepath for MM5 terrain file (string) MM5 = TRUE MM5 Temp lapse filepath for MM5 temperature lapse file (string) MM5 = TRUE MM5 Soil temperature file ipath for MM5 soil temperature files, where i varies from 0 to the number of soil layers–1(string) MM5 = TRUE MM5 Rowsnumber of rows in MM5 files (integer) MM5 = TRUE MM5 Colsnumber of columns in MM5 files (integer) MM5 = TRUE MM5 Extreme northnorthern edge of MM5 bounding box (double) MM5 = TRUE MM5 Extreme westwestern edge of MM5 bounding box (double) MM5 = TRUE MM5 DYMM5 grid resolution (float) MM5 = TRUE Radar Startstart date of the radar file (MM/DD/YYYY-HH) Precipitation source = RADAR Radar filepath for radar file (string) Precipitation source = RADAR Radar extreme northnorthern edge of radar bounding box (double) Precipitation source = RADAR Radar extreme westwestern edge of radar file (double) Precipitation source = RADAR Radar number of rowsnumber of rows in radar file (integer) Precipitation source = RADAR Radar number of columnsnumber of columns in radar file (integer) Precipitation source = RADAR Radar grid spacingradar file grid resolution (float) Precipitation source = RADAR Number of wind mapsnumber of wind maps (integer) Wind source = MODEL Wind file basenamebase name of the wind files (string) Wind source = MODEL Wind map met stationnumber of the met station that is associated with the wind maps (int) Wind source = MODEL Precipitation lapse ratepath for precipitation lapse rate file (string) Precipitation lapse rate = MAP
- Soils:
- All possible keys in the soils section are listed below. The keys
that are of the form
keyname i, are specified for each of the soil types, where i varies from 1 to the number of soil types. The keys following theNumber of soil layers irequire multiple entries (equal to the number of soil layers). These multiple entries are all specified on the same line, with the entry for the top soil layer first and for the bottom soil layer last.Soil map filepath for soil map file (string) <required> Soil depth filepath for soil depth file (string) <required> Number of soil typesnumber of soil types (integer) <required> Soil description idescription of soil type i(string) <required> Lateral conductivity ilateral saturated hydraulic conductivity for soil type i in m/s (float) <required> Exponential decrease iexponent for change of lateral conductivity with depth for soil type i (float) <required> Maximum infiltration imaximum infiltration rate for soil type i in m/s (float) <required> Surface albedo isurface albedo of soil type i in m/s (float) <required> Number of soil layers inumber of soil layers for soil type i (integer) <required> Porosity iporosity of soil type i (0-1) (number of soil layer floats) <required> Pore size distribution ipore size distribution index for soil type i (number of soil layer floats) <required> Bubbling pressure ibubbling pressure for soil type i (integer) <required> Field capacity ifield capacity for soil type i (0 - porosity) (number of soil layer floats) <required> Wilting point iwilting point for soil type i (0 - porosity) (number of soil layer floats) <required> Bulk density ibulk density of soil type i in kg/m3 (number of soil layer floats) <required> Vertical conductivity ivertical conductivity of soil type i in m/s (number of soil layer floats) <required> Thermal conductivity ithermal conductivity of dry soil type i in W/m°C (number of soil layer floats) <required> Thermal capacity ithermal capacity of soil type i in J/m3°C (number of soil layer floats) <required>
- Vegetation:
- All possible keys in the vegetation section are listed below. The
keys that are of the form
keyname i, are specified for each of the vegetation types, where i varies from 1 to the number of vegetation types. The number of vegetation layers is two if both an overstory and understory are present, one if either one is present, and zero if there is no vegetation. If parameters are required for each vegetation layer, the first value is for the overstory, the second for the understoryVegetation map filepath for vegetation map file (string) <required> Number of vegetation typesnumber of vegetation types (integer) <required> Vegetation description idescription of vegetation type i. Note that the keyword GLACIERis treated as a special type (string)<required> Overstory present iwhether an overstory is present, either TRUEorFALSE<required> Understory present iwhether an understory is present, either TRUEorFALSE<required> Fractional coverage ifractional coverage of overstory (0-1) for vegetation type i (float) Overstory present = TRUE Trunk space idistance from the ground surface to the start of the crown (0-1, fraction of total height) for vegetation type i (float) overstory = TRUE Aerodynamic attenuation iCanopy attenuation coefficient for wind profile for vegetation type i (float) overstory = TRUE Radiation attenuation iradiation attenuation by the overstory of vegetation type i (float) overstory = TRUE and Canopy radiation attenuation mode = FIXED Hemi fract coverage ifraction of the hemisphere that is visible for each layer in vegetation type i (0-1) (number of vegetation layers floats) overstory = TRUE and Canopy radiation attenuation mode = VARIABLE Clumping factor iclumping factor of overstory of vegetation type i (float) overstory = TRUE and Canopy radiation attenuation mode = VARIABLE Leaf angle a ileaf angle distribution parameter for overstory of vegetation type i (float) overstory = TRUE and Canopy radiation attenuation mode = VARIABLE Leaf angle b ileaf angle distribution parameter for overstory of vegetation type i (float) overstory = TRUE and Canopy radiation attenuation mode = VARIABLE Scattering parameter iscattering parameter (0.7-0.85) for overstory of vegetation type i (float) overstory = TRUE and Canopy radiation attenuation mode = VARIABLE Max snow int capacity imaximum snow interception capacity for the overstory of vegetation type i (float) overstory = TRUE Max release drip ratio iratio of mass release to meltwater drip from intercepted snow for vegetation type i (float) overstory = TRUE Snow interception eff iefficiency of snow interception process for vegetation type i (float) overstory = TRUE Impervious fraction iImpervious fraction for vegetation type i (make sure you understand what this means before you use it) (0-1) (float) <required> Height iheight of each vegetation layer for vegetation type i (number of vegetation layers floats) <required> Maximum resistance imaximum stomatal resistance in s/m for each vegetation layer for vegetation type i (number of vegetation layers floats) <required> Minimum resistance iminimum stomatal resistance in s/m for each vegetation lauer for vegetation type i (number of vegetation layers floats) <required> Moisture threshold isoil moisture threshold (0-1) above which soil moisture does not restrict transpiration for each vegetation layer for vegetation type i (number of vegetation layers floats) <required> Vapor pressure deficit ivapor pressure deficit threshold in Pa above which stomatal closure occurs for each vegetation layer for vegetation type i (number of vegetation layers floats) <required> rpc ifraction of shortwave radiation that is photosynthetically active for each layer for each vegetation type i (number of vegetation layers floats) <required> Number of root zones iNumber of rooting zones (integer) <required> Root zone depths iThese are in effect the depths of the various soil layers (in m) (number of soil layers floats) <required> Overstory root fraction ifraction of the roots of the overstory in each root zone layer for vegetation type i (number of soil layers floats) Overstory present = TRUE Understory root fraction ifraction of the roots of the understory in each root zone layer for vegetation type i (number of soil layers floats) Understory present = TRUE Overstory monthly LAI ioverstory leaf area index (one-sided) for vegetation type i for each month (Jan - Dec) (12 floats) Overstory present = TRUE Understory monthly LAI iunderstory leaf area index (one-sided) for vegetation type i for each month (Jan - Dec) (12 floats) Understory present = TRUE Overstory monthly alb ioverstory albedo for vegetation type i for each month (Jan - Dec) (12 floats) Overstory present = TRUE Understory monthly alb iunderstory albedo for vegetation type i for each month (Jan - Dec) (12 floats) Understory present = TRUE
- Output:
- All possible keys in the output section are listed below. There are
a number of different types of output that the model can produce. See
the Model Output page for a detailed listing
of the format and content of each output file. In short, the following
possibilities are available:
- Pixel output
- Most state variables and fluxes are output or each timestep for a particular location.
- Model states
- The model states than can be saved are not meant for analysis. They store the complete state of the system, allowing a restart of the model withut having to run a long startup period.
- Maps
- Maps are complete fields of a particular variable (state or flux) at a particular time. These can be output periodically, but take up a lot of space for any sizeable application
- Images
- Images are reduced precision versions of the maps. These are convenient if you want to look at changes over time, but do not want to deal with the large data volume of the maps.
- Graphics
- If the source code is compiled with the
-DHAVE_X11option, you have the option to display some of the fields in real-time (while the model is running). This is very useful when you want to fgure out what is going on.
Output directorypath for output files (string) <required> Initial state directorydirectory where the initial state files are stored (string) <required> Number of output pixelsnumber of pixels for which output should be produced (integer) North coordinate inorth coordinate for output pixel i (double) Number of output pixels > 0 East coordinate ieast coordinate for output pixel i (double) Number of output pixels > 0 Name ifilename for output of pixel i; this is appended to the Output directory(string)Number of output pixels > 0 Number of model statesnumber of model states that should be saved (integer) State date idate for storing model state i (MM/DD/YYYY-HH) Number of model states > 0 Number of map variablesnumber of variables for which output should be produced (integer) Map variable ivariable ID for map i (see Model Output for IDs) (integer) Number of map variables > 0 Map layer ifor multi-layer variables, indicate the layer to be output (1 is the top layer) (integer) Number of map variables > 0 Number of maps inumber of maps that should be produced for map variable i (integer) Number of map variables > 0 Map date j idate to output map j for variable i (j varies from 1 to Number of maps i)(MM/DD/YYYY-HH)Number of map variables > 0 Number of image variablesnumber of variables for which image output should be produced (integer) Image variable ivariable ID for image i (see Model Output for IDs) (integer) Number of image variables > 0 Image layer ior multi-layer variables, indicate the layer to be output (1 is the top layer) (integer) Number of image variables > 0 Image start istart time for producing image output for variable i (MM/DD/YYYY-HH) Number of image variables > 0 Image end ilast time for producing image output for variable i (MM/DD/YYYY-HH) Number of image variables > 0 Image interval itime interval between images in hours (float) Number of image variables > 0 Image upper limit iupper limit for scaling image output for variable i (float) Number of image variables > 0 Image lower limit ilower limit for scaling image output for variable i (float) Number of image variables > 0 Number of graphicsnumber of variables for which graphics for which output should be produced (integer) Graphics ID ivariable ID for graphic i (see Model Output for IDs) (integer) Number of graphics > 0

