Create an instance of NewhallDataset

NewhallDataset(
  stationName,
  country,
  latDD,
  lonDD,
  elev,
  allPrecipsDbl,
  allAirTempsDbl,
  pdbegin,
  pdend,
  smcsawc,
  checkargs = TRUE
)

Arguments

stationName

character; station name

country

character; country

latDD

double; latitude decimal degrees

lonDD

double; longitude decimal degrees

elev

double; station elevation

allPrecipsDbl

double; length 12 precipitation, monthly (millimeters of water)

allAirTempsDbl

double; length 12 air temperature, monthly (degrees Celsius)

pdbegin

integer; beginning year

pdend

integer; ending year

smcsawc

double; soil moisture control section available water capacity (millimeters)

checkargs

logical; check argument length and data types? Default: FALSE

Value

an instance of NewhallDataset

Examples

input_direct <- NewhallDataset(
  stationName = "WILLIAMSPORT",
  country = "US",
  latDD = 41.24,
  lonDD = -76.92,
  elev = 158.0,
  allPrecipsDbl = c(44.2, 40.39, 113.54, 96.77, 95, 98.55,
                    66.04, 13.46, 54.86, 6.35, 17.53, 56.39),
  allAirTempsDbl = c(-2.17, 0.89, 3.72, 9.11, 16.28, 21.11,
                     22.83, 21.94, 19.78, 10.5, 5.33, -1.06),
  pdbegin = 1930,
  pdend = 1930,
  smcsawc = 200.0
)