read.ghrsst: Read sea surface temperature data from JPL Multi-scale...

View source: R/read.ghrsst.R

read.ghrsstR Documentation

Read sea surface temperature data from JPL Multi-scale Ultra-high Resolution (MUR) SST Project

Description

Read, for a user defined area, SST data from netCDF files downloaded from JPL's Physical Oceanography Distributed Active Archive Center (podaac) web page.

Usage

read.ghrsst(nc, lons, lats)

Arguments

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.

Details

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.

Value

An object of class "satin". See satin-class for details.

Author(s)

Héctor Villalobos and Eduardo González-Rodríguez

References

https://www.ghrsst.org/

See Also

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.

Examples

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)
}

satin documentation built on Sept. 23, 2022, 1:06 a.m.