How to open and work with NetCDF data in R
Switch branches/tags
Nothing to show
Clone or download
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
GIMMS3g_1982_NDVI.png
GIMMS3g_NDVI_diff.png Add files via upload Mar 26, 2018
GIMMS3g_Toolik.png
README.md removed author Mar 29, 2018
Read_NetCDF_tutorial_v3.Rmd Update Read_NetCDF_tutorial_v3.Rmd Mar 29, 2018

README.md

How to open and work with NetCDF data in R

Date: March 26, 2018
Contact for ORNL DAAC: uso@daac.ornl.gov

Keywords: R, netCDF

Overview

In this tutorial we will open some geospatial data that is stored in a netCDF file. We will select the variable and time range of interest, and we will export the data to a GeoTIFF so that we can continue the analysis in R or other geospatial software.

Arctic Growing Season NDVI, 1982

Source Data

Guay, K.C., P.S.A. Beck, and S.J. Goetz. 2015. Long-Term Arctic Growing Season NDVI Trends from GIMMS 3g, 1982-2012. ORNL DAAC, Oak Ridge, Tennessee, USA. https://doi.org/10.3334/ORNLDAAC/1275

Specifically, we will use the file “gimms3g_ndvi_1982-2012.nc4”. Download the data here https://daac.ornl.gov/daacdata/global_vegetation/GIMMS3g_NDVI_Trends/data/gimms3g_ndvi_1982-2012.nc4 before beginning the tutorial.

Prerequisites

R v3.4 or later. Required packages:

  • ncdf4 -- for netcdf manipulation
  • raster -- for raster manipulation
  • rgdal -- for geospatial analysis
  • ggplot2 -- for plotting

Procedure

Access the tutorial here: Tutorial