nc_expr: Rename variables in a netcdf file

Description Usage Arguments Value

View source: R/expr.R

Description

This function allows you to rename variables in a netcdf file. This function requires that the none #' of the variables in the function contains arithmetic variables.

Usage

1
2
nc_expr(ff, expr = NULL, out_file = NULL, zip_file = FALSE,
  cdo_output = FALSE, overwrite = FALSE, ...)

Arguments

ff

This is the file to analyze.

expr

A cdo expression.

out_file

The name of the file output. If this is not stated, a data frame will be the output.

zip_file

Do you want any output file to be zipped to save space. Default is FALSE.

cdo_output

set to TRUE if you want to see the cdo output

overwrite

Do you want to overwrite out_file if it exists? Defaults to FALSE for safety

...

optional arguments to be sent to nc_remap if you need to remap the netcdf prior to calculating the stat

na_value

This is a value in the raw netcdf file that needs to be treated as an na.

Value

data frame or netcdf file.


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