Full Changelog

Sunpy v1.0.5 (2019-10-22)

Bug Fixes

  • Fix incorrect files being included in the tarball, and docs missing from the tarball (#3423)

Sunpy v1.0.4 (2019-10-22)

Bug Fixes

Improved Documentation

  • Improved the contributing guide by updating commands and highlighting text. (#3394)

  • Removing fits from the end of path kwargs in sunpy.net.FIDO.fetch docs to change output file extension from {file}.fits.fits to {file}.fits. (#3399)

Sunpy v1.0.3 (2019-08-29)

Features

  • Add ability to disable progressbars when dowloading files using sunpy.net.helioviewer.py and edited docstrings to mention this feature. (#3280)

Bug Fixes

  • Fixed the handling of coordinates with velocity information when transforming between Astropy frames and SunPy frames. (#3247)

  • Fixed all coordinate transformations to properly handle a change in observation time. (#3247)

  • Fixed calculate_solar_rotate_shift so that it does not calculate a shift between the reference layer and itself, which would sometimes incorrectly result in a shift of a pixel due to numerical precision. (#3255)

  • Stop crash when LineAnimator axes_ranges entry given as 1D array when data is >1D, i.e. as an independent axis. (#3283)

  • Fixed a bug where the transformation from Helioprojective to Heliocentric used the Sun-observer distance from the wrong frame when shifting the origin, and thus might not give the correct answer if the observer was not the same for the two frames. (#3291)

  • Fixed a bug with the transformations between Heliocentric and HeliographicStonyhurst when the frame observation time was not the same as the observer observation time. The most common way to encounter this bug was when transforming from Helioprojective to any non-observer-based frame while also changing the observation time. (#3291)

  • Fixed a sunpy.coordinates bug where a frame using the default observer of Earth could have its observer overwritten during a transformation. (#3291)

  • VSO client fetch should not download when wait keyword argument is specified. (#3298)

  • Fixed a bug with solar_frame_to_wcs_mapping that assumed that the supplied frame was a SunPy frame. (#3305)

  • Fixed bugs with solar_frame_to_wcs_mapping if the input frame does not include an observation time or an observer. (#3305)

Improved Documentation

Trivial/Internal Changes

  • Allow running our sphinx-gallery examples as Jupyter notebooks via Binder (#3256)

Sunpy v1.0.2 (2019-06-26)

Bug Fixes

Improved Documentation

  • Cleaned and expanded upon the docstrings for each Fido Client. (#3220)

  • Added clarifying hyperlinks to the gallery example getting_lasco_observer_location to link to astroquery docs page. (#3228)

Sunpy v1.0.1 (2019-06-07)

Bug Fixes

  • Fixed accuracy issues with the calculations of Carrington longitude (L0) and Carrington rotation number (carrington_rotation_number). (#3178)

  • Updated sunpy.map.header_helper.make_fitswcs_header to be more strict on the inputs it accepts. (#3183)

  • Fix the calculation of rsun_ref in make_fitswcs_header and and ensure that the default reference pixel is indexed from 1. (#3184)

  • Fixed the missing transformation between two HeliographicCarrington frames with different observation times. (#3186)

Improved Documentation

Sunpy 1.0.0 (2019-06-01)

Backwards Incompatible Changes

  • Move the matplotlib animators from sunpy.visualisation.imageanimator and sunpy.visualization.mapcubeanimator to sunpy.visualization.animator. (#2515)

  • Make sunpy.time.parse_time return astropy.time.Time instead of datetime.datetime. (#2611)

  • The properties and methods of sunpy.time.TimeRange returns astropy.time.Time and astropy.time.TimeDelta instead of datetime.datetime and datetime.timedelta respectively. (#2638)

  • The sunpy.instr.goes module now accepts and returns sunpy.timeseries.XRSTimeSeries objects only. (#2666)

  • obstime keyword param of sunpy.instr.goes._goes_lx takes a non-scalar astropy.time.Time object instead of numpy.ndarray. The precision of times contained in sunpy.timeseries has been increased to 9 from 6. (#2676)

  • Removed sunpy.net.jsoc.attrs.Time because it served the same purpose as sunpy.net.attrs.Time after the switch to astropy.time.Time. (#2694)

  • Remove unused **kwargs within TimeSeries functions. (#2717)

  • Rotation matrices inside map objects were previously stored as numpy matrices, but are now stored as numpy arrays, as numpy will eventually remove their matrix datatype. See https://docs.scipy.org/doc/numpy/user/numpy-for-matlab-users.html for more information. (#2719)

  • The sunpy.cm.show_colormaps function now accepts the keyword ‘search’ instead of ‘filter’. (#2731)

  • The keyword arguments to all client .fetch methods have been changed to support the new parfive downloader and to ensure consisteny across all Fido clients. (#2797)

  • The Helioviewer client has been switched to using the newer Helioviewer API. This has meant that we have changed some of the keywords that were passed into client’s methods. We have enforced that several keywords (observatory,instrument,detector,measurement) need to be defined otherwise the functions cannot return any data. (#2801)

  • Maps no longer assume that the pixel units are arcseconds if the units aren’t explicitly set. In addition to this if critical metadata is missing from when creating a map, the map will fail to initialize and will raise an error. (#2847)

  • axis_ranges kwarg of sunpy.visualization.animator.ArrayAnimator, sunpy.visualization.animator.ImageAnimator and sunpy.visualization.animator.LineAnimator now must be entered as None, [min, max] or pixel edges of each array element. Previously, pixel centers were expected. This change removes ambiguity in interpretation and ensures the extent of the plot can always be accurately derived. (#2867)

  • All keywords have been added (with defaults) to each HelioviewerClient function. This means that there will be some changes to the style of the PNG screenshot that is returned. Returns for the JPEG 2000 and the other functions should be the same but not guaranteed. (#2883)

  • Changed sunpy.sun.models.interior and sunpy.sun.models.evolution from pandas.DataFrame to astropy.table.QTable (#2936)

  • Minimum numpy version is now >=1.14.5 (#2954)

  • Removed sunpy.time.julian_day, sunpy.time.julian_centuries, sunpy.time.day_of_year, sunpy.time.break_time, sunpy.time.get_day. (#2999)

  • Updated the solar values in sunpy.sun.constants to IAU 2015 values. (#3001)

  • Renamed eccentricity_sunearth_orbit to eccentricity_sun_earth_orbit. (#3001)

  • Renamed sunpy.image.rescale to sunpy.image.resample. (#3044)

  • Remove the basic_plot keyword argument from peek. An example has been added to the gallery showing how to make a plot like this. (#3109)

  • sunpy.map.GenericMap will no longer use the key solar_b0 as a value for heliographic latitude. (#3115)

  • sunpy.map.GenericMap now checks for a complete observer location rather than individually defaulting coordinates (lat, lon, distance) to Earth position. If any one of the three coordinates is missing from the header the observer will be defaulted to Earth and a warning raised. (#3115)

  • sunpy.sun.sun functions have been re-implemented using Astropy for significantly improved accuracy. Some functions have been removed. (#3137)

  • All of the functions in sunpy.sun.sun and all of the Sun-specific functions in sunpy.coordinates.ephemeris have been moved to the new module sunpy.coordinates.sun. (#3163)

Deprecations and Removals

Features

  • Change arguments to sunpy.test from offline= and online= to online and online_only. This matches the behavior of the figure keyword arguments and comes as a part of a move to using a modified version of the Astropy test runner. (#1983)

  • asdf schemas and tags were added for the SunPy coordinate frames and GenericMap allowing these objects to be saved to and restored from asdf files. (#2366)

  • The images from image tests are now saved in a local folder for easy access. (#2507)

  • sunpy.map.MapCube has been renamed to sunpy.map.MapSequence to better reflect its use as a collection of map objects. (#2603)

  • Net search attributes now support tab completion of values and display a table of possible values when printed, to allow easier discoverability of possible search values. (#2663)

  • Running the figure tests now creates a page showing the differences between the expected figures and the figures produced from running the tests. (#2681)

  • Add support for Dask arrays in sunpy.map.Map. The map factory now checks a whitelist of array types rather than strictly checking if the array is of type numpy.ndarray. (#2689)

  • Persist the name of a coordinate, i.e. “earth” even though a concrete coordinate object has been calculated and use this string representation to change the way the sunpy frames are printed. This is primarily to facilitate displaying the name of the body rather than the concrete coordinate when printing a SkyCoord. (#2723)

  • search now returns an astropy.table.Table instead of list of a dict. (#2759)

  • Add a downscaled HMI image to the sample data. (#2782)

  • Now able to create a sunpy.map.Map using an array and a astropy.wcs.WCS object. (#2793)

  • The download manager for Fido.fetch has been replaced with parfive. This provides advanced progress bars, proper handling of overwriting and the ability to retry failed downloads. (#2797)

  • sunpy.map.GenericMap can now save out rice compressed FITS files. (#2826)

  • Now any SunPyDeprecationWarnings will cause an error when using pytest. (#2830)

  • Added full Tox support for SunPy tests, documentation build and figure tests. (#2839)

  • Transition the sunpy.net.vso.VSOClient from using suds to zeep as the SOAP library. This is a more actively maintained library, and should provide better support for the VSOs https endpoints. This change should have no effect on the public API of the sunpy.net.vso.VSOClient. (#2866)

  • Provided access to the Helioviewer header information using get_jp2_header function. (#2904)

  • Add a new WSDL URL and port to support SunPy use of VSO instance at SDAC. (#2912)

  • Add support for COSMO K-Coronograph (KCOR) FITS data. (#2916)

  • Add logger messaging system based on AstropyLogger, cleaned up all warnings, removed all print statements. (#2980)

  • The function sunpy.image.coalignment.get_correlation_shifts now issues an error when the number of dimensions are not correct instead of a warning and returning None. (#2980)

  • The default location of the sunpy sample data has changed to be in the platform specific data directory as provided by appdirs. (#2993)

  • Add timeseries support for EVE/ESP level 1 data in sunpy.timeseries.sources.eve (#3032)

  • The default style for Map plots have changed to reflect the changes in Astropy 3.2. (#3054)

  • sunpy.coordinates.ephemeris.get_body_heliographic_stonyhurst can now account for light travel time when computing the (apparent) body position, as long as the observer location is provided. (#3055)

  • Added a helper function (sunpy.map.make_fitswcs_header) that allows users to create a meta header for custom created sunpy.map.GenericMap. (#3083)

  • Map plotting now accepts the optional keyword clip_interval for specifying a percentile interval for clipping. For example, if the interval (5%, 99%) is specified, the bounds of the z axis are chosen such that the lowest 5% of pixels and the highest 1% of pixels are excluded. (#3100)

  • The new function get_horizons_coord enables querying JPL HORIZONS for the locations of a wide range of solar-system bodies, including spacecraft. (#3113)

Bug Fixes

  • Fix the bug that prevented VSO queries for HMI data from downloading file without specifying a.Physobs. (#2621)

  • Fix sunpy.map.mapcube.MapCube.plot. The code had not been updated to support the changes to the wcsaxes helper functions. (#2627)

  • Replace all use of the deprecated sunpy.cm.get_cmap with matplotlib.pyplot.get_cmap to prevent deprecation warnings being raised. (#2635)

  • Fix generation of the coordinate transformation graph with Astropy 3.1.dev (#2636)

  • Prevent helioviewer from erroring when downloading file to a directory that does not exist. It will now create the directory when required. (#2642)

  • Fix transformations into/out of Heliographic Stonyhurst frame when the coordinate representation is Cartesian. (#2646)

  • Running the figure tests with setup.py test now saves the figures and the hashes to the same directory as setup.py. (#2658)

  • sunpy.instr.fermi.met_to_utc now returns the correct utc time which takes into account the leap seconds that have passed. (#2679)

  • Support passing Python file objects to sunpy.io.fits.write. (#2688)

  • Added DRMS to setup.py so sunpy[all] installs it as a dependancy. (#2693)

  • Fix eve 0cs timeseries seperator regex to support Python 3.7 (#2697)

  • Fix the bug which crashes LASCOMap for when ‘date-obs’ is reformatted agian from a self applied function. (#2700)

  • Change all instances of quantity_allclose to astropy.units.allclose this prevents pytest being needed to import sunpy.coordinates on Astropy 3 (#2701)

  • Fix RHESSI obssum file downloading to include the final day in the time range. (#2714)

  • Raise an error when transforming between HPC and HCC frames if the observer is not the same. (#2725)

  • Replaces the existing LASCO C2 and C3 color maps with new ones that perform better with JP2 and Level 0.5, 1 data. (#2731)

  • Do not attempt to save a FITS header comment for a keyword which is not in the header. This prevents an error on saving some maps after the metadata had been modified but not the comments. (#2748)

  • Add support for HMIMap objects as input to sunpy.instr.aia.aiaprep. (#2749)

  • User can convert between HPC and HCC coordinates with different observers. This is implemented by automatically transforming the coordinate into HGS and then changing observer, and then transforming back to HCC. (#2754)

  • Changed default file type for Helioviewer to prevent decode errors. (#2771)

  • Increase figure size to avoid cutting off longer colormap names in sunpy.cm.show_colormaps. (#2824)

  • The sample data directory will no longer be created until files are downloaded to it. (#2836)

  • Timeseries and lightcurve will now respect updated config values for download directory. (#2844)

  • Always use _default_wrap_angle rather than hard coding a wrap angle in the init of a sunpy coordinate frame (#2853)

  • Ensure imageanimators only slice arrays with integers (#2856)

  • Fixed sunpy.io.fits.write to handle the keyword COMMENT correctly. (#2880)

  • If Carrington longitude (“crln_obs”) is found in the FITS header, Map converts this to the correct Heliographic longitude. (#2946)

  • sunpy.net.helio.hec.HECClient.time_query now resolves the correct input time format. (#2969)

  • Fixes the calculation of the solar rotation of coordinates and the differential rotation of sunpy.map.GenericMap. (#2972)

  • Added back the FERMI GBM client to sunpy.net.dataretriever.sources. (#2983)

  • Fix bug in sunpy.net.hek which raised and error if a search returned zero results, now returns an empty sunpy.net.hek.HEKTable. (#3046)

  • AIAMap now uses the provided HAE coordinates instead of the provided HGS coordinates to determine the observer location. (#3056)

  • Correctly zero pad milliseconds in the sunpy.util.scraper.Scraper formatting to prevent errors when the millisecond value was less than 100. (#3063)

  • Fix sunpy.util.scraper.Scraper failing if a directory is not found on a remote server. (#3063)

  • Correctly extract observer location from MDI and EIT data (#3067)

  • Fix HGS <> HCRS test due to Ecliptic frame changes in astropy 3.2 (#3075)

  • Fixes bug when creating a timeseries from a URL and bug when creating a TimeSeries from older GOES/XRS fits files. (#3081)

  • Added rsun_obs. It returns a quantity in arcsec consistent with other sunpy.map.GenericMap and overwrites mapbase’s assumption of a photospheric limb as seen from Earth. (#3099)

  • Fixed bugs related to using plot and peek with the inline Matplotlib backend in Jupyter notebook. (#3103)

  • Make a correction to sunpy.coordinates.wcs_utils.solar_wcs_frame_mapping so that astropy.wcs.WCS objects are correctly converted to sunpy.coordinates.frames objects irrespective of the ordering of the axes. (#3116)

  • The solar_rotate_coordinate function returns a coordinate that accounts for the location of the new observer. (#3123)

  • Add support for rotation parameters to sunpy.map.make_fitswcs_header. (#3139)

  • Improve the implementation of differential_rotate the image warping when transforming Maps for differential rotation and change in observer position. (#3149)

  • Fix a bug where new helioviewer sources potentially cause data_sources to error. (#3162)

Improved Documentation

  • Organise the gallery into sections based on example type and tidy up a little. (#2624)

  • Added gallery example showing the conversion of Helioprojective Coordinates to Altitude/Azimuth Coordinates to and back. (#2656)

  • Add contribution guidelines for the sunpy example gallery. (#2682)

  • Added a gallery example for “Downloading and plotting a HMI image” and “Creating a Composite map”. (#2746)

  • Added an example for ImageAnimatorWCS. (#2752)

  • Minor changes to the developer guide regarding sprint labels. (#2765)

  • Copyedited and corrected the solar cycles example. (#2770)

  • Changed “online” mark to “remote_data” and made formatting of marks consistent. (#2799)

  • Add a missing plot to the end of the units and coordinates guide. (#2813)

  • Added gallery example showing how to access the SunPy colormaps (#2865)

  • Added gallery example showing how to access the SunPy solar physics constants. (#2882)

  • Major clean up of the developer documentation. (#2951)

  • Overhaul of the install intructions for the guide section of our documentation. (#3147)

Trivial/Internal Changes

  • parse_time now uses singledispatch underneath. (#2408)

  • Revert the handling of quantity_allclose now that astropy/astropy#7252 is merged. This also bumps the minimum astropy version to 3.0.2. (#2598)

  • Replace the subclasses of matplotlib Slider and Button in sunpy.visualization with partial functions. (#2613)

  • Sort the ana C source files before building to enable reproducible builds. (#2637)

  • We are now using towncrier to generate our changelogs. (#2644)

  • Moved figure tests to Python 3.6. (#2655)

  • Removed old metaclass used for Map and TimeSeries as we have now moved to Python 3.6. (#2655)

  • Updated astropy_helpers to v3.0.2. (#2655)

  • When running image tests, a comparison HTML page is now generated to show the generated images and expected images. (#2660)

  • Change to using pytest-cov for coverage report generation to enable support for parallel builds (#2667)

  • Use of textwrap to keep source code indented when multiline texts is used (#2671)

  • Fix mispelling of private attribute _default_heliographic_latitude in map. (#2730)

  • Miscellaneous fixes to developer docs about building sunpy’s documentation. (#2825)

  • Changed sunpy.instr.aia.aiaprep to update BITPIX keyword to reflect the float64 dtype. (#2831)

  • Remove warning from GenericMap.submap when using pixel Quantities as input. (#2833)

  • Remove the usage of six and all __future__ imports (#2837)

  • Fix SunPy Coordinate tests with Astropy 3.1 (#2838)

  • Stores entries from directories into database sorted by name. It adds mocks to the database user guide examples. (#2873)

  • Fix all DeprecationWarning: invalid escape sequence. (#2885)

  • Used unittest.mock for creating offline tests for simulating online tests for test_noaa.py (#2900)

  • Fix support for pip 19 and isolated builds (#2915)

  • Moved to using AppDirs as the place to host our configuration file. (#2922)

  • Users can now use fewer keywords in our HelioviewerClient to access the available sources. Either by observatory and measurement or instrument and measurement as this much information is enough to get the source ID for most of the cases. (#2926)

  • Remove the pytest dependancy on the GenericMap asdf tag. (#2943)

  • Fix initialization of VSOClient when no WSDL link is found. (#2981)

0.9.0

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

Bug Fixes

  • Removed AstropyDeprecationWarning from sunpy.coordinates.representation [#2476]

  • Fix for NorthOffsetFrame under Astropy 3.0 [#2486]

  • Fix lightcurve tests under numpy dev [#2505]

  • Updated depecration link of radiospectra [#2481]

  • Fixed Padding values in some of the documentation pages [#2497]

  • Move documentation build to circleci [#2509]

  • Fix Issue #2470 hgs_to_hcc(heliogcoord, heliocframe) [#2502]

  • Fixing CompositeMap object so that it respects masked maps [#2492]

0.8.4

Bug Fixes

  • Improve detection of SkyCoord frame instantiation when distance is 1*u.one. This fixes a plotting bug with WCSAxes in Astropy 3.0 [#2465]

  • removed wavelnth keyword in meta desc of Maps to avoid using non standard FITS keyword like nan [#2427]

  • Change the default units for HPC distance from u.km to None. [#2465]

0.8.3

Bug Fixes

  • XRSClient now reports time ranges of files correctly. [#2364]

  • Make parse_time work with datetime64s and pandas series [#2370]

  • CompositeMap axes scaling now uses map spatial units [#2310]

  • Moved license file to root of repository and updated README file [#2326]

  • Fix docstring formatting for net.vso.attrs [#2309]]

  • Fix coloring of ticks under matplotlib 2.0 default style [#2320]

  • Always index arrays with tuples in ImageAnimator [#2320]

  • Added links to possible attrs for FIDO in guide [#2317] [#2289]

  • Updated GitHub Readme [#2281] [#2283]

  • Fix matplotlib / pandas 0.21 bug in examples [#2336]

  • Fixes the off limb enhancement example [#2329]

  • Changes to masking hot pixels and picking bright pixels examples [#2325] [#2319]

  • Travis CI fix for numpy-dev build [#2340]

  • Updated masking brightest pixel example [#2338]

  • Changed TRAVIS cronjobs [#2338]

  • Support array values for obstime for coordinates and transformations [#2342] [#2346]

  • Updated Gallery off limb enhance example [#2337]

  • Documentation fixes for VSO [#2354] [#2353]

  • All tests within the documentation have been fixed [#2343]

  • Change to using pytest-remotedata for our online tests [#2345]

  • Fixed upstream astropy/numpy documentation issues [#2359]

  • Documentation for Map improved [#2361]

  • Fix the output units of pixel_to_world [#2362]

  • Documentation for Database improved [#2355]

  • Added test for mapsave [#2365]

  • Documentation for Sun improved [#2369]

0.8.2

Bug Fixes

  • Shows a warning if observation time is missing [#2293]

  • Updates MapCube to access the correct properties of the namedtuple SpatialPair [#2297]

0.8.1

Bug fixes

  • Fixed TimeSeries test failures due to missing test files [#2273]

  • Refactored a GOES test to avoid a Py3.6 issue [#2276]

0.8.0

New Features

  • Solar differential rotation for maps and submaps included.

  • Solar rotation calculation and mapcube derotation now use sunpy coordinates.

  • Sample data now downloads automatically on import if not available and is now pluggable so can be used by affiliated packages. Shortcut names have been normalized and all LIGHTCURVE shortcuts have changed to TIMESERIES.

  • Calculation of points on an arc of a great circle connecting two points on the Sun.

  • Removed extract_time function from sunpy.time and also tests related to the function from sunpy.time.tests

  • User can now pass a custom time format as an argument inside sunpy.database.add_from_dir() in case the date-obs metadata cannot be read automatically from the files.

  • Add time format used by some SDO HMI FITS keywords

  • Now the sunpy.database.tables.display_entries() prints an astropy table.

  • Additional methods added inside the sunpy.database class to make it easier to display the database contents.

  • Remove unused sunpy.visualization.plotting module

  • Port the pyana wrapper to Python 3

  • Map.peek(basic_plot-True) no longer issues warnings

  • Remove the sunpy.map.nddata_compat module, this makes Map.data and Map.meta read only.

  • Add a NorthOffsetFrame class for generating HGS-like coordinate systems with a shifted north pole.

  • Remove deprecated VSOClient.show method.

  • Deprecate sunpy.wcs: sunpy.coordinates and sunpy.map now provide all that functionality in a more robust manner.

  • Added hdu index in sunpy.database.tables.DatabaseEntry as a column in the table.

  • Removed HelioviewerClient from the sunpy.net namespace. It should now be imported with from sunpy.net.helioviewer import HelioviewerClient.

  • Removed compatibility with standalone wcsaxes and instead depend on the version in astropy 1.3. SunPy now therefore depends on astropy>-1.3.

  • Update to TimeRange.__repr__; now includes the qualified name and id of the object.

  • A new sunpy.visualization.imageanimator.LineAnimator class has been added to animate 1D data. This has resulted in API change for the sunpy.visualization.imageanimator.ImageAnimator class. The updateimage method has been renamed to update_plot.

  • Drop support for Python 3.4.

  • SunPy now requires WCSAxes and Map.draw_grid only works with WCSAxes.

  • Helioprojective and HelioCentric frames now have an observer attribute which itself is a coordinate object (SkyCoord) instead of B0, L0 and D0 to describe the position of the observer.

  • GenericMap.draw_grid now uses WCSAxes, it will only work on a WCSAxes plot, this may be less performant than the previous implementation.

  • GenericMap.world_to_pixel and GenericMap.pixel_to_world now accept and return SkyCoord objects only.

  • GenericMap has a new property observer_coordinate which returns a SkyCoord describing the position of the observer.

  • GenericMap.submap now takes arguments of the form bottom_left and top_right rather than range_a and range_b. This change enables submap to properly handle rotated maps and take input in the form of SkyCoord objects.

  • When referring to physical coordinates Pair.x has been replaced with SpatialPair.axis1. This means values returned by GenericMap now differentiate between physical and pixel coordinates.

  • The physical radius of the Sun (length units) is now passed from Map into the coordinate frame so a consistent value is used when calculating distance to the solar surface in the HelioprojectiveFrame coordinate frame.

  • A new sunpy.visualization.imageanimator.ImageAnimatorWCS class has been added to animate N-Dimensional data with the associated WCS object.

  • Moved Docs to docs/ to follow the astropy style

  • Added SunPy specific warnings under util.

  • SunPy coordinate frames can now be transformed to and from Astropy coordinate frames

  • The time attribute for SunPy coordinate frames has been renamed from dateobs to obstime

  • Ephemeris calculations with higher accuracy are now available under sunpy.coordinates.ephemeris

  • Add support for SunPy coordinates to specify observer as a string of a major solar-system body, with the default being Earth. To make transformations using an observer specified as a string, obstime must be set.

  • Added VSO query result block level caching in the database module. This prevents re-downloading of files which have already been downloaded. Especially helpful in case of overlapping queries.

  • Change the default representation for the Heliographic Carrington frame so Longitude follows the convention of going from 0-360 degrees.

  • All Clients that are able to search and download data now have a uniform API that is search and fetch. The older functions are still there but are deprecated for 0.8.

Bug fixes

  • Add tests for RHESSI instrument

  • Maps from Helioviewer JPEG2000 files now have correct image scaling.

  • Get and set methods for composite maps now use Map plot_settings.

  • Simplified map names when plotting.

  • Fix bug in wcs.convert_data_to_pixel where crpix[1] was used for both axes.

  • Fix some leftover instances of GenericMap.units

  • Fixed bugs in sun equations

  • sunpy.io.fits.read will now return any parse-able HDUs even if some raise an error.

  • VSOClient no longer prints a lot of XML junk if the query fails.

  • Fix Map parsing of some header values to allow valid float strings like ‘nan’ and ‘inf’.

  • Fix Map parsing of some header values to allow valid float strings like ‘nan’ and ‘inf’.

0.7.8

  • The SunPy data directory “~/sunpy” is no longer created until it is used (issue #2018)

  • Change the default representation for the Heliographic Carrington frame so Longitude follows the convention of going from 0-360 degrees.

  • Fix for surface gravity unit.

  • Support for Pandas 0.20.1

0.7.7

  • Fix errors with Numpy 1.12

0.7.6

  • Add Astropy 1.3 Support

0.7.5

  • Fix test faliure (mapbase) with 1.7.4

  • Restrict supported Astropy version to 1.0<astropy<1.3

  • Add Figure test env to SunPy repo.

0.7.4

  • Remove Map always forcing warnings on.

  • Map.center now uses Map.wcs to correctly handle rotation.

  • Fix link in coordinates documentation.

  • Update helioviewer URL to HTTPS (fixes access to Helioviewer).

  • Fix processing of TRACE and YOHKOH measurement properties.

  • Remove warnings when using Map.peek(basic_plot-True)

  • Update docstrings for HPC and HCC frames.

0.7.3

  • Fix ConfigParser for Python 3.5.2 - This allows SunPy to run under Python 3.5.2

  • Fix incorrect ordering of keys in MapMeta

  • Add sunpy.util.scraper to the API documentation.

0.7.2

  • Fixed bugs in sun equations

0.7.1

  • Fix bug in wcs.convert_data_to_pixel where crpix[1] was used for both axes.

  • Fix some leftover instances of GenericMap.units

  • Fixed bugs in sun equations

  • Now the sunpy.database.tables.display_entries() prints an astropy table.

  • Additional methods added inside the sunpy.database class to make it easier to display the database contents.

  • sunpy.io.fits.read will now return any parse-able HDUs even if some raise an error.

  • VSOClient no longer prints a lot of XML junk if the query fails.

  • Remove unused sunpy.visualization.plotting module

  • Map.peek(basic_plot-True) no longer issues warnings

  • Remove the sunpy.map.nddata_compat module, this makes Map.data and Map.meta read only.

  • Add a NorthOffsetFrame class for generating HGS-like coordinate systems with a shifted north pole.

  • Remove deprecated VSOClient.show method.

  • Deprecate sunpy.wcs: sunpy.coordinates and sunpy.map now provide all that functionality in a more robust manner.

  • Added hdu index in sunpy.database.tables.DatabaseEntry as a column in the table.

  • Removed HelioviewerClient from the sunpy.net namespace. It should now be imported with from sunpy.net.helioviewer import HelioviewerClient.

  • Removed compatibility with standalone wcsaxes and instead depend on the version in astropy 1.3. SunPy now therefore depends on astropy>-1.3.

  • Update to TimeRange.__repr__; now includes the qualified name and id of the object.

  • Change the default representation for the Heliographic Carrington frame so Longitude follows the convention of going from 0-360 degrees.

  • Fix Map parsing of some header values to allow valid float strings like ‘nan’ and ‘inf’.

0.7.0

  • Fixed test failures with numpy developer version.[#1808]

  • Added timeout parameter in sunpy.data.download_sample_data()

  • Fixed aiaprep to return properly sized map.

  • Deprecation warnings fixed when using image coalignment.

  • Sunpy is now Python 3.x compatible (3.4 and 3.5).

  • Added a unit check and warnings for map metadata.

  • Added IRIS SJI color maps.

  • Updated show_colormaps() with new string filter to show a subset of color maps.

  • Fixed MapCube animations by working around a bug in Astropy’s ImageNormalize

  • Remove vso.QueryResponse.num_records() in favour of len(qr)

  • Add a draw_rectangle helper to GenericMap which can plot rectangles in the native coordinate system of the map.

  • Added the ability to shift maps to correct for incorrect map location, for example.

  • Bug fix for RHESSI summary light curve values.

  • Mapcube solar derotation and coalignment now pass keywords to the routine used to shift the images, scipy.ndimage.interpolation.shift.

  • Add automatic registration of GenericMap subclasses with the factory as long as they define an is_datasource_for method.

  • Added functions flareclass_to_flux and flux_to_flareclass which convert between GOES flux to GOES class numbers (e.g. X12, M3.4).

  • Removed old sunpy.util.goes_flare_class()

  • Bug fix for RHESSI summary light curve values.

  • The MapCube.as_array function now returns a masked numpy array if at least one of the input maps in the MapCube has a mask.

  • Map superpixel method now respects maps that have masks.

  • Map superpixel method now accepts numpy functions as an argument, or any user-defined function.

  • Map superpixel method no longer has the restriction that the number of original pixels in the x (or y) side of the superpixel exactly divides the number of original pixels in the x (or y) side of the original map data.

  • sunpy.physics.transforms has been deprecated and the code moved into sunpy.physics.

  • Add the sunpy.coordinates module, this adds the core physical solar coordinates frame within the astropy coordinates framework.

  • Added ability of maps to draw contours on top of themselves (draw_contours)

  • Added concatenate functionality to lightcurve base class.

  • Fix Map to allow astropy.io.fits Header objects as valid input for meta arguments.

  • Added an examples gallery using sphinx-gallery.

  • API clean up to constants. Removed constant() function which is now replaced by get().

  • Prevent helioviewer tests from checking access to the API endpoint when running tests offline.

  • GenericMap.units is renamed to GenericMap.spatial_units to avoid confusion with NDData.unit.

  • GenericMap now has a coordinate_frame property which returns an astropy.coordinates frame with all the meta data from the map populated.

  • GenericMap now has a _mpl_axes method which allows it to be specified as a projection to matplotlib methods and will return a WCSAxes object with WCS projection.

0.6.5

  • The draw_grid keyword of the peek method of Map now accepts booleans or astropy quantities.

  • Fix bug in wcs.convert_data_to_pixel where crpix[1] was used for both axes.

  • Fixed bugs in sun equations

0.6.4

  • Bug fix for rhessi summary lightcurve values.

  • Fix docstring for pixel_to_data and data_to_pixel.

  • Fix the URL for the Helioviewer API. (This fixes Helioviewer.)

  • Fix the way reshape_image_to_4d_superpixel checks the dimension of the new image.

  • Fix Map to allow astropy.io.fits Header objects as valid input for meta arguments.

  • Prevent helioviewer tests from checking access to API when running tests in offline mode.

0.6.3

  • Change setup.py extras to install suds-jurko not suds.

0.6.2

  • Changed start of GOES 2 operational time range back to 1980-01-04 so data from 1980 can be read into GOESLightCurve object

  • Fix bug with numpy 1.10

  • update astropy_helpers

  • Added new sample data

0.6.1

  • Fixed MapCube animations by working around a bug in Astropy’s ImageNormalize

  • Small fix to RTD builds for Affiliated packages

  • SunPy can now be installed without having to install Astropy first.

  • MapCubes processed with coalignment.apply_shifts now have correct metadata.

  • Multiple fixes for WCS transformations, especially with solar-x, solar-y CTYPE headers.

0.6.0

  • Enforced the use of Astropy Quantities through out most of SunPy.

  • Dropped Support for Python 2.6.

  • Remove old style string formatting and other 2.6 compatibility lines.

  • Added vso like querying feature to JSOC Client.

  • Refactor the JSOC client so that it follows the .query() .get() interface of VSOClient and UnifedDownloader.

  • Provide __str__ and __repr__ methods on vso QueryResponse deprecate .show().

  • Downloaded files now keep file extensions rather than replacing all periods with underscores.

  • Update to TimeRange API, removed t1 and t0, start and end are now read-only attributes.

  • Added ability to download level3 data for lyra Light Curve along with corresponding tests.

  • Added support for gzipped FITS files.

  • Add STEREO HI Map subclass and color maps.

  • Map.rotate() no longer crops any image data.

  • For accuracy, default Map.rotate() transformation is set to bi-quartic.

  • sunpy.image.transform.affine_transform now casts integer data to float64 and sets NaN values to 0 for all transformations except scikit-image rotation with order <- 3.

  • CD matrix now updated, if present, when Map pixel size is changed.

  • Removed now-redundant method for rotating IRIS maps since the functionality exists in Map.rotate()

  • Provide __str__ and __repr__ methods on vso QueryResponse deprecate .show()

  • SunPy colormaps are now registered with matplotlib on import of sunpy.cm

  • sunpy.cm.get_cmap no longer defaults to ‘sdoaia94’

  • Added database url config setting to be setup by default as a sqlite database in the sunpy working directory

  • Added a few tests for the sunpy.roi module

  • Added capability for figure-based tests

  • Removed now-redundant method for rotating IRIS maps since the functionality exists in Map.rotate().

  • SunPy colormaps are now registered with matplotlib on import of sunpy.cm.

  • sunpy.cm.get_cmap no longer defaults to ‘sdoaia94’.

  • Added database url config setting to be setup by default as a sqlite database in the sunpy working directory.

  • Added a few tests for the sunpy.roi module.

  • Refactored mapcube co-alignment functionality.

  • Removed sample data from distribution and added ability to download sample files

  • Changed start of GOES 2 operational time range back to 1980-01-04 so data from 1980 can be read into GOESLightCurve object

  • Require JSOC request data calls have an email address attached.

  • Calculation of the solar rotation of a point on the Sun as seen from Earth, and its application to the de-rotation of mapcubes.

  • Downloaded files now keep file extensions rather than replacing all periods with underscores

  • Fixed the downloading of files with duplicate names in sunpy.database

  • Removed sample data from distribution and added ability to download sample files.

  • Added the calculation of the solar rotation of a point on the Sun as seen from Earth, and its application to the de-rotation of mapcubes.

  • Changed default for GOESLightCurve.create() so that it gets the data from the most recent existing GOES fits file.

  • Map plot functionality now uses the mask property if it is present, allowing the plotting of masked map data

  • Map Expects Quantities and returns quantities for most parameters.

  • Map now used Astropy.wcs for world <-> pixel conversions.

  • map.world_to_pixel now has a similar API to map.pixel_to_world.

  • map.shape has been replaced with map.dimensions, which is ordered x first.

  • map.rsun_arcseconds is now map.rsun_obs as it returns a quantity.

  • Map properties are now named tuples rather than dictionaries.

  • Improvement for Map plots, standardization and improved color tables, better access to plot variables through new plot_settings variable.

  • Huge improvements in Instrument Map doc strings. Now contain instrument descriptions as well as reference links for more info.

  • net.jsoc can query data series with time sampling by a Sample attribute implemented in vso.

  • MapCube.plot and MapCube.peek now support a user defined plot_function argument for customising the animation.

  • Added new sample data file, an AIA cutout file.

  • Moved documentation build directory to doc/build

0.5.5

  • Changed default for GOESLightCurve.create() so that it gets the data from the most recent existing GOES fits file.

  • Improvements to the Map documentation.

  • Typo fixes in sunpy.wcs documentation.

0.5.4

  • sunpy.image.transform.affine_transform now casts integer data to float64 and sets NaN values to 0 for all transformations except scikit-image rotation with order <- 3.

  • Updated SWPC/NOAA links due to their new website.

  • Exposed the raw AIA color tables in sunpy.cm.color_tables.

  • Fixes map compatibility with Astropy 1.0.x.

0.5.3

  • Goes peek() plot now works with matplotlib 1.4.x

  • The ANA file reading C extensions will no longer compile under windows. Windows was not a supported platform for these C extensions previously.

0.5.2

  • If no CROTA keyword is specified in Map meta data, it will now default to 0 as specified by the FITS WCS standard.

  • Map now correctly parses and converts the CD matrix, as long as CDELT is specified as well. (Fixes SWAP files)

  • Fix of HELIO webservice URLs

  • MapCube.plot() is now fixed and returns a matplotlib.animation.FuncAnimation object.

0.5.1

  • MAJOR FIX: map.rotate() now works correctly for all submaps and off center rotations.

  • HELIO URL updated, querys should now work as expected.

  • All tabs removed from the code base.

  • All tests now use tempfile rather than creating files in the current directory.

  • Documentation builds under newer sphinx versions.

  • ANA and JP2 tests are skipped if dependancies are missing.

  • ANA tests are skipped on windows.

0.5.0

  • Added additional functionality to the GOES module i.e. the ability to calculate GOES temperature and emission measure from GOES fluxes.

  • changed _maps attribute in MapCube to a non-hidden type

  • Added Nobeyama Radioheliograph data support to Lightcurve object.

  • Fixed some tests on map method to support Windows

  • Added a window/split method to time range

  • Updates to spectrogram documentation

  • Added method Database.add_from_hek_query_result to HEK database

  • Added method Database.download_from_vso_query_result

  • GOES Lightcurve now makes use of a new source of GOES data, provides metadata, and data back to 1981.

  • Removed sqlalchemy as a requirement for SunPy

  • Added support for NOAA solar cycle prediction in lightcurves

  • Some basic tests for GenericLightCurve on types of expected input.

  • Fix algorithm in sunpy.sun.equation_of_center

  • Added Docstrings to LightCurve methods.

  • Added tests for classes in sunpy.map.sources. Note that some classes (TRACE, RHESSI) were left out because SunPy is not able to read their FITS files.

  • Added functions that implement image coalignment with support for MapCubes.

  • Cleaned up the sunpy namespace, removed .units, /ssw and .sphinx. Also moved .coords .physics.transforms.

  • Added contains functionality to TimeRange module

  • Added t-‘now’ to parse_time to privide utcnow datetime.

  • Fixed time dependant functions (.sun) to default to t-‘now’

  • Fixed solar_semidiameter_angular_size

  • Improved line quality and performances issues with map.draw_grid()

  • Remove deprecated make_map command.

0.4.2

  • Fixes to the operational range of GOES satellites

  • Fix the URL for HELIO queries.

0.4.1

  • Fix map.rotate() functionality

  • Change of source for GOES data.

  • Fix EIT test data and sunpy FITS saving

  • Some documentation fixes

  • fix file paths to use os.path.join for platform independance.

0.4.0

  • Major documentation refactor. A far reaching re-write and restructure.

  • Add a SunPy Database to store and search local data.

  • Add beta support for querying the HELIO HEC

  • Add beta HEK to VSO query translation.

  • Add the ability to download the GOES event list.

  • Add support for downloading and querying the LYTAF database.

  • Add support for ANA data.

  • Updated sun.constants to use astropy.constants objects which include units, source, and error instide. For more info check out https://docs.astropy.org/en/latest/constants/index.html

  • Add some beta support for IRIS data products

  • Add a new MapCubeAnimator class with interactive widgets which is returned by mapcube.peek().

  • The Glymur library is now used to read JPEG2000 files.

  • GOESLightCurve now supports all satellites.

  • Add support for VSO queries through proxies.

  • Fix apparent Right Ascension calulations.

  • LightCurve meta data member now an OrderedDict Instance

0.3.2

  • Pass draw_limb arguments to patches.Circle

  • Pass graw_grid arguments to pyplot.plot()

  • Fix README code example

  • Fix Documentation links in potting guide

  • Update to new EVE data URL

  • Update LogicalLightcurve example in docs

  • Improved InteractiveVSOClient documentation

  • GOESLightCurve now fails politely if no data is avalible.

Known Bugs:

  • sunpy.util.unit_conversion.to_angstrom does not work if ‘nm’ is passed in.

0.3.1

  • Bug Fix: Fix a regression in CompositeMap that made contor plots fail.

  • Bug Fix: Allow Map() to accept dict as metadata.

  • Bug Fix: Pass arguments from Map() to io.read_file.

0.3.0

  • Removal of Optional PIL dependancy

  • Parse_time now looks through nested lists/tuples

  • Draw_limb and draw_grid are now implemented on MapCube and CompositeMap

  • Caculations for differential roation added

  • mapcube.plot() now runs a mpl animation with optional controls

  • A basic Region of Interest framework now exists under sunpy.roi

  • STEREO COR colour maps have been ported from solarsoft.

  • sunpy.time.timerange has a split() method that divides up a time range into n equal parts.

  • Added download progress bar

  • pyfits is depricated in favor of Astropy

spectra:

  • Plotting has been refactorted to use a consistent interface

  • spectra now no-longer inherits from numpy.ndarray instead has a .data attribute.

Map: * map now no-longer inherits from numpy.ndarray instead has a .data attribute. * make_map is deprecated in favor of Map which is a new factory class * sunpy.map.Map is now sunpy.map.GenericMap * mymap.header is now mymap.meta * attributes of the map class are now read only, changes have to be made through map.meta * new MapMeta class to replace MapHeader, MapMeta is not returned by sunpy.io * The groundwork for GenericMap inherting from astropy.NDData has been done, there is now a NDDataStandin class to provide basic functionality.

io: * top level file_tools improved to be more flexible and support multiple HDUs * all functions in sunpy.io now assume mutliple HDUs, even JP2 ones. * there is now a way to override the automatic filetype detection * Automatic fits file detection improved * extract_waveunit added to io.fits for detection of common ways of storing wavelength unit in fits files.

  • A major re-work of all interal imports has resulted in a much cleaner namespace, i.e. sunpy.util.util is no longer used to import util.

  • Some SOHO and STEREO files were not reading properly due to a date_obs parameter.

  • Sunpy will now read JP2 files without a comment parameter.

  • Memory leak in Crotate patched

  • Callisto: Max gap between files removed

0.2.0

  • Completely re-written plotting routines for most of the core datatypes.

  • JPEG 2000 support as an input file type.

  • Improved documentation for much of the code base, including re-written installation instructions.

  • New lightcurve object

    • LYRA support

    • GOES/XRS support

    • SDO/EVE support

  • New Spectrum and Spectrogram object (in development)

    • Spectrogram plotting routines

    • Callisto spectrum type and support

    • STEREO/SWAVES support

  • Map Object

    • Added support for LASCO, Yohkoh/XRT maps

    • A new CompositeMap object for overlaying maps

    • Resample method

    • Superpixel method

    • The addition of the rotate() method for 2D maps.