area.cell: Get the area of each longitude by latitude cell. Adjust for...

Description Usage Arguments Value

View source: R/area.cell.r

Description

Get the area of each longitude by latitude cell. Adjust for change in area with latitude.

Usage

1
2
3
4
5
6
7
area.cell(
  lond,
  latd,
  cell.size = 1,
  crs.ll = "+proj=longlat +datum=WGS84 +ellps=WGS84 +towgs84=0,0,0",
  crs.en.type = "mollweide"
)

Arguments

lond

Vector of longitudes (midpoint of the cell)

latd

Vector of latitudes (midpoint of the cell)

cell.size

Integer: size of the cell in degrees. Note, all cells must be the same size

crs.ll

Character string of the crs for the current lat-lon projections

crs.en.type

What type of projection for calculating the area? 'tpeqd', 'mollweide', or 'albers equal area'. Note that 'albers equal area' is hard coded for the central pacific

Value

Either a vector of areas in km2


N-DucharmeBarth/ndd.vast.utils documentation built on April 5, 2020, 9 p.m.