Learn R Programming

RCMIP5 (version 1.2.0)

calcGridArea: Calculate the grid cella area for a centered lat/lon grid

Description

Calculate the grid cella area for a centered lat/lon grid.

Usage

calcGridArea(lon, lat, verbose = FALSE)

Arguments

lon
longitude coordinates of the grid centers
lat
latitude coordinates of the grid centers
verbose
logical. Print info as we go?

Value

The grid cell area in m^2 (meter*meter)

Details

Currently the lon must be uniform but the lat does not need to be.