Learn R Programming

⚠️There's a newer version (0.7.1) of this package.Take me there.

gdalcubes (version 0.5.1)

Earth Observation Data Cubes from Satellite Image Collections

Description

Processing collections of Earth observation images as on-demand multispectral, multitemporal raster data cubes. Users define cubes by spatiotemporal extent, resolution, and spatial reference system and let 'gdalcubes' automatically apply cropping, reprojection, and resampling using the 'Geospatial Data Abstraction Library' ('GDAL'). Implemented functions on data cubes include reduction over space and time, applying arithmetic expressions on pixel band values, moving window aggregates over time, filtering by space, time, bands, and predicates on pixel values, exporting data cubes as 'netCDF' or 'GeoTIFF' files, and plotting. The package implements lazy evaluation and multithreading. All computational parts are implemented in C++, linking to the 'GDAL', 'netCDF', 'CURL', and 'SQLite' libraries. See Appel and Pebesma (2019) for further details.

Copy Link

Version

Install

install.packages('gdalcubes')

Monthly Downloads

1,168

Version

0.5.1

License

MIT + file LICENSE

Issues

Pull Requests

Stars

Forks

Maintainer

Marius Appel

Last Published

December 3rd, 2021

Functions in gdalcubes (0.5.1)

apply_pixel.array

Apply a function over pixels in a four-dimensional (band, time, y, x) array
animate

Animate a data cube as an image time series
apply_time

Apply a function over (multi-band) pixel time series
add_images

Add images to an existing image collection
aggregate_time

Aggregate data cube time series to lower temporal resolution
apply_pixel.cube

Apply arithmetic expressions over all pixels of a data cube
add_collection_format

Download and install an image collection format from a URL
apply_time.array

Apply a function over pixel time series in a four-dimensional (band, time, y, x) array
apply_pixel

Apply a function over (multi-band) pixels
as_array

Convert a data cube to an in-memory R array
collection_formats

List predefined image collection formats
crop

Crop data cube extent by space and/or time
srs

Query data cube properties
reduce_time.array

Apply a function over time and bands in a four-dimensional (band, time, y, x) array and reduce time dimension
ny

Query data cube properties
memsize

Query data cube properties
slice_time

Extract a single time slice from a data cube
join_bands

Join bands of two identically shaped data cubes
nx

Query data cube properties
reduce_time

Reduce multidimensional data over time
as_json

Query data cube properties
cube_view

Create or update a spatiotemporal data cube view
stack_cube

Create a data cube from a set of images with the same spatial extent and spatial reference system
filter_pixel

Filter data cube pixels by a user-defined predicate on band values
gdalcubes

gdalcubes: Earth Observation Data Cubes from Satellite Image Collections
image_mask

Create a mask for images in a raster data cube
raster_cube_dummy

Create a dummy data cube with a fill value
print.cube_view

Print data cube view information
raster_cube

Create a data cube from an image collection
print.cube

Print data cube information
image_collection

Load an existing image collection from a file
window_time.cube

Apply a moving window function over the time dimension of a data cube
fill_time

Fill NA data cube pixels by simple time series interpolation
window_time

Apply a moving window operation over time
write_chunk_from_array

Write chunk data of a cube to stdout or a file
gdalcubes_gdal_has_geos

Check if GDAL was built with GEOS
gdalcubes_gdalformats

Get available GDAL drivers
create_image_collection

Create an image collection from a set of GDAL datasets or files
names.cube

Query data cube properties
print.image_collection

Print image collection information
proj4

Query data cube properties
filter_geom

Filter data cube pixels by a polygon
nbands

Query data cube properties
size

Query data cube properties
gdalcubes_selection

Select a data cube band by name
dim.cube

Query data cube properties
dimension_bounds

Query coordinate bounds for all dimensions of a data cube
dimensions

Query data cube properties
ncdf_cube

Read a data cube from an existing netCDF file
nt

Query data cube properties
dimension_values

Query coordinate values for all dimensions of a data cube
read_chunk_as_array

Read chunk data of a data cube from stdin or a file
reduce_space

Reduce multidimensional data over space
slice_space

Extract a single time series (spatial slice) from a data cube
apply_time.cube

Apply a user-defined R function over (multi-band) pixel time series
bands

Query data cube properties
gdalcubes_version

Query gdalcubes version information
chunk_apply

Apply an R function on chunks of a data cube
extent

Derive the spatiotemporal extent of an image collection
gdalcubes_options

Set or read global options of the gdalcubes package
reduce_space.array

Apply a function over space and bands in a four-dimensional (band, time, y, x) array and reduce spatial dimensions
gdalcubes_gdalversion

Get the GDAL version used by gdalcubes
.copy_cube

Create a data cube proxy object copy
plot.cube

Plot a gdalcubes data cube
query_points

Query data cube values at irregular spatiotemporal points
pack_minmax

Helper function to define packed data exports by min / max values
reduce_space.cube

Reduce a data cube over spatial (x,y or lat,lon) dimensions
st_as_stars.cube

Coerce gdalcubes object into a stars object
select_bands

Select bands of a data cube
select_time

Select time slices of a data cube
zonal_statistics

Query summary statistics of data cube values over polygons
reduce_time.cube

Reduce a data cube over the time dimension
query_timeseries

Query data cube timeseries at irregular spatial points
rename_bands

Rename bands of a data cube
write_ncdf

Export a data cube as netCDF file(s)
write_tif

Export a data cube as a collection of GeoTIFF files
stac_image_collection

Create an image collection from a STAC feature collection