read.HIDROX: Load environmental data from governmental sources

Description Usage Arguments Details Value Author(s) References See Also Examples

View source: R/read.HIDROX.R

Description

This sheet describes the functions to load environmental data from the formats used by MARN The Ministerio del Ambiente y Recursos Naturales.
MINAMB The Ministerio del Ambiente.
HIDROX The Argus data repository, see the references.

Each Ministry used a different data format to store the measured variables. For each available data, a read function is taylored.

Usage

1
2
3
read.HIDROX(file, state = NA, altitudes = NA, serial = NA, unit = NA)
read.MARN(file)
read.MINAMB(file, state = NA, YSPLIT = 20)

Arguments

file

String containing the path to the file to load.

state

A two letter character string identifying the state, see get.shape.state(NA) for a complete list.

altitudes

A list containing information relative to the elevation of each station in the file.

serial

A list containing information relative to the serial of each station in the file.

unit

A character string identifying the unit of the measured data, e.g. mm/month.

YSPLIT

This variable indicates from which decade (1900+YSPLIT) to consider between the 20th and 21st centuries.

Details

To explore the each data format, the package ships three test files.
See the folder system.file("tests",package="vetools").

Value

Returns a list of class Catalog with exactly two members, see Catalog Convention.

catalog

The catalog, a list of each stations meta data.

data

The data related to the catalog, a list of objects ts.

Author(s)

A.M. Sajo-Castelli

References

L. Bravo, S. Abad, I. Llatas, A. Salcedo, L. Delgado, S. Ramos, K. Cordova. Hidrox: Repositorio de Datos Hidroclim<c3><a1>ticos para la Gesti<c3><b3>n de Riesgos Epidemiol<c3><b3>gicos y Ambientales. 2012. ISBN:987-9-8012596-2-6.

See Also

Catalog Convention.

Examples

1
2
3
4
5
6
## Not run: 
collection.ZU = read.HIDROX('repo_est_ZU.csv', state="ZU", unit="Prec [mm/month]"))
summary(collection.ZU)
collection.ZU

## End(Not run)

vetools documentation built on May 2, 2019, 10:15 a.m.