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

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

csespy-2.0.0a0-py3-none-any.whl (1.8 MB view details)

Uploaded Python 3

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

Hashes for csespy-2.0.0a0-py3-none-any.whl
Algorithm Hash digest
SHA256 99c8b2fbd8a21e4d8e63e31f2f5c3f6e43328e04fffa8d880f732c7a42be9351
MD5 5fe4a2a60c1929c88b8133b820757c16
BLAKE2b-256 dc051659ffff78f1e13570e70d2afae15c65fc9c355dc7eabcdb5418a89e9369

See more details on using hashes here.

Provenance

The following attestation bundles were made for csespy-2.0.0a0-py3-none-any.whl:

Publisher: pipify.yml on EmanuelePapini/csespy

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Release history Release notifications | RSS feed

This release

2.0.0a0 This release

1 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