# pySPEDAS
[![build](https://github.com/spedas/pyspedas/workflows/build/badge.svg)](https://github.com/spedas/pyspedas/actions)
[![Coverage Status](https://coveralls.io/repos/github/spedas/pyspedas/badge.svg)](https://coveralls.io/github/spedas/pyspedas)
[![Version](https://img.shields.io/pypi/v/pyspedas.svg)](https://pypi.org/project/pyspedas/)
![License](https://img.shields.io/pypi/l/pyspedas.svg)
![Status](https://img.shields.io/pypi/status/pyspedas.svg)
pySPEDAS is an implementation of the SPEDAS framework in python.
The Space Physics Environment Data Analysis Software ([SPEDAS](http://spedas.org/wiki)) framework is written in IDL and contains data loading, data analysis and data plotting tools for various scientific missions (NASA, NOAA, etc.) and ground magnetometers.
## Projects Supported
- [Advanced Composition Explorer (ACE)](https://github.com/spedas/pyspedas/blob/master/pyspedas/ace/README.md)
- [Arase (ERG)](https://github.com/spedas/pyspedas/blob/master/pyspedas/erg/README.md)
- [Cluster](https://github.com/spedas/pyspedas/blob/master/pyspedas/cluster/README.md)
- [Colorado Student Space Weather Experiment (CSSWE)](https://github.com/spedas/pyspedas/blob/master/pyspedas/csswe/README.md)
- [Deep Space Climate Observatory (DSCOVR)](https://github.com/spedas/pyspedas/blob/master/pyspedas/dscovr/README.md)
- [Equator-S](https://github.com/spedas/pyspedas/blob/master/pyspedas/equator_s/README.md)
- [Fast Auroral Snapshot Explorer (FAST)](https://github.com/spedas/pyspedas/blob/master/pyspedas/fast/README.md)
- [Geotail](https://github.com/spedas/pyspedas/blob/master/pyspedas/geotail/README.md)
- [Geostationary Operational Environmental Satellite (GOES)](https://github.com/spedas/pyspedas/blob/master/pyspedas/goes/README.md)
- [Imager for Magnetopause-to-Aurora Global Exploration (IMAGE)](https://github.com/spedas/pyspedas/blob/master/pyspedas/image/README.md)
- [Mars Atmosphere and Volatile Evolution (MAVEN)](https://github.com/spedas/pyspedas/blob/master/pyspedas/maven/README.md)
- [Magnetic Induction Coil Array (MICA)](https://github.com/spedas/pyspedas/blob/master/pyspedas/mica/README.md)
- [Magnetospheric Multiscale (MMS)](https://github.com/spedas/pyspedas/blob/master/pyspedas/mms/README.md)
- [OMNI](https://github.com/spedas/pyspedas/blob/master/pyspedas/omni/README.md)
- [Polar Orbiting Environmental Satellites (POES)](https://github.com/spedas/pyspedas/blob/master/pyspedas/poes/README.md)
- [Polar](https://github.com/spedas/pyspedas/blob/master/pyspedas/polar/README.md)
- [Parker Solar Probe (PSP)](https://github.com/spedas/pyspedas/blob/master/pyspedas/psp/README.md)
- [Van Allen Probes (RBSP)](https://github.com/spedas/pyspedas/blob/master/pyspedas/rbsp/README.md)
- [Solar Orbiter (SOLO)](https://github.com/spedas/pyspedas/blob/master/pyspedas/solo/README.md)
- [Solar Terrestrial Relations Observatory (STEREO)](https://github.com/spedas/pyspedas/blob/master/pyspedas/stereo/README.md)
- [Time History of Events and Macroscale Interactions during Substorms (THEMIS)](https://github.com/spedas/pyspedas/blob/master/pyspedas/themis/README.md)
- [Two Wide-Angle Imaging Neutral-Atom Spectrometers (TWINS)](https://github.com/spedas/pyspedas/blob/master/pyspedas/twins/README.md)
- [Ulysses](https://github.com/spedas/pyspedas/blob/master/pyspedas/ulysses/README.md)
- [Wind](https://github.com/spedas/pyspedas/blob/master/pyspedas/wind/README.md)
## Requirements
Python 3.6+ is required.
We recommend [Anaconda](https://www.continuum.io/downloads/) which comes with a suite of packages useful for scientific data analysis.
## Installation
pySPEDAS supports Windows, macOS and Linux. To get started, install the `pyspedas` package using PyPI:
### PyPI
```bash
pip install pyspedas --upgrade
```
## Usage
To get started, import pyspedas and pytplot:
```python
import pyspedas
from pytplot import tplot
```
You can load data into tplot variables by calling `pyspedas.mission.instrument()`, e.g.,
To load and plot 1 day of THEMIS FGM data for probe 'd':
```python
thm_fgm = pyspedas.themis.fgm(trange=['2015-10-16', '2015-10-17'], probe='d')
tplot(['thd_fgs_gse', 'thd_fgs_gsm'])
```
To load and plot 2 minutes of MMS burst mode FGM data:
```python
mms_fgm = pyspedas.mms.fgm(trange=['2015-10-16/13:05:30', '2015-10-16/13:07:30'], data_rate='brst')
tplot(['mms1_fgm_b_gse_brst_l2', 'mms1_fgm_b_gsm_brst_l2'])
```
Note: by default, pySPEDAS loads all data contained in CDFs found within the requested time range; this can potentially load data outside of your requested trange. To remove the data outside of your requested trange, set the `time_clip` keyword to `True`
To load and plot 6 hours of PSP SWEAP/SPAN-i data:
```python
spi_vars = pyspedas.psp.spi(trange=['2018-11-5', '2018-11-5/06:00'], time_clip=True)
tplot(['DENS', 'VEL', 'T_TENSOR', 'TEMP'])
```
To download 5 days of STEREO magnetometer data (but not load them into tplot variables):
```python
stereo_files = pyspedas.stereo.mag(trange=['2013-11-1', '2013-11-6'], downloadonly=True)
```
### Standard Options
- `trange`: two-element list specifying the time range of interest. This keyword accepts a wide range of formats
- `time_clip`: if set, clip the variables to the exact time range specified by the `trange` keyword
- `suffix`: string specifying a suffix to append to the loaded variables
- `varformat`: string specifying which CDF variables to load; accepts the wild cards * and ?
- `get_support_data`: if set, load the support variables from the CDFs
- `downloadonly`: if set, download the files but do not load them into tplot
- `no_update`: if set, only load the data from the local cache
- `notplot`: if set, load the variables into dictionaries containing numpy arrays (instead of creating the tplot variables)
## Getting Help
To find the options supported, call `help` on the instrument function you're interested in:
```python
help(pyspedas.themis.fgm)
```
You can ask questions by creating an issue or by joining the [SPEDAS mailing list](http://spedas.org/mailman/listinfo/spedas-list_spedas.org).
## Contributing
We welcome contributions to pySPEDAS; to learn how you can contribute, please see our [Contributing Guide](https://github.com/spedas/pyspedas/blob/master/CONTRIBUTING.md)
## Code of Conduct
In the interest of fostering an open and welcoming environment, we as contributors and maintainers pledge to making participation in our project and our community a harassment-free experience for everyone, regardless of age, body size, disability, ethnicity, sex characteristics, gender identity and expression, level of experience, education, socio-economic status, nationality, personal appearance, race, religion, or sexual identity and orientation. To learn more, please see our [Code of Conduct](https://github.com/spedas/pyspedas/blob/master/CODE_OF_CONDUCT.md).
## Additional Information
For examples of pyspedas, see: https://github.com/spedas/pyspedas_examples
For MMS examples, see: https://github.com/spedas/mms-examples
For pytplot, see: https://github.com/MAVENSDC/PyTplot
For cdflib, see: https://github.com/MAVENSDC/cdflib
For SPEDAS, see http://spedas.org/
没有合适的资源?快使用搜索试试~ 我知道了~
温馨提示
共291个文件
py:254个
csv:24个
txt:5个
资源分类:Python库 所属语言:Python 资源全名:pyspedas-1.1.2.tar.gz 资源来源:官方 安装方法:https://lanzao.blog.csdn.net/article/details/101784059
资源推荐
资源详情
资源评论
收起资源包目录
Python库 | pyspedas-1.1.2.tar.gz (291个子文件)
setup.cfg 42B
MMS1_FEEPS_ContaminatedSectors_20171003.csv 3KB
MMS2_FEEPS_ContaminatedSectors_20170531.csv 3KB
MMS4_FEEPS_ContaminatedSectors_20161028.csv 3KB
MMS3_FEEPS_ContaminatedSectors_20160709.csv 3KB
MMS2_FEEPS_ContaminatedSectors_20160709.csv 3KB
MMS3_FEEPS_ContaminatedSectors_20181005.csv 3KB
MMS1_FEEPS_ContaminatedSectors_20160709.csv 3KB
MMS1_FEEPS_ContaminatedSectors_20181005.csv 3KB
MMS2_FEEPS_ContaminatedSectors_20171003.csv 3KB
MMS1_FEEPS_ContaminatedSectors_20151111.csv 3KB
MMS4_FEEPS_ContaminatedSectors_20181005.csv 3KB
MMS1_FEEPS_ContaminatedSectors_20170531.csv 3KB
MMS1_FEEPS_ContaminatedSectors_20161028.csv 3KB
MMS3_FEEPS_ContaminatedSectors_20161028.csv 3KB
MMS2_FEEPS_ContaminatedSectors_20161028.csv 3KB
MMS3_FEEPS_ContaminatedSectors_20171003.csv 3KB
MMS3_FEEPS_ContaminatedSectors_20151111.csv 3KB
MMS2_FEEPS_ContaminatedSectors_20181005.csv 3KB
MMS4_FEEPS_ContaminatedSectors_20171003.csv 3KB
MMS2_FEEPS_ContaminatedSectors_20151111.csv 3KB
MMS4_FEEPS_ContaminatedSectors_20160709.csv 3KB
MMS4_FEEPS_ContaminatedSectors_20151111.csv 3KB
MMS4_FEEPS_ContaminatedSectors_20170531.csv 3KB
MMS3_FEEPS_ContaminatedSectors_20170531.csv 3KB
MANIFEST.in 264B
README.md 7KB
CODE_OF_CONDUCT.md 3KB
CONTRIBUTING.md 2KB
PKG-INFO 9KB
PKG-INFO 9KB
earth_polar1.png 752KB
utilities.py 81KB
__init__.py 64KB
cotrans_lib.py 31KB
__init__.py 25KB
__init__.py 23KB
maven_kp_to_tplot.py 22KB
load_routine_tests.py 18KB
igrf.py 17KB
__init__.py 17KB
__init__.py 17KB
__init__.py 16KB
cdagui.py 16KB
mms_feeps_remove_bad_data.py 16KB
__init__.py 15KB
__init__.py 15KB
__init__.py 14KB
mms_feeps_pitch_angles.py 14KB
maven_load.py 13KB
j2000.py 13KB
__init__.py 12KB
__init__.py 12KB
mms_load_data.py 10KB
__init__.py 10KB
__init__.py 10KB
mms_fpi_set_metadata.py 10KB
load.py 9KB
mms_eis_pad.py 9KB
__init__.py 9KB
tests.py 9KB
__init__.py 9KB
mms_curl.py 8KB
gmag.py 8KB
download.py 8KB
mms_dsp_set_metadata.py 7KB
cotrans.py 7KB
mms_feeps_pad.py 7KB
download_files_utilities.py 7KB
pwe.py 7KB
mms_feeps_omni.py 7KB
__init__.py 6KB
mms_get_state_data.py 6KB
mms_mec_set_metadata.py 6KB
time_clip.py 6KB
mms_feeps_flat_field_corrections.py 6KB
dpwrspc.py 6KB
cdaweb.py 6KB
mms_load_data_spdf.py 6KB
avg_data.py 5KB
feeps.py 5KB
tests.py 4KB
mgf.py 4KB
mms_edi_set_metadata.py 4KB
__init__.py 4KB
mms_get_local_files.py 4KB
load.py 4KB
load.py 4KB
misc_tests.py 4KB
mms_eis_pad_spinavg.py 4KB
load.py 4KB
mms_file_filter.py 4KB
dsl2gse.py 4KB
file_filter.py 4KB
mms_hpca_calc_anodes.py 3KB
load.py 3KB
mms_feeps_active_eyes.py 3KB
mms_fgm_set_metadata.py 3KB
mms_feeps_remove_sun.py 3KB
tsmooth.py 3KB
共 291 条
- 1
- 2
- 3
资源评论
- 纳甲梅花2022-11-13总算找到了自己想要的资源,对自己的启发很大,感谢分享~
挣扎的蓝藻
- 粉丝: 13w+
- 资源: 15万+
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功