csdmpy


Namecsdmpy JSON
Version 0.6.0 PyPI version JSON
download
home_pagehttps://github.com/DeepanshS/csdmpy/
SummaryA python module for the core scientific dataset model.
upload_time2023-11-14 03:32:27
maintainer
docs_urlNone
authorDeepansh Srivastava
requires_python>=3.7
licenseBSD-3-Clause
keywords
VCS
bugtrack_url
requirements numpy setuptools numexpr astropy requests matplotlib
Travis-CI No Travis.
coveralls test coverage No coveralls.
            
# The csdmpy project

|              |                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              |
| ------------ | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| Deployment   | [![PyPI version](https://img.shields.io/pypi/v/csdmpy.svg?style=flat&logo=pypi&logoColor=white)](https://pypi.python.org/pypi/csdmpy) ![PyPI - Python Version](https://img.shields.io/pypi/pyversions/csdmpy)                                                                                                                                                                                                                                                                                                                                                                |
| Build Status | [![Github workflow](<https://img.shields.io/github/actions/workflow/status/deepanshs/csdmpy/continuous-integration-pip.yml?logo=GitHub>)](https://github.com/DeepanshS/csdmpy/actions/workflow/continuous-integration-pip.yml) [![Documentation Status](https://readthedocs.org/projects/csdmpy/badge/?version=stable)](https://csdmpy.readthedocs.io/en/stable/?badge=stable)                                                                                                                                        |
| License      | [![License](https://img.shields.io/badge/License-BSD%203--Clause-blue.svg)](https://opensource.org/licenses/BSD-3-Clause)                                                                                                                                                                                                                                                                                                                                                                                                                                                    |
| Metrics      | [![codecov](https://codecov.io/gh/DeepanshS/csdmpy/branch/master/graph/badge.svg)](https://codecov.io/gh/DeepanshS/csdmpy) ![GitHub issues](https://img.shields.io/github/issues-raw/deepanshs/csdmpy)                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  |
| Citation    | [![DOI](<https://img.shields.io/badge/DOI-PLOS%20ONE%2015(1):%20e0225953-blueviolet>)](https://doi.org/10.1371/journal.pone.0225953)                                                                                                                                                                                                                                                                                                                               |

The _csdmpy_ package is a Python support for the core scientific
dataset (CSD) model file exchange-format.
The package is based on the core scientific dataset (CSD) model which is
designed as a building block in the development of a more sophisticated
portable scientific dataset file standard.
The CSD model is capable of handling a wide variety of
scientific datasets both within and across disciplinary fields.

The main objective of this python package is to facilitate an easy import and
export of the CSD model serialized JSON files for Python users. The
package utilizes Numpy library and, therefore, offers the end users versatility
to process or visualize the imported datasets with any third party package(s)
compatible with Numpy.

For further reading, refer to the [documentation](https://csdmpy.readthedocs.io/en/latest/).

> **See example gallery**
>
> [![View](https://img.shields.io/badge/View-Example%20Gallery-Purple?size=large)](https://csdmpy.readthedocs.io/en/latest/auto_examples/index.html)

## The core scientific dataset (CSD) model

The core scientific dataset (CSD) model is a _light-weight_, _portable_,
_versatile_, and _standalone_ data model capable of handling a variety of
scientific datasets. The model only encapsulates
data values and the minimum metadata, to accurately represent a **_p_-component
dependent variable,
discretely sampled at _M_ unique points in a _d_-dimensional coordinate space**.
The model is not intended to encapsulate
any information on how the data might be acquired, processed, or visualized.

---
### Use cases
The data model is _versatile_ in allowing many **use cases for most spectroscopy,
diffraction, and imaging techniques**.

![](/docs/_static/csdm.png "")

### Data Model

The model supports multi-component datasets associated with continuous
physical quantities that are discretely sampled in a multi-dimensional space
associated with other carefully controlled quantities, for e.g., a mass as a
function of temperature, a current as a function of voltage and time, a signal
voltage as a function of magnetic field gradient strength, a color image with
a red, green, and blue (RGB) light intensity components as a function of two
independent spatial dimensions, or the six components of the symmetric
second-rank diffusion tensor MRI as a function of three independent spatial
dimensions. Additionally, the model supports multiple dependent variables
sharing the same _d_-dimensional coordinate space. For instance,
the simultaneous measurement of current and voltage as a function of time.
Another example would be the simultaneous acquisition of air temperature,
pressure, wind velocity, and
solar-flux as a function of Earth’s latitude and longitude coordinates. We
refer to these dependent variables as _correlated-datasets_.

**Example**
```py
"csdm": {
  "version": "1.0",
  # A list of Linear, Monotonic, or Labeled dimensions of the multi-dimensional space.
  "dimensions": [{
    "type": "linear",
    "count": 1608,
    "increment": "0.08333333333 yr",
    "coordinates_offset": "1880.0416666667 yr",
  }],
  # A list of dependent variables sampling the multi-dimensional space.
  "dependent_variables": [{
    "type": "internal",
    "unit": "mm",
    "numeric_type": "float32",
    "quantity_type": "scalar",
    "component_labels": ["GMSL"],
    "components": [
      ["-183.0, -171.125, ..., 59.6875, 58.5"]
    ]
  }]
}
```
## Installing _csdmpy_ package

    $ pip install csdmpy

## How to cite

Please cite the following when used in publication.

1. Srivastava D.J., Vosegaard T., Massiot D., Grandinetti P.J. (2020) Core Scientific Dataset Model: A lightweight and portable model and file format for multi-dimensional scientific data. [PLOS ONE 15(1): e0225953.](https://doi.org/10.1371/journal.pone.0225953)

## Check out the media coverage.

- [<img src="https://inc.cnrs.fr/sites/institut_inc/files/styles/top_left/public/image/cnrs_20180120_0025%20%281%29.jpg?itok=i3wlyGBq" height="64" width="64"> Des chimistes élaborent un nouveau format pour le partage de données scientifiques](https://inc.cnrs.fr/fr/cnrsinfo/des-chimistes-elaborent-un-nouveau-format-pour-le-partage-de-donnees-scientifiques)

- [<img src="https://www.technology.org/texorgwp/wp-content/uploads/2020/01/1920_data-1536x1024.jpg" height="64" width="64"> Simplifying how scientists share data](https://www.technology.org/2020/01/03/simplifying-how-scientists-share-data/)

            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/DeepanshS/csdmpy/",
    "name": "csdmpy",
    "maintainer": "",
    "docs_url": null,
    "requires_python": ">=3.7",
    "maintainer_email": "",
    "keywords": "",
    "author": "Deepansh Srivastava",
    "author_email": "srivastava.89@osu.edu",
    "download_url": "https://files.pythonhosted.org/packages/cc/ab/c91c286adfddacd2198ba8584253015733149fda7c1f4a4e7795eec2ba3f/csdmpy-0.6.0.tar.gz",
    "platform": null,
    "description": "\n# The csdmpy project\n\n|              |                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              |\n| ------------ | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |\n| Deployment   | [![PyPI version](https://img.shields.io/pypi/v/csdmpy.svg?style=flat&logo=pypi&logoColor=white)](https://pypi.python.org/pypi/csdmpy) ![PyPI - Python Version](https://img.shields.io/pypi/pyversions/csdmpy)                                                                                                                                                                                                                                                                                                                                                                |\n| Build Status | [![Github workflow](<https://img.shields.io/github/actions/workflow/status/deepanshs/csdmpy/continuous-integration-pip.yml?logo=GitHub>)](https://github.com/DeepanshS/csdmpy/actions/workflow/continuous-integration-pip.yml) [![Documentation Status](https://readthedocs.org/projects/csdmpy/badge/?version=stable)](https://csdmpy.readthedocs.io/en/stable/?badge=stable)                                                                                                                                        |\n| License      | [![License](https://img.shields.io/badge/License-BSD%203--Clause-blue.svg)](https://opensource.org/licenses/BSD-3-Clause)                                                                                                                                                                                                                                                                                                                                                                                                                                                    |\n| Metrics      | [![codecov](https://codecov.io/gh/DeepanshS/csdmpy/branch/master/graph/badge.svg)](https://codecov.io/gh/DeepanshS/csdmpy) ![GitHub issues](https://img.shields.io/github/issues-raw/deepanshs/csdmpy)                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  |\n| Citation    | [![DOI](<https://img.shields.io/badge/DOI-PLOS%20ONE%2015(1):%20e0225953-blueviolet>)](https://doi.org/10.1371/journal.pone.0225953)                                                                                                                                                                                                                                                                                                                               |\n\nThe _csdmpy_ package is a Python support for the core scientific\ndataset (CSD) model file exchange-format.\nThe package is based on the core scientific dataset (CSD) model which is\ndesigned as a building block in the development of a more sophisticated\nportable scientific dataset file standard.\nThe CSD model is capable of handling a wide variety of\nscientific datasets both within and across disciplinary fields.\n\nThe main objective of this python package is to facilitate an easy import and\nexport of the CSD model serialized JSON files for Python users. The\npackage utilizes Numpy library and, therefore, offers the end users versatility\nto process or visualize the imported datasets with any third party package(s)\ncompatible with Numpy.\n\nFor further reading, refer to the [documentation](https://csdmpy.readthedocs.io/en/latest/).\n\n> **See example gallery**\n>\n> [![View](https://img.shields.io/badge/View-Example%20Gallery-Purple?size=large)](https://csdmpy.readthedocs.io/en/latest/auto_examples/index.html)\n\n## The core scientific dataset (CSD) model\n\nThe core scientific dataset (CSD) model is a _light-weight_, _portable_,\n_versatile_, and _standalone_ data model capable of handling a variety of\nscientific datasets. The model only encapsulates\ndata values and the minimum metadata, to accurately represent a **_p_-component\ndependent variable,\ndiscretely sampled at _M_ unique points in a _d_-dimensional coordinate space**.\nThe model is not intended to encapsulate\nany information on how the data might be acquired, processed, or visualized.\n\n---\n### Use cases\nThe data model is _versatile_ in allowing many **use cases for most spectroscopy,\ndiffraction, and imaging techniques**.\n\n![](/docs/_static/csdm.png \"\")\n\n### Data Model\n\nThe model supports multi-component datasets associated with continuous\nphysical quantities that are discretely sampled in a multi-dimensional space\nassociated with other carefully controlled quantities, for e.g., a mass as a\nfunction of temperature, a current as a function of voltage and time, a signal\nvoltage as a function of magnetic field gradient strength, a color image with\na red, green, and blue (RGB) light intensity components as a function of two\nindependent spatial dimensions, or the six components of the symmetric\nsecond-rank diffusion tensor MRI as a function of three independent spatial\ndimensions. Additionally, the model supports multiple dependent variables\nsharing the same _d_-dimensional coordinate space. For instance,\nthe simultaneous measurement of current and voltage as a function of time.\nAnother example would be the simultaneous acquisition of air temperature,\npressure, wind velocity, and\nsolar-flux as a function of Earth\u2019s latitude and longitude coordinates. We\nrefer to these dependent variables as _correlated-datasets_.\n\n**Example**\n```py\n\"csdm\": {\n  \"version\": \"1.0\",\n  # A list of Linear, Monotonic, or Labeled dimensions of the multi-dimensional space.\n  \"dimensions\": [{\n    \"type\": \"linear\",\n    \"count\": 1608,\n    \"increment\": \"0.08333333333 yr\",\n    \"coordinates_offset\": \"1880.0416666667 yr\",\n  }],\n  # A list of dependent variables sampling the multi-dimensional space.\n  \"dependent_variables\": [{\n    \"type\": \"internal\",\n    \"unit\": \"mm\",\n    \"numeric_type\": \"float32\",\n    \"quantity_type\": \"scalar\",\n    \"component_labels\": [\"GMSL\"],\n    \"components\": [\n      [\"-183.0, -171.125, ..., 59.6875, 58.5\"]\n    ]\n  }]\n}\n```\n## Installing _csdmpy_ package\n\n    $ pip install csdmpy\n\n## How to cite\n\nPlease cite the following when used in publication.\n\n1. Srivastava D.J., Vosegaard T., Massiot D., Grandinetti P.J. (2020) Core Scientific Dataset Model: A lightweight and portable model and file format for multi-dimensional scientific data. [PLOS ONE 15(1): e0225953.](https://doi.org/10.1371/journal.pone.0225953)\n\n## Check out the media coverage.\n\n- [<img src=\"https://inc.cnrs.fr/sites/institut_inc/files/styles/top_left/public/image/cnrs_20180120_0025%20%281%29.jpg?itok=i3wlyGBq\" height=\"64\" width=\"64\"> Des chimistes \u00e9laborent un nouveau format pour le partage de donn\u00e9es scientifiques](https://inc.cnrs.fr/fr/cnrsinfo/des-chimistes-elaborent-un-nouveau-format-pour-le-partage-de-donnees-scientifiques)\n\n- [<img src=\"https://www.technology.org/texorgwp/wp-content/uploads/2020/01/1920_data-1536x1024.jpg\" height=\"64\" width=\"64\"> Simplifying how scientists share data](https://www.technology.org/2020/01/03/simplifying-how-scientists-share-data/)\n",
    "bugtrack_url": null,
    "license": "BSD-3-Clause",
    "summary": "A python module for the core scientific dataset model.",
    "version": "0.6.0",
    "project_urls": {
        "Homepage": "https://github.com/DeepanshS/csdmpy/"
    },
    "split_keywords": [],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "82ecc362a004a62fdb8022a994fed9474d416636c34d5d9ce9745a654714acbc",
                "md5": "24a78f9e4d8e687a65f4fd311e3465b2",
                "sha256": "1662c649bbf61492d343a1ec17867a6df81667891d9704bbf60d9dc3b59cbb52"
            },
            "downloads": -1,
            "filename": "csdmpy-0.6.0-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "24a78f9e4d8e687a65f4fd311e3465b2",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.7",
            "size": 67772,
            "upload_time": "2023-11-14T03:32:24",
            "upload_time_iso_8601": "2023-11-14T03:32:24.755109Z",
            "url": "https://files.pythonhosted.org/packages/82/ec/c362a004a62fdb8022a994fed9474d416636c34d5d9ce9745a654714acbc/csdmpy-0.6.0-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "ccabc91c286adfddacd2198ba8584253015733149fda7c1f4a4e7795eec2ba3f",
                "md5": "48bc1379fa555df8c09965e5b820baff",
                "sha256": "d21fd5b42241a75b6920e580794d2b14fce6d7d558b8383fa7a9182579834018"
            },
            "downloads": -1,
            "filename": "csdmpy-0.6.0.tar.gz",
            "has_sig": false,
            "md5_digest": "48bc1379fa555df8c09965e5b820baff",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.7",
            "size": 520884,
            "upload_time": "2023-11-14T03:32:27",
            "upload_time_iso_8601": "2023-11-14T03:32:27.624023Z",
            "url": "https://files.pythonhosted.org/packages/cc/ab/c91c286adfddacd2198ba8584253015733149fda7c1f4a4e7795eec2ba3f/csdmpy-0.6.0.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2023-11-14 03:32:27",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "DeepanshS",
    "github_project": "csdmpy",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": true,
    "requirements": [
        {
            "name": "numpy",
            "specs": [
                [
                    ">=",
                    "1.20"
                ]
            ]
        },
        {
            "name": "setuptools",
            "specs": [
                [
                    ">=",
                    "27.3"
                ]
            ]
        },
        {
            "name": "numexpr",
            "specs": [
                [
                    "==",
                    "2.8.4"
                ]
            ]
        },
        {
            "name": "astropy",
            "specs": [
                [
                    "<=",
                    "5.1"
                ]
            ]
        },
        {
            "name": "requests",
            "specs": [
                [
                    ">=",
                    "2.21.0"
                ]
            ]
        },
        {
            "name": "matplotlib",
            "specs": [
                [
                    ">=",
                    "3.3.3"
                ]
            ]
        }
    ],
    "lcname": "csdmpy"
}
        
Elapsed time: 0.41722s