Exports climate simulation or forecasting data into NetCDF format.

export_netcdf(
  data,
  file = "CDSimX_output.nc",
  date_col = "DATE",
  station_col = "Station",
  lon_col = "LON",
  lat_col = "LAT",
  variables = NULL,
  fillvalue = -9999,
  overwrite = TRUE
)

Arguments

data

Climate dataframe.

file

Output NetCDF filename.

date_col

Date column name.

station_col

Station column name.

lon_col

Longitude column.

lat_col

Latitude column.

variables

Climate variables to export.

fillvalue

Missing value.

overwrite

Logical.

Value

Invisibly returns output filename.

Examples

if (FALSE) { # \dontrun{
export_netcdf(climate_data)
} # }