knitr::opts_chunk$set(
  collapse = TRUE,
  comment = "#>",
  fig.path = "README-"
)

isin

Support the NASA / GlobColour / CCI ISIN grid used for MODIS L3BIN satellite products. This package can be installed as follow:

devtools::install_github("PMassicotte/isin")

Examples

library(isin)

## Create test dataset
bin_num = c(245535, 245536, 247290, 249046, 249047, 250809)

Convert bin index to latlon

The bin2latlon() function converts a MODIS bin index to longitude and latitude.

df <- bin2latlon(bin_num)
df

Convert latlon to bin index

The latlon2bin() function converts a pair of longitude/latitude to a MODIS bin index.

latlon2bin(lat = df$latitude, lon = df$longitude)

Credit

The C/C++ code is almost entierly based on oceancolor algorithm. Credit should be given to them.



PMassicotte/isin documentation built on May 7, 2019, 11:51 p.m.