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

Share:

Description

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

Usage

1
GetDODSModelRunInfo(model.url, model.run)

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

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.

Value

model.info

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

Note

This function is very helpful in figuring out what's inside poorly documented models.

Author(s)

Daniel C. Bowman daniel.bowman@unc.edu

See Also

GetDODSDates, GetDODSModelRuns, DODSGrab

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
#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)