Skip to main content

Maser4py submodule to handle radio data

Project description

About maser-data

maser-data is a submodule of maser4py.

It offers programs to handle radio data from the following instruments:

  • 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
  • Viking
  • Voyager/PRA
  • Wind/Waves

Read maser4py main documentation for details.

Installation

With maser4py (recommanded)

To install the package, run the following command:

pip install maser4py[data]

and use one of the extra options:

  • jupyter for Jupyter notebook support
  • spacepy for CDF data format support (note that this requires the CDF library)

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

pip install maser4py[data,jupyter,spacepy]

You can also use other options from maser4py such as:

pip install maser4py[all]

As a standalone submodule

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

pip install maser-data

or use one of the extra options:

  • jupyter for Jupyter notebook support
  • spacepy for CDF data format support (note that this requires the CDF library)
  • all to install all the 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]

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, it is recommended to use poetry:

pip install poetry

CDF file format

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

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

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.1.tar.gz (79.6 kB view details)

Uploaded Source

Built Distribution

maser_data-0.5.1-py3-none-any.whl (114.5 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: maser_data-0.5.1.tar.gz
  • Upload date:
  • Size: 79.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.0.0 CPython/3.12.6 Darwin/24.3.0

File hashes

Hashes for maser_data-0.5.1.tar.gz
Algorithm Hash digest
SHA256 1e7ee2a22c90a29c958dfb5b6cb66a01a2321881773ce328882fa038b8dc0396
MD5 4c66c57ce6e71c3b8f59065c11e4efef
BLAKE2b-256 077f40e74d1da460f24172bcb3500cd9d4fa46e066415ce45e5b4c22ff68a27a

See more details on using hashes here.

File details

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

File metadata

  • Download URL: maser_data-0.5.1-py3-none-any.whl
  • Upload date:
  • Size: 114.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.0.0 CPython/3.12.6 Darwin/24.3.0

File hashes

Hashes for maser_data-0.5.1-py3-none-any.whl
Algorithm Hash digest
SHA256 4a39ca5fb799bdf496c9f519e598369582d3a6fa850e48a6218062fb7593767c
MD5 e552222c93d88b4c5bd2dc8a13874a51
BLAKE2b-256 e24c57bf395ba6568da8ab34ab75a68ecfc8621cb5b63302f16efe6d8ca78ced

See more details on using hashes here.

Supported by

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