Description Author(s) See Also Examples
This white sheet describes the Catalog Convention of vetools package.
Catalog Convention White Sheet (Revision 3)
The purpose of this convention is to standarize the data structure used to
store the environmental data and associated meta-data. All data-sets provided and
processed by the vetools package that follow this convention are of class "Catalog"
and are referred as "Collection"s. Each collection provides the following
structure of class list:
A list of class "list" with name "catalog" where each element is composed of
exactly ten standard elements and zero or more optional/extra elements.
The required standard elements are:
NameStation's name, class "character"
AltitudeStations's altitude in metres. Some data sources lack this information an is taken to be NA
LatitudeLatitude in degrees
LongitudeLongitude in degrees, some data sources use West direction
Measure.codeMeasured variable code, sometimes indicates MKS unit
Measure.unitMeasured data variable description
InstallDate of station's installation
StartDate of start of operation of the station. Some data sources lack
this information and is taken to be the same as Instalacion
StateThe state of the country to which the station belongs, some sources lack this information and can be taken to be NA
Avble.yrsA vector containing the years on which the station allegedly operated. Some source lack this information and is extracted from the measured variable and reflects those years that have at least one measurement.
One or more lists of measurement data variables, generally of class "ts". It is required
that at least one be present under the name of "data".
This pair of lists ("catalog" and "data") form the collection. The two (or more)
items are always of class "list" and are in direct correspondence, i.e. item n of
the "catalog" corresponds to the measured variable item n in "data".
For example, suppose collection is a collection of 30 stations,
then collection$catalog[[4]] element describes the measurement of collection$data[[4]].
Functions
Functions provided to read data sources are
read.HIDROXimports Argus 1.0 data source files
read.MARNimports M.A.R.N. files
read.MINAMBimports EDELCA source files
These functions all return a list class "Catalog". Generally are
parsed as follows:
1 2 3 4 5 6 | file = system.file('tests/test-HIDROX.csv',package='vetools')
collection <- read.HIDROX(file)
names(collection$catalog[[1]])
summary(collection)
print(collection)
plot(collection)
|
A.M. Sajo Castelli
vetools,
summary.Catalog,
read.HIDROX,
read.MARN,
read.MINAMB.
1 2 3 4 5 6 7 8 9 | ## Not run: # This collection has only one station
Collection <- read.MARN(system.file("tests/test-MARN.dat", package="vetools"))
summary(Collection)
plot(Collection$data)
# This collection has many stations
Collection.H <- read.HIDROX(system.file("tests/test-HIDROX.csv", package="vetools"))
summary(Collection.H)
plot(Collection.H$data[[4]])
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.