ParseModelPage: Extract predictions, levels, and variables

View source: R/GetRealTimeGrib.R

ParseModelPageR Documentation

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

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

Value

pred

Model predictions

levels

Locations of data points

variables

Data types

Note

Many of the names for predictions, levels, and variables are somewhat cryptic.

Author(s)

Daniel C. Bowman danny.c.bowman@gmail.com

See Also

WebCrawler, ParseModelPage, GribGrab

Examples


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



rNOMADS documentation built on Sept. 6, 2022, 5:06 p.m.