Skip to main content

Python package for reading, cleaning, and perform operations on satellite data.

Project description

Basic documentation for pySatData

Most functions' structure and some loaders are from the pySPEDAS (https://github.com/spedas/pyspedas) repository. I just used and organized it in a way that I felt was more accessible for my purposes :). There is an option to store the variables in a pandas DataFrame format or pytplot format.

Requirements

Python 3.8+

Installation:

conda create -n yourenvname python=x.x anaconda
conda activate yourenvname

pip install pysatdata

config_file.json

It can be done in this file if some change in downloading directories is needed.

pysatdata/resources/config_file.json

This file sets the HTTP directory for downloading data and the local directory to save the downloaded data.

The local directory files are organized as http directory, i.e.:

  • RBSP: HOME/sat_data/rbsp/rbspa/l2/ect/rept/sectors/rel03/YYYY/filename.cdf

This files handles with the different http subpaths for the different levels and intruments in each probe.


Examples: Loading data.

RBSP REPT data

#Import the loading functions.
from pysatdata.loaders.load import *

# Define the time range for downloading data.
trange=['2021-05-26', '2021-05-30']

# Loading Van Allen probes REPT data.
varss_rept = load_sat(trange=trange, satellite="rbsp",
                        probe=['a', 'b'], level="3", 
                        rel="rel03", instrument="rept",
                        datatype="sectors",
                        downloadonly=False, 
                        searchFilesFirst=True,
                        usePandas=False,
                        usePyTplot=True)

RBSP EMFISIS data.

varss_emfisis = load_sat(trange=trange, satellite="rbsp",
                            probe=['a','b'], rel="rel03", level="3",
                            instrument="emfisis", datatype="magnetometer",
                            cadence="1sec", coord="gse",
                            varnames=[], downloadonly=False,
                            usePandas=True, usePyTplot=False)

RBSP MAGEIS data.

varss_mageis = load_sat(trange=trange, satellite="rbsp",
                        probe=['a','b'], level="3", 
                        rel="rel03", instrument="mageis",
                        datatype="sectors",
                        downloadonly=False, 
                        usePandas=False, usePyTplot=True)

RBSP EFW data.

varss_efw = load_sat(trange=trange, satellite="rbps",
                        probe=['a','b'], level="2", rel='rel03',
                        instrument="efw", datatype="esvy_despun",
                        varnames=['efield_mgse', 'lshell'], downloadonly=False,
                        usePandas=False, usePyTplot=True)

OMNI Solar wind data

varss_omni = load_sat(trange=trange, satellite="omni",
                         probe="omni"
                         instrument="omni_cdaweb",datatype="hro_1min",
                         downloadonly=False,
                         usePandas=False, usePyTplot=True)

See plot_interpFlux_RBSP.py for an example of plotting the interpolated electron flux.

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

pysatdata-0.0.1b0.tar.gz (3.9 kB view details)

Uploaded Source

Built Distribution

pysatdata-0.0.1b0-py3-none-any.whl (3.3 kB view details)

Uploaded Python 3

File details

Details for the file pysatdata-0.0.1b0.tar.gz.

File metadata

  • Download URL: pysatdata-0.0.1b0.tar.gz
  • Upload date:
  • Size: 3.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.5

File hashes

Hashes for pysatdata-0.0.1b0.tar.gz
Algorithm Hash digest
SHA256 acaea37c36fe2cd042aabf165dda028afe15c79de2e8d313f1ff610b518c3184
MD5 94f120c8918bbf7cb3c2e0c7d0d1c7ba
BLAKE2b-256 95ae637a270a7b3e02a0dc284c8a3b84de533deb180173fda9566699a6a1e126

See more details on using hashes here.

File details

Details for the file pysatdata-0.0.1b0-py3-none-any.whl.

File metadata

  • Download URL: pysatdata-0.0.1b0-py3-none-any.whl
  • Upload date:
  • Size: 3.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.5

File hashes

Hashes for pysatdata-0.0.1b0-py3-none-any.whl
Algorithm Hash digest
SHA256 2f29956e5a2a5c69148bd9968d07f112c2b5de720a22f50cb56f25327e30acc9
MD5 52b0bf161b2ac5cc21750211833af4e4
BLAKE2b-256 1c432c96bbaed45b6be8798eee80cdb38f42d2e659e4b4d50ca84962254b19de

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page