met-class {oce} | R Documentation

## Class to store meteorological data

### Description

Class to store meteorological data, with standard slots `metadata`, `data` and `processingLog`. For objects created with `read.met`, the `data` slot will contain all the columns within the original file (with some guesses as to units) in addition to several calculated quantities such as `u` and `v`, which are velocities in m/s (not the km/h stored in typical data files), and which obey the oceanographic convention that `u>0` is a wind towards the east.

### Methods

Accessing values. For an object named `m`, temperature (in degC) may be accessed as `m[["temperature"]]`, dew point (in degC) as `m[["dewPoint"]]`, pressure (in kPa) as `m[["pressure"]]`, eastward wind component (in m/s) as `m[["u"]]`, northward wind component (in m/s) as `m[["v"]]`. Caution: the other elements stored in the dataset are mainly in the format of the source file, and thus their use requires some extra knowledge; for example, `m[["direction"]]` yields the wind direction, measured in 10-degree units positive clockwise from North. The filename from which the data came (if any) may be found with `m[["filename"]]`. Items in `metadata` must be specifield by full name, but those in `data` may be abbreviated, so long as the abbreviation is unique.

Assigning values. Everything that may be accessed may also be assigned, e.g. `m[["temperature"]] <- 1 + m[["temperature"]]` increases temperature by 1C.

Overview of contents. The `show` method (e.g. `show(met)`) displays information about the object.

### Author(s)

Dan Kelley

### See Also

A file containing meteorological data may be read with `read.met`, and a meteorological object can also be created with `as.met`. A sample object is available with `data(met)`. Statistical summaries are provided by `summary.met`, while `show` displays an overview. Plotting may be handled with `plot.met`.

[Package oce version 0.9-18 Index]