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

View source: R/write_noaa_gefs_netcdf.R

write_noaa_gefs_netcdfR Documentation

Write a (NOAA GEFS?) forecast to netCDF

Description

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

Usage

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


FLARE-forecast/Rnoaa4cast documentation built on Sept. 4, 2022, 12:38 a.m.