new.var.ncdf: create an empty ncdf file with single variable.

View source: R/lpjncdf.r

new.var.ncdfR Documentation

create an empty ncdf file with single variable.

Description

create an empty ncdf file with single variable.

Usage

new.var.ncdf(ncfile, lpjgrid_path, var_name, units, time_start, time_interval,
  time_dim, longname = var_name, missval = 1e+32)

Arguments

lpjgrid:

the path of LPJ grid

var_name:

variable name

time_start:

start year for yearly output, start month for monthly output. e.g. "1900" and "1900-01-01"

time_interval:

"years" or "months" or "days"

time_dim:

length of time dimention, e.g. months * years

lonname:

the description of the variable

Value

list(cout, vardef): cout is the new ncdf file, and vardef \ is the definition of the all variables defined


sinanshi/LPJmL_RUtil documentation built on Feb. 8, 2023, 5:56 p.m.