stack_noaa_forecasts: Function to stack together the first six hours of each NOAA...

View source: R/stack_noaa_historical.R

stack_noaa_forecastsR Documentation

Function to stack together the first six hours of each NOAA forecast cycle and append them to create a stacked data product

Description

Function to stack together the first six hours of each NOAA forecast cycle and append them to create a stacked data product

Usage

stack_noaa_forecasts(
  forecast_dates,
  site,
  noaa_directory,
  noaa_model,
  output_directory,
  model_name = "observed-met-noaa",
  dates_w_errors = NA,
  s3_mode = FALSE,
  bucket = NULL,
  verbose = FALSE
)

Arguments

forecast_dates

vector; vector of dates for which you have NOAA GEFS forecasts with all four cycles (00, 06, 12, 18)

site

character; four letter site name

noaa_directory

filepath; directory where you have noaa forecasts stored

noaa_model

character; name of the noaa model you are using, e.g. "noaa/NOAAGEFS_6hr"

output_directory

filepath; directory where the output files from this function will go

model_name

character; name of the model output from this function

dates_w_errors

list; list of dates that cause errors, e.g. have missing first timestep

Value

, returns a netCDF file for each NOAA GEFS ensemble (0-31) with the first six hours of each NOAA GEFS forecast cycle stacked to produce a continuous meteorological data product. Returns both 6hr files and temporally downscaled 1hr files for each ensembles


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