Skip to main content

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

To install the package, 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

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.

Metadata

Release files for maser-data 0.4.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for maser-data 0.4.2
File Size Uploaded
maser_data-0.4.2.tar.gz 74.3 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for maser-data 0.4.2
File Interpreter ABI Platform
maser_data-0.4.2-py3-none-any.whl Python 3 none any Details

Total release size: 176.8 kB

Release files / maser_data-0.4.2.tar.gz

Download URL maser_data-0.4.2.tar.gz
Size 74.3 kB
Tags Source
SHA-256 checksum
How to use checksums
d3450e181a7b65dcc9a295696f67b3e523d2cdbed884de50d62e7031982f8a1d
BLAKE2b-256 checksum
How to use checksums
434bcae808eb6b107223354a81e2984ab9083440091e82743eb9a6209be3378b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.8.2 CPython/3.9.13 Darwin/22.6.0

Release files / maser_data-0.4.2-py3-none-any.whl

Download URL maser_data-0.4.2-py3-none-any.whl
Size 102.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
6416fbea80190b6215df658a7e39ac6ce73e335300f37b28129d68990771b42d
BLAKE2b-256 checksum
How to use checksums
249e8b8cba6779fbf640ac46755c4c7c89a74ee7140383b28280e81258d889c7
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.8.2 CPython/3.9.13 Darwin/22.6.0

Release history Release notifications | RSS feed

0.5.2

2 release files

0.5.1

2 release files

This release

0.4.2 This release

2 release files

0.3.5

2 release files

0.3.4

2 release files

0.3.3

2 release files

0.3.2

2 release files

0.3.0

2 release files

0.1.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page