set_hydroMet: Set the data of an 'hydroMet' object or its subclasses

Description Usage Arguments Value Functions Examples

Description

With this method you can set (or change) an specific slot value.

Usage

  1
  2
  3
  4
  5
  6
  7
  8
  9
 10
 11
 12
 13
 14
 15
 16
 17
 18
 19
 20
 21
 22
 23
 24
 25
 26
 27
 28
 29
 30
 31
 32
 33
 34
 35
 36
 37
 38
 39
 40
 41
 42
 43
 44
 45
 46
 47
 48
 49
 50
 51
 52
 53
 54
 55
 56
 57
 58
 59
 60
 61
 62
 63
 64
 65
 66
 67
 68
 69
 70
 71
 72
 73
 74
 75
 76
 77
 78
 79
 80
 81
 82
 83
 84
 85
 86
 87
 88
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
set_hydroMet(
  obj = NULL,
  id = NULL,
  agency = NULL,
  station = NULL,
  lat = NULL,
  long = NULL,
  alt = NULL,
  country = NULL,
  province = NULL,
  river = NULL,
  active = NULL,
  ...
)

## S4 method for signature 'hydroMet'
set_hydroMet(
  obj = NULL,
  id = NULL,
  agency = NULL,
  station = NULL,
  lat = NULL,
  long = NULL,
  alt = NULL,
  country = NULL,
  province = NULL,
  river = NULL,
  active = NULL
)

## S4 method for signature 'hydroMet_BDHI'
set_hydroMet(
  obj = NULL,
  id = NULL,
  agency = NULL,
  station = NULL,
  lat = NULL,
  long = NULL,
  alt = NULL,
  country = NULL,
  province = NULL,
  river = NULL,
  active = NULL,
  Qmd = NULL,
  Qmm = NULL,
  precip = NULL,
  tdb = NULL,
  tmax = NULL,
  tmin = NULL,
  swe = NULL,
  hr = NULL,
  wspd = NULL,
  wdir = NULL,
  evap = NULL,
  anem = NULL,
  patm = NULL
)

## S4 method for signature 'hydroMet_DGI'
set_hydroMet(
  obj = NULL,
  id = NULL,
  agency = NULL,
  station = NULL,
  lat = NULL,
  long = NULL,
  alt = NULL,
  country = NULL,
  province = NULL,
  river = NULL,
  active = NULL,
  swe = NULL,
  tmean = NULL,
  tmax = NULL,
  tmin = NULL,
  hr = NULL,
  patm = NULL,
  hsnow = NULL
)

## S4 method for signature 'hydroMet_IANIGLA'
set_hydroMet(
  obj = NULL,
  id = NULL,
  agency = NULL,
  station = NULL,
  lat = NULL,
  long = NULL,
  alt = NULL,
  country = NULL,
  province = NULL,
  river = NULL,
  active = NULL,
  date = NULL,
  tair = NULL,
  hr = NULL,
  patm = NULL,
  precip = NULL,
  wspd = NULL,
  wdir = NULL,
  kin = NULL,
  hsnow = NULL,
  tsoil = NULL,
  hwat = NULL
)

## S4 method for signature 'hydroMet_CR2'
set_hydroMet(
  obj = NULL,
  id = NULL,
  agency = NULL,
  station = NULL,
  lat = NULL,
  long = NULL,
  alt = NULL,
  country = NULL,
  province = NULL,
  river = NULL,
  active = NULL,
  precip = NULL,
  tmean = NULL,
  tmax = NULL,
  tmin = NULL
)

## S4 method for signature 'hydroMet_compact'
set_hydroMet(
  obj = NULL,
  id = NULL,
  agency = NULL,
  station = NULL,
  lat = NULL,
  long = NULL,
  alt = NULL,
  country = NULL,
  province = NULL,
  river = NULL,
  active = NULL,
  compact = NULL
)

Arguments

obj

an hydroMet or hydroMet_XXX class object.

id

numeric. This is the ID assigned by the agency.

agency

character. The name of the agency (or institution) that provides the data of the station.

station

character. The name of the (hydro)-meteorological station.

lat

numeric. Latitude of the station.

long

numeric. Longitude of the station

alt

numeric. Altitute of the station.

country

character. Country where the station is located. Argentina is set as default value.

province

character. Name of the province where the station is located. Mendoza is set as default value.

river

character. Basin river's name.

active

logical. It indicates whether or not the station is currently operated. Default value is TRUE.

...

arguments to be passed to methods. They rely on the slots of the obj subclass.

Qmd

daily mean river discharge.

Qmm

monthly mean river discharge.

precip

precipitation.

tdb

dry bulb temperature.

tmax

daily maximum air temperature.

tmin

daily minimum air temperature.

swe

snow water equivalent.

hr

relative humidity.

wspd

wind speed.

wdir

wind direction.

evap

evaporation.

anem

wind speed above the pan-evaporation.

patm

atmospheric pressure.

tmean

daily mean air temperature.

hsnow

snow height.

date

time serie with dates.

tair

air temperature.

kin

incoming shortwave radiation.

tsoil

soil temperature.

hwat

stream water level.

compact

data frame with Date as first column. All other columns are hydro-meteorological variables.

Value

The hydroMet object with the slots setted.

Functions

Examples

1
2
3
4
5
# Create BDHI hydro-met station
guido <- create_hydroMet(class_name = 'BDHI')

# Assign altitude
guido <- set_hydroMet(obj = guido, alt = 2480)

hydroToolkit documentation built on July 2, 2020, 1:04 a.m.