Learn R Programming

rNOMADS (version 2.4.1)

GetDODSModelRuns: Find available model runs on the GrADS - DODS system.

Description

Given a URL from GetDODSDates, find which model runs are available for download on the GrADS - DODS system.

Usage

GetDODSModelRuns(model.url)

Arguments

model.url

A URL for a model on the GrADS - DODS system, probably returned by GetDODSDates.

Value

model.run

A list of model runs available for the requested date.

model.run.info

Information provided by the GrADS - DODS system about each model run.

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

GetDODSDates, DODSGrab, GetDODSModelRunInfo

Examples

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

#Get the latest model url and date, real time server
abbrev <- "gfs_0p50"
# }
# NOT RUN {
urls.out <- GetDODSDates(abbrev)
model.url <- tail(urls.out$url, 1)
model.runs <- GetDODSModelRuns(model.url)
print(paste("Latest model run", tail(model.runs$model.run.info, 1)))
# }
# NOT RUN {
#Get model dates from the GFS analysis archive
abbrev <- "gfsanl"
model.url <- NOMADSArchiveList("dods", abbrev = abbrev)$url
# }
# NOT RUN {
model.runs <- GetDODSModelRuns(model.url)
print(model.runs$model.run.info)
# }

Run the code above in your browser using DataLab