Skip to main content

Maser4py submodule to handle radio data

Project description

About maser-data

This is maser-data, a submodule of maser4py. maser4py offers modules to handle data from several space and ground radio observatory and maser-data is the submodule dedicated to handling radio data parsing.

maser4py is developed in the framework of the MASER project.

maser-data offers programs to handle radio data from the following instruments:

  • BepiColombo/MMO/PWI/SORBET
  • Cassini/RPWS/HFR
  • E-Callisto
  • Interball-Auroral/POLRAD
  • Juno/Waves
  • Mars Express/MARSIS
  • Nançay Decameter Array (Jupiter only)
  • Nançay NenuFAR/BST
  • Solar Orbiter/RPW
  • STEREO/Waves
  • Viking
  • Voyager/PRA
  • Wind/Waves

Detailed information can be found in maser-data user guide.

You can also have a look to maser-data examples and notebooks.

For a broader documentation, please check maser4py main documentation for details.

Installation

As a standalone submodule (recommanded)

To install the package, run the following command:

pip install maser-data

maser-data (through spacepy ), requires the CDF library that needs to be installed on its own (see below).

It is also possible to use the extra option jupyter when installing maser-data:

  • jupyter for Jupyter notebook support

  • (all is equivalent to the line above)

For example use maser-data[jupyter,spacepy] if you want to use maser-data with spacepy and jupyter notebooks:

pip install maser-data[jupyter,spacepy]

With maser4py

An alternative way of installing the package is to run the following command:

pip install maser4py[data]

and use the extra options:

  • jupyter for Jupyter notebook support

For example use maser4py[data,jupyter] if you want to use maser-data with jupyter notebooks:

pip install maser4py[data,jupyter]

You can also use other options from maser4py such as:

  • tools for maser-tools submodule
  • all to install all the above
pip install maser4py[all]

CDF file format

To use maser-data to read CDF files you have to install the CDF library and the spacepy.pycdf package.

Usage

The Data class is a wrapper around several classes that allow you to read data from many different formats, including CDF, Fits, and some custom binary formats. By default, the class will try to automagically detect the format of the file and use the appropriate class to read the data.

from maser.data import Data

filepath = "path/to/my/data/file.ext"
data = Data(filepath=filepath)

Binder You can also launch a Binder environment and browse through the notebook examples.

Development

To contribute to the development of the package, you will need to install a local copy of maser.data

git clone https://gitlab.obspm.fr/maser/maser4py.git

Then, you can install the package locally, by using pip install -e .[all] or by using poetry (see below).

Requirements

maser-data requirements are detailed in the src/maser_data/pyproject.toml file

poetry

To install the package as a developer, it is recommended to use poetry:

pip install poetry

Installing a local copy of maser-data

Use the following command from src/maser_data folder to install the package:

poetry install

or this one if you want to use maser-data with spacepy to handle CDF files:

poetry install --extras "spacepy"

Tests

Use pytest -m "not test_data_required" to skip tests that require test data (and to skip auto download).

Manually publish maser-data on pypi

To publish maser-data with poetry you will have to build a dist package:

poetry build

And then publish the package on pypi (and/or on Gitlab, see https://python-poetry.org/docs/cli/#publish):

poetry publish

The commands above must be run from src/maser_data directory.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

maser_data-0.5.2.tar.gz (82.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

maser_data-0.5.2-py3-none-any.whl (117.1 kB view details)

Uploaded Python 3

File details

Details for the file maser_data-0.5.2.tar.gz.

File metadata

  • Download URL: maser_data-0.5.2.tar.gz
  • Upload date:
  • Size: 82.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.2.1 CPython/3.12.6 Darwin/25.3.0

File hashes

Hashes for maser_data-0.5.2.tar.gz
Algorithm Hash digest
SHA256 67d71d087740fd8a1131e56641cada8d6ce5950cc7a7a207c6dc340bc6b98ad8
MD5 a179cc3b74e9bdacb1e6ee83b0a0f024
BLAKE2b-256 1713202cded0d69c39b096786ab1a733dc39d8bf6bc3e9516244bdce80da0052

See more details on using hashes here.

File details

Details for the file maser_data-0.5.2-py3-none-any.whl.

File metadata

  • Download URL: maser_data-0.5.2-py3-none-any.whl
  • Upload date:
  • Size: 117.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.2.1 CPython/3.12.6 Darwin/25.3.0

File hashes

Hashes for maser_data-0.5.2-py3-none-any.whl
Algorithm Hash digest
SHA256 ef3037d69b9bfd8d42dd66cd6ddb7bbede0b97a107c3a29cd8b42ef7513bf927
MD5 65d9c4a695a9016725779e151c9c5632
BLAKE2b-256 ba98e54a86e86d04cb21355d2b29ece301d8b7afb3b9f5ba5a3e1d7236104269

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page