convert_units: Convert units from a netCDF file

Description Usage Arguments

View source: R/utils-nc.R

Description

Convert units from a netCDF file

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
convert_units(
  filename,
  varid,
  new_units,
  conv_factor,
  timeid = "time",
  latid = "lat",
  lonid = "lon",
  overwrite = TRUE,
  FUN = `*`,
  output_filename = NULL
)

Arguments

filename

Filename for the netCDF input (relative or absolute path).

varid

String with the main variable identifier.

new_units

String with the new units.

conv_factor

Numeric vector or single value with the conversion factor.

timeid

String with the time dimension identifier.

latid

String with the latitude dimension identifier.

lonid

String with the longitude dimension identifier.

overwrite

Boolean flag to indicate if the output file should be overwritten (if it exists).

FUN

Infix function to perform the conversion.

output_filename

Output filename.


special-uor/codos documentation built on Jan. 7, 2022, 2:32 a.m.