Description Usage Arguments Details Value Author(s) Examples
View source: R/read.oceancolor.R
Remote sensing data downloaded from the Oceancolor web page (see details) for a user defined area is extracted from hdf files
1 | read.oceancolor(file, lons, lats)
|
file |
name of the hdf 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 relies on the h5r package, therefore only hdf version 5 (v5) files can be read. It has been tested with files with data from Aqua Modis and SeaWiFS sensors, downloaded from the oceancolor web page (http://oceancolor.gsfc.nasa.gov/cgi/l3). These hdf files are available as v4, but they were converted to v5 with h4h5tools (http://www.hdfgroup.org/h4toh5). 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” (a list) with components:
longitude |
a vector of longitudes of the area of interest (aoi) |
latitude |
a vector of latitudes of the aoi |
rs.data |
an array of remote sensed data |
rs.name |
full name of remote sensed variable |
rs.units |
variable measurement units |
period |
date or averaging period |
itype |
a string indicating the type of product |
Héctor Villalobos and Eduardo González-Rodríguez
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 | ## Not run:
# read a single file
sst <- read.oceancolor("A20101822010212.L3m_MO_SST4_4.h5",
lats=c(20, 30), lons=c(-130, -105))
# read several files residing in a directory
setwd("D:/data")
fi <- list.files(pattern = glob2rx("*.h5"))
lats <- c(20, 25)
lons <- c(-115, -110)
mSST <- read.oceancolor(fi, lats, lons)
# plotting the first processed file
plotSatin(mSST)
# plotting the second processed file
plotSatin(mSST, image = 2)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.