Tutorial: Access Distributed NASA Earth Science Data from OPeNDAP Services using R
Access time series of maximum temperature at an AmeriFlux site location
Keywords: OPeNDAP, THREDDS, R, Daymet, temperature, AmeriFlux,
In this tutorial, we will explore how to use ORNL DAAC data from THREDDS Data Server through OPeNDAP protocol using R. THREDDS is a web server that provides direct access to scientific data sets and OPeNDAP is a protocol that allows access to remote data without having to download the data. This example uses spatial subset of maximum temperature in two datasets. The first dataset is Daymet: Daily Surface Weather Data on a 1-km Grid for North America, Version 3. The second is a global 30-year monthly climatology dataset. Both datasets are available through ORNL DAAC THREDDS server. We use ncdf4 library in R to access the data on THREDDS through OPenDAP protocol. The maximum temperature data and metadata are retrieved. The subsets of data are made based on the selected point of interest. At last, the maximum temperature variables of these two datasets are plotted.
Spatial subsets of daily maximum temperature data for North America in 1990 from Daymet version 3. The daily Daymet maximum temperature data is obtained from this ORNL DAAC's THREDDS server. Spatial subsets of 30-year(1961-1990) mean monthly surface climate over global land areas, excluding Antarctica. In this example, monthly maximum temperature climatology data is obtained from this ORNL DAAC's THREDDS server.
R v3.3 or later. R package:
Access the tutorial here: Tutorial