Learn R Programming

hydroToolkit (version 0.1.0)

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

Description

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

Usage

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 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 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 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 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 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 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

  • set_hydroMet,hydroMet-method: set method for generic object

  • set_hydroMet,hydroMet_BDHI-method: set method for BDHI object

  • set_hydroMet,hydroMet_DGI-method: set method for DGI object

  • set_hydroMet,hydroMet_IANIGLA-method: set method for IANIGLA object

  • set_hydroMet,hydroMet_CR2-method: set method for CR2 object

  • set_hydroMet,hydroMet_compact-method: set method for compact object

Examples

Run this code
# NOT RUN {
# Create BDHI hydro-met station
guido <- create_hydroMet(class_name = 'BDHI')

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

# }

Run the code above in your browser using DataLab