nc_cellareas: grid cell areas of a ncdf file

Description Usage Arguments Value Examples

View source: R/areas.R

Description

Calculates the areas of each grid cell of a netcdf file.

Usage

1
nc_cellareas(ff, cdo_output = FALSE)

Arguments

ff

This is the file to analyze.

cdo_output

set to TRUE if you want to see the cdo output

Value

data frame with the cell areas in square metres

Examples

1
2
3
# Calculating cell areas for NOAA world ocean atlas data sample file
ff <- system.file("extdata", "woa18_decav_t01_01.nc", package = "rcdo")
nc_cellareas(ff)

r4ecology/rcdo documentation built on July 21, 2019, 9 p.m.