Skip to content

gdalcubes

Earth Observation Data Cubes from Satellite Image Collections

v0.7.4 · May 29, 2026 · MIT + file LICENSE

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, 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.

Downloads

CRAN

1.2K

Last 30 days

3327th

3.4K

Last 90 days

16.8K

Last year

Trend: +23.9% (30d vs prior 30d)

r2u CRAN

99

Last 30 days

319

Last 90 days

1.2K

Last year

Trend: +10% (30d vs prior 30d)

autoCRAN

5

Last 7 days

18

Last 30 days

0

All-time

autoCRAN-only: this name is served only by autoCRAN, so the count is exact.

conda-forge CRAN

619

Last 30 days

2.2K

Last 90 days

16.4K

Last year

Trend: -38.4% (30d vs prior 30d)

CRAN Check Status

13 OK
Show all 13 flavors
Flavor Status
r-devel-linux-x86_64-debian-clang OK
r-devel-linux-x86_64-debian-gcc OK
r-devel-linux-x86_64-fedora-clang OK
r-devel-linux-x86_64-fedora-gcc OK
r-devel-windows-x86_64 OK
r-oldrel-macos-arm64 OK
r-oldrel-macos-x86_64 OK
r-oldrel-windows-x86_64 OK
r-patched-linux-x86_64 OK
r-release-linux-x86_64 OK
r-release-macos-arm64 OK
r-release-macos-x86_64 OK
r-release-windows-x86_64 OK

Check History

OK 13 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE Jun 3, 2026
ERROR 12 OK · 0 NOTE · 0 WARNING · 1 ERROR · 0 FAILURE May 13, 2026
ERROR r-devel-linux-x86_64-debian-gcc

whether package can be installed

Installation failed.
See ‘/home/hornik/tmp/R.check/r-devel-gcc/Work/PKGS/gdalcubes.Rcheck/00install.out’ for details.
OK 13 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE May 2, 2026
NOTE 11 OK · 3 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE Apr 22, 2026
NOTE r-oldrel-macos-arm64

installed package size

installed size is 97.5Mb
  sub-directories of 1Mb or more:
    L8NY18   2.2Mb
    libs    94.0Mb
NOTE r-oldrel-macos-x86_64

installed package size

installed size is 100.1Mb
  sub-directories of 1Mb or more:
    L8NY18   2.2Mb
    libs    96.6Mb
NOTE r-oldrel-windows-x86_64

installed package size

installed size is 110.9Mb
  sub-directories of 1Mb or more:
    L8NY18   2.3Mb
    gdal     3.0Mb
    libs    95.3Mb
    proj     9.0Mb
ERROR 10 OK · 3 NOTE · 0 WARNING · 1 ERROR · 0 FAILURE Apr 18, 2026
ERROR r-devel-windows-x86_64

whether package can be installed

Installation failed.
See 'd:/Rcompile/CRANpkg/local/4.6/gdalcubes.Rcheck/00install.out' for details.
NOTE r-oldrel-macos-arm64

installed package size

installed size is 97.5Mb
  sub-directories of 1Mb or more:
    L8NY18   2.2Mb
    libs    94.0Mb
NOTE r-oldrel-macos-x86_64

installed package size

installed size is 100.1Mb
  sub-directories of 1Mb or more:
    L8NY18   2.2Mb
    libs    96.6Mb
NOTE r-oldrel-windows-x86_64

installed package size

installed size is 110.9Mb
  sub-directories of 1Mb or more:
    L8NY18   2.3Mb
    gdal     3.0Mb
    libs    95.3Mb
    proj     9.0Mb
NOTE 11 OK · 3 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE Mar 10, 2026
NOTE r-oldrel-macos-arm64

installed package size

installed size is 97.5Mb
  sub-directories of 1Mb or more:
    L8NY18   2.2Mb
    libs    94.0Mb
NOTE r-oldrel-macos-x86_64

installed package size

installed size is 100.1Mb
  sub-directories of 1Mb or more:
    L8NY18   2.2Mb
    libs    96.6Mb
NOTE r-oldrel-windows-x86_64

