Learn R Programming

rNOMADS (version 1.2.0)

ParseModelPage: Extract predictions, levels, and variables

Description

This function parses the model download pages on NOMADS, and extracts information on predictions, levels, and variables available for each.

Usage

ParseModelPage(model.url)

Arguments

model.url
The URL of the model to extract information from, probably returned by NOMADSList.

Value

  • predModel predictions
  • levelsLocations of data points
  • variablesData types

Details

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).

See Also

WebCrawler, ParseModelPage, GribGrab

Examples

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

#Get the latest model url
urls.out <- CrawlModels(abbrev = "gfs0.5", depth = 1)

#Get a list of forecasts, variables and levels
model.parameters <- ParseModelPage(urls.out[1])

Run the code above in your browser using DataLab