noaa_gefs_grid_process_downscale: Extract and downscale points from a NOAA GEFS Forecast

View source: R/noaa_gefs_grid_process_downscale.R

noaa_gefs_grid_process_downscaleR Documentation

Extract and downscale points from a NOAA GEFS Forecast

Description

This function extracts a set of point location forecasts from a previously downloaded gridded NOAA Global Ensemble Forecast System (GEFS) forecast and optionally temporally downscales them.

Usage

noaa_gefs_grid_process_downscale(
  lat_list,
  lon_list,
  site_list,
  downscale,
  debias = FALSE,
  overwrite,
  model_name,
  model_name_ds,
  model_name_ds_debias,
  model_name_raw,
  debias_coefficients = NULL,
  num_cores,
  output_directory,
  reprocess = FALSE,
  write_intermediate_ncdf = TRUE,
  process_specific_date = NA,
  process_specific_cycle = NA,
  delete_bad_files = TRUE,
  grid_name = "neon",
  s3_mode = FALSE,
  bucket = NULL
)

Arguments

lat_list

Vector or range of latitudes to be downloaded (see details).

lon_list

Vector or range of longitudes to be downloaded (see details).

site_list

Vector of site codes, e.g. "NOAA", used in directory and file name generation.

downscale

Logical specifying whether to downscale from 6-hr to 1-hr data.

overwrite

Logical stating whether to overwrite any existing output files

model_name

Directory name for the 6-hr forecast, this will be used in directory and file name generation.

model_name_ds

Directory name for downscaled 1-hr forecasts, this will be used in directory and file name generation.

model_name_ds_debias

Directory name for downscaled and diabiased forecasts, this will be used in directory and file name generation.

debias_coefficients

Data frame containing debasing parameter values.

num_cores

The number of processor cores to run in parrallel on.

output_directory

Path: directory where the model output will be saved.

reprocess

Logical: if true re-extract dates that were previously processed.

write_intermediate_ncdf

Logical: retain the intermediate netCDF files created during processing?

process_specific_date

A date, or coercible string, specifying specific date(s) to extract. If omitted all dates will be processed.

process_specific_cycle

A vector of forecast times ("00", "06", "12", or "18" hours), to extract. If omitted all cycles will be processed.

delete_bad_files

Logical: delete bad files?

grid_name

A short grid name used in directory and file name generation.

s3_mode

Logical: save the forecast to a Amazon S3 bucket rather than locally.

bucket

If s3_mode = TRUE, the S3 bucket name to save to.


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