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 missions:
- Cassini
- Ecallisto
- Interball
- Juno
- Mars Express
- nancay decametric array (Jupiter only)
- Nancay NenuFAR/BST
- Solar orbiter
- Viking
- Wind
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 supportspacepy
for CDF data format support (note that this requires the CDF library)nenupy
for NenuFAR data products supportall
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)
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.
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
Built Distribution
Hashes for maser_data-0.3.3-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 47fa3cdd307e5769cb3cd7bf6e5466922ae39cb94f145ad1c310fa53cafa61ee |
|
MD5 | 2d7edebab904f99e1fb6cdcba97893db |
|
BLAKE2b-256 | e69e74b7b211480761f1d2aed4364b50a6f39cb8deef2e8986478dfcd1e130ce |