R/get_met_gfs0p25.R

Defines functions get_met_gfs0p25

Documented in get_met_gfs0p25

#' Get GFS0.25 meteorology data files
#'
#' Downloads GFS0.25 meteorology data files from the NOAA FTP server and saves
#' them to a specified folder. Files can be downloaded by specifying a list of
#' filenames (in the form of `"{YYYY}{MM}{DD}_gfs0p25"`).
#' 
#' @inheritParams get_met_gdas1
#' 
#' @export
get_met_gfs0p25 <- function(days,
                            duration,
                            direction,
                            path_met_files) {
  
  get_daily_filenames(
    days = days,
    duration = duration,
    direction = direction,
    suffix = "_gfs0p25"
  ) %>%
    get_met_files(
      path_met_files = path_met_files,
      ftp_dir = "ftp://arlftp.arlhq.noaa.gov/archives/gfs0p25"
    )
}
rich-iannone/splitr documentation built on Nov. 3, 2021, 6:51 a.m.