This release is a pre-release and may not be stable for production use.
csespy
This repository contains a collection of python routines to read and process data from the CSES-01 spacecraft. This routines are designed to gather, process and store (optionally) payload observations in a given set of semiorbits, and to perform some basic analysis on the data.
It is intended for the internal use of the CSES-Limadou collaboration. Payload supported up to now are:
- EFD ULF/VLF/ELF (Electric Field Detector)
- SCM (Search Coil Magnetometer)
- HPM (High Precision Magnetometer)
- LAP (Langmuir Probe)
- PAP (Plasma Analyser Package)
- HEPD (High Energy Particle Detector) --> Support recently added
- HEPP-L, HEPP-H, HEPP-X (High Energy Package) --> Support recently added
Dependencies: matplotlib, skimage, mpl_toolkits, collections, scipy, copy, warnings, termcolor, numpy, h5py, flammkuchen, datetime
NOTES: Meticulously drafted from an experimental package made on 30/03/2021 by Emanuele Papini :)
Install
Simply download the repository in the desired folder to start using it. If you have a PYTHONPATH already set, you can put the csespy folder directly there so that you can import the package from everywhere.
Authors: Emanuele Papini (EP) and Francesco Maria Follega (FMF)
Files list
Files in this repos are named accordingly to their purpose.
- CSES_main.py : Contains the main class that is used as an interface for loading and processing of CSES data.
- CSES_core.py : Core routines/functions used to read the data.
- CSES_aux.py : Contains all auxiliary function for reading/manipulating data (e.g. filename parsing, naming convention, date conversion, reference frame conversion,...).
- CSES_raw.py : Routines to load the .h5 files "as it is" in their original format (RAW) without any manipulation (for advanced use and/or debugging).
- CSES_params.py : Contains the relevant parameters to properly read the files from the CSES mission.
- CSES_init.py : contains few simple instructions to initialize the environment. This requires (in its actual state) editing of the file depending on the machine and/or where data are stored.
In addition, the folder blombly contains a collection of routines directly taken from EP personal python library (named blombly) that are used in csespy.
Usage
The main class allow the user to load data from the cses missions without the need of specifying any filename in principle. It only requires the location of the folder containing all the .h5 files (named following the convention explained in the CSES-01 data manual) from the instruments. This folder either need to be organized in subfolders following a strict scheme, or simply need to contain the .h5 files of interest (see the init method in the CSES class in CSES_main.py)
Example
Assuming csespy is in the PYTHONPATH, and that data of interest are stored in /CSES_data/ and that they are not structured in subfolders, the following commands load the EFD ELF waveforms for the orbit 104311 (orbit 10431, night side)
import csespy
import pylab as plt
#initialize class and tell it what orbit it will load
css=csespy.CSES(path='/CSES_data/',orbitn='104311',unstructured_path=True)
#load EFD ELF data
css.load_CSES('EFD_ELF')
#plot the data
fig,ax = plt.subplots()
css.plot_payload('EFD_ELF',fig=fig,ax=ax)
plt.show()
This plot should appear
Contacts
Emanuele Papini - INAF, Istituto di Astrofisica e Planetologia Spaziali (emanuele.papini@inaf.it).
Francesco Maria Follega - TIFPA, Università di Trento (francesco.follega@unitn.it).
Davide Giordano - Università di Trento (davide.giordano@unitn.it).
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file csespy-2.0.0a0-py3-none-any.whl.
File metadata
- Download URL: csespy-2.0.0a0-py3-none-any.whl
- Upload date:
- Size: 1.8 MB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via:
twine/7.0.0 CPython/3.13.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
99c8b2fbd8a21e4d8e63e31f2f5c3f6e43328e04fffa8d880f732c7a42be9351
|
|
| MD5 |
5fe4a2a60c1929c88b8133b820757c16
|
|
| BLAKE2b-256 |
dc051659ffff78f1e13570e70d2afae15c65fc9c355dc7eabcdb5418a89e9369
|
Provenance
The following attestation bundles were made for csespy-2.0.0a0-py3-none-any.whl:
Publisher:
pipify.yml on EmanuelePapini/csespy
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
csespy-2.0.0a0-py3-none-any.whl -
Subject digest:
99c8b2fbd8a21e4d8e63e31f2f5c3f6e43328e04fffa8d880f732c7a42be9351 - Sigstore transparency entry: 2371202403
- Sigstore integration time:
-
Permalink:
EmanuelePapini/csespy@878c031f9567f3e105df41a5f5809e3b362a4951 -
Branch / Tag:
refs/heads/main - Owner: https://github.com/EmanuelePapini
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
pipify.yml@878c031f9567f3e105df41a5f5809e3b362a4951 -
Trigger Event:
push
-
Statement type: