Skip to content
This repository was archived by the owner on Jan 26, 2022. It is now read-only.

Commit 8a21d12

Browse files
authored
Merge pull request #530 from dstansby/v0.5.3
v0.5.3 backports
2 parents 6b3740a + ef3f498 commit 8a21d12

11 files changed

Lines changed: 37 additions & 14 deletions

File tree

CHANGES.rst

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,17 @@ Version 0.5.2
44
New features
55
^^^^^^^^^^^^
66

7+
- Lots of small documentation updates.
8+
- `.data.helios.distparams` now has an extra ``'data_rate'`` column, which
9+
determines whether a given distribution function was transmitted in high or
10+
low data mode. :issue:`529`
11+
12+
Version 0.5.2
13+
-------------
14+
15+
New features
16+
^^^^^^^^^^^^
17+
718
- The new HelioPy logo has been added to the documentation.
819
:issue:`448`, :issue:`447`
920

README.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
11
# HelioPy
22

3-
A python library for Space Physics. The primary goal of this python package is
4-
to make it really easy to import common data sets used in Space Physics.
3+
A python library for heliospheric and planetary Physics.
4+
The primary goal of HelioPy is to provide a set of tools to download and read
5+
in data, and to carry out other common data processing tasks.
6+
57
Full documentation can be found [here](http://docs.heliopy.org/).
68

79
A quick example shows how easy it is to import and view data:

artwork/logo_circle.png

35.8 KB
Loading

artwork/logo_circle.svg

Lines changed: 1 addition & 0 deletions
Loading

doc/source/conf.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
html_sidebars = {'**': ['docsidebar.html']}
3131

3232
# Pretend these modules exits so readthedocs builds
33-
MOCK_MODULES = ['spiceypy']
33+
MOCK_MODULES = []
3434
for mod_name in MOCK_MODULES:
3535
sys.modules[mod_name] = mock.Mock()
3636

@@ -64,6 +64,7 @@
6464

6565

6666
sphinx_gallery_conf = {
67+
'default_thumb_file': os.path.abspath(os.path.join('..', '..', 'artwork', 'logo_circle.png')),
6768
'examples_dirs': '../../examples',
6869
'gallery_dirs': 'auto_examples',
6970
'backreferences_dir': False,

doc/source/data/index.rst

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,12 @@ own sub-module:
2222
ulysses
2323
wind
2424

25-
There is also other modules for downloading SPICE kernels and sunspot number
25+
Each mission does not have a complete set of data import methods, but the goal
26+
of HelioPy is to be as complete as possible. If you want to import a data set
27+
that is not yet supported please open an issue on the bug tracker at
28+
https://github.com/heliopython/heliopy/issues
29+
30+
There are also modules for downloading SPICE kernels and sunspot number
2631
data:
2732

2833
.. toctree::

doc/source/guide/installing.rst

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ HelioPy is built on the Python programming language. The easiest way to install
55
Python with the various required scientific python modules is to use Anaconda.
66
Installation instructions can be found `here <https://docs.continuum.io/anaconda/install/>`_.
77

8-
The supported versions of python are 3.5 and 3.6.
8+
The minimum supported version of python is python 3.6.
99

1010
Once you have a Python distribution installed, HelioPy can be installed using
1111
either conda::
@@ -21,13 +21,14 @@ Optional dependencies
2121

2222
HDF file reader/writer
2323
^^^^^^^^^^^^^^^^^^^^^^
24-
Saving data to hdf files for quicker access requires PyTables.
25-
(see :ref:`sphx_glr_auto_examples_fast_file_loading.py` for more information)
24+
Saving data to hdf files for quicker access requires the *PyTables* python
25+
package. (see :ref:`sphx_glr_auto_examples_fast_file_loading.py`
26+
for more information)
2627

2728
CDF Library
2829
^^^^^^^^^^^
29-
Reading in any data that is stored in .cdf files requires an installation of
30-
the CDF library: https://cdf.gsfc.nasa.gov/
30+
Reading in any data that is stored in .cdf files requires a local installation
31+
of the CDF library: https://cdf.gsfc.nasa.gov/
3132

3233
SPICE Toolkit
3334
^^^^^^^^^^^^^
@@ -44,4 +45,4 @@ https://github.com/heliopython/heliopy/. To install from source follow these ste
4445
3. ``cd heliopy``
4546
4. ``pip install .``
4647

47-
This will install HelioPy from source and it's required dependancies.
48+
This will install HelioPy from source.

doc/source/index.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22
HelioPy Documentation
33
#####################
44

5-
HelioPy is a free and open source set of tools for automatically downloading
6-
and reading in space physics timeseries data to python.
5+
HelioPy is a free and open source set of tools for heliopsheric and planetary
6+
physics. For more information see the module documentation below.
77

88
Getting started
99
===============
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
###############################################################################
1919
# Load the solar orbiter spice kernel. HelioPy will automatically fetch the
2020
# latest kernel
21-
orbiter_kernel = spicedata.get_kernel('solar orbiter 2020')
21+
orbiter_kernel = spicedata.get_kernel('solo_2020')
2222
spice.furnish(orbiter_kernel)
2323
orbiter = spice.Trajectory('Solar Orbiter')
2424

heliopy/data/helios.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -399,9 +399,9 @@ def distparams(probe, starttime, endtime, verbose=False):
399399
todays_params = todays_params.set_index('Time', drop=False)
400400
# Convert columns to numeric types
401401
todays_params = todays_params.apply(pd.to_numeric, errors='ignore')
402+
todays_params['Time'] = pd.to_datetime(todays_params['Time'])
402403
if use_hdf:
403404
todays_params.to_hdf(hdffile, key='distparams', mode='w')
404-
405405
paramlist.append(todays_params)
406406
starttime += timedelta(days=1)
407407

@@ -453,6 +453,7 @@ def distparams_single(probe, year, doy, hour, minute, second):
453453
distparams['minus'] = int(flags[3])
454454
# 0 = no instrument, 1 = i1a, 2 = I3
455455
distparams['ion_instrument'] = int(flags[4])
456+
distparams['data_rate'] = 1 if ('hdm' in f.name) else 0
456457

457458
# 2 lines of Helios location information
458459
location = f.readline().split()

0 commit comments

Comments
 (0)