Commit 420d176f authored by Ole Streicher's avatar Ole Streicher

New upstream version 0.9.0~rc1

parent ace58201
0.9.0 (Unreleased)
==================
New Features
------------
- Added TimeUTime class to support utime. [#2409]
- Example for fine-grained use of ticks and grids [#2435]
- Maintiners Workflow Guide [#2411]
- Decorator to append and/or prepend doc strings [#2386]
- Adding `python setup.py test --figure-only` [#2557]
- Fido.fetch now accepts pathlib.Path objects for path attribute.[#2559]
- The :class:`HeliographicStonyhurst` coordinate system can now be specified
using a cartesian system, which is sometimes known as the
"Heliocentric Earth equatorial" (HEEQ) coordinate system. [#2437]
API Changes
-----------
- ``sunpy.coordinates.representation`` has been removed. Longitude wrapping is now done in the constructor of the frames. [#2431]
- Propagation of ``obstime`` in the coordinate frame transformation has changed, this means in general when transforming directly between frames (not
``SkyCoord``) you will have to specify ``obstime`` in more places. [#2461]
- Transforming between Heliographic Stonyhurst and Carrington now requires that ``obstime`` be defined and the same on both the input and output frames. [#2461]
- Removed the figure return from .peek() [#2487]
Bug Fixes
---------
- Improve TimeSeriesBase docstring [#2399]
- Validate that pytest-doctestplus is installed [#2388]
- Fix use of self.wcs in plot in mapbase [#2398]
- Updated docstring with pointer to access EVE data for other levels [#2402]
- Fix broken links and redirections in documentation [#2403]
- Fixes Documentation changes due to NumPy 1.14 [#2404]
- Added docstrings to functions in dowload.py [#2415]
- Clean up database doc [#2414]
- rhessi.py now uses sunpy.io instead of astropy.io [#2416]
- Remove Gamma usage in Map [#2424]
- Changed requirements to python-dateutil [#2426]
- Clarify coordinate system definitions [#2429]
- Improve Map Peek when using draw_grid [#2442]
- Add HCC --> HGS test [#2443]
- Testing the transformation linking SunPy and Astropy against published values [#2454]
- Fixed title bug in sunpy.timeseries.rhessi [#2477]
- Allow LineAnimator to accept a varying x-axis [#2491]
- Indexing Bug Fix to LineAnimator [#2560]
- Output sphinx warnings to stdout [#2553]
- Docstring improvement for LineAnimator [#2514]
- move the egg_info builds to circleci [#2512]
- Added tests for TraceMap [#2504]
- Fix HGS frame constructor and HPC ``calculate_distance`` with SkyCoord constructor. [#2463]
- removed `wavelnth` keyword in meta desc of Maps to avoid using non standard FITS keyword like `nan` [#2456]
- The documentation build now uses the Sphinx configuration from sphinx-astropy rather than from astropy-helpers.[#2494]
- Migrate to hypothesis.strategies.datetimes [#2368]
- Prevent a deprecation warning due to truth values of Quantity [#2358]
- Print a warning when heliographic longitude is set to it's default value of 0 [#2480]
- parse_time now parses numpy.datetime64 correctly. [#2572]
0.8.5
=====
......
Metadata-Version: 1.1
Metadata-Version: 2.1
Name: sunpy
Version: 0.8.5
Version: 0.9.0rc1
Summary: SunPy: Python for Solar Physics
Home-page: http://sunpy.org/
Author: The SunPy Community
Author-email: sunpy@googlegroups.com
License: BSD
Description-Content-Type: UNKNOWN
Description: SunPy is a Python library for solar physics data analysis.
Platform: UNKNOWN
Provides: sunpy
Provides-Extra: all
Provides-Extra: net
Provides-Extra: tests
Provides-Extra: jpeg2000
Provides-Extra: database
Provides-Extra: image
# [SunPy](http://sunpy.org)
[![Downloads](https://img.shields.io/pypi/dm/sunpy.svg)](https://pypi.python.org/pypi/sunpy/)
[![Latest Version](https://img.shields.io/pypi/v/sunpy.svg)](https://pypi.python.org/pypi/sunpy/)
[![Build Status](https://secure.travis-ci.org/sunpy/sunpy.svg)](http://travis-ci.org/sunpy/sunpy)
[![Build status](https://ci.appveyor.com/api/projects/status/xow461iejsjvp9vl?svg=true)](https://ci.appveyor.com/project/sunpy/sunpy)
[![Coverage Status](https://coveralls.io/repos/sunpy/sunpy/badge.svg?branch=master)](https://coveralls.io/r/sunpy/sunpy?branch=master)
[![Research software impact](http://depsy.org/api/package/pypi/sunpy/badge.svg)](http://depsy.org/package/python/sunpy)
[![DOI](https://zenodo.org/badge/2165383.svg)](https://zenodo.org/badge/latestdoi/2165383)
[![Powered by NumFOCUS](https://img.shields.io/badge/powered%20by-NumFOCUS-orange.svg?style=flat&colorA=E1523D&colorB=007D8A)](http://numfocus.org)
SunPy is an open-source Python library for solar physics data analysis. See [sunpy.org](http://sunpy.org) for more information about the project.
For some examples of using SunPy see our [gallery](http://docs.sunpy.org/en/stable/generated/gallery/index.html).
Installation
------------
The recommended way to install SunPy is
with [conda](https://www.continuum.io/downloads). To install SunPy once conda is
installed run the following two commands:
$ conda config --append channels conda-forge
$ conda install sunpy
If you want to develop SunPy you will need to install from git. The best way to
do this is to create a new conda environment and install the git version of
SunPy in it:
$ conda config --append channels conda-forge
$ conda create -n sunpy-dev python sunpy hypothesis pytest-mock
$ source activate sunpy-dev
$ conda remove sunpy
$ git clone https://github.com/sunpy/sunpy.git sunpy-git
$ cd sunpy-git
$ pip install -e .
For detailed installation instructions, see
the
[installation guide](http://docs.sunpy.org/en/latest/guide/installation/index.html) in
the SunPy docs.
Usage
-----
Here is a quick example of plotting an AIA image:
```python
>>> import sunpy.map
>>> from sunpy.data.sample import AIA_171_IMAGE
>>> aia = sunpy.map.Map(AIA_171_IMAGE)
>>> aia.peek()
```
Getting Help
------------
For more information or to ask questions about SunPy, check out:
* [SunPy Documentation](http://docs.sunpy.org/en/latest/)
* [SunPy Mailing List](https://groups.google.com/forum/#!forum/sunpy)
* [SunPy Matrix Channel](https://riot.im/app/#/room/#sunpy:matrix.org)
Contributing
------------
If you would like to get involved, start by joining the
[SunPy mailing list](https://groups.google.com/forum/#!forum/sunpy)
and check out the [Developer's Guide](http://docs.sunpy.org/en/latest/dev_guide/index.html) section
of the SunPy docs. Stop by our chat room [#sunpy:matrix.org](https://riot.im/app/#/room/#sunpy:matrix.org)
if you have any questions. Help is always welcome so let us know what you like
to work on, or check out the [issues page](https://github.com/sunpy/sunpy/issues)
for the list of known outstanding items.
For more information on contributing to SunPy, please read our
[contributing guide](https://github.com/sunpy/sunpy/blob/master/CONTRIBUTING.md).
### Code of Conduct
When you are interacting with the SunPy community you are asked to follow
our [Code of Conduct](https://github.com/sunpy/sunpy/wiki/Code-of-Conduct).
`SunPy`_
========
|Latest Version| |Build Status| |Build status| |codecov| |Research software impact| |DOI| |Powered by NumFOCUS|
SunPy is an open-source Python library for solar physics data analysis.
See `sunpy.org`_ for more information about the project.
For some examples of using SunPy see our `gallery`_.
Installation
------------
The recommended way to install SunPy is with `conda`_.
To install SunPy once conda is installed run the following two commands:
.. code:: bash
$ conda config --append channels conda-forge
$ conda install sunpy
If you want to develop SunPy you will need to install from git.
The best way to do this is to create a new conda environment and install the git version of SunPy in it:
.. code:: bash
$ conda config --append channels conda-forge
$ conda create -n sunpy-dev python sunpy hypothesis pytest-mock
$ source activate sunpy-dev
$ conda remove sunpy
$ git clone https://github.com/sunpy/sunpy.git sunpy-git
$ cd sunpy-git
$ pip install -e .
For detailed installation instructions, see the `installation guide`_ in the SunPy docs.
Usage
-----
Here is a quick example of plotting an AIA image:
.. code:: python
>>> import sunpy.map
>>> from sunpy.data.sample import AIA_171_IMAGE
>>> aia = sunpy.map.Map(AIA_171_IMAGE)
>>> aia.peek()
Getting Help
------------
For more information or to ask questions about SunPy, check out:
- `SunPy Documentation`_
- `SunPy Matrix Channel`_
- `SunPy Mailing List`_
Contributing
------------
|Open Source Helpers|
If you would like to get involved, start by joining the `SunPy mailing list`_ and check out the `Developer’s Guide`_ section of the SunPy docs.
Stop by our chat room `#sunpy:matrix.org`_ if you have any questions.
Help is always welcome so let us know what you like to work on, or check out the `issues page`_ for the list of known outstanding items.
For more information on contributing to SunPy, please read our `contributing guide`_ or the `Newcomers guide`_.
Code of Conduct
~~~~~~~~~~~~~~~
When you are interacting with the SunPy community you are asked to
follow our `Code of Conduct`_.
.. |Latest Version| image:: https://img.shields.io/pypi/v/sunpy.svg
:target: https://pypi.python.org/pypi/sunpy/
.. |Build Status| image:: https://secure.travis-ci.org/sunpy/sunpy.svg
:target: http://travis-ci.org/sunpy/sunpy
.. |Build status| image:: https://ci.appveyor.com/api/projects/status/xow461iejsjvp9vl?svg=true
:target: https://ci.appveyor.com/project/sunpy/sunpy
.. |codecov| image:: https://codecov.io/gh/sunpy/sunpy/branch/master/graph/badge.svg
:target: https://codecov.io/gh/sunpy/sunpy
.. |Research software impact| image:: http://depsy.org/api/package/pypi/sunpy/badge.svg
:target: http://depsy.org/package/python/sunpy
.. |DOI| image:: https://zenodo.org/badge/2165383.svg
:target: https://zenodo.org/badge/latestdoi/2165383
.. |Powered by NumFOCUS| image:: https://img.shields.io/badge/powered%20by-NumFOCUS-orange.svg?style=flat&colorA=E1523D&colorB=007D8A
:target: http://numfocus.org
.. |Open Source Helpers| image:: https://www.codetriage.com/sunpy/sunpy/badges/users.svg
:target: https://www.codetriage.com/sunpy/sunpy
.. _SunPy: http://sunpy.org
.. _sunpy.org: http://sunpy.org
.. _gallery: http://docs.sunpy.org/en/stable/generated/gallery/index.html
.. _conda: https://www.continuum.io/downloads
.. _installation guide: http://docs.sunpy.org/en/latest/guide/installation/index.html
.. _SunPy Documentation: http://docs.sunpy.org/
.. _SunPy Mailing List: https://groups.google.com/forum/#!forum/sunpy
.. _SunPy Matrix Channel: https://riot.im/app/#/room/#sunpy:matrix.org
.. _SunPy mailing list: https://groups.google.com/forum/#!forum/sunpy
.. _Developer’s Guide: http://docs.sunpy.org/en/latest/dev_guide/index.html
.. _`#sunpy:matrix.org`: https://riot.im/app/#/room/#sunpy:matrix.org
.. _issues page: https://github.com/sunpy/sunpy/issues
.. _contributing guide: https://github.com/sunpy/sunpy/blob/master/CONTRIBUTING.rst
.. _Newcomers guide: http://docs.sunpy.org/en/stable/dev_guide/newcomers.html
.. _Code of Conduct: http://docs.sunpy.org/en/stable/coc.html
The SunPy project is happy to announce the release of SunPy 0.8.0.
SunPy 0.8 is the next major release of SunPy and contains 1442 commits in over
200 pull requests, closing 163 issues from 35 people, 17 of whom have never
contributed before.
SunPy 0.8 is the next major release of SunPy and contains 1442 commits in over 200 pull requests, closing 163 issues from 35 people, 17 of whom have never contributed before.
This release is a large milestone for the SunPy library. It contains large new
features that have been in development for a number of years, and will form the
foundation of SunPy for the future. The main additions are `sunpy.net.Fido` and
`sunpy.timeseries`, as well as major upgrades to `sunpy.coordinates`. Along with
this it deprecates some old parts of SunPy that have been rewritten, two
submodules `sunpy.lightcurve` and `sunpy.wcs` have been superseded by
`sunpy.timeseries` and `sunpy.coordinates` respectively.
This release is a large milestone for the SunPy library.
It contains large new features that have been in development for a number of years, and will form the foundation of SunPy for the future.
The main additions are ``sunpy.net.Fido`` and ``sunpy.timeseries``, as well as major upgrades to ``sunpy.coordinates``.
Along with this it deprecates some old parts of SunPy that have been rewritten, two submodules ``sunpy.lightcurve`` and ``sunpy.wcs`` have been superseded by ``sunpy.timeseries`` and ``sunpy.coordinates`` respectively.
The people who have contributed to the code for this release are:
::
Stuart Mumford
Jack Ireland
Nabil Freij
......@@ -50,12 +47,8 @@ The people who have contributed to the code for this release are:
Kaustubh Hiware *
Larry Manley
Where an * indicates their first contribution.
Where an \* indicates their first contribution.
In addition to the code contributions I would like to highlight the work of
Nabil Freij who has done a lot of work in the last few months releasing bug
fixes for the 0.7 series as well as a lot of behind the scenes work on SunPy's
tooling. I would also like to thank Duygu Keşkek who has redesigned the
sunpy.org page and the documentation as part of her GSOC project. Finally, I
would like to welcome Monica Bobra and Sabrina Savage to the SunPy Board.
In addition to the code contributions I would like to highlight the work of Nabil Freij who has done a lot of work in the last few months releasing bug fixes for the 0.7 series as well as a lot of behind the scenes work on SunPy’s tooling.
I would also like to thank Duygu Keşkek who has redesigned the sunpy.org page and the documentation as part of her GSOC project.
Finally, I would like to welcome Monica Bobra and Sabrina Savage to the SunPy Board.
......@@ -19,9 +19,14 @@ that section, and options therein, determine the next step taken: If it
contains an option called ``auto_use`` with a value of ``True``, it will
automatically call the main function of this module called
`use_astropy_helpers` (see that function's docstring for full details).
Otherwise no further action is taken (however,
``ah_bootstrap.use_astropy_helpers`` may be called manually from within the
setup.py script).
Otherwise no further action is taken and by default the system-installed version
of astropy-helpers will be used (however, ``ah_bootstrap.use_astropy_helpers``
may be called manually from within the setup.py script).
This behavior can also be controlled using the ``--auto-use`` and
``--no-auto-use`` command-line flags. For clarity, an alias for
``--no-auto-use`` is ``--use-system-astropy-helpers``, and we recommend using
the latter if needed.
Additional options in the ``[ah_boostrap]`` section of setup.cfg have the same
names as the arguments to `use_astropy_helpers`, and can be used to configure
......@@ -146,6 +151,11 @@ from distutils.debug import DEBUG
DIST_NAME = 'astropy-helpers'
PACKAGE_NAME = 'astropy_helpers'
if PY3:
UPPER_VERSION_EXCLUSIVE = None
else:
UPPER_VERSION_EXCLUSIVE = '3'
# Defaults for other options
DOWNLOAD_IF_NEEDED = True
INDEX_URL = 'https://pypi.python.org/simple'
......@@ -286,6 +296,18 @@ class _Bootstrapper(object):
config['offline'] = True
argv.remove('--offline')
if '--auto-use' in argv:
config['auto_use'] = True
argv.remove('--auto-use')
if '--no-auto-use' in argv:
config['auto_use'] = False
argv.remove('--no-auto-use')
if '--use-system-astropy-helpers' in argv:
config['auto_use'] = False
argv.remove('--use-system-astropy-helpers')
return config
def run(self):
......@@ -501,16 +523,32 @@ class _Bootstrapper(object):
if version:
req = '{0}=={1}'.format(DIST_NAME, version)
else:
req = DIST_NAME
if UPPER_VERSION_EXCLUSIVE is None:
req = DIST_NAME
else:
req = '{0}<{1}'.format(DIST_NAME, UPPER_VERSION_EXCLUSIVE)
attrs = {'setup_requires': [req]}
# NOTE: we need to parse the config file (e.g. setup.cfg) to make sure
# it honours the options set in the [easy_install] section, and we need
# to explicitly fetch the requirement eggs as setup_requires does not
# get honored in recent versions of setuptools:
# https://github.com/pypa/setuptools/issues/1273
try:
if DEBUG:
_Distribution(attrs=attrs)
else:
with _silence():
_Distribution(attrs=attrs)
context = _verbose if DEBUG else _silence
with context():
dist = _Distribution(attrs=attrs)
try:
dist.parse_config_files(ignore_option_errors=True)
dist.fetch_build_eggs(req)
except TypeError:
# On older versions of setuptools, ignore_option_errors
# doesn't exist, and the above two lines are not needed
# so we can just continue
pass
# If the setup_requires succeeded it will have added the new dist to
# the main working_set
......@@ -846,6 +884,10 @@ class _DummyFile(object):
pass
@contextlib.contextmanager
def _verbose():
yield
@contextlib.contextmanager
def _silence():
"""A context manager that silences sys.stdout and sys.stderr."""
......
astropy-helpers Changelog
*************************
2.0.7 (unreleased)
------------------
- Nothing changed yet.
2.0.6 (2018-02-24)
------------------
......
......@@ -201,7 +201,7 @@ class AstropyBuildDocs(SphinxBuildDoc):
proc = subprocess.Popen([sys.executable, '-c', subproccode],
stdin=subprocess.PIPE,
stdout=subprocess.PIPE,
stderr=subprocess.STDOUT)
stderr=None)
retcode = 1
with proc.stdout:
......
......@@ -9,7 +9,7 @@ from astropy_helpers.setup_helpers import (register_commands, get_package_info,
from astropy_helpers.version_helpers import generate_version_py
NAME = 'astropy_helpers'
VERSION = '2.0.6'
VERSION = '2.0.7.dev'
RELEASE = 'dev' not in VERSION
generate_version_py(NAME, VERSION, RELEASE, False, uses_git=not RELEASE)
......
Copyright (c) 2011-2014, Astropy Developers
Copyright (c) 2011-2018, Astropy Developers
All rights reserved.
......
Copyright (c) 2010-2013 Benjamin Peterson
Copyright (c) 2010-2018 Benjamin Peterson
Permission is hereby granted, free of charge, to any person obtaining a copy of
this software and associated documentation files (the "Software"), to deal in
......
......@@ -17,6 +17,7 @@ minversion = 3.0
testpaths = "sunpy" "docs"
norecursedirs = ".tox" "build" "docs[\/]_build" "docs[\/]generated" "*.egg-info" "astropy_helpers" "examples"
doctest_plus = enabled
doctest_optionflags = NORMALIZE_WHITESPACE FLOAT_CMP
addopts = -p no:warnings --doctest-rst
markers =
online: marks this test function as needing online connectivity.
......@@ -37,6 +38,9 @@ url = http://sunpy.org/
edit_on_github = True
github_project = sunpy/sunpy
[flake8]
max-line-length = 100
[pycodestyle]
max_line_length = 100
......
......@@ -52,8 +52,8 @@ LONG_DESCRIPTION = "SunPy is a Python library for solar physics data analysis."
# to get from other parts of the setup infrastructure
builtins._ASTROPY_PACKAGE_NAME_ = PACKAGENAME
# VERSION should be PEP386 compatible (http://www.python.org/dev/peps/pep-0386)
VERSION = '0.8.5'
# VERSION should be PEP386 compatible (https://www.python.org/dev/peps/pep-0386)
VERSION = '0.9.0rc1'
# Indicates if this version is a release version
RELEASE = 'dev' not in VERSION
......@@ -108,7 +108,7 @@ package_info['package_data'][PACKAGENAME].extend(c_files)
extras_require = {'database': ["sqlalchemy"],
'image': ["scikit-image"],
'jpeg2000': ["glymur"],
'net': ["suds-jurko", "beautifulsoup4", "requests", "dateutil"],
'net': ["suds-jurko", "beautifulsoup4", "requests", "python-dateutil"],
'tests': ["pytest", "pytest-cov", "pytest-mock", "pytest-rerunfailures", "mock", "hypothesis"]}
extras_require['all'] = extras_require['database'] + extras_require['image'] + \
extras_require['net'] + extras_require['tests']
......@@ -118,10 +118,11 @@ setup(name=PACKAGENAME,
description=DESCRIPTION,
scripts=scripts,
install_requires=['numpy>=1.11',
'astropy>=2.0',
'astropy>=2.0.3',
'scipy',
'pandas>=0.12.0',
'matplotlib>=1.3'],
'matplotlib>=1.3',
'pytest'], # Upstream bug fix
extras_require=extras_require,
provides=[PACKAGENAME],
author=AUTHOR,
......
......@@ -6,8 +6,8 @@ An open-source Python library for Solar Physics data analysis.
Web Links
---------
Homepage: http://www.sunpy.org
Documentation: http://docs.sunpy.org
Homepage: http://sunpy.org
Documentation: http://docs.sunpy.org/en/stable/
"""
from __future__ import absolute_import
......@@ -26,4 +26,4 @@ from sunpy.util import system_info
from sunpy.tests import main as self_test
# Load user configuration
config = load_config()
\ No newline at end of file
config = load_config()
......@@ -8,6 +8,7 @@ import matplotlib.pyplot as plt
import matplotlib.cm as cm
from sunpy.cm import color_tables as ct
from sunpy.util import deprecated
__all__ = ['get_cmap', 'show_colormaps', 'cmlist']
......@@ -41,10 +42,6 @@ yohkohsxtwh = ct.sxt_color_table('wh')
hinodexrt = ct.xrt_color_table()
hinodesotintensity = ct.sot_color_table('intensity')
#hinodesotstokesquv = ct.sot_color_table('stokesQUV')
#hinodesotmagneticf = ct.sot_color_table('magnetic field')
#hinodesotvelocity = ct.sot_color_table('velocity')
#hinodesotwidth = ct.sot_color_table('width')
trace171 = ct.trace_color_table('171')
trace195 = ct.trace_color_table('195')
......@@ -78,15 +75,11 @@ cmlist = {
'stereocor2': stereocor2,
'stereohi1': stereohi1,
'stereohi2': stereohi2,
'rhessi': cm.jet, # pylint: disable=E1101
'rhessi': cm.jet,
'yohkohsxtal': yohkohsxtal,
'yohkohsxtwh': yohkohsxtwh,
'hinodexrt': hinodexrt,
'hinodesotintensity': hinodesotintensity,
# 'hinodesotstokesquv': hinodesotstokesquv,
# 'hinodesotmagneticf': hinodesotmagneticf,
# 'hinodesotvelocity': hinodesotvelocity,
# 'hinodesotwidth': hinodesotwidth,
'trace171': trace171,
'trace195': trace195,
'trace284': trace284,
......@@ -111,6 +104,7 @@ cmlist = {
for name, cmap in cmlist.items():
cm.register_cmap(name=name, cmap=cmap)
@deprecated("0.9", "Use Matplotlib to load the colormaps", alternative='plt.get_cmap')
def get_cmap(name):
"""
Get a colormap.
......@@ -134,7 +128,7 @@ def get_cmap(name):
References
----------
| http://matplotlib.sourceforge.net/api/cm_api.html
| https://matplotlib.org/api/cm_api.html
"""
if name in cmlist:
......@@ -191,55 +185,3 @@ def show_colormaps(filter=None):
horizontalalignment='right')
plt.show()
# def test_equalize(data):
# """Returns a color map which performs histogram equalization on the data.
#
# Parameters
# ----------
# data : ndarray
#
# Returns
# -------
# value : matplotlib colormap
#
# See Also
# --------
#
# Examples
# --------
# >>> import sunpy.cm as cm
# >>> cm.test_equalize()
#
# Reference
# ---------
# | http://matplotlib.sourceforge.net/api/cm_api.html
#
# .. warning:: this function is under development
#
# .. todo:: finish coding this function!
#
# """
# dfile = cbook.get_sample_data('s1045.ima', asfileobj=False)
#
# im = np.fromstring(file(dfile, 'rb').read(), np.uint16).astype(float)
# im.shape = 256, 256
#
# #imshow(im, ColormapJet(256))
# #imshow(im, cmap=cm.jet)
#
# imvals = np.sort(im.flatten())
# lo = imvals[0]
# hi = imvals[-1]
# steps = (imvals[::len(imvals)/256] - lo) / (hi - lo)
# num_steps = float(len(steps))
# interps = [(s, idx/num_steps, idx/num_steps) for idx,
# s in enumerate(steps)]
# interps.append((1, 1, 1))
# cdict = {'red': interps,
# 'green': interps,
# 'blue': interps}
# histeq_cmap = colors.LinearSegmentedColormap('HistEq', cdict)
# pylab.figure()
# pylab.imshow(im, cmap=histeq_cmap)
# pylab.title('histeq')
# pylab.show()
......@@ -542,7 +542,7 @@ def cor_color_table(number):
# Standard TRACE color RGB triples, as defined by the SSWIDL program
# trace_colors.pro.
# See http://hesperia.gsfc.nasa.gov/ssw/trace/idl/util/trace_colors.pro
# See https://hesperia.gsfc.nasa.gov/ssw/trace/idl/util/trace_colors.pro
trace_171_r = np.array(
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
......@@ -1037,16 +1037,11 @@ def sot_color_table(measurement):
try:
r, g, b = {
'intensity': (r0, g0, b0),
# :todo
# 'stokesQUV': (),
# 'magnetic field': (),