GridDataFormats
Reading and writing of data on regular grids in Python
What it is and what it does
GridDataFormats is a Python library for reading and writing n-dimensional datasets stored on regular grids. It abstracts away format-specific details by providing a unified Grid object that can load grid data from files, hold it in memory, and write it back out. The package is designed for scientific computing workflows where you need to work with gridded data—such as density maps, volumetric fields, or other regularly-sampled multidimensional arrays—without worrying about the underlying file format.
The package depends on numpy for array operations, scipy for numerical algorithms, and mrcfile for handling MRC-format files. It supports current Python versions and runs on macOS, Windows, and POSIX systems. With active maintenance since its first release in 2011 and a recent release on 2026-05-23, it is a mature, stable library used in scientific and research contexts.
Use it for:
- Load volumetric density maps from molecular dynamics simulations and manipulate them as Grid objects.
- Convert between different grid data file formats while preserving the underlying n-dimensional array.
- Store computed scalar or vector fields on regular grids for later analysis or visualization.
- Integrate grid data I/O into scientific data pipelines that work with multidimensional arrays.
Worth the install?
AI-flagged interpretation of the facts on this page — verify before relying
GridDataFormats reads and writes n-dimensional grid data from files, providing a unified Grid object interface for working with regular gridded datasets.
Yes. GridDataFormats is a mature, actively maintained library with low install friction and no known vulnerabilities. It fills a clear niche in scientific Python for unified grid data I/O. The LGPL-3.0-or-later license is permissive for most use cases but requires derivative works to remain open-source. Install it if you work with gridded scientific data.
Install
griddataformats on PyPI
pip
pip install griddataformatsuv
uv add griddataformatspoetry
poetry add griddataformatsInstalling GridDataFormats
Before you install
Low friction: pure Python wheel with three well-established scientific dependencies. Active maintenance with a release 83 days ago and ongoing repository activity.
License in practice
Licensed under LGPL-3.0-or-later (copyleft). You may use and modify the package freely, but any derivative work must also be distributed under LGPL or a compatible license.
Quickstart
pip install GridDataFormats
import gridDataFormats.core as gdf
grid = gdf.Grid(array=data, origin=origin, delta=delta)
Requires Python 3.11 or later; numpy, scipy, and mrcfile must be installed.
Verify before relying
- Specific file formats supported beyond what the description excerpt mentions.
- Performance characteristics for large datasets or typical use case sizes.
- Whether the Grid object API is stable or subject to breaking changes.
- Actual monthly download volume and user base size.
Package facts
| License | LGPL-3.0-or-later (copyleft) |
| Python support | supports the current Python release (>=3.11) |
| Install friction | low — pure-Python wheel |
| Runtime dependencies | 3 — numpy, scipy, mrcfile |
| Maintenance | actively maintained — 83 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 256,919/month — #8,453 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: griddataformats-1.2.0-py3-none-any.whl
Keywords: science, array, density
Tags
More Scientific/Engineering packages
NumPy provides an N-dimensional array object…
permissive · top 100 on PyPI
pandaspandas provides fast, flexible data structures…
permissive · top 100 on PyPI
scipyscipy provides numerical algorithms for…
permissive · top 100 on PyPI
scikit-learnscikit-learn provides a comprehensive Python…
permissive · top 1,000 on PyPI
dilldill extends Python's pickle module to…
permissive · top 1,000 on PyPI
multiprocessMultiprocess is an enhanced fork of Python's…
permissive · top 1,000 on PyPI
npTDMSRead and write TDMS files (LabVIEW data format)…
copyleft · top 15,000 on PyPI
regionmaskregionmask creates spatial masks for gridded…
permissive · top 15,000 on PyPI
spatialdataSpatialData is a data framework and…
permissive · top 15,000 on PyPI
geoh5pygeoh5py provides a Python API to read, write,…
copyleft · top 15,000 on PyPI
nibabelNiBabel reads and writes neuroimaging file…
permissive · top 5,000 on PyPI
morecantileConstruct and work with map tile grids…
permissive · top 15,000 on PyPI
rasterioRasterio reads and writes geospatial raster…
permissive · top 5,000 on PyPI
sparseProvides multi-dimensional sparse array data…
permissive · top 5,000 on PyPI
asammdfasammdf parses, edits, and exports ASAM MDF…
copyleft · top 5,000 on PyPI
resdataResData reads and writes result files from…
copyleft · top 15,000 on PyPI