integrate_lon: Integrates a global field

View source: R/integrate_lon.R

integrate_lonR Documentation

Integrates a global field

Description

Calculates the integral of a variable given in per-area units over the entire longitude-latitude domain given in the file using CDO

Usage

integrate_lon(
  ifil,
  landfil = NA,
  mean_time = TRUE,
  varnam = NA,
  mask = NA,
  method = c("mine", "cdo"),
  ...
)

Arguments

ifil

Input file name

landfil

A separate file providing the land area fraction per gridcell, must have the same resolution and domain as ifil

mean_time

A logical specifying whether mean across time steps should be taken. Defaults to TRUE.

varnam

(Optional) a variable name

mask

(Optional) a mask (2D array) corresponding to spatial dimensions of ifil containing NA where values should be masked out.

method

asdf

Value

A numeric value or vector of numeric values


stineb/rbeni documentation built on Feb. 24, 2023, 5:40 a.m.