write_nc: Save Network Common Data Form (NetCDF) files

View source: R/write_nc.R

write_ncR Documentation

Save Network Common Data Form (NetCDF) files

Description

Export data with TIME, XLAT, XLONG dimensions to a netCDF file.

Usage

write_nc(
  attribute,
  values,
  date_ini = "2001-01-01 00:00:00",
  ofile = "ofile.nc",
  ntime,
  reference_file = system.file("extdata", "merg_2011010100_4km-pixel.nc", package =
    "percolator"),
  latname = "lat",
  lonname = "lon",
  unit = "",
  longname = "Tb MCSs Masks",
  variable_name = "mcs_mask",
  compression_level = 9,
  author_name = NULL,
  institution_name = NULL,
  additional_comments = NULL
)

Arguments

attribute

String. Any information to serve as an attribute. Ex: "Observational Tb (GPM MERGEIR) MCSs Masks from ForTraCC-percolator"

values

Vector with numeric or integer values to be written in the netCDF file.

date_ini

String. First date for the TIME attribute. EX: "2001-01-01 00:00:00"

ofile

Character. Character with the name of the output file.

ntime

Integer. Number of timesteps for the TIME dimension. EX: ntime = 365*24.

compression_level

Integer from 1 to 9. Default is 9 (highest compression).

Value

netCDF


salvatirehbein/percolator documentation built on June 3, 2024, 7:16 a.m.