Learn R Programming

rNOMADS (version 2.4.1)

GetDODSModelRunInfo: Get model coverage and data information for models on GrADS-DODS system.

Description

Given a URL from GetDODSDates and a model run from GetDODSModelRuns, get information on the model domain, levels, and variables.

Usage

GetDODSModelRunInfo(model.url, model.run, download.file=TRUE)

Arguments

model.url

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

model.run

A specific model run, probably returned by GetDODSModelRuns

download.file

If TRUE, download the DODS .info file and read it in. If FALSE, try and read the .info file directly from the Internet.

Value

model.info

Information provided by the GrADS - DODS system about the given model instance.

Details

This routine grabs information about the latitude, longitude, and time coverage of a specific model instance. It also finds data about levels (if present) and lists all the available variables (though they may not have data in them). The user can refer to this information to construct calls to the DODS system via DODSGrab. Note that the XML package has trouble interpreting https from time to time; this can be circumvented by keeping download.file=TRUE.

See Also

GetDODSDates, GetDODSModelRuns, DODSGrab

Examples

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

#Get some information about 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)
model.info <- GetDODSModelRunInfo(model.url, tail(model.runs$model.run, 1))
print(model.info)
# }

Run the code above in your browser using DataLab