Metadata-Version: 2.4
Name: mira-omf
Version: 3.3.2
Summary: API Library for Open Mining Format
License-Expression: MIT
License-File: LICENSE
License-File: THIRD_PARTY_SOFTWARE.rst
Keywords: geology,geophysics,earth sciences
Author: Mira Geoscience
Author-email: support@mirageoscience.com
Maintainer: Dominique Fournier
Maintainer-email: dominiquef@mirageoscience.com
Requires-Python: >=3.10,<4.0
Classifier: Development Status :: 4 - Beta
Classifier: Natural Language :: English
Classifier: Operating System :: MacOS
Classifier: Operating System :: Microsoft :: Windows
Classifier: Operating System :: POSIX
Classifier: Operating System :: Unix
Classifier: Programming Language :: Python
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Classifier: Programming Language :: Python :: 3.13
Classifier: Programming Language :: Python :: 3.14
Classifier: Topic :: Scientific/Engineering
Classifier: Topic :: Scientific/Engineering :: Mathematics
Classifier: Topic :: Scientific/Engineering :: Physics
Requires-Dist: geoh5py (>=0.12.0b5,<0.13.dev)
Requires-Dist: numpy (>=1.26.0,<1.27.0)
Requires-Dist: properties (==0.6.*)
Requires-Dist: pypng (>=0.20220715,<0.20220716)
Requires-Dist: six (>=1.16,<2.0)
Requires-Dist: vectormath (==0.2.*)
Project-URL: Homepage, https://www.mirageoscience.com/mining-industry-software/python-integration/
Project-URL: Repository, https://github.com/MiraGeoscience/omf
Description-Content-Type: text/x-rst

omf
***

.. image:: https://img.shields.io/pypi/v/mira-omf.svg
    :target: https://pypi.python.org/pypi/mira-omf
    :alt: Latest PyPI version

.. image:: https://readthedocs.org/projects/omf/badge/?version=stable
    :target: http://omf.readthedocs.io/en/stable/
    :alt: Documentation

.. image:: https://img.shields.io/badge/license-MIT-blue.svg
    :target: https://github.com/MiraGeoscience/omf/blob/main/LICENSE
    :alt: MIT license

.. image:: https://github.com/MiraGeoscience/omf/actions/workflows/pytest-windows.yml/badge.svg
    :target: https://github.com/MiraGeoscience/omf/actions/workflows/pytest-windows.yml
    :alt: pytest


API library for Open Mining Format, a new standard for mining data backed by
the `Global Mining Standards & Guidelines Group <https://gmggroup.org/>`_.


.. warning::

    This is a fork created by Mira Geoscience for interoperability with the
    geoh5 file format. It is not maintained by GMG.

    The main additions are two scripts for converting between OMF and geoh5:

    - OMF to geoh5 file format: `omf.scripts.omf_to_geoh5`
    - Geoh5 to OMF: `omf.scripts.geoh5_to_omf`

    The following objects are supported for conversion between OMF and geoh5:

    - Scatter data `omf.pointet.PointSetElement` to `geoh5py.objects.Points`
    - Curve data `omf.lineset.LineSetElement` to `geoh5py.objects.Curve`
    - Surface data `omf.surface.SurfaceElement` to `geoh5py.objects.Surface`
    - 3D Grid data `omf.volume.VolumeElement` to `geoh5py.objects.BlockModel`

    The following data types are supported for conversion between OMF and geoh5:

    - Float data arrays
    - Integer data arrays
    - String data arrays
    - Referenced data with colormap arrays

    Note that "no-data-value" are not supported by the OMF standard for Integer data arrays.
    When converting from geoh5 to OMF, any Integer data arrays containing no-data-values are converted to Float data arrays.


Why?
----

An open-source serialization format and API library to support data interchange
across the entire mining community.

Scope
-----

This library provides an abstracted object-based interface to the underlying
OMF serialization format, which enables rapid development of the interface while
allowing for future changes under the hood.

Goals
-----

- The goal of Open Mining Format is to standardize data formats across the
  mining community and promote collaboration
- The goal of the API library is to provide a well-documented, object-based
  interface for serializing OMF files

Alternatives
------------

OMF is intended to supplement the many alternative closed-source file formats
used in the mining community.

Connections
-----------

This library makes use of the `properties <https://github.com/seequent/properties>`_
open-source project, which is designed and publicly supported by
`Seequent <https://seequent.com>`_.

Connection to the geoh5 format makes use of `geoh5py <https://mirageoscience-geoh5py.readthedocs-hosted.com/>`_
publicly supported by `Mira Geoscience <https://mirageoscience.com/>`_

Installation
------------

To install the repository, ensure that you have
`pip installed <https://pip.pypa.io/en/stable/installing/>`_ and run:

.. code:: bash

    pip install omf

Or from `github <https://github.com/GMSGDataExchange/omf>`_:

.. code:: bash

    git clone https://github.com/GMSGDataExchange/omf.git
    cd omf
    pip install -e .


License
^^^^^^^
MIT License

Copyright (c) 2017 Global Mining Standards and Guidelines Group
Copyright (c) 2022-2025 Mira Geoscience

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.


Third Party Software
^^^^^^^^^^^^^^^^^^^^
The mira-omf Software may provide links to third party libraries or code (collectively "Third Party Software")
to implement various functions. Third Party Software does not comprise part of the Software.
The use of Third Party Software is governed by the terms of such software license(s).
Third Party Software notices and/or additional terms and conditions are located in the
`THIRD_PARTY_SOFTWARE.rst`_ file.

.. _THIRD_PARTY_SOFTWARE.rst: THIRD_PARTY_SOFTWARE.rst

