Skip to main content

oceancube

R package
ocean data
reproducible workflows
R tools for validated multidimensional ocean data cubes.

oceancube is an R package for representing rectilinear ocean data under a validated five-dimensional contract: longitude, latitude, depth, time, and variable.

Current release

Stable source release: 0.2.0

The package is distributed from GitHub rather than CRAN at this stage.

remotes::install_github("qselmer/oceancube")

Repository · Package documentation · OceanCube Handbook

Core scope

The current API supports:

  • validation and structural inspection of ocean cubes;
  • in-memory and read-only local NetCDF backends;
  • coordinate- and position-based selection;
  • spatial and temporal cropping;
  • point, profile, time-series, and transect extraction;
  • map, section, profile, transect, and time-series visualization;
  • temporal aggregation, climatologies, and anomalies;
  • descriptive per-cell temporal trends;
  • polygon masking;
  • grid-cell area, layer thickness, cell volume, and polygon weights;
  • provenance and quality metadata for reproducible workflows.

Scientific boundary

oceancube handles data representation, validated manipulation, extraction, visualization, temporal transformations, masking, and geometric weights. It does not claim to provide general spatial-indicator inference, trend significance testing, change-point analysis, regridding, interpolation, or a complete remote-data acquisition system.

This boundary is deliberate: the package is infrastructure for reproducible marine analysis rather than a black-box ecological model.

Reproducibility

The repository includes package metadata, tests, documentation, an MIT license, citation metadata, versioned source releases, and a navigable handbook. Scientific examples are designed to keep transformations explicit and auditable.