Package: gdalcubes 0.7.0

Marius Appel

gdalcubes: Earth Observation Data Cubes from Satellite Image Collections

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, plotting, and extraction from spatial and or spatiotemporal features. All computational parts are implemented in C++, linking to the 'GDAL', 'netCDF', 'CURL', and 'SQLite' libraries. See Appel and Pebesma (2019) <doi:10.3390/data4030092> for further details.

Authors:Marius Appel [aut, cre], Edzer Pebesma [ctb], Roger Bivand [ctb], Jeroen Ooms [ctb], Lewis Van Winkle [cph], Ole Christian Eidheim [cph], Howard Hinnant [cph], Adrian Colomitchi [cph], Florian Dang [cph], Paul Thompson [cph], Tomasz Kamiński [cph], Dropbox, Inc. [cph]

gdalcubes_0.7.0.tar.gz
gdalcubes_0.7.0.tar.gz(r-4.5-noble)gdalcubes_0.7.0.tar.gz(r-4.4-noble)
gdalcubes.pdf |gdalcubes.html
gdalcubes/json (API)
NEWS

# Install 'gdalcubes' in R:
install.packages('gdalcubes', repos = c('https://cran.r-universe.dev', 'https://cloud.r-project.org'))

Peer review:

Bug tracker:https://github.com/appelmar/gdalcubes/issues

Uses libs:
  • gdal– Geospatial Data Abstraction Library
  • netcdf– Interface for scientific data access to large binary data
  • c++– GNU Standard C++ Library v3

gdalnetcdfcpp

3.55 score 356 scripts 814 downloads 59 exports 4 dependencies

Last updated 10 months agofrom:f1fa02252b. Checks:OK: 1 WARNING: 1. Indexed: no.

TargetResultDate
Doc / VignettesOKDec 25 2024
R-4.5-linux-x86_64WARNINGDec 25 2024

Exports:add_collection_formatadd_imagesaggregate_spaceaggregate_timeanimateapply_pixelapply_timeas_arrayas_jsonbandschunk_applycollection_formatscreate_image_collectioncropcube_viewdimension_boundsdimension_valuesdimensionsextentextract_geomfill_timefilter_geomfilter_pixelgdalcubes_gdal_has_geosgdalcubes_gdalformatsgdalcubes_gdalversiongdalcubes_optionsgdalcubes_set_gdal_configimage_collectionimage_maskjoin_bandsjson_cubememsizenbandsncdf_cubentnxnypack_minmaxproj4raster_cuberead_chunk_as_arrayreduce_spacereduce_timerename_bandsselect_bandsselect_timesizeslice_spaceslice_timesrsst_as_stars.cubestac_image_collectionstack_cubewindow_spacewindow_timewrite_chunk_from_arraywrite_ncdfwrite_tif

Dependencies:BHjsonlitencdf4Rcpp

Creating data cubes from local MODIS imagery

Rendered fromgc01_MODIS.Rmdusingknitr::rmarkdownon Dec 25 2024.

Last update: 2024-03-07
Started: 2022-03-08

Readme and manuals

Help Manual

Help pageTopics
Create a data cube proxy object copy.copy_cube
Download and install an image collection format from a URLadd_collection_format
Add images to an existing image collectionadd_images
Spatial aggregation of data cubesaggregate_space
Aggregate data cube time series to lower temporal resolutionaggregate_time
Animate a data cube as an image time seriesanimate
Apply a function over (multi-band) pixelsapply_pixel
Apply a function over pixels in a four-dimensional (band, time, y, x) arrayapply_pixel.array
Apply arithmetic expressions over all pixels of a data cubeapply_pixel.cube
Apply a function over (multi-band) pixel time seriesapply_time
Apply a function over pixel time series in a four-dimensional (band, time, y, x) arrayapply_time.array
Apply a user-defined R function over (multi-band) pixel time seriesapply_time.cube
Convert a data cube to an in-memory R arrayas_array
Query data cube propertiesas_json
Convert a data cube to a data.frameas.data.frame.cube
Query data cube propertiesbands
Apply an R function on chunks of a data cubechunk_apply
List predefined image collection formatscollection_formats
Create an image collection from a set of GDAL datasets or filescreate_image_collection
Crop data cube extent by space and/or timecrop
Create or update a spatiotemporal data cube viewcube_view
Query data cube propertiesdim.cube
Query coordinate bounds for all dimensions of a data cubedimension_bounds
Query coordinate values for all dimensions of a data cubedimension_values
Query data cube propertiesdimensions
Derive the spatiotemporal extent of an image collectionextent
Extract values from a data cube by spatial or spatiotemporal featuresextract_geom
Fill NA data cube pixels by simple time series interpolationfill_time
Filter data cube pixels by a polygonfilter_geom
Filter data cube pixels by a user-defined predicate on band valuesfilter_pixel
gdalcubes: Earth Observation Data Cubes from Satellite Image Collectionsgdalcubes
Check if GDAL was built with GEOSgdalcubes_gdal_has_geos
Get available GDAL driversgdalcubes_gdalformats
Get the GDAL version used by gdalcubesgdalcubes_gdalversion
Set or read global options of the gdalcubes packagegdalcubes_options
Subsetting data cubes$.cube gdalcubes_selection [.cube
Set GDAL config optionsgdalcubes_set_gdal_config
Load an existing image collection from a fileimage_collection
Create a mask for images in a raster data cubeimage_mask
Join bands of two identically shaped data cubesjoin_bands
Read a data cube from a json description filejson_cube
Query data cube propertiesmemsize
Query data cube propertiesnames.cube
Query data cube propertiesnbands
Read a data cube from an existing netCDF filencdf_cube
Query data cube propertiesnt
Query data cube propertiesnx
Query data cube propertiesny
Helper function to define packed data exports by min / max valuespack_minmax
Plot a gdalcubes data cubeplot.cube
Model predictionpredict.cube
Print data cube informationprint.cube
Print data cube view informationprint.cube_view
Print image collection informationprint.image_collection
Query data cube propertiesproj4
Create a data cube from an image collectionraster_cube
Read chunk data of a data cube from stdin or a fileread_chunk_as_array
Reduce multidimensional data over spacereduce_space
Apply a function over space and bands in a four-dimensional (band, time, y, x) array and reduce spatial dimensionsreduce_space.array
Reduce a data cube over spatial (x,y or lat,lon) dimensionsreduce_space.cube
Reduce multidimensional data over timereduce_time
Apply a function over time and bands in a four-dimensional (band, time, y, x) array and reduce time dimensionreduce_time.array
Reduce a data cube over the time dimensionreduce_time.cube
Rename bands of a data cuberename_bands
Select bands of a data cubeselect_bands
Select time slices of a data cubeselect_time
Query data cube propertiessize
Extract a single time series (spatial slice) from a data cubeslice_space
Extract a single time slice from a data cubeslice_time
Query data cube propertiessrs
Coerce gdalcubes object into a stars objectst_as_stars.cube
Create an image collection from a STAC feature collectionstac_image_collection
Create a data cube from a set of images with the same spatial extent and spatial reference systemstack_cube
Apply a moving window (focal) operation or a convolution kernel over spatial dimensions of a data cube.window_space
Apply a moving window operation over the time dimension of a data cubewindow_time
Write chunk data of a cube to stdout or a filewrite_chunk_from_array
Export a data cube as netCDF file(s)write_ncdf
Export a data cube as a collection of GeoTIFF fileswrite_tif