Learn R Programming

IceCast (version 2.1.0)

get_area: Calculate geodesic area

Description

Caclulate the geodesic areas of SpatialPolygons object on the Nothern Hemisphere Polar Stereographic grid projection

Usage

get_area(poly, byid = FALSE)

Arguments

poly

SpatialPolygons object for which to calculate area

byid

boolean indicating whether areas should be calculated for each polygon individually or for the whole object together

Value

Area of polygon (or vector of areas if byid is set to TRUE)

Details

Area calculations are for the Polar stereographic grid with major axis of 6378273m and ellipsoid flattening of 1/298.2794111.

References

Information on Polar Stereographic North projection: https://nsidc.org/data/polar-stereo/ps_grids.html

Examples

Run this code
# NOT RUN {
get_area(reg_info$regions[[1]])
get_area(land, byid = TRUE)
# }

Run the code above in your browser using DataLab