InListMake.VIC: Make the required INList for VIC

Description Usage Arguments Value Examples

View source: R/VIC.R

Description

Make the required list according to the format of the model VIC input list.

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
## S3 method for class 'VIC'
InListMake(
  ClsName,
  infoStarDay,
  infoEndDay,
  MetData,
  GeoData,
  GridData,
  UPMethondList,
  UHPeriodN = 180,
  UHUnitTranslate,
  ...
)

Arguments

ClsName

chr, chr vector, all the methonds of hydrology modul. e.g.ClsNa <- c("VIC", "PenmanMonteith", "GreenAmpt", "Gash", "ARNO", "G2RES")

infoStarDay

chr, the start day, e.g. "1989-1-1"

infoEndDay

chr, the end day, e.g. "1993-12-31"

MetData

list, num, list of metrol data. For VIC Model should contain at least the following 8 data:

(The field names must be the same as listed in the following list because they will be the only index.)

  • Tmean

  • Tmax

  • Tmin

  • WindSpeed

  • WindH

  • SunHour

  • RelativeHumidity

  • PrecipitationHoch

Each data is a 2-array(periodN, gridN).

GeoData

list, geological data, For VIC Model should contain at least the following 4 data:

(The field names must be the same as listed in the following list because they will be the only index.)

  • Evalution: 1-array(gridN). Evalution of all grids.

  • Location: data.frame: gridN obs. of 3 variables. ID,

  • SoilParam: data.frame': gridN obs. of some variables.

  • LanduseParam: data.frame': gridN obs. of some variables.

Location field names, for VIC Model should contain at least the following 2 data:

(The field names must be the same as listed in the following list because they will be the only index.)

  • Latitude

  • Longitude

SoilParam field names, for VIC Model should contain at least the following 12 data

(The field names must be the same as listed in the following list because they will be the only index.)

  • T_Porosity_: top soil...

  • T_FieldCapacity_

  • T_WiltingPoint_

  • T_WettingFrontSoilSuctionHead_mm

  • T_SaturatedSoilSuctionHead_mm

  • T_SaturatedHydraulicConductivity_mm_day

  • S_Porosity_: sub soil...

  • S_FieldCapacity_

  • S_WiltingPoint_

  • S_WettingFrontSoilSuctionHead_mm

  • S_SaturatedSoilSuctionHead_mm

  • S_SaturatedHydraulicConductivity_mm_day

LanduseParam field names, for VIC Model should contain at least the following 28 data

(The field names must be the same as listed in the following list because they will be the only index.)

  • SL_mm

  • root_depth_mm

  • rarc

  • rmin

  • ROU.JAN - ROU.DEC (*12)

  • DIS.JAN - DIS.DEC (*12)

GridData

4-list of grid-data used to calculate confluence(route)

(The field names must be the same as listed in the following list because they will be the only index.)

  • TypeGridID: 4-list. Type of each grid point.

  • GridID: matrix: ID in grid-data

  • FlowDirection: matrix': FlowDirection in grid-data

  • GridDEM: matrix': DEM in grid-data

TypeGridID: 4-list

(The field names must be the same as listed in the following list because they will be the only index.)

  • GridGridID : all grid ID in 1-array(gridN)

  • RiverGridID : river grid ID in 1-array, Estuary and HydroStation belong to river

  • EstuaryID : Estuary ID in 1-array, HydroStation belong to Estuary

  • HydroStationID: HydroStation ID in 1-array

UPMethondList

four methonds Name for IUH, e.g. c("Shipeng", "Shipeng", "Shipeng", "Shipeng")

UHPeriodN

howmany Period have in Discrete unit hydrograph

UHUnitTranslate

Transformation parameters from mm to m^3/s

...

other paramters

Value

InList for VIC

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
ClsNa <- c("PenmanMonteith", "GreenAmpt", "Gash", "ARNO", "G2RES", "VIC")
class(ClsNa) <- tail(ClsNa, 1)
UPMethondList = list("Shipeng", "Shipeng", "Shipeng", "Shipeng")
VICInList <- InListMake(ClsNa,
                            "1989-1-1",
                            "1993-12-31",
                            MetroList,
                            GeoList,
                            GridList,
                            UPMethondList,
                            180,
                            35)

MomentVon/EDHMvic documentation built on April 10, 2020, 3:46 p.m.