Skip to contents

The main object class for gridded data. Consists of a matrix with a number of attributes.

Usage

as.geofield(x=NA, domain, time = "", info = list()) 
is.geofield(x)
# S3 method for geofield
print(x, ...)

Arguments

x

a data matrix. If a vecor (or single value), this is cast to a matrix with dimensions required by the domain.

domain

A geodomain that should describe a domain with exactly the dimensions of x.

time, info

Time and a list of information that are added as attributes to the resulting geofield object.

...

Not used.

Value

is.geofield

returns TRUE if x is a geofield object.

as.geofield

returns a geofield object. If x is a matrix and a domain is specified, this is added as an attribute.

Details

The geofield class consists a data matrix and some attributes that describe the domain and the field value. An object is a data matrix with the following attributes:

  • domainThe domain description, a geodomain class object. This is itself a list with elements: projection: Details of the grid's projection.\ nx,ny: Number of gridpoints SW,NE: (Latitude,Longitude) pairs describing the outer cornes of the grid.

  • timeDate and time information of the data field.

  • infoOther information.

See also