Using the NEON API in RLast modified: Oct 2, 2017 Time: 1 - 1.5 hours , Libraries: httr, jsonlite, devtools, geoNEON, neonDataStackR,
Tutorial for getting data from the NEON API, using R and the R package httr
Tutorials on this page use the
R programming language.
Tutorial for getting data from the NEON API, using R and the R package httr
This tutorial discusses ways to plot plant phenology (discrete time series) and single-aspirated temperature (continuous time series) together.
This tutorial demonstrates how to work with NEON single-asperated air temperature data. Specific tasks include conversion to POSIX date/time class, subsetting by date, and plotting the data.
Learn to work with NEON plant phenology observation data (NEON.DP1.10055).
Learn the basics of how to use the plotly package to create interactive plots and use the Plotly API in R to share these plots.
This lesson demonstrates ways that scientists identify and use data that they use to study disturbance events. Further, it encourages students to think about why we need to quantify change and different types of data needed to quantify the change. This lesson focuses on flooding as a natural disturbance event with impacts on the local human populations. Specifically, it focuses on the causes and impacts of flooding that occurred in 2013 throughout Colorado with an emphasis on Boulder County.
This lesson demonstrates ways that scientists identify and use data that they use to study disturbance events. Further, it encourages students to think about why we need to quantify change and different types of data needed to quantify the change. This lesson focuses on flooding as a natural disturbance event with impacts on the local human populations. Specifically, it focuses on the causes and impacts of flooding that occurred in 2013 throughout Colorado with an emphasis on Boulder county.
This tutorial walks through how to download and visualize Palmer Drought Severity Index data in R. The data specifically downloaded for this activity allows one to to better understand a driver of the 2013 Colorado floods.
This lesson walks through the steps need to download and visualize precipitation data in R to better understand the drivers and impacts of the 2013 Colorado floods.
This lesson walks through the steps need to download and visualize USGS Stream Discharge data in R to better understand the drivers and impacts of the 2013 Colorado floods.
This lesson teaches how to use Digital Terrain Models derived from LiDAR data to create Digital Elevation Models of Differences that allow us to measure the change in elevation of an area after a disturbance event.
This tutorial explains how to set a working directory in R. The working directory points to a directory or folder on the computer where data that you wish to work with in R is stored.
This tutorial reviews the fundamental principles, packages and metadata/raster attributes that are needed to work with raster data in R. It covers the three core metadata elements that we need to understand to work with rasters in R: CRS, Extent and Resolution. It also explores missing and bad data values as stored in a raster and how R handles these elements. Finally, it introduces the GeoTiff file format.
This tutorial explains how to plot a raster in R using R's base plot function. It also covers how to layer a raster on top of a hillshade to produce an eloquent map.
This spatial data tutorial explains the how to open and plot shapefiles containing point, line and polygon vector data in R.
This tutorial explores issues associated with working with rasters in different Coordinate Reference Systems (CRS) / projections. When two rasters are in different CRS, they will not plot nicely together on a map. We will learn how to reproject a raster in R using the projectRaster function in the raster package.
This tutorial provides an overview of how to locate and query shapefile attributes as well as subset shapefiles by specific attribute values in R. It also covers plotting multiple shapefiles by attribute and building a custom plot legend.
This tutorial covers how to subtract one raster from another using efficient methods - the overlay function compared to basic subtraction. We also cover how to extract pixel values from a set of locations - for example a buffer region around plot locations at a field site. Finally, it explains the basic principles of writing functions in R.
This tutorial will demonstrate how to import a time series data set stored in .csv format into R. It will explore data classes and will walk through how to convert date data, stored as a character string, into a date class that R can recognize and plot efficiently.
This tutorial provides an overview of how to create a a plot of multiple shapefiles using base R plot. It also explores adding a legend with custom symbols that match your plot colors and symbols.
This tutorial explores how to import and plot a multi-band raster in R. It also covers how to plot a three-band color image using the plotRGB function in R.
This tutorial covers what metadata are, and why we need to work with metadata. It covers the 3 most common metadata formats: text file format, web page format and Ecological Metadata Language (EML).
This tutorial will cover how to identify the CRS of a spatial vector object in R. It will also explore differences in units associated with different projections and how to reproject data using spTransform in R. Spatial data need to be in the same projection in order to successfully map and process them in non-gui tools such as R.
This tutorial covers how to work with and plot a raster time series, using an R RasterStack object. It also covers the basics of practical data quality assessment of remote sensing imagery.
This tutorial explores working with date and time classes in R. We will overview the differences between As.Date, POSIXct and POSIXlt as used to convert a date/time field in character (string) format to a date-time format that is recognized by R. This conversion supports efficient plotting, subsetting and analysis of time series data.
This tutorial covers how to convert a .csv file that contains spatial coordinate information into a spatial object in R. We will then export the spatial object as a Shapefile for efficient import into R and other GUI GIS applications including QGIS and ArcGIS
This tutorial covers how to efficiently and effectively plot a stack of rasters using rasterVis package in R. Specifically it covers using levelplot and adding meaningful, custom names to band labels in a RasterStack.
This tutorial explores how to deal with NoData values encountered in a time series dataset, in R. It also covers how to subset large data files by date and export the results to a csv (text format) file.
This tutorial covers how to modify (crop) a raster extent using the extent of a vector shapefile. It also covers extracting pixel values from defined locations stored in a spatial object.
This tutorial covers how to extract and plot NDVI pixel values from a raster time series stack in R. We will use ggplot2 to plot our data.
In this tutorial, we will use the group_by, summarize and mutate functions in the `dplyr` package to efficiently manipulate atmospheric data collected at the NEON Harvard Forest Field Site. We will use pipes to efficiently perform multiple tasks within a single chunk of code.
This tutorial uses ggplot2 to create customized plots of time series data. We will learn how to adjust x- and y-axis ticks using the scales package, how to add trend lines to a scatter plot and how to customize plot labels, colors and overall theme.
This tutorial covers how to plot subsetted time series data (e.g., plot by season) using facets() and ggplot2. It also covers how to plot multiple metrics in one display panel.
This tutorial is a data integration wrap-up culmination activity for the spatio-temporal time series tutorials.
This tutorial explains why Julian days are useful and teaches how to create a Julian day variable from a Date or Data/Time class variable.
Learn how to build a HDF5 file in R from scratch! Add groups, datasets and attributes. Read data out from the file.
This lesson will guide you through making a simple shiny app.
Create a HDF5 in R from scratch! Add groups and datasets. View the files in the HDFviewer.
Learn how to use the filter, group_by, and summarize functions with piping in R's dplyr package. And combine these with grepl to select portions of character strings.
Explore, extract and visualize temporal temperature data collected from a NEON flux tower from multiple sites and sensors in R. Learn how to extract metadata and how to use nested loops and dplyr to perform more advanced queries and data manipulation.
Learn about the key attributes needed to work with raster data in non-GUI programs. Examples in R.
Open up and explore a hyperspectral dataset stored in HDF5 format in R. Learn about the power of data slicing in HDF5. Slice our band subsets of the data and create and visualize one band.
This tutorial explains the fundamental principles, functions and metadata that you need to work with raster data in R.
Open up and explore hyperspectral imagery in HDF format R. Combine multiple bands to create a raster stack. Use these steps to create various band combinations such as RGB, Color-Infrared and False color images.
This tutorial explains the fundamental principles, functions and metadata that you need to work with raster data, in image format, in R. Topics include raster stacks, raster bricks, plotting RGB images and exporting an RGB image to a GeoTIFF.
This tutorial walks you through creating square polygons from a plot centroid (x,y format) in R.
Extract a single pixel's worth of spectra from a a hyperspectral dataset stored in HDF5 format in R. Visualize the spectral profile.
Explore provisional NEON data that characterizes small mammal abundance and soil N:P ratio data as an example of maps that can be created using ESRI's ArcGIS online platform.
This tutorial presents the basics of using R.
This tutorial teaches the basics of creating a function in R.
This tutorial provides the basics of installing and working with packages in R
Explore the basics of how a LiDAR system works and what a LiDAR system measures.
In this tutorial, you will bring LiDAR-derived raster data (DSM and DTM) into R to create a canopy height model (CHM).
Learn to extract data from a raster using circular or square buffers created around a x,y location or from a shapefile. With this will will learn to convert x,y locations in a .csv file into a SpatialPointsDataFrame so that they can be
An overview of the basics needed to begin to exploring converting point data into raster or gridding format.
This page contains capstone activities that complement several spatial data tutorial series.