Skip to main content

Digital Rocks Data

Make downloading and using Digital Rock Data great again!

Run testsContributions WelcomeDocumentation Status

Quick Start

Installation from Github using pip

pip install drd

Loading an Image Dataset

from drd.datasets.eleven_sandstones import load_eleven_sandstones

# xarray DataArray with image data
img = load_eleven_sandstones("Berea", "Berea_2d25um_grayscale.raw") 

# Plot average over z dimension
img.mean(dim='z').plot()

About

Digital Rock Images are three-dimensional datasets of rocks and other porous media.
These are typically acquired using three-dimensional imaging techniques such as Micro-Computer Tomography (MicroCT).

They represent a rich dataset that form a basis for characterization of physical processes involving porous media.

Purpose of the drd library

Digital Rock Images are scattered throughout the web on various hosting sites such as the Digital Rocks Portal, Zenodo, or university specific sites. This library aims to make downloading these datasets easy through a python interface so they can be used in automated image processing workflows, reproducible research, or data science and machine learning worfklows.

Furthermore, these images are associated with metadata about their spatial dimensions which should be considered when loading these image datasets.
The library therefore requires these metadata to be available and creates an xarray DataArray which can keep spatial scale information when loading an image dataset.

Each dataset is linked in this library i.e. no hosting is done by the library itself.

Available Datasets

Digital Rocks Portal:

  • Eleven Sandstones Dataset
    • Berea
    • Bandera Brown
    • Bandera Gray
    • Bentheimer
    • Berea Sister Gray
    • Berea Upper Gray
    • Buff Berea
    • Castle Gate
    • Kirby
    • Leopard
    • Parker

Imperial College London:

Contributing

Authors are encouraged to contribute their own datasets using the correct metadata.
See drd/datasets/eleven_sandstones.py for an example implementation.
Please add corresponding tests and an example to your pull request.

Creation

This package was created during the Transform 22 software sprint.

Metadata

Release files for drd 0.1.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for drd 0.1.2
File Size Uploaded Provenance Actions
drd-0.1.2.tar.gz 23.0 kB Without provenance Details for drd-0.1.2.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for drd 0.1.2
File Interpreter ABI Platform Actions
drd-0.1.2-py3-none-any.whl Python 3 none any Details for drd-0.1.2-py3-none-any.whl

Total release size: 41.3 kB

Release files / drd-0.1.2.tar.gz

Download URL drd-0.1.2.tar.gz
Size 23.0 kB
Tags Source
SHA-256 checksum
How to use checksums
b46c96f7bf56c6c4512ee53f2e71f7ee74770de9519c1362b1b6dbb126a178db
BLAKE2b-256 checksum
How to use checksums
8aa60412b47adbfcb677949439768c7b001db0c5d36d83e5faf9d6d9c498a930
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.0 CPython/3.9.12

Release files / drd-0.1.2-py3-none-any.whl

Download URL drd-0.1.2-py3-none-any.whl
Size 18.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
c3c4f86d0455a489396b91cf6f3cb371c03a412a792f7bf1dadf4208febf90ef
BLAKE2b-256 checksum
How to use checksums
0c0e71747bb01acda029a877baacd798920cf16490c4c7adb813ea4a0c54da65
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.0 CPython/3.9.12

Security for drd 0.1.2

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.1.2 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page