knitr::opts_chunk$set( collapse = TRUE, comment = "#>", fig.path = "README-" )
The goal of croc is to allow R users to easily work with ocean colour data.
You can install croc from github with:
# install.packages("devtools") devtools::install_github("sosoc/croc")
This is a basic example to read a L3bin file and map it.
library(croc) file <- system.file("extdata", "ocfiles", "S2008001.L3b_DAY_CHL.nc", package = "croc") bin <- read_binlist(f) dat <- read_compound(f) read_compound(file, compound_vars = c("Rrs_443", "Rrs_488", "Rrs_555", "Rrs_547"))
There are helper functions to generate longitude / latitude coordinates for the bins (centre or corners). These bins are a sparse, non-rectangular, grid on a Sinusoidal projection, see
https://oceandata.sci.gsfc.nasa.gov/
https://oceancolor.gsfc.nasa.gov/SeaWiFS/TECH_REPORTS/PreLPDF/PreLVol32.pdf
Please note that this project is released with a Contributor Code of Conduct. By participating in this project you agree to abide by its terms.
An earlier version of this package imported from https://github.com/AustralianAntarcticDivision/rrshdf4 to read the old HDF4 L3bin format. This is no longer necessary, and read support is provided for the NetCDF 4.0 (HDF5) version of the files from oceandata.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.