-
Notifications
You must be signed in to change notification settings - Fork 1
/
README.Rmd
65 lines (40 loc) · 1.8 KB
/
README.Rmd
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
---
output: github_document
---
<!-- README.md is generated from README.Rmd. Please edit that file -->
```{r, echo = FALSE}
knitr::opts_chunk$set(
collapse = TRUE,
comment = "#>",
fig.path = "README-"
)
```
[![Travis-CI Build Status](https://travis-ci.org/sosoc/croc.svg?branch=master)](https://travis-ci.org/sosoc/croc)
[![AppVeyor Build Status](https://ci.appveyor.com/api/projects/status/github/sosoc/croc?branch=master&svg=true)](https://ci.appveyor.com/project/sosoc/croc)
# croc
The goal of croc is to allow R users to easily work with ocean colour data.
## Installation
You can install croc from github with:
```{r gh-installation, eval = FALSE}
# install.packages("devtools")
devtools::install_github("sosoc/croc")
```
## Example
This is a basic example to read a L3bin file and map it.
```{r example}
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](CONDUCT.md). By participating in this project you agree to abide by its terms.
# Note
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.