Description Usage Arguments Value Author(s) Examples
Function calculates the area of a raster file. Either a raster file is directly specified, or defined by it's resolution, projection and extent. Method works for input in longlat or equal area projection with unit in meters.
1 |
x |
File for which the area should be calculated |
res |
Resolution for which calculations should be done. If only one number is specified, assumes square cells |
proj |
projection as CRS. e.g. "+proj=longlat +datum=WGS84 +no_defs +ellps=WGS84 +towgs84=0,0,0" |
ext |
extent for calculations. e.g. c(-180,180,-90,90) |
cache |
if TRUE function looks for pre-calculated area in cache |
writecache |
if TRUE function writes newly calculated area to cache folder |
Either a raster or just the number for equal area projections
Ulrich Kreidenweis
1 2 3 | ## Not run: calcArea(res=0.5, proj="+proj=longlat +datum=WGS84 +no_defs +ellps=WGS84 +towgs84=0,0,0",
ext=c(-180,180,-90,90))
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.