Description Usage Arguments Details Value Examples
View source: R/read_L3_file_hdf5.R
Read the compound types (i.e. tables of variables) from ocean colour L3 NetCDF files.
1 2 3 4 | read_binlist(file)
read_compound(file, compound_vars = NULL, select_stat = c("sum",
"sum_squared"))
|
file |
file path |
compound_vars |
the variables to read |
select_stat |
defaults to "sum" and "sum_squared" |
‘read_binlist' for just the ’BinList' 'read_compound' for just the compound data (not implemented) read_L3_file for everything at once
Compound vars we would usually want for MODISA are "BinList" and 'c("Rrs_443", "Rrs_488", "Rrs_555", "Rrs_547")' since these are used for calculating chlorophyll-a. This function is not very general yet, you'll always get the BinList. This function is specific to files in this form, for any of the platforms (MODISA here): https://oceandata.sci.gsfc.nasa.gov/MODIS-Aqua/L3BIN
data frame of bin numbers, number of observations and scenes, weights and time record, a data frame of the compound variables and bin details
1 2 3 4 5 6 7 | f <- system.file("extdata", "ocfiles", "S2008001.L3b_DAY_CHL.nc", package = "croc")
bins <- read_binlist(f)
bin2lonlat(bins$bin_num, 2160)
bin2bounds(bins$bin_num, 2160)
read_L3_file(system.file("extdata/ocfiles/S2008001.L3b_DAY_RRS.nc", package = "croc"))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.