Nodes of different colours represent the following:
Solid arrows point from a submodule to the (sub)module which it is
descended from. Dashed arrows point from a module or program unit to
modules which it uses.
Where possible, edges connecting nodes are
given different colours to make them easier to distinguish in
large graphs.
~ ~ ~ PURPOSE ~ ~ ~
this subroutine controls weather inputs to SWAT. Precipitation and
temperature data is read in and the weather generator is called to
fill in radiation, wind speed and relative humidity as well as
missing precipitation and temperatures. Adjustments for climate
changes studies are also made in this subroutine.
~ ~ ~ INCOMING VARIABLES ~ ~ ~
name |units |definition
~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~
elevp(:) |m |elevation of precipitation gage station
elevt(:) |m |elevation of temperature gage station
welev(:) |m |elevation of weather station used to compile
|weather generator data
~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~
Temperature:
Solar Radiation:
Relative Humidity:
simple dewpoint eqn from Lawrence 2005. Bull. Amer. Meteor. Soc.
Wind Speed:
Potential ET: Read in data !!
if using a measured data
Use HARGREAVES POTENTIAL EVAPOTRANSPIRATION METHOD
Update CMI and Precip minus PET 30 day moving sum
calculate climatic moisture index - cumulative p/pet
Use Hargreaves Potential ET Method
subtract the 30 day previous and add the current day precip/pet
Calculate air temperature lag day for stream temperature
replace current day temperature
lag day is the next variable in array
Calculate maximum half-hour rainfall fraction
Base Zero Heat Units
Climate Change Adjustments !!
Nodes of different colours represent the following:
Solid arrows point from a procedure to one which it calls. Dashed
arrows point from an interface to procedures which implement that interface.
This could include the module procedures in a generic interface or the
implementation in a submodule of an interface in a parent module.
Where possible, edges connecting nodes are
given different colours to make them easier to distinguish in
large graphs.