read.ghrsst | R Documentation |
Read, for a user defined area, SST data from netCDF files downloaded from JPL's Physical Oceanography Distributed Active Archive Center (podaac) web page.
read.ghrsst(nc, lons, lats)
nc |
name of the netCDF file(s) to be read. |
lons |
a vector with western- and eastern-most longitudes. |
lats |
a vector with southern- and northern-most latitudes. |
This function can read SST data from one or multiple netCDF files downloaded from Caltech Jet Propulsion Laboratory web page (https://podaac-opendap.jpl.nasa.gov/opendap/allData/ghrsst/data/GDS2/L4/GLOB/JPL/MUR/v4.1/). The user must specify the minimum and maximum latitude and longitude limits within the interval (-90, 90) and (-180, 180) respectively.
An object of class "satin"
. See satin-class
for details.
Héctor Villalobos and Eduardo González-Rodríguez
read.nasaoc
for reading NASA's oceancolor web page data, read.osunpp
for reading ocean productivity data, and read.cmems
for data from Copernicus Marine Service.
if(interactive()){ # read a single file, look at its structure and plot sst1km <- read.nasaoc("20130101090000-JPL-L4_GHRSST-SSTfnd-MUR-GLOB-v02.0-fv04.1.nc", lats=c(20, 30), lons=c(-130, -105)) sst1km str(sst1km) plot(sst1km) # read several files residing in the working directory files <- list.files(pattern = glob2rx("*.nc")) lats <- c(20, 30) lons <- c(-130, -105) mSST <- read.ghrsst(files, lats, lons) # plotting the first processed file plot(mSST) # plotting the second processed file plot(mSST, period = 2) }
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.