cdo_sellonlat_fldmean: Select a lat/lon box for a single area in a single file.

Description Usage Arguments Value

View source: R/cdo_fxns.R

Description

internal_cdo_sellonlat Select the lat/lon box fomr a single netcdf file.

Usage

1
2
3
4
5
6
7
8
9
cdo_sellonlat_fldmean(
  basename,
  info,
  in_nc,
  area_nc,
  latlon_df,
  intermed_dir,
  cleanUP = TRUE
)

Arguments

basename

The string of CMIP information about the file that is being processed, this string will be appended onto the intermediate netcdf files.

info

A tibble of the CMIP information for the in_nc file that is going to be processed.

in_nc

The netcdf file to be processed.

area_nc

The netcdf file containing the area weights information

latlon_df

The dataframe of the lat and lon boundaries, it must include the following columns, name, lon1, lon2, lat1, and lat2.

intermed_dir

The name of the directory to store the intermediate

cleanUP

default set to TRUE to remove the intermediate netcdf files.

Value

A dataframe of the area weighted field mean at each lat and lon box.


kdorheim/cdoR documentation built on July 28, 2020, 6:42 p.m.