View source: R/GetRealTimeGrib.R
ParseModelPage | R Documentation |
This function parses the model download pages on NOMADS, and extracts information on predictions, levels, and variables available for each.
ParseModelPage(abbrev)
abbrev |
The abbreviation of the model you are trying to examine, found using NOMADSRealTimeList |
This function scrapes the web page for a given model and determines which predictions, levels, and variables are present for each. Predictions are instances returned by each model (for example, the GFS model produces 3 hour predictions up to 192 hours from the model run). Levels are regions of the atmosphere, surface of the Earth, or subsurface that the model produces output for (for example the GFS model has a “2 m above ground” level that has data for temperature, etc, at that height across the Earth). Variables are types of data (temperature, for example).
pred |
Model predictions |
levels |
Locations of data points |
variables |
Data types |
Many of the names for predictions, levels, and variables are somewhat cryptic.
Daniel C. Bowman danny.c.bowman@gmail.com
WebCrawler
, ParseModelPage
, GribGrab
#An example for the Global Forecast System 0.5 degree model
#Get the latest model url
## Not run:
urls.out <- CrawlModels(abbrev = "gfs_0p50", depth = 1)
#Get a list of forecasts, variables and levels
model.parameters <- ParseModelPage(urls.out[1])
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.