installed package size

installed size is 110.9Mb
  sub-directories of 1Mb or more:
    L8NY18   2.3Mb
    gdal     3.0Mb
    libs    95.3Mb
    proj     9.0Mb

Line coverage

Expression

Tests / Examples

Functions

1070 59 exported

Complexity

5.3 avg / 116 max

Call network

1070 nodes / 1603 edges

Test coverage has not been measured for this package yet; nodes fall back to a neutral fill.

Loading call graph…

Lowest coverage

Per-function coverage is not measured for this package yet.

Code

Structure

Lines of code

46,616

Files

498

Compiled share

75.6%

Has compiled src

Yes

Language breakdown

R 7,430 (15.9%)C/C++/src 35,224 (75.6%)Tests 6 (0%)Docs 3,810 (8.2%)Vignettes 146 (0.3%)

API

Exported functions

59

Internal functions

117

Recent export changes

v0.7.0+1 window_space  −1 gdalcubes_version

Testing & CI

Has tests

Yes

Test-to-code ratio

0.00

testthat edition

CI present

No

CI type

[]

PR gated

No

Docs

Return-value doc rate

74.6%

\dontrun example ratio

12%

Roxygen coverage

100%

Has pkgdown

No

NEWS present

Yes

Health & Security signals

Informational signals; not verdicts.

on.exit coverage

33.3%

Unsafe pattern score

4

Dep constraint coverage

0%

Secret pattern count

0

Bundled 3rd-party code

2 items

Portability & License

Min R version

4.1.0

System requirements

4

C++ standard

License

MIT + file LICENSE

License flags

SPDX valid, OSI approved

History

Versions

23

First release

2019-05-24

Latest release

2026-05-29

Avg cadence

88 days

Cold removal rate

100%

Dep drift

1

LOC over versions

v0.1.0: 45,293 LOCv0.2.0: 49,371 LOCv0.2.1: 49,354 LOCv0.2.2: 49,989 LOCv0.2.3: 49,989 LOCv0.2.4: 49,994 LOCv0.2.5: 49,983 LOCv0.3.0: 37,586 LOCv0.3.1: 37,646 LOCv0.4.0: 39,687 LOCv0.4.1: 39,692 LOCv0.5.0: 43,178 LOCv0.5.1: 43,174 LOCv0.6.0: 44,893 LOCv0.6.1: 44,907 LOCv0.6.2: 46,347 LOCv0.6.3: 46,385 LOCv0.6.4: 46,410 LOCv0.7.0: 47,465 LOCv0.7.1: 47,151 LOCv0.7.2: 47,164 LOCv0.7.3: 47,170 LOCv0.7.4: 46,616 LOC

Per-file churn detail lives in the source pipeline: https://github.com/r-observatory/cran-code-metrics.

Reverse Dependencies (4)

Dependency Network

Dependencies Reverse dependencies Rcpp jsonlite ncdf4 earthdatalogin sits stacr theiaR gdalcubes

Version History

24 tracked
updated 0.7.4 ← 0.7.3 diff May 29, 2026
new 0.7.3 Mar 10, 2026
updated 0.7.3 ← 0.7.2 diff Jan 18, 2026
updated 0.7.2 ← 0.7.1 diff Dec 1, 2025
updated 0.7.1 ← 0.7.0 diff Mar 19, 2025
updated 0.7.0 ← 0.6.4 diff Mar 6, 2024
updated 0.6.4 ← 0.6.3 diff Apr 13, 2023
updated 0.6.3 ← 0.6.2 diff Jan 18, 2023
updated 0.6.2 ← 0.6.1 diff Oct 9, 2022
updated 0.6.1 ← 0.6.0 diff Mar 22, 2022
updated 0.6.0 ← 0.5.1 diff Mar 7, 2022
updated 0.5.1 ← 0.5.0 diff Dec 2, 2021
updated 0.5.0 ← 0.4.1 diff Oct 27, 2021
updated 0.4.1 ← 0.4.0 diff Jul 28, 2021
updated 0.4.0 ← 0.3.1 diff Jul 12, 2021