Last chance! 50% off unlimited learning
Sale ends in
Extract the raw array data as an expanded data frame. This can be the entire
variable/s or after dimension-slicing using hyper_filter()
expressions with
dimension values expanded appropriately for each element in the arrays (one
row per element).
hyper_tibble(x, ..., na.rm = TRUE, force = FALSE)# S3 method for character
hyper_tibble(x, ..., na.rm = TRUE, force = FALSE)
# S3 method for tidync
hyper_tibble(x, ..., na.rm = TRUE, force = FALSE)
a tbl_df
NetCDF file, connection object, or tidync
object
arguments to `hyper_filter``
if TRUE
these rows are not included in the output when all
variables are NA
ignore caveats about large extraction and just do it
The size of an extraction is checked and if quite large there is an a user-controlled
prompt to proceed or cancel. This can be disabled with options(tidync.large.data.check = FALSE)
please see hyper_array()
for more details.
The function hyper_tibble()
will act on an existing tidync object or a source
string.
By default all variables in the active grid are returned, use select_var
to
limit.
hyper_array()
and hyper_tbl_cube()
which are also delay-breaking
functions that cause data to be read
l3file <- "S20080012008031.L3m_MO_CHL_chlor_a_9km.nc"
f <- system.file("extdata", "oceandata", l3file, package= "tidync")
rnc <- tidync(f)
hyper_filter(rnc)
library(dplyr)
lapply(hyper_array(f, lat = lat > 0, lon = index > 3000), dim)
ht <- hyper_tibble(rnc) %>%
filter(!is.na(chlor_a))
ht
library(ggplot2)
ggplot(ht %>% filter(!is.na(chlor_a)),
aes(x = lon, y = lat, fill = chlor_a)) + geom_tile()
Run the code above in your browser using DataLab