write_noaa_gefs_netcdf: Write a (NOAA GEFS?) forecast to netCDF

Description Usage Arguments Value Author(s)

View source: R/write_noaa_gefs_netcdf.R

Description

This function takes a data frame containing meteorological forecast data and related metadata and saves it to a netCDF file.

Usage

1
2
3
4
5
6
7
8
9
write_noaa_gefs_netcdf(
  df,
  ens = NA,
  lat,
  lon,
  cf_units,
  output_file,
  overwrite
)

Arguments

df

A data frame of meteorological variables to be written to a netCDF file. Columns must start with 'time' with the following columns in the order of cf_units.

ens

Optional: An ensemble index used for subsetting df.

lat

Latitude for the forecast location in degree north.

lon

Longitude for the forecast location in degree east.

cf_units

Vector of variable unit descriptor strings in the order they appear in df.

output_file

Name, with full path, of the netcdf file that is generated.

overwrite

Logical stating whether to overwrite an existing output file.

Value

None

Author(s)

Quinn Thomas


rqthomas/noaaGEFSpoint documentation built on Feb. 22, 2022, 4:27 a.m.