*** UPDATE ***
rNOMADS 2.0.0 was released yesterday (5-15-2014), and it now has cross-platform support (meaning you can use its data retrieval capabilities in Windows and Mac as well as Linux).
Stay tuned for more tutorials and usage examples in the coming days.
***
The rNOMADS package interfaces with the NOAA Operational Model Archive and Distribution System to provide access to 60 operational (i.e. real time and prediction) models describing the state of the ocean and the atmosphere. rNOMADS has been used to get wind and wave data for a real time sailing game, to quantify solar energy available for power plants in Europe, and to predict helium balloon flights. We look forward to continuing to hear about novel and unexpected uses for this spectacular data set.
In this post, we show how to use rNOMADS to do the following:
1. Plot global temperature and wind at different atmospheric pressure levels
2. Produce a precise atmospheric temperature and wind profile for a specific point at a specific time
Links to source code are provided below each set of figures. A link to rNOMADS installation instructions is provided at the end of the post.
Global Temperature and Wind Maps
The Global Forecast System (GFS) model provides weather data on a 0.5 x 0.5 degree grid for the entire planet. It is run 4 times daily, and produces a prediction every three hours out to 180 hours. The zero hour “analysis” forecast is the state of the atmosphere at the model run time, and it uses some observational data to increase its accuracy. Here, we plot the temperature at 2 m above the surface, the wind at 10 m above the surface, and the winds at 300 mb (around 9 kilometers elevation). The 300 mb plot often shows the northern and southern jet streams quite well.
Download the source code for these images here.
Instantaneous Atmospheric Profile over Sakura-Jima volcano, Japan
It’s important to know which direction the winds are going directly above active volcanoes, because eruptions can carry ash into air space and over inhabited areas. One impetus for the continued development of rNOMADS was to provide a one-stop solution for generating high precision wind profiles over specific points, allowing ash distribution prediction as soon as an eruption begins. Here, we have generated a spatially and temporally interpolated wind and temperature profile over Sakura-Jima volcano, Japan. The profile is calculated for the exact time when the source code is run.
Download the source code for these images here.
Some of these scripts require the aqfig package in R to generate the colorbar legends.
Instructions on installing R, rNOMADS, and their dependencies are here.