GetDODSModelRunInfo | R Documentation |
Given a URL from GetDODSDates
and a model run from GetDODSModelRuns
, get information on the model domain, levels, and variables.
GetDODSModelRunInfo(model.url, model.run, download.file=TRUE)
model.url |
A URL for a model on the GrADS - DODS system, probably returned by |
model.run |
A specific model run, probably returned by |
download.file |
If |
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
.
model.info |
Information provided by the GrADS - DODS system about the given model instance. |
This function is very helpful in figuring out what's inside poorly documented models.
Daniel C. Bowman danny.c.bowman@gmail.com
GetDODSDates
, GetDODSModelRuns
, DODSGrab
#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)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.