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

Description Usage Arguments Value

View source: R/stack_noaa_historical.R

Description

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

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
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


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