Skip to contents

The main object class for geographical domains (grids), described by a projection and a grid.

Usage

# S3 method for geodomain
print(x, ...)
is.geodomain(x)
compare.geodomain(x,y,eps=1e-10)

Arguments

x,y

geodomain class objects.

eps

Maximal numerical de=ifference allowed for 'identical' values.

...

Not used.

Details

The geodomain class consists of a list describe a regular gridded domain. An object is list with following elements:

  • projectionDetails of the grid's projection. A list of proj.4 parameters.

  • nx,nyNumber of gridpoints

  • SW,NE(Longitude,Latitude) pairs describing two outer cornes of the grid.

  • dx,dyGrid resolution. Either in degrees (LatLon grid) or in meter (projected grid). If missing, these can in fact be calculated from the other components.

compare.geodomain compares two domains numerically and returns TRUE if they are equal. This is NOT very reliable. is.geodomain is a simple shortcut.