Learn R Programming

rNOMADS (version 2.4.1)

GetDODSDates: Find available model run dates for data on the GrADS - DODS system.

Description

This function checks the GrADS data server to see what dates and model subsets are available for model specified by ABBREV

Usage

GetDODSDates(abbrev, archive=FALSE, request.sleep=1)

Arguments

abbrev

A model abbreviation as specified in NOMADSRealTimeList or NOMADSArchiveList.

archive

Whether the model is on the NCEP real time server (FALSE) or on the NCDC model archive server (TRUE).

request.sleep

Seconds to pause between HTTP requests when scanning model pages - this prevents timeouts. Default 1.

Value

model

The model that was requested.

date

A list of model run dates available for download.

url

A list of URLs corresponding to the model run dates.

Details

This function determines which dates are available for download for a particular model through the GrADS - DODS system. Once the user determines which dates are available, the output of this function can be passed to GetDODSModelRuns to determine which model runs can be downloaded.

See Also

GetDODSModelRuns, DODSGrab

Examples

Run this code
# NOT RUN {
#An example for the Global Forecast System 0.5 degree model

#Get the latest model url and date
abbrev <- "gfs_0p50"
# }
# NOT RUN {
urls.out <- GetDODSDates(abbrev)
print(paste("Most recent model run:",tail(urls.out$date, 1)))

#Get model dates from the GFS archive
abbrev <- "gfs-avn-hi"
urls.out <- GetDODSDates(abbrev, archive = TRUE, request.sleep = 1)
# }
# NOT RUN {
# }

Run the code above in your browser using DataLab