Skip to main content
Pre-release

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

EFD ELF orbit 10431(1)

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).

Metadata

Release files for csespy 2.0.0a0

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

Built distribution (wheel)

Table of built distributions (wheels) for csespy 2.0.0a0
File Interpreter ABI Platform
csespy-2.0.0a0-py3-none-any.whl Python 3 none any Details

Release files / csespy-2.0.0a0-py3-none-any.whl

Download URL csespy-2.0.0a0-py3-none-any.whl
Size 1.8 MB
Tags Python 3
SHA-256 checksum
How to use checksums
99c8b2fbd8a21e4d8e63e31f2f5c3f6e43328e04fffa8d880f732c7a42be9351
BLAKE2b-256 checksum
How to use checksums
dc051659ffff78f1e13570e70d2afae15c65fc9c355dc7eabcdb5418a89e9369
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Aug 7, 2026.

Transparency log

Release history Release notifications | RSS feed

This release

2.0.0a0 This release

1 release file

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