Documentation ¶
Index ¶
- func PrintInts(fp string, cids []int, vals map[int]int)
- func UcascGaussian(a, s float64) float64
- type Domain
- func (dom *Domain) Drain(lus []*Surface, dm0 []float64, xg []int, nSteps int) []float64
- func (dom *Domain) EvaluateQuick(lus []*Surface, dms []float64, xg, xm, gxr []int, prnt bool) []float64
- func (dom *Domain) EvaluateToSteadyState(mmpyr float64, lus []*Surface, cxr map[int]int, xg []int, prnt bool) (dm0 []float64)
- func (dom *Domain) EvaluateVerbose(lus []*Surface, dms []float64, xg, xm, gxr []int, prnt bool) []float64
- func (dom *Domain) FindDm0s(lus []*Surface, mmpyr float64, cxr map[int]int, xg []int, prnt bool) []float64
- func (dom *Domain) Parameterize(TOPMODELm []float64, acasc, soildepth, maxFcasc, dinc float64, prnt bool) ([]*Surface, []int, []int, map[int]int, []int)
- func (dom *Domain) PreRunCheck(lus []*Surface, cxr map[int]int, xg, xm []int)
- func (d *Domain) Print()
- type FORC
- type MAPR
- type OBS
- type RTR
- type STRC
- type Surface
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func UcascGaussian ¶
Types ¶
type Domain ¶
type Domain struct { Frc *FORC // forcing (variable) data Strc *STRC // structural (unchanging) data (eg, topography, solar irradiation fractions) Mpr *MAPR // land use/surficial geology mapping for parameter assignment Obs *OBS // model observations/calibration targets Nc, Ngw int // number of cells; number of groundwater reservoirs // mons []int // monitor cell IDs // Fgwnc []float64 // cell count of each gw zone Dir string // model directory/prefix }
Domain holds all data and is the parent to all sub models
func LoadDomain ¶
LoadDomain loads all data from which sub-domain scale models can be derived
func (*Domain) EvaluateQuick ¶
func (*Domain) EvaluateToSteadyState ¶
func (*Domain) EvaluateVerbose ¶
func (*Domain) Parameterize ¶
func (*Domain) PreRunCheck ¶
type FORC ¶
type FORC struct { T []time.Time // [date ID] Ya, Ea [][]float64 // [staID][DateID] atmospheric exchange terms // O [][]float64 // observed discharge (use Oxr for cross-reference) XR map[int]int // mapping of model grid cell id to met index // Oxr, mt []int // mapping of outlet cell ID to O[][] // mt []int // month [1,12] cross-reference IntervalSec float64 }
FORC holds forcing data
func (*FORC) PrintAndCheck ¶
SaveGob FORC to gob
type MAPR ¶
type MAPR struct { // LU lusg.LandUseColl // [luid]LandUse // GW map[int]lusg.TOPMODEL // [gwid]GWzone Ksat, Uca, Fimp, Ifct map[int]float64 // [sgid]percolation rate; [cellid]upslope contributing area/cell count; [cellid]fraction impervious; [cellid]interception factor (~=Fcov*LAI) LUx, SGx, GWx map[int]int // cross reference of cid to lu/sg/gw Fngwc []float64 // size/area/number of cells for each GWzone Strms []int // cell IDs of stream cells }
MAPR holds mappings of landuse, surficial geology and groundwater zones
land use (class): uniform parameters applied to land category surficial geology: ksat/infiltration rate uniformly applied to surficial geology category ground water zone: paramater assigned to gw zone
type OBS ¶
type OBS struct { Td []time.Time // [date ID] Oq [][]float64 // observed discharge (use Oxr for cross-reference) Oqxr []int // mapping of outlet cell ID to Oq[][]; other cell IDs to montior; month [1,12] cross-reference // contains filtered or unexported fields }
OBS holds forcing data
func (*OBS) AddFluxCsv ¶
AddFluxCsv reads csv file of "Date","Flow","Flag"
type RTR ¶
type RTR struct { // SwsCidXR, SwsStrmXR map[int][]int // cross reference sws to cids; sws to stream cell ids SwsCidXR map[int][]int // cross reference sws to cids Sws, Dsws map[int]int // cross reference of cid to sub-watershed ID; map upsws{downsws} }
RTR holds topological info for subwatershed routing
type STRC ¶
type STRC struct { DwnGrad map[int]float64 // gradient (slope) of cell UpCnt map[int]int // cell upslope count (unit contributing area) CIDs, DwnXR []int // topologically-ordered (grid)cell IDs; downslope cell array index // Acell, Wcell float64 // cell area, cell width Wcell float64 // cell width CID0 int // cell id of outlet cell. <0 for all cells }
STRC holds model structural data
func (*STRC) PrintAndCheck ¶
Prints a set of rasters for verification
Source Files ¶
- check.prerun.go
- eval.constants.go
- eval.drain.go
- eval.quick.go
- eval.steadystate.go
- eval.verbose.go
- initial.Dm.go
- initial.cascade.go
- initial.parameterization.go
- print.domain.go
- print.struct.forcing.go
- print.struct.general.go
- print.struct.structure.go
- print.writers.go
- struct.domain.go
- struct.forcing.go
- struct.mapper.go
- struct.obs.go
- struct.router.go
- struct.structure.go
- update.surface.go
Click to show internal directories.
Click to hide internal directories.