Chapter 7 Reprojecting satellite and buoy data

notebook filename | 07_projected_maps_buoys.Rmd
history | Created March 2020

This exercise demonstrates collecting satellite and in-situ buoy data as ancillary data that complement the mission of a research cruise. We will download the cruise track, satellite, and buoy data from ERDDAP and then map all of the data in an Alaska Albers projection.

The exercise demonstrates the following techniques:

  • Finding and accessing in-situ buoy data in ERDDAP
  • Accessing satellite data from ERDDAP
  • Making projected maps of ship tracks, buoy locations and satellite data

The exercise demonstrates the following packages/functions:

  • rerddap::info - to retrieve information about a dataset from ERDDAP
  • rerddapXtracto::xtracto_3D - to extract satellite data from ERDDAP
  • rerddap::tabledap - to extract ship track and buoy data from ERDDAP
  • oce - to plot data from ERDDAP on a projected map

This exercise accesses the following datasets:

  • NOAA Geo-polar Blended Sea Surface Temperature daily satellite data, ‘nesdisGeoPolarSSTN5NRT’
  • NDBC Buoys, ‘cwwcNDBCMet’
  • A Ship Track from the R/V Healy ‘fsuResearchShipNEPP’

These datasets are all provided in ERDDAP with lat-lon coordinates. For an example of working with datasets provided in projected (ie. polar stereographic) coordinates see (insert link to projected datasets notebook)

7.2 Ship Track

Get a track from the research ship Healy in Alaska. This dataset is in the PolarWatch ERDDAP with dataset id ‘fsuResearchShipNEPP’. Here we pull the track for a segment of data from June 2011.

Visualize the ship track

Here we demonstrate viewing the track in Alaska Albers projection which is commonly used by local scientists. See the Fish and Wildlife reference link for more info on projections in Alaska.

The oce package is great for making maps in a variety of projections. The oce::mapPlot function accepts projections in a number of formats, see the mapPlot reference below for more details. Here we specify the projection with the proj4 string for Alaska Albers EPSG:6393.

7.3 Add Nearby Buoy locations

See if any NDBC buoys have data available in this area and add them to the map. Request NDBC buoy data with the rerddap::tabledap function, using the same temporal and spatial coverages as our satellite data request. Here we request the station, latitude, longitude, and time and then put the data into a data frame.

## [1] 22

Make a map with both the ship track and buoy locations

7.4 Add Satellite SST Data

  • Request metadata for the Geo-Polar Blended SST dataset using the rerddap::info function.
  • Use the returned info about dimensions and variable names to form a data request.
  • The satellite dataset id is nesdisGeoPolarSSTN5NRT
## <ERDDAP info> nesdisGeoPolarSSTN5SQNRT 
##  Base URL: https://upwell.pfeg.noaa.gov/erddap/ 
##  Dimensions (range):  
##      time: (2002-09-01T12:00:00Z, 2020-04-03T12:00:00Z) 
##      latitude: (-89.975, 89.975) 
##      longitude: (-179.975, 179.975) 
##  Variables:  
##      analysed_sst: 
##          Units: degree_C 
##      analysis_error: 
##          Units: degree_C 
##      mask: 
##      sea_ice_fraction: 
##          Units: 1

Extract Satellite SST Data

Using information returned from the rerddap::info request, form a data request using rerddapXtracto::rxtracto_3D. Here we request SST data for June 24, 2011 using the same extents that we used to define our map.

Make Map with Ship Track, Buoys and Satellite SST

7.6 References

Dan Kelley, OCE Vignettes - Using Map Projections,Feb 21, 2020, https://cran.r-project.org/web/packages/oce/vignettes/map_projections.html

Dan Kelley, R Documentation from oce v1.2.0, mapPlot function, accessed March 11, 2020, https://www.rdocumentation.org/packages/oce/versions/1.2-0/topics/mapPlot

Masumbuko Semba, Mapping with oce, 2/13/2019, https://semba-blog.netlify.com/02/13/2019/mapping-with-oce/

U.S. Fish and Wildlife Service Alaska Region, A Geodesy Primer, November 08, 2019, https://www.fws.gov/r7/nwr/Realty/data/LandMappers/Public/Help/HTML/R7-Public-Land-Mapper-Help.html?Datumsprojectionsandcoordinatesy.html