Full Changelog#
7.1.2 (2026-04-19)#
Documentation#
Added a gallery example (Artemis-II Solar Eclipse) to visualise and analyse solar eclipse observed by Artemis-II. (#8571)
Added a gallery example (Artemis II trajectory) to visualize the Artemis II trajectory in two different coordinate frames. (#8574)
Internal Changes#
The hash libraries for figure tests have been renamed to remove the version of
freetype. (#8578)
7.1.2 (2026-04-19)#
Bug Fixes#
Fixed a bug where SIP distortion information in a Map WCS was ignored. (#8573)
7.1.1 (2026-03-26)#
Bug Fixes#
Fix ~`sunpy.net.scraper.Scraper` to correctly handle proper local file URI on Windows and make internal code more consistent. (#8493)
Fixed a bug in
sunpy.coordinates.spicewhen converting times to the time scale/format used by SPICE, which resulted in a time inaccuracy of up to 1.6 ms. (#8534)
7.1.0 (2025-12-08)#
Breaking Changes#
Increased minimum versions for these dependencies:
Python >= 3.12
astropy >= 6.1.0
h5py >= 3.10.0
lxml >= 5.0.1
matplotlib >= 3.8.0
numpy >= 1.26.0
pandas >= 2.2.0
reproject >= 0.13.0
scipy >= 1.12.0 (#8367)
Removals#
Removed backwards compatibility with the legacy keyword,
patternwithinsunpy.net.Scraper(#8338)Remove deprecated
assume_spherical_screenmethod in favor ofSphericalScreen. (#8386)Removed
silence_errorskeyword for input to bothsunpy.map.Mapandsunpy.timeseries.TimeSeriesconstructors after its long deprecation period. (#8397)Removed the ability to read SDO/EVE level 0CS average files in
sunpy.timeseries.TimeSeriesafter its long deprecation period. (#8397)Removed all deprecated API (
all_maps_same_shape,at_least_one_map_has_mask,as_array,all_metaandderotate) fromsunpy.map.MapSequenceafter its long deprecation period. In addition,derotatewas removed from the initialization ofsunpy.map.MapSequence. Finally,resamplekeyword was removed from the plotting method ofsunpy.map.MapSequence. (#8397)Removed
contourmethod onsunpy.map.Mapafter its long deprecation period. (#8397)Removed deprecated arguments from
sunpy.net.vso.VSOClient.translate_and_querymethod (progressandvso_response_format) after its long deprecation period. (#8397)Removed legacy
QueryResponseused by thesunpy.net.vsomodule after its long deprecation period. (#8397)Removed legacy
diff_rotafter its long deprecation period. (#8397)Removed legacy
extendonsunpy.time.TimeRangeafter its long deprecation period. (#8397)Removed legacy
read_filesandwrite_filesmethods insunpy.ioafter their long deprecation period. (#8397)Removed
sunpy.coordinates.transformationsmodule after its long deprecation period. (#8397, #8397)
New Features#
Added support for querying data from solarnet API using a new
SOLARNETClient. (#7880)Added
sunpy.net.fido_factory.UnifiedResponse.show_in_notebook()to renderFidosearch results andshow_in_notebook()on all attrs to render attrs tables in form of interactive table usingitablesin Jupyter notebooks. (#7899)Added a helper function (
sunpy.coordinates.utils.get_heliocentric_angle()) to get the heliocentric angle of a coordinate on the solar disk, which can be used to compute \(\mu\) for limb-darkening calculations. (#7979)Enhanced
sunpy.net.Fido’ssearchmethod to be robust against client errors. Any client error will be caught and attached to.errorsproperty on both theUnifiedResponseand individualQueryResponseTable, the search will continue. (#8009)A
SunpyUserWarningwill be raised whensunpy.image.resampleis used withmethod='spline'and a data array containing nans and/or infinities. (#8185)Added support for ANA to compile and work on Windows. (#8372)
Add a keyword argument to
reproject_to()to preserve the original observation time (typically theDATE-OBSheader key) instead of the observation time in the target WCS. (#8382)Added Python 3.14 support with wheel builds for all supported platforms. (#8391)
Added a new map source for ASO-S mission, currently added
HXIMapfor the Hard X-ray Imager (HXI) payload. (#8398)Pass
sleep,timeout, andretries_notfoundfromfetch()todrms.ExportRequest.wait(). Previously,sleepwas a keyword tofetch()but was not being propagated correctly. (#8409)Modified the approach of coordinate transformations between Earth-centered frames in order to avoid internal origin shifts, which could degrade numerical accuracy of coordinates close to Earth center. (#8415)
Modified the approach of coordinate transformations between Earth-centered frames in order to minimize the unintended triggering of a correction for stellar aberration (due to Earth motion). (#8415)
sunpy.time.parse_time()now supports two new formats:"%Y-%m-%dT%H%M%SZ"- Example: 2010-08-30T111402Z"%Y-%m-%dT%H%M%S"- Example: 2010-08-30T111402 (#8419)
Bug Fixes#
Cachewill no longer delete a stale file if the download fails, it will now return the “stale” file. (#7935)Fixed a bug where the time format
2001-02-03T04:05:06Zwas being parsed through different code than2001-02-03T04:05:06or2001-02-03T04:05:06.0Z. (#8265)Fixed a bug where
sunpy.util.system_info()would reportsunpyas an optional dependency of itself instead of properly reporting all of the optional dependencies. (#8294)Fixed
sunpy.util.system_info()so that the version reported for a development installation ofsunpyitself or of a dependency is accurate. (#8297)Fix inconsistent behaviour between local and remote (http/ftp) ~`sunpy.net.scraper.Scraper` searches. Local searches will no longer crash if an expected directory does not exist during search. (#8316)
Fixed a bug where the
Cutoutclass for requesting JSOC cutouts did not require the supplied coordinate to be in theHelioprojectivecoordinate frame. (#8346)For the
Cutoutclass for requesting JSOC cutouts, added protection to require the center of the cutout to be on the solar disk when tracking is enabled, due to confusing output from JSOC. (#8346)Fix
GONGMagnetogramMapfor headers which have standardDATE-OBSkeys vs ones which have splitDATE-OBS&TIME-OBS. (#8347)Fixed a bug where
parse_time()failed to parse time strings stored in anastropy.table.Columnor apandas.Seriesusing the normal wide range of supported time-string formats. (#8356)Fixed a bug where
parse_time()could not acceptpandas.Indexinput. (#8356)Fix
ADAPTClientreturning no results for ADAPT maps after October 2024. The filename convention was changed on the NSO server. (#8388)Fix unintended dependency of
netmodule onmapmodule due toCutout. (#8442)Fixed a bug with HMI and MDI magnetic-field maps where the data array would always be read during map instantiation. (#8447)
Documentation#
Added a gallery example (Creating a time-distance plot from a sequence of maps) demonstrating how to extract the intensities along a slit to create a time-distance plot taking into account differential rotation. (#8057)
The source-code links now go to the GitHub repository instead of rendered versions of the source code. (#8179)
Fixed errors and added elaborations to the docstring for
Helioprojective. (#8293)Added an example (Adding an Earth scale image) showing how to add an Earth scale image to a Map plot. (#8322)
Modified the example Adding an Earth scale image to use mesh-based plotting instead of image-based plotting. (#8340)
Internal Changes#
A low-resolution Earth image (PNG format) is now available as
sunpy.data.EARTH_IMAGE. (#8340)Fixed a doctest that depended on the name of the person associated with a data set. (#8348)
Stop using deprecated
set_badmethod on a matplotlib colormap. (#8446)
7.0.0 (2025-06-18)#
Breaking Changes#
The
HEKClientnow merges columnsevent_coord1,event_coord2andevent_coord3into a new column calledevent_coordthat returns aastropy.coordinates.SkyCoordobject.event_coord1,event_coord2andevent_coord3are all dropped as columns from the table. Columns which correspond to only units are also dropped. If you need these columns, the unparsed HEK results can be accessed via the.rawattribute on the HEK result. (#7619)The types of many columns in the results table returned by the HEKClient have been changed. Columns which correspond to quantities with units are now returned as
Quantityobjects rather than arrays. Columns which correspond to times are now returned asTimeobjects rather than strings. Columns which correspond to coordinates are now returned asSkyCoordobjects rather than arrays or chain code strings. If you need these columns in their original format, the raw output from the HEK can be accessed via the.rawattribute onHEKTable. (#7619)
Deprecations#
Renamed the mesh-based autoalignment option for the
Mapmethodplot()fromautoalign='pcolormesh'toautoalign='mesh'. (#8036)Deprecated
sunpy.util.net.download_fileandsunpy.util.net.download_fileobj. Internally sunpy now uses parfive. (#8106)
Removals#
Removed the decorator
sunpy.util.deprecate_positional_args_since()due to lack of continued use. (#8165)
New Features#
Added a FIDO client for retrieving AIA “synoptic” data from the JSOC. This dataset is not synoptic like HMI and MDI Synoptic images which are images of the solar surface reconstructed from many observations over a solar rotation but rather a synopsis of AIA data. The AIA synoptic data are calibrated Level 1.5 images with reduced 1k x 1k resolution at regular 2-minute cadence. (#7842)
Added “SUITMap” with a custom color scheme for 11 filters of the SUIT instrument. For more information about the payload, visit suit.iucaa.in. (#7971)
Add a GONG Magnetogram Map source. (#8007)
Added a new autoalignment option for the
Mapmethodplot()of directly plotting a warped image by specifyingautoalign='image'. This autoalignment option is faster than the existing option (autoalign='mesh'), but does not fully work in all situations. (#8036)The
Mapmethodreproject_to()now has the capability to automatically determine the extent of the output map by setting the keywordauto_extent, thus avoiding “clipping” any of the original data. The best choice for the how the extent is determined depends on the data being reprojected. (#8040)Added support for conservative mask propagation in
sunpy.map.GenericMap.superpixel()by introducing a newconservative_maskkeyword argument, which defaults toFalse. Whenconservative_mask=True, the superpixel is masked if any of its constituent pixels are masked. (#8041)Adds caching mechanism for Timeseries URL handling using
Cache. (#8045)Added support for PUNCH data within
sunpy.map.Map. (#8133)Autoalign plotting for
Mapis now significantly faster, especially for interactive plots. (#8161)Added direct support for EIT L1 data within
sunpy.map.Map. (#8177)The
Mapmethodplot()now performs autoalignment by default (autoalign=True) and furthermore automatically determines which autoalignment approach – mesh-based or image-based – to use for the situation. (#8187)
Bug Fixes#
Allow
HMIMapto have units outside of the FITS standard. This prevents issuing repeated warnings when HMI maps have units of “Mx/cm2”. (#8126)Fixed a bug with the caching of
Mappropertiesobserver_coordinateandwcswhere modifying the metadata to be invalid would confuse the cache. (#8158)Fixed a bug where autoalign plotting of a
Mapwould not expand the plot limits in some cases. (#8161)Fixed a bug where the three magnetic coordinate frames (
Geomagnetic,SolarMagnetic,GeocentricSolarMagnetospheric) would raise an error if used nontrivially with arrayobstime(as opposed to a scalar). (#8193)Fixed an incompatibility between the context manager for applying rotation (
propagate_with_solar_surface()) and the context managers for applying screen assumptions (PlanarScreen()andSphericalScreen()), which for example resulted in the discarding of most off-disk data in reprojections. (#8212)Ensure that
GenericMapuses the private accessor for thedate-obskey, which can be overridden by a source subclass. This fixesEITMap.reference_date. (#8236)Prevented a potential segmentation fault when calling
parse_time()on a list of more than 500 strings in a format not specifically recognized bysunpy.timeitself and instead has to fall back on recognition byastropy.time. (#8257)
Documentation#
Now using
sphinxcontrib-bibtex, to cite papers in a consistent and centralized manner. (#7837)Added an example Overlaying off-disk contours using a screen to show how to overlay off-disk contours from one map onto another map. (#8012)
Fixed a small inaccuracy in the docstring of
sunpy.coordinates.sun.B0()about the range of possible values for B0 angle. (#8113)Fixed an error in the docstring of
get_horizons_coord()that mistakenly claimed that JPL Horizons supported the specification of “s” for seconds as the unit for step size, but Horizons does not. (#8190)
Internal Changes#
In order to support multiple versions of Python, the indentation of some docstrings is now different when accessed directly (i.e., via
__doc__). The docstrings will look exactly the same when viewed in other ways, including in built documentation. (#8173)Fixed a bug with the internal tracking of active context managers that could result in incorrect tracking of complex nesting. (#8211)
6.1.0 (2025-02-24)#
Breaking Changes#
Dataretriever / “Scraper” clients no longer require the regex-formatted
baseurland a parse-formattedpatternvariable but instead a single and fullpatternvariable written in theparse-format. Documentation about how to write the new patterns and about explaining the internal Scraper algorithm is added to the topic guide on adding new sources to Fido.The internal method on
Scrapercalled_extract_files_metafunction no longer requires an extractor pattern.A new submodule called
scraper.net.scraper_utilsis created and Scraper helper functions likedate_floor(),extract_timestep(),check_timerange()andget_timerange_from_exdict()can be accessed directly from there.All the extracted timeranges have a millisecond subtracted from the end date, i.e. they end on 59:59:59 of the date just before, instead of the inconsistent issue where some could end with 00:00:00 of the end date which lead to undesirable cases like January 1, 2015 data also showing up in the 2014 year-long timerange. (#7077)
Update our dependancy policy to follow SPEC 0 rather than the older NEP 29. The only difference between the old (NEP 29) policy and the new (SPEC 0) policy is that we only support Python versions for 3 years after their initial release, rather than 4. (#7796)
Increased minimum versions for these dependencies:
asdf-astropy >= 0.5.0
astropy >= 6.0.0
numpy >= 1.24.0
pandas >= 1.5.0
sphinx >= 6.0.0 (#7976)
Deprecations#
sunpy.map.GenericMap.contouris deprecated in favor ofsunpy.map.GenericMap.find_contours(). Note that ContourPy, now used for contour generation, may produce different results and does not support all scikit-image keyword arguments. (#7760)The following components of
MapSequenceare now deprecated and will be removed in v7.1:The
derotatekeyword argument toMapSequence. Derotation is not implemented.The
resamplekeyword argument topeekandplot. To reproduce this behavior, useresampleon each map in the sequence before plotting.Deprecate
~sunpy.map.MapSequence.all_maps_same_shapein favor ofall_same_shape.Deprecate
~sunpy.map.MapSequence.at_least_one_map_has_mask. To reproduce this functionality, check whethermaskis None.Deprecate
~sunpy.map.MapSequence.as_arrayin favor ofdataandmask. Previously,as_arrayreturned a masked array if at least one map held a mask and a bare array if not.Deprecate
~sunpy.map.MapSequence.all_metain favor ofmeta. (#7827)
General support within
Mapfor the non-standard CTYPE values ‘SOLAR-X’ and ‘SOLAR-Y’ is now deprecated, and should instead be handled by a source-specific subclass. (#7955)Renamed the
sunpy.time.TimeRangemethodextend()tosunpy.time.TimeRange.shift()to reflect what the method actually does. (#8008)
New Features#
Added support for saving a
sunpy.map.Mapinto an ASDF file usingsunpy.map.GenericMap.saveand loading a map stored in an ASDF file withsunpy.map.Map. (#7712)The
RotatedSunFrameclass now accepts aTimeDeltaobject for thedurationparameter. (#7752)Added
find_contours()for getting contours from aMap. By default the method uses ContourPy for performance reasons and consistency withsunpy.map.GenericMap.draw_contours(). One can alternatively specify that the method use scikit-image. (#7760)Added support for loading files from various cloud services (such as s3) in
MapandTimeSeriesusing fsspec. (#7790)Added the
HelioprojectiveRadialcoordinate frame. (#7803)Added a function
make_hpr_header()to easily make a FITS WCS header for theHelioprojectiveRadialcoordinate frame. (#7803)Added a function
sunpy.visualization.show_hpr_impact_angle()to modify a plot axis of aHelioprojectiveRadialMapto show impact angle rather than declination for the tick labels. (#7803)Added ability to delay download in
sunpy.data.data_manager.DataManager.require(#7845)Add
sunpy.visualization.drawing.extent()to visualize the extent of another WCS on an axis. Addsunpy.map.GenericMap.draw_extent()to visualize the extent of a map on a given axis. (#7851)Add a link to the VSO Health Report in the Fido Results when using the VSOClient. (#7884)
Added
unconverted_valueattribute to the Wavelength attribute. (#7923)sunpy.time.TimeRange.shift()can now accept inputs of typedatetime.timedeltaandastropy.units.Quantity. (#7931)sunpy.map.CompositeMap.plot()will now skip autoaligning an overplotted map image if that map’s WCS matches the WCS of the figure axes. This significantly improves performance when the maps being composited have already been reprojected onto a common WCS. (#7948)
Bug Fixes#
sunpy.map.MapSequenceunable to set the normalization for data that was UINT8 (JPEG2000) causing the animations to break. (#7674)Fixed incorrect
reference_datefor GONG Synoptic maps. (#7758)Fix
sunpy.physics.differential_rotation.differential_rotate()to update thereference_dateattribute of the input map instead of thedate. (#7758)Fixed incorrect
reference_datefor SDO/AIA and SDO/HMI data to use theT_OBSkeyword instead of theDATE-OBSkeyword.For AIA images, the location of SDO has been shifted up to a second in time, which corresponds to a shift in Heliographic Longitude by only 4 milliarcseconds. (#7758)
Fix filetype detection to use the detected filetype if a known reader is registered. (#7788)
Fixed loading of
ADAPTMapif sunkit-magex v1.0.0 is installed. (#7798)All map sources that override
dateorreference_datenow fall back to the corresponding properties onsunpy.map.GenericMapif the needed source-specific metadata for these properties cannot be found. (#7810)Fixes a bug where
HMIMapreturned a wavelength without a unit becauseWAVEUNITis not in the header and cannot be parsed from any other part of the metadata. If it cannot be found, it now defaults to Angstrom. (#7812)Fixed a calculation bug when using
PlanarScreenwhen it is both tilted (the plane is not perpendicular to the observer-Sun direction) and offset (the plane does not go through Sun center). (#7814)Fixed a bug where custom values in the
plot_settingsdictionary were not being correctly applied in thesunpy.map.GenericMap.draw_contours()method. (#7844)Fix use of deprecated
astropy.table.Table.pformat_allinsunpy.net. (#7854)Fixed a bug with axis labels when plotting a
Mapthat could conflict with automatic label positioning in astropy 7.0. (#7857)Added correct unit fallback for LASCO JPEG2000 files from the Helioviewer. (#7890)
Added support within
parse_timefor the timestamp%Y%m%d%H%M,``%Y%m%dT%H%M`` and%Y%m%d_%H%M. (#7911)Updated the internal CDF reader to handle
FILLVALonly for floating point numbers. (#7917)Fixed unit conversion for wavelength in
sunpy.net.dataretriever.sources.goes.SUVIClient. (#7920)Fixed a time-ordering bug in
sunpy.time.TimeRange.shift()when the shifted start time is later than than the shifted end time. (#7931)Fixed a bug in the HTML representation for
sunpy.timeseries.GenericTimeSeriesthat error-ed if the time-series had too many columns. (#7947)Fix
sunpy.data.data_manager.DataManager.getnow automatically redownloads files if they are accidentally deleted. (#7950)Fixed a bug in
differential_rotate()that assumed the input map header hadRSUN_REFdefined. (#7953)Fixed two bugs associated with the handling of WCS
PVi_mvalues byMap.PVi_mvalues were incorrectly retrieved from the first alternative WCS description (e.g.,PV1_1A) instead of the primary WCS description (e.g.,PV1_1). Also,PVi_mvalues were misassigned whenmwas a two-digit number (i.e., 10 through 99). (#7961)Fixed a bug in
parse_time()where parsing a list of time strings containing “TAI” did not automatically set the time scale to TAI. (#7983)Fixed a bug in
parse_time()where parsing a list of time strings could incorrectly fail even when parsing the individual elements would succeed. (#7983)Fixed the formatting of the the channel labels for
XRSTimeSeries. (#7986)Examples in docs for
sunpy.net.attr.Attrare now rendering properly. (#8002)Fixed the unintended
Mapbehavior where any combination of non-FITS units were allowed as long as one of the non-FITS units was DN. DN is currently the only non-FITS unit permitted inMap. (#8037)Corrected the NOAA
SRSClientto use a updated HTTPS server instead of the now defunct FTP. (#8054)Fixed a bug where
EITMapand the correct colormaps (e.g.,sohoeit171) failed to load for SOHO/EIT level 1 FITS files from SDAC. (#8070)
Documentation#
Added a topic-guide describing deprecation and versioning policies alongside release practices for users and developers. (#7731)
Added a gallery example (Tracking an Active Region Across the Solar Disk) showcasing how to track an active region. (#7735)
Added a gallery example (Reading ADAPT FITS Files) showcasing how to load an Air Force Data Assimilative Photospheric Flux Transport (ADAPT) FITS file into a list of
sunpy.map.Map. (#7756)Fixed a bunch of broken links in the documentation. (#7766)
Added a new how-to guide Specify an observer by coordinate demonstrating how to create coordinate objects with an observer location specified using
SkyCoord. (#7769)Reworked the Blending maps together example so that it no longer requires an additional dependency (
mplcairo) (#7800)Add clarifications to install instructions about Anaconda and the defaults channel. (#7813)
The gallery example Identifying stars in a STEREO/SECCHI COR2 coronagraph image now queries the Gaia star catalogue directly instead of going through Vizier. (#7965)
Added a note to the docstring of
HMISynopticMapthat documents how the sign of CDELT1 is handled. (#7973)Added a table and notes to show which methods from
GenericMapare expected to preserve laziness with dask arrays. (#7974)Updated Creating a TimeSeries from GOES-XRS near real time data with flare times to plot the largest flares that occurred during GOES XRS NRT data. (#7981)
Internal Changes#
Removed
mplcairoas a dependency for building the documentation. (#7800)Fixed some regex bugs in
parse_time()that could result in additional, spurious matches for the candidate string format. There is a minor performance impact for each spurious match that is attempted to be used for parsing. (#7983)Added clarification to the docstring for the
GenericMap.measurementproperty about its possible return types. (#8038)
6.0.0 (2024-07-19)#
Breaking Changes#
Arguments for
reproject_to()after the target WCS are now keyword-only. (#7339)Arguments for
sunpy.timeseries.GenericTimeSeries.peek()are now keywords only. (#7340)Removed scikit-image from the “image” extra group and created a new “scikit-image” extra group. (#7536)
The “all” extra group now will install all optional packages.
This now includes the following packages:
asdf
glmyur
opencv
scikit-image
spiceypy (#7536)
Removed the “dask” extra group. (#7536)
sunpy.io.read_fileandsunpy.io.write_fileare deprecated and will be removed in the future. These were intended to be private functions and should not be used. (#7537)The ANA C code has been deprecated (
sunpy.io.ana.read,sunpy.io.ana.get_header,sunpy.io.ana.write) and may be removed in a future sunpy release. Please contact us here: https://community.openastronomy.org/t/possible-deprecation-of-ana-file-readers-and-writers-in-sunpy if you are making use of this code. (#7642)The
EUIMapclass now returns theDATE-BEGkey forGenericMap.datewhile continuing to useDATE-AVGas the reference date for the coordinate system. (#7682)The
GenericMap.datekey priority order has changed to be consistent with it representing the “canonical” observation time.DATE-OBScontinues to have the highest priority, but nowDATE-BEGhas higher priority thanDATE-AVG. (#7682)A new property
GenericMap.reference_datehas been added to decouple the reference date for the coordinate system from the “canonical” observation time. This new property is now passed through to the map’s WCS object asdateavgand is the time used forGenericMap.coordinate_frameandGenericMap.observer_coordinate. (#7682)
Deprecations#
assume_spherical_screenhas been deprecated in favor ofSphericalScreen. (#7115)sunpy.physics.differential_rotation.diff_rothas been deprecated and replaced bysunpy.sun.models.differential_rotation(). (#7409)Deprecated all positional arguments in
sunpy.map.GenericMap.plot()method. Theannotate,axes,title,clip_intervalarguments should be passed as keyword arguments (e.g.,..., title=True, ...) instead. (#7421)The keyword
response_formatinsunpy.net.vso.VSOClient.search()has been deprecated. This was introduced to preserve legacy behaviour of the VSO client, to returnsunpy.net.vso.legacy_response.QueryResponseinstead ofsunpy.net.vso.table_response.VSOQueryResponseTableobjects. This behaviour has been the default for over 4 years and the keyword is no longer needed. This keyword and the oldersunpy.net.vso.legacy_response.QueryResponseclass will be removed in sunpy 7.0. The keywordprogressinsunpy.net.hek2vso.H2VClient.full_query()has been deprecated and will be removed in sunpy 7.0. (#7468)
Removals#
sunpy.databasehas been removed. (#7320)sunpy.map.header_helper.meta_keywordshas been removed. (#7337)sunpy.net.helioviewer.HelioviewerClienthas been removed. Use the hvpy package instead. (#7338)There was a private “Maxwell” unit within
sunpy.mapto register it before astropy had support for it. This has now been removed in favour of using the astropy version. (#7383)
New Features#
sunpy.io.read_filewill now try to detect the filetype based on the content and then fallback to using the file extension. (#6736)It is now possible to read the comments in a header from a JPEG2000 file. (#6841)
Added the ability for
sunpy.map.Mapto load files from a generator. (#7024)Added
PlanarScreenfor interpreting 2DHelioprojectivecoordinates as being on the inside of a planar screen. (#7115)Added the ability to pass
clip_intervaltosunpy.map.MapSequence.plot. (#7253)Add support for the
fillkeyword indraw_contours()to allow for filled contours. (#7281)get_horizons_coord()now supports time arrays with up to 10,000 elements. (#7319)Add an example of plotting a rectangle on a map with a rotation angle relative to the axes (Drawing a rotated rectangle on a map). (#7348)
Added testing and explicit support for Python 3.12. (#7351)
Added warning when importing a submodule without installing that submodules extra dependencies. (#7369)
Added a warning message for
rsunmismatch inreproject_to()method. (#7370)Added a new optional extra group to install “opencv” if you want to it for affine transforms.
pip install sunpy[opencv] (`#7383 <https://github.com/sunpy/sunpy/pull/7383>`__)
Increased minimum versions for:
asdf >= 2.12.0
asdf-astropy >= 0.2.0
astropy >= 5.2.0
beautifulsoup4 >= 4.11.0
cdflib >= 0.4.4
dask >= 2022.5.2
h5netcdf > =1.0.0
h5py >= 3.7.0
lxml >= 4.9.0
opencv-python >= 4.6.0.66
pandas >= 1.4.0
python >= 3.10
reproject >= 0.9.0
requests >= 2.28.0
scikit-image >= 0.19.0
scipy >= 1.8.0
spiceypy >= 5.0.0
tqdm >= 4.64.0
zeep >= 4.1.0 (#7383)
sunpy.map.GenericMap.draw_contours()don’t run internal transform code iftransformkeyword is provided. (#7427)Update ASDF schemas for upcoming ASDF standard 1.6.0. (#7432)
Add a new map source
GONGHalphaMapfor GONG H-Alpha data. (#7451)Added
get_rotation_matrix()to obtain the rotation matrix between the orientations of two SPICE frames, which is particularly useful for transforming vector fields. (#7452)Allow units to be passed to
make_fitswcs_headeras strings. (#7454)A new client (
sunpy.net.dataretriever.ADAPTClient) has been added to search and download ADAPT files. (#7463)sunpy.net.jsoc.JSOCClientqueries now return the SUMS directory paths as the segment key value in the results table. (#7469)Allow the screen radius to be set when using
SphericalScreen. (#7532)Added a “core” extra group that does not install any truly optional dependencies. It only includes the dependencies that are required to import sunpy and all subpackages.
This means it will not install:
asdf
glymur
opencv
scikit-image
spiceypy (#7536)
Updated
sunpy.map.GenericMap.submap()to check if it is about to work on locations with NaNs now errors and informs the user that they likely want to useassume_spherical_screenso that the off-disk 2D coordinate can be converted to a 3D coordinate. (#7543)GenericMapwill now assign units of DN without a warning or error. (#7585)Add a new map source
ADAPTMapfor ADvanced Adaptive Prediction Technique (ADAPT) data files. (#7640)Added support for JSOC’s HMI millisecond TAI time format. Previously, it would only work with seconds. (#7656)
Added build support for aarch64 wheels. (#7679)
Bug Fixes#
Long object names are no longer truncated in the logging output of
get_horizons_coord(). (#7319)When calling
sunpy.map.GenericMap.rotate()on an integer data array, withmissingset to NaN (the default value), the method will now itself raise an informative error message instead deferring to NumPy to raise the error. (#7344)Fixed the appearance of a double “Notes” heading in
Mapsubclasses. (#7376)Mapwith UINT8 data will now not error on plotting due to normalization. We now skip adding a normalization. (#7422)When calling
reproject_to()along with both context managerspropagate_with_solar_surface()andassume_spherical_screennow raises a warning. (#7437)Fix a bug which caused
Fido.searchto crash due to SSL certificate verification error for theHECClientnow returns no results and logs a warning in this case. (#7446)Fixed the sanitization of the names of files downloaded via VSO so that periods are no longer replaced and case is no longer forced to be lowercase. (#7453)
The creation of the series string for a JSOC query was not adding the correct escape characters for comparison values for keywords. This was causing the JSOC to error. (#7467)
The EVE L0CS client now uses the new URLs for the data from LASP. (#7483)
JPEG2000 files are now saved with the correct orientation. Previously they would be vertically flipped when saved. (#7486)
Fixed a very minor inaccuracy in three
sunpy.maputility functions (contains_full_disk(),coordinate_is_on_solar_disk(), andis_all_off_disk()) resulting from the accidental use of the small-angle approximation. (#7512)The
rotate()function now correctly updates the NAXISi. (#7522)Added a check in
sunpy.physics.differential_rotation.solar_rotate_coordinateto ensure the input frame has an “observer” attribute before replicating frame attributes, preventing potential issues with frames lacking this attribute. (#7526)Fixed an inaccuracy in the implementation of
HeliocentricEarthEclipticandGeocentricSolarEclipticsuch that the Earth was not exactly in the XY plane, but rather had an error of up ~10 meters. (#7530)Fixed a bug with any coordinate transformation starting in
GeocentricEarthEquatorial(GEI) returning output with AU as the length unit, rather than preserving the length unit of the initial coordinate. (#7545)Fixed a bug that interfered with
astropy.wcs.utils.celestial_frame_to_wcs()when working with a custom subclass ofSunPyBaseCoordinateFrame. (#7594)Fixed bug where conversion of results from the HEKClient to Astropy Time failed when some values where empty or missing for the values of event_strattime, event_endtime or event_peaktime (#7627)
Fix the
rsun_obsto use correct header informationsolar-rkeyword. (#7652)Fix compilation with gcc 14, avoid implicit pointer conversions. (#7662)
Fixed a bug where “DN” was not able to be parsed by
make_fitswcs_headerdue to strict checking against the FITS standard. This is now consistent with how unit strings are parsed inGenericMap. (#7730)Fixed a bug where
XRTMapwas still defaulting to counts rather than DN. (#7744)
Documentation#
Added a how-to guide for manipulating grid lines on
GenericMap. (#6978)Created a how to guide on fixing metadata that is either missing or incorrect before passing the header into the
Mapclass. (#7262)Fixed the usage of
superpixel()in Resampling Maps. (#7316)Added Clarification on setting JSOC Email. (#7329)
Added explanation text to Plot positions on a blank map about the offset between “(0, 0)” in helioprojective coordinates and the heliographic equator. (#7352)
Convert draw rectangle gallery example into a how-to guide(Draw a rectangle on a Map) (#7435)
Fix a VSO doctest due to VSO now returning level one EIT data. (#7483)
Add an example gallery entry demonstrating how to use the coordinates framework to compute intersections between instrument lines of sight and a simulation domain. (#7491)
Updated the examples for
hmi_mag_color_table()that used older styles of plotting (#7692)
Internal Changes#
sunpy.net.jsoc.JSOCClient.fetch()calleddrmsAPI that passed aprogresskeyword which added extra print statements to the console. This has been removed indrms0.7.0, which had breaking API changes within this release. As a result, we increased the minimum required version ofdrmsto 0.7.1.This specifically refers to the following information that was printed to the console by default:
"Export request pending. [id=X, status=X]""Waiting for X seconds...""Request not found on server, X retries left."These were handled by
drmsand are now logging messages.If you want to silence these messages, you can set the logging level to
WARNINGor higher.import logging drms_logger = logging.getLogger("drms") drms_logger.setLevel(logging.WARNING) from sunpy.net import fido, attrs
Note, you have to do it before you import
fido. (#7307)The function
get_horizons_coord()no longer calls theastroquerypackage, soastroqueryis no longer a dependency. (#7319)The
requestspackage is a now formally a core dependency.requestswas already commonly installed as an implied dependency ofsunpy.netor for building documentation. (#7319)Notifychecks that a valid email address has been given as a value. (#7342)The
delim_whitespacekeyword inpandas.read_csvis deprecated and was updated withsep='\s+'. This should have no affect on the output of the code. (#7350)Fixed an environment-specific failure of a unit test for
sunpy.coordinates.Helioprojective.is_visible(). (#7356)Moved to
pyproject.tomland removedsetup.pyandsetup.cfg. (#7384)pyerfais now a new direct dependency. It has been an indirect dependency from sunpy 3.1, over two years ago. (#7397)Increased Python minimum version to be >= 3.10. (#7402)
Fixed an unnecessary division computation when performing a unsupported division operation using a
Map. (#7551)Updated the internal URL for the
NoRHClientto point to a HTTPS archive of the NoRH data. (#7696)
5.1.0 (2023-11-20)#
New Features#
Added the ability to skip over errors raised for invalid fits files when passing a list of files to map using the existing keyword argument
silence_errors. (#7018)Added a
sunpy.coordinates.Helioprojective.is_visible()method to return whether the coordinate is visible (i.e., not obscured from the observer assuming that the Sun is an opaque sphere). (#7118)Added a keyword option (
quiet) forget_body_heliographic_stonyhurst()to silence the normal reporting of the light-travel-time correction whenobserveris specified. (#7142)Added the function
sunpy.coordinates.sun.eclipse_amount()to calculate the solar-eclipse amount for an observer. (#7142)Add a keyword (
map_center_longitude) tomake_heliographic_header()for centering the heliographic map at a longitude other than zero longitude. (#7143)The minimum required version of
Glymur(an optional dependency for reading JPEG2000 files) has been increase to 0.9.1. (#7164)Added new default colormap scalings for WISPR Maps. Plots are now clipped at zero, and
AsinhStretchis used for the scaling to ensure coronal details are visible despite the much-brighter stars. Parsing of thedetectorandlevelfields of the FITS headers is also improved. (#7180)When creating a coordinate or coordinate frame without specifying
obstime, theobstimevalue from theobserverframe attribute will be used if present. (#7186)Added a GONG synoptic map class which fixes non-compliant FITS metadata (#7220)
Added the module
sunpy.coordinates.spiceto enable the use of theSkyCoordAPI to perform computations using SPICE kernels. (#7237)Added three coordinate frames that depend on the orientation of Earth’s magnetic dipole:
Geomagnetic(MAG),SolarMagnetic(SM), andGeocentricSolarMagnetospheric(GSM). (#7239)
Bug Fixes#
Fix RHESSI (
RHESSIClient) fallback server detection. (#7092)Fix bug in
get_horizons_coord()when specifying a time range via a dictionary that could cause the returned times to be slightly different from the supplied times. (#7106)Updated the url of the
GBMClientto match on files other than those that end with version 0 (i.e., V0.pha). (#7148)When directly instantiating a
WCSfrom a FITS header that contains both Stonyhurst and Carrington heliographic coordinates for the observer location, the Stonyhurst coordinates will now be prioritized. This behavior is now consistent with theMapclass, which has always prioritized Stonyhurst coordinates over Carrington coordinates. (#7188)Fixed a bug with
sample_at_coords()where sampling outside the bounds of the map would sometimes not error and instead return strange pixel values. (#7206)Improved code when loading CDF files to improve performance and avoid raising of pandas performance warnings. (#7247)
Fixed a bug with
sunpy.map.GenericMap.plot()where settingnormtoNonewould result in an error. (#7261)
Documentation#
Removed the specification of a non-identity rotation matrix in two reprojection examples. (#7114)
Added an example (Visualizing 3D stereoscopic images) for how to make an anaglyph 3D (i.e., red-cyan) image from a stereoscopic observation. (#7123)
Added an example (Obtaining solar-eclipse information) to show how to obtain information about a solar eclipse using
sunpy.coordinates.sun.eclipse_amount(). (#7142)Changed the Masking HMI based on the intensity of AIA to reproject AIA to HMI instead of the other way around. This is to avoid interpolating the HMI LOS magnetic field data. (#7160)
Fixed the timeseries peak finding example. Previously there was a bug when plotting the data with pandas. (#7199)
Added an example (Coordinates computations using SPICE kernels) for how to perform SPICE computations using the
SkyCoordAPI. (#7237)
Deprecations#
Deprecated
silence_errorsin Map and Timeseries. This has been replaced withallow_errorskeyword. (#7021)The
sunpy.coordinates.transformationsmodule is now slated for removal from the public API as it consists of internal functions used by coordinate transformations. The context managerssunpy.coordinates.transform_with_sun_center()andsunpy.coordinates.propagate_with_solar_surface()should be accessed undersunpy.coordinates. (#7113)
Removals#
sunpy.map.extract_along_coord()has been removed. Instead, usepixelate_coord_path(), and then pass its output tosample_at_coords().pixelate_coord_pathuses a different line algorithm by default, but you can specifybresenham=Trueas an argument to use the same line algorithm asextract_along_coord. (#7200)sunpy.visualisation.limb.draw_limb()has been removed. Usesunpy.visualization.drawing.limb()instead. (#7202)Removed
GenericTimeSeries.index. UseGenericTimeseries.timeinstead as a direct replacement. (#7203)Removed the deprecated
sunpy.io.cdfsubmodule, which is not intended to be user facing. (#7240)Removed the deprecated
sunpy.io.jp2, which is not intended to be user facing. (#7241)Removed the deprecated
sunpy.io.file_tools, which is not intended to be user facing. (#7242)The deprecated
sunpy.data.download_sample_data()has been removed Usesunpy.data.sample.download_all()instead. (#7250)
Internal Changes#
Removed the Binder configuration and link in README. This is because the configuration was untested, and does not currently work. (#7062)
Add a Dependabot config file to auto-update GitHub action versions. (#7068)
Add tests to check whether various
Mapmethods preserve laziness when operating on Maps backed by adask.array.Array. (#7100)Added missing support to find GOES-18 XRS data in
XRSClient. (#7108)Raise an error with a helpful message when
sunpy.map.GenericMap.plot()is called with a non-boolean value for theannotatekeyword, because the user is probably trying to specify the axes. (#7163)Fixed our ASDF manifest having the incorrect ID. (#7282)
Fix example formatting in a few asdf schemas. (#7292)
Pinned the
drmsrequirement to< 0.7to avoid breaking changes indrmsversion 0.7. (#7308)
5.0.0 (2023-06-14)#
Breaking Changes#
XRSClientnow provides the re-processed GOES-XRS 8-15 data from NOAA. These files are now all NetCDF and not FITS files. (#6737)Changed the output of
sunpy.map.sample_at_coords()to return the sampled values asQuantitywith the appropriate units instead of merely numbers. (#6882)
Deprecations#
Using
sunpy.map.header_helper.meta_keywordsis deprecated. Please see Meta Keywords for the list of metadata keywords used byMap. (#6743)The utility function
sunpy.map.extract_along_coordis deprecated. Usesunpy.map.pixelate_coord_path(), and then pass its output tosunpy.map.sample_at_coords(). (#6840)Parsing SDO/EVE level 0CS average files is deprecated, and will be removed in sunpy 6.0. Parsing this data is untested, and we cannot find a file to test it with. If you know where level 0CS ‘averages’ files can be found, please get in touch at https://community.openastronomy.org/c/sunpy/5. (#6857)
Fully deprecated
sunpy.database, with an expected removal version of sunpy 6.0. (#6869)sunpy.io.cdf,sunpy.io.file_toolsandsunpy.io.jp2sub-modules have been deprecated, and will be removed in version 5.1. This because they are designed for internal use only, and removing it from the public API gives the developers more flexibility to modify it without impacting users. (#6895)
New Features#
A pure Python
sunpywheel is now published on PyPI with each release.pipwill now default to installing the pure Python wheel instead of the source distribution on platforms other than Linux (x86-64) and macOS (x86-64 and ARM64). This should mean simpler and faster installs on such platforms, which includes the Raspberry Pi as well as some cloud computing services.This wheel does not contain the
sunpy.io.anacompiled extension. If you need this extension (not available on Windows) you can install thesunpysource distribution withpip install --no-binary sunpy "sunpy[all]". (#6175)Added three tutorials which replicate
CompositeMapfunctionality (Overlaying Two Maps, Combining off-limb and disk maps, Creating a Composite Plot with Three Maps). (#6459)exposure_timenow looks for the exposure time in theXPOSUREkey first and then theEXPTIMEkey. (#6557)make_fitswcs_headernow includes the keyword argumentdetectorfor setting theDETECTORFITS keyword in the resulting header. (#6558)Adds two tutorials that demonstrate how to use LASCO data in overlaying maps (Overlay an AIA image on a LASCO C2 coronagraph) and how to create a custom mask for a LASCO C2 image (Creating a mask for LASCO C2 data). (#6576)
Able to run the
sunpytests doingpython -m sunpy.tests.self_test. (#6600)Able to detect gzip-compressed FITS files even if they don’t have the
.gzextension in the filename.sunpy.io.detect_filetypenow looks for the right file signature while checking for gzipped FITS files. (#6693)Added
AttrAndandAttrOrto the namespace insunpy.net.attrs. This allows users to to avoid|or&when creating a query a larger query. (#6708)SUVIClientnow provides GOES-18 SUVI data. (#6737)The minimum required versions of several core dependencies have been updated:
Python 3.9
astropy 5.0.1
numpy 1.21.0
The minimum required versions of these optional dependencies has also been updated:
Matplotlib 3.5.0
dask 2021.4.0
pandas 1.2.0
scikit-image 0.18.0
scipy 1.7.0 (#6742)
Added the utility function
sunpy.map.pixelate_coord_path()to fully pixelate a coordinate path according to the pixels of a given map. (#6840)The minimum version of h5netcdf required by sunpy has been bumped to version 0.11.0. (#6859)
Able to download files from REST/TAP Data Providers from the VSO. (#6887)
Adding data unit into html repr for
sunpy.map.Map(#6902)Joined
HISTORYkeys with newline characters when parsingHISTORYcards from FITS header. (#6911)Added the ability to query for the GOES-XRS 1 minute average data with the
XRSClient. (#6925)Increased minimum version of
parfiveto 2.0.0.We are aware the change in the
parfiveminimum version is a release earlier than our dependency policy allows for. However, due to significant issues thatparfivev2.0.0 solves and changes to remote servers, we have decided to increase it to improve the user experience when downloading files. (#6942)
Bug Fixes#
Fixed the incorrect calculation in
make_fitswcs_header()of the rotation matrix from a rotation angle when the pixels are non-square. (#6597)Return code from
self_testis now non-zero if it stops due to missing dependencies. (#6600)Fixed an issue with loading old EIT fits files with
sunpy.map.Mapwhere the date could not be parsed. (#6605)Fixed a bug where the
exposure_timereturnedNonewhen the exposure time key was set to zero. (#6637)Fixed a bug that prevented specifying a
BaseCoordinateFrame(as opposed to aSkyCoord) tosunpy.map.GenericMap.draw_quadrangle(). (#6648)HMI JPEG2000 files from Helioviewer could not be loaded due to a bug in setting the plotting normalization. This has been fixed. (#6710)
The
data_managerwas not raising failed downloads correctly and would continue as if the file existed locally. Now it will raise any errors fromparfive. (#6711)XRTMapwill now set the unit for XRT files if theBUNITkey is missing. (#6725)XRSClientupdate use the new url for which the GOES-XRS 8-15 data is provided by NOAA. (#6737)Updated
sunpy.databaseto be compatible withSQLAlchemyversions >=2.0 (#6749)When using
autoalign=Truewhen plotting maps, the result was misaligned by half a pixel. (#6796)sunpy.map.GenericMap.submap()can now handle aBaseCoordinateFrameas input. (#6820)Multi-line
HISTORYandCOMMENTkeys metadata dictionaries are now correctly split into multiple history and comment cards when writing a FITS file. (#6911)Pass in “max_splits” to Parfive to prevent multi connections to JSOC for JSOC only queries. (#6921)
When converting an
astropy.wcs.WCSobject to a solar coordinate frame theDATE-AVGkey will be used before theDATE-OBSkey, previously onlyDATE-OBSwas checked. (#6995)sunpy.map.GenericMap.rotation_matrixnow applies the default values if any FITS rotation matrix keywords are missing from the header. (#7004)Modified
sunpy.io.special.srs.read_srs()to correctly handle uppercase SRS files and supplementary sections occurring after the main data sections (I, IA, II). (#7035)
Documentation#
Added an example of how to search for multiple wavelengths attributes for AIA data using
sunpy.net.attrs.AttrOr. (#6501)Added
sunpy.map.PixelPairto the reference documentation. (#6620)Split the installation docs into a new Installation tutorial, and an installation guide. (#6639)
Added an example (Creating a TimeSeries from GOES-XRS near real time data with flare times) to download GOES NRT data and load it into
TimeSeries. (#6744)Added an example gallery (Querying and loading SHARP data) for querying SHARP data and loading it into a
Map. (#6757)Added an example (Obtaining a spacecraft trajectory from JPL Horizons) to plot the trajectory of Parker Solar Probe. (#6771)
Created a “Showcase” section of the gallery, which includes a new example (Reproducing the “Where is STEREO Today?” plot) and a relocated example (HMI Showcase: Cutout). (#6781)
Updated examples in the gallery to always explicitly create an Axes and use that for plotting, instead of using the Matplotlib pyplot API. (#6822)
Added an example (Masking HMI based on the intensity of AIA) of how to mask a HMI map based on the intensity of AIA. (#6825)
Added an example to blend two maps using
mplcairo. (#6835)Changed the reprojecting images to different observers example (Reprojecting Images to Different Observers) to avoid using custom wcs headers where possible. (#6853)
Added a note in examples Auto-Aligning AIA and HMI Data During Plotting and Aligning AIA and HMI Data with Reproject suggesting to use
assume_spherical_screento retain off-disk HMI data. (#6855)Moved the Helioviewer migration guide from the tutorial to guide section of the docs. (#6868)
Moved the plotting section of the tutorial into the map section of the tutorial. (#6870)
Reorganized “Units” section of the Tutorial into smaller sections and added a section about unit equivalencies. (#6879)
Added clarifying detail (in the
TimeUTimedocstring) for how theutimetime format handles seconds on a day with a leap second. (#6894)Fixed a series of broken URLS and typos in examples and documentation strings. (#6903)
Improved the time tutorial. (#6920)
Add a “how-to” guide section to the documentation. (#6926)
Redesigned the landing page to highlight the different sections of the documentation. (#6938)
Significantly revised and improved the Maps part of the tutorial. This included moving the section on custom maps to the How-To Guides section (see Create a Map). (#6944)
Migrated example gallery entries for searching the VSO, using
parse_time, using the data manager, and using solar constants to the how-to guide. (#6948)Reorganized some parts of the coordinates topic guide into multiple how-to guides. (#6954)
Move examples of how to create a Map from reference pages to a how-to guide. (#6977)
Cleaned up and simplified the Timeseries section of the tutorial. (#6990)
Added a topic-guide to aid understanding the role, “rsun” plays in sunpy coordinate transformations and
sunpy.map.GenericMap.reproject_to(). (#7000)Updated all of the sphinx anchors to be more consistent. This means that any use of the old anchors (intersphinx links to sunpy doc pages) will need to be updated. (#7032)
Internal Changes#
When determining which VSO servers to use for queries,
VSOClientwill now attempt to check if the cgi endpoint referenced by the WDSL file is accessible, and try the next endpoint if it can’t be reached. This should mean that a small category of connection issues with the VSO are now automatically bypassed. (#6362)
4.1.0 (2022-11-11)#
Breaking Changes#
Updated the sample data file,
AIA_171_ROLL_IMAGEto be rice compressed instead of gzip compressed. This means that the data is now stored in the second HDU. (#6221)
Deprecations#
Passing positional arguments to all
timeseriespeek()methods is now deprecated, and will raise an error in sunpy 5.1. Pass the arguments with keywords (e.g.title='my plot title') instead. (#6310)Using
sunpy.timeseries.GenericTimeSeries.index`is deprecated. Usetimeto get an astropy Time object, orts.to_dataframe().indexto get the times as a pandasDataTimeIndex. (#6327)Deprecated the
sunpy.visualization.limbmodule. Thesunpy.visualization.limb.draw_limbfunction has been moved intodrawingaslimb(). (#6332)The
sunpy.net.helioviewermodule is deprecated and will be removed in version 5.1. The Helioviewer Project now maintains a replacement Python library called hvpy. As such, in consultation with the Helioviewer Project, we have decided to deprecate theHelioviewerClientclass. (#6404)Passing the
algorithm,return_footprintarguments as positional arguments is deprecated. Pass them as keyword arguments (e.g...., return_footprint=True, ...) instead. (#6406)sunpy.data.download_sample_data()is now deprecated. Usesunpy.data.sample.download_all()instead. (#6426)The sunpy.database module is no longer actively maintained and has a number of outstanding issues. It is anticipated that sunpy.database will be formally deprecated in sunpy 5.0 and removed in sunpy 6.0. If you are using sunpy.database and would like to see a replacement, please join the discussion thread at https://community.openastronomy.org/t/deprecating-sunpy-database/495. (#6498)
Removals#
The
sunpy.io.fitssub-module has been removed, as it was designed for internal use. Use theastropy.io.fitsmodule instead for more generic functionality to read FITS files. (#6432)The
sunpy.physics.solar_rotationsub-module has been removed, having been moved tosunkit_image.coalignment. (#6433)Most of the
sunpy.visualization.animatorsubpackage has been removed, with the exception ofMapSequenceAnimatorIt has been moved into the standalone mpl-animators package Please update your imports to replacesunpy.visualization.animatorwithmpl_animators. (#6434)Remove
GenericMap.shiftmethod and theGenericMap.shifted_value. Useshift_reference_coordinstead. (#6437)sunpy.util.scraperhas been removed. Usesunpy.net.scraperinstead. (#6438)sunpy.image.coalignmenthas been removed. Usesunkit_image.coalignmentinstead, which contains all the same functionality. (#6440)sunpy.map.GenericMap.draw_limb()can no longer be used to draw the limb on a non-WCS Axes plot. (#6533)sunpy.image.resample()no longer accepts “neighbour” as an interpolation method. Use “nearest” instead. (#6537)sunpy.image.transform.affine_transform()andsunpy.map.GenericMap.rotate()no longer accepts theuse_scipykeyword. (#6538)
New Features#
Updated and expanded the HTML representation for
TimeSeries. (#5951)When reading CDF files, any columns with a floating point data type now have their masked values converted to NaN. (#5956)
Add support for saving
GenericMapas JPEG 2000 files. (#6153)Add a function
sunpy.map.extract_along_coordthat, for a given set of coordinates, finds each array index that crosses the line traced by those coordinates and returns the value of the data array of a given map at those array indices. (#6189)Three new maps have been added to the sample data from STEREO A and STEREO B at 195 Angstrom, and AIA at 193 Angstrom. These images are from a time when the three spacecraft were equally spaced around the Sun, and therefore form near complete instantaneous coverage of the solar surface.
Users upgrading to this version will find this three files download when they use the sample data for the first time. (#6197)
Added a SDO/AIA 1600 file of the Venus transit to the sunpy sample data. (#6242)
Created the
sunpy.visualization.drawingmodule which includes newequator()andprime_meridian()functions. (#6251)Expose GOES quality flags in order to allow filtering corrupt values when using the
XRSTimeSeries. (#6260)All TimeSeries plotting methods now consistently set the same formatter and locator for the x-axis. (#6264)
sunpy.timeseries.GenericTimeSeries.peek()now takes atitleargument to set the title of the plot. (#6304)Added the
sunpy.timeseries.GenericTimeSeries.timeproperty to get the times of a timeseries as aTimeobject. (#6327)Added the Plotting the solar equator and prime meridian example to the Example Gallery. (#6332)
Added a new function
sunpy.map.header_helper.make_heliographic_header()to help with generating FITS-WCS headers in Carrington or Stonyhurst coordinate systems that span the entire solar surface. (#6415)Sample data files provided through
sunpy.data.sampleare now downloaded individually on demand rather than being all downloaded upon import of that module. To download all sample data files, callsunpy.data.sample.download_all(). (#6426)XRSTimeSeriesis now able to parse the primary detector information from the GOES-R XRS data if available. (#6454)sunpy.net.Scrapernow includes treats files as spanning a full interval equal to the smallest increment specified in the file pattern. For example, a pattern like"%Y.txt"that only contains a year specifier will be considered to span that full year.This means searches that fall entirely within the whole interval spanned by a pattern will return that file, where previously they did not. As an example, matching
"%Y.txt"withTimeRange('2022-02-01', '2022-04-01')will now return["2022.txt"]where previously no files were returned. (#6472)Implemented site configuration for sunpyrc, and modified documentation for sunpy customization. (#6478)
make_fitswcs_header()now includes the keyword argumentunitfor setting theBUNITFITS keyword in the resulting header. This will take precedence over any unit information attached todata. (#6499)If the
dataargument tomake_fitswcs_header()is anQuantity, the associated unit will be used to set theBUNITFITS keyword in the resulting header. (#6499)Added a 304 sample data file called
AIA_304_IMAGE. (#6546)
Bug Fixes#
Fix a bug that prevented EUI maps with missing wavelength metadata loading. (#6199)
The
sunpy.net.dataretriever.sources.noaa.SRSClientwas not correctly setting the passive mode for FTP connection resulting in a permission error. This has been fixed. (#6256)Fixed
XRSTimeSeriesinability to read leap-second files for GOES. It floors the leap-second timestamp to be59.999, so that Python datetime does not raise an exception. (#6262)Changed the default scaling for
EUIMapfrom a linear stretch to a asinh stretch.To revert to the previous linear stretch do the following:
from astropy.visualization import ImageNormalize, LinearStretch euimap.plot_settings["norm"] = ImageNormalize(stretch=LinearStretch()) (`#6285 <https://github.com/sunpy/sunpy/pull/6285>`__)
Fixed bugs when working with a coordinate frame where the observer is specified in
HeliographicStonyhurstwith a Cartesian representation, which is equivalent to Heliocentric Earth Equatorial (HEEQ). Now, the observer will always be converted to spherical representation when the coordinate frame is created. (#6311)Fixed an error when Fido returns zero results from the VSO and some results from at least one other data source. This (now fixed) error is only present when using numpy version >= 1.23. (#6318)
If a level 1 XRT file does not specify the heliographic longitude of the spacecraft, a silent assumption is made that the spacecraft is at zero Stonyhurst heliographic longitude (i.e., the same longitude as Earth). (#6333)
The sample data retry was failing under parfive 2.0.0. (#6334)
Fixed bug that prevented
RotatedSunFrameinstances from being pickled. (#6342)Fix a bug in loading
XRSTimeSeriesdue to unsupported quality flag column names. (#6410)Adds units (dimensionless units) to the quality columns in
XRSTimeSeries. (#6423)Refactored
SXTMapto use ITRS observer coordinate information in header rather than incorrect HGS keywords. TheSXTMapalso now uses the defaultdsunproperty as this information can be derived from the (now corrected) observer coordinate. (#6436)In
sunpy.map.GenericMap.coordinate_systemandsunpy.map.GenericMap.date, the default values will now be used if the expected key(s) used to derive those properties are empty. Previously, empty values of these keys were not treated as missing and thus the default values were not correctly filled in. (#6436)Fixed a bug where the observer coordinate was incorrectly determined for
KCorMap. (#6447)Trying to download an empty search response from the JSOC now results in an empty results object. Previously the results object contained the path to the sunpy download directory. (#6449)
Removed an error when searching CDAWEB using
sunpy.net.Fidoand no results are returned. An empty response table is now returned. (#6450)Fix a bug to parse the GOES “observatory” number in
XRSTimeSeriesfor GOES 13, 14, 15 and for the 1 minute GOES-R data. (#6451)Changed the default scaling for
XRTMapfrom a linear stretch toLogStretch.To revert to the previous linear stretch do the following:
from astropy.visualization import ImageNormalize, LinearStretch xrtmap.plot_settings["norm"] = ImageNormalize(stretch=LinearStretch()) (`#6480 <https://github.com/sunpy/sunpy/pull/6480>`__)
Fix the
detectorproperty ofSOTMapto return “SOT”. (#6480)The right-hand y-axis of the GOES-XRS timeseries plots with labelled flare classes now automatically scales with the left-hand y-axis. (#6486)
Add support for Python 3.11.
The deprecated “cgi.parse_header” is now available as
sunpy.util.net.parse_header. (#6512)Fixed the metadata handling of
resample()andsuperpixel()so that the CDELTi values are scaled and the PCi_j matrix (if used) is modified in the correct manner for asymmetric scaling. The previous approach of having the PCi_j matrix store all of the scaling resulted in non-intuitive behaviors when accessing thescaleandrotation_matrixproperties, and when de-rotating a map viarotate(). (#6571)Fixd a bug with the
sunpy.map.GenericMap.scaleproperty for maps containing only the CDij matrix where the scale was not being determined from the CDij matrix. (#6573)Fixed a bug with the
sunpy.map.GenericMap.rotation_matrixproperty for maps using the CDij matrix formulism where the rotation matrix would be calculated incorrectly for non-square pixels. (#6573)Fixed a bug where
parse_time()would always disregard the remainder of a time string starting with the final period if it was followed by only zeros, which could affect the parsing of the time string. (#6581)
Documentation#
Improved annotations in the SRS active regions plotting example. (#6196)
Updated gallery examples that use STEREO data to use sample data instead of searching for and downloading data via Fido. (#6197)
Added the current bugfix release policy to the docs. (#6336)
The Maps and Timeseries have been reviewed and updated. (#6345)
Adds a pull request check list to the Developer’s Guide. (#6346)
Improved the plotting guide. (#6430)
Slight improvements to the downloading data with Fido part of the guide. (#6444)
Split the units and coordinate guides on to separate pages, and made minor improvements to them. (#6462)
Added a how-to guide
conda_for_dependenciesfor usingcondato set up an environment with the complete set of dependencies to use all optional features, build the documentation, and/or run the full test suite. The guide also describes how best to have an editable installation ofsunpyin this environment. (#6524)
Internal Changes#
Added a
columnskeyword to each plot method for allsunpy.timeseries.GenericTimeSeriessources. (#6056)Added a script in the
sunpy/toolsthat will update all the Python libraries insunpy/extern. (#6127)Added automatic conversion of unit strings in CDF files to astropy unit objects for the following instruments: PSP/ISOIS, SOHO/CELIAS, SOHO/COSTEP-EPHIN, and SOHO/ERNE. (#6159)
Add an environment variable
SUNPY_NO_BUILD_ANA_EXTENSIONwhich when present will cause sunpy to not compile the ANA C extension when building from source. (#6166)sunpynow uses the Limited Python API. Therefore, one binary distribution (wheel) per platform is now published and it is compatible with all Python versionssunpysupports. (#6171)Add support for upcoming parfive 2.0 release. (#6243)
The primary sample-data URL will be changing from
https://github.com/sunpy/sample-data/raw/master/sunpy/v1/tohttps://github.com/sunpy/data/raw/main/sunpy/v1/. We expect GitHub to redirect from the old URL for sometime but will eventually expire it. Thedata.sunpy.orgmirror will continue to be available. (#6289)Add support for downloading sample data from more than two mirror locations. (#6295)
Timeseries data sources can now set the
_peek_titleclass attribute to set the default plot title produced when.peek()is called and the user does not provide a custom title. (#6304)Add maintainer documentation on the backport bot (#6355)
Switched to using the standard matrix-multiplication operator (available in Python 3.5+) instead of a custom function. (#6376)
Fixed a colormap deprecation warning when importing the sunpy colormaps with Matplotlib 3.6. (#6379)
Removed custom tick label rotation from Lyra, EVE, and Norh timeseries sources, and grid drawing from NOAA and RHESSI sources. (#6385)
Fixed a bug where the private attribute
_default_observer_coordinateforGenericMapwas being used even when there was sufficient observer metadata in the header. (#6447)Tidy the GOES XRSTimesSeries tests and add two new XRS files to test. (#6460)
Added a pre-commit hook for codespell, and applied spelling fixes throughout the package. (#6574)
v4.0.0 (2022-05-06)#
Breaking Changes#
When rotating images using the SciPy rotation method, the default behavior is now to clip the output range to the input range, which matches the default behavior of the scikit-image rotation method. (#5867)
Any NaNs are now preserved by
sunpy.image.transform.affine_transform()andsunpy.map.GenericMap.rotate(). (#5867)sunpy.image.transform.affine_transform()andsunpy.map.GenericMap.rotate()now default to using SciPy for rotation instead of scikit-image, so rotation results may be slightly different. (#5867)The math convenience methods of
sunpy.map.GenericMap-max(),mean(),min(), and ,std()- now ignore NaNs in the image data. (#5867)sunpy.image.transform.affine_transform()andsunpy.map.GenericMap.rotate()now default to using NaN instead of zero for themissingvalue, the value used for pixels in the output array that have no corresponding pixel in the input array. To obtain the previous behavior,missingshould be explicitly specified as zero. (#5867)The
JSOCClientand everysunpy.net.dataretriever.GenericClientwas passing all**kwargstoparfive.Downloader.enqueue_file, this was unintended and has been removed. (#6052)Changed the default interpolation order for
sunpy.map.GenericMap.rotate()from 4 to 3, with the precise meaning of these interpolation orders depending on the selected rotation method. For the default rotation method, which usesscipy.ndimage.affine_transform(), this changes the default interpolation from biquartic to bicubic, which reduces the computation time without reducing the quality of the output below what a typical user needs. (#6089)
Deprecations#
Deprecate
sunpy.image.coalignmentas the code has now been moved tosunkit_image.coalignmentwith an identical API. This module will be removed in sunpy 4.1. (#5957)The
sunpy.map.GenericMap.shiftmethod has been renamed tosunpy.map.GenericMap.shift_reference_coordandshifthas been deprecated. (#5977)The
sunpy.map.GenericMap.shifted_valueproperty has been deprecated. Modifications to the reference coordinate can be found in theCRVAL1andCRVAL2keys ofsunpy.map.GenericMap.meta.modified_items. (#5977)The
sunpy.io.fitsmodule is deprecated, as it was designed for internal use only. Use theastropy.io.fitsmodule instead for more generic functionality to read FITS files. (#5983)sunpy.physics.solar_rotation.mapsequence_solar_derotateis deprecated and will be removed in version 4.1. This function has been moved tosunkit_image.coalignment.mapsequence_coalign_by_rotationand has an identical API and functionality. (#6031)sunpy.physics.solar_rotation.calculate_solar_rotate_shiftis deprecated and will be removed in version 4.1. This function has been moved tosunkit_image.coalignment.calculate_solar_rotate_shiftand has an identical API and functionality. (#6031)Deprecated using
sunpy.map.GenericMap.draw_limbon an Axes that is not a WCSAxes. (#6079)
New Features#
Added support for Python 3.10 (#5568)
Added support for
"%Y.%m.%d_%H:%M:%S_UTC"and"%Y.%m.%d_%H:%M:%S"time formats insunpy.time.parse_time. (#5647)The
rsunargument toget_observer_meta()is now optional. (#5655)Added the
total_size(), which estimates the total size of the results from a Fido query. If this is supported by a client, the total size is printed alongside the results.To add support for this in external clients, make sure one column contains the individual filesizes as
Quantity, and set thesize_columnclass attribute to the name of this column. (#5659)Added the ability to specify the use of Carrington coordinates with
sunpy.map.GenericMap.draw_grid(). (#5703)Printing a
MetaDictwill now show each entry on a new line. (#5765)Removed support for Python 3.7. (#5773)
The ‘event_endtime’, ‘event_starttime’ and ‘event_peaktime’ columns in a HEK query are now returned as
Timeobjects. Previously they were timestamp strings. (#5806)Added a helpful warning message when converting a 2D Helioprojective coordinate will return all NaNs. (#5817)
The colorbar limits on HMI magnetic field maps are now automatically set to be symmetric about zero. (#5825)
Added a
clipkeyword tosunpy.image.transform.affine_transform()andsunpy.map.GenericMap.rotate()to enable or disable whether the range of the output image is clipped to the range of the input range. (#5867)Created the decorator
sunpy.image.transform.add_rotation_function()for registering new rotation functions for use bysunpy.image.transform.affine_transform()andsunpy.map.GenericMap.rotate(). (#5867)sunpy.image.transform.affine_transformandsunpy.map.GenericMap.rotate()have both had theiruse_scipyarguments deprecated. Instead use the newmethodargument to select from the available rotation methods. (#5916)Added a Maxwell unit and any places where a conversion to Gauss occurs has been removed. (#5998)
Add a basic HTML representation for
TimeSeries. (#6032)The minimum supported asdf version has been increased to 2.8.0 to allow future compatibility with the breaking changes planned for asdf 3.0. In addition to this the asdf-astropy package is now required to serialise and deserialise the sunpy coordinate frame classes to ASDF. (#6057)
Added the option to rotate using OpenCV when using
sunpy.image.transform.affine_transform()orsunpy.map.GenericMap.rotate()by specifyingmethod='cv2'. The OpenCV Python package must be installed on the system. (#6089)
Bug Fixes#
Fixed reading CDF files when a column has no entries. If this is the case the column will be ignored, and a message logged at DEBUG level. (#5664)
Fixed the units of
sunpy.map.sources.HMISynopticMap.scaleandsunpy.map.sources.MDISynopticMap.scale. (#5682)Fixed a bug where custom values in the
plot_settingsdictionary were not being propagated to new map instances created when calling map methods (e.g..submap). (#5687)Added automatic conversion of some common but non-standard unit strings in CDF files to astropy unit objects. If sunpy does not recognise the unit string for a particular column, units of
u.dimensionless_unscaledare applied to that column and a warning raised.If you think a given unit should not be dimensionless and support should be added for it in sunpy, please raise an issue at https://github.com/sunpy/sunpy/issues. (#5692)
The default
id_typeinsunpy.coordinates.get_horizons_coord()is nowNoneto match the defaultid_typein astroquery 0.4.4, which will search major bodies first, and if no major bodies are found, then search small bodies. For older versions of astroquery the defaultid_typeused byget_horizons_coord()is still'majorbody'. (#5707)In consultation with JSOC, we now limit all JSOC downloads to one connection. This will override all connection user settings passed to the downloader. (#5714)
Updated the
plotmethods on some timeseries classes to correctly label and format the time axis. (#5720)Fixed a long-standing bug where our logger could intercept Astropy warnings in addition to SunPy warnings, and thus could conflict with Astropy’s logger. (#5722)
Update asdf schemas so that references use URIs not tags as this is not supported by the new asdf extensions API. (#5723)
Increased the default maximum amount of records returned from HEC to 500 from 10. If the maximum number of records are returned, a message is shown. (#5738)
Reading a series of CDF files where at least one of them is empty no longer raises an error. A message for each empty file is logged at the DEBUG level. (#5751)
sunpy.map.header_helper.make_fitswcs_header()now includes a PC_ij matrix in the returned header if no rotation is specified. (#5763)In the case where a map header has no PC_ij values, CROTA2 != 0, and CDELT1 != CDELT2, the calculation of the map rotation matrix has been fixed. This bug only affected maps with non-zero rotation, no PC matrix in the header, and un-equal scales along the two image axes. (#5766)
Maps created from
resample()andsuperpixel()have been fixed in the case where the resampling was not square, and the PCi_j matrix (often a rotation matrix) was not a multiple of the identity matrix. When the PCi_j or CDi_j formalisms are used in the metadata these are now correctly modified, and the CDELT values are left unchanged. (#5786)The
__repr__of severalsunpy.databaseclasses have been updated to remove angular brackets and add equals signs. As an example,'<DatabaseEntry(id 3)>'has changed to'DatabaseEntry(id=3)'(#5790)Fixed a bug when rotating a map by a matrix that is not purely a rotation. The likely way to inadvertently encounter this bug was when de-rotating a map with rectangular pixels that were not aligned with the coordinate axes. (#5803)
Fixed a bug where rotating a map while simultaneously scaling it could result in some of the map data being cropped out. (#5803)
Symmetric colorbar limits are no longer set on intensity images from MDI. (#5825)
Fixed plotting and peeking NORH timeseries data with
pandas1.4.0. (#5830)In the case where
sunpy.database.Database.fetch()successfully downloads only some of the search results, asunpy.database.PartialFetchErroris raised. This fixes a bug where the successful downloads would have been added to the database, but sometimes with incorrect metadata. (#5835)When getting IRIS files from the VSO, Fido was incorrectly labelling them as XML files. (#5868)
HMIMapnow looks for'INSTRUME'instead of'TELESCOP'in order to support Helioviewer JPEG2000 versions of HMI data which do not preserve the'TELESCOP'keyword as expected in the JSOC standard. (#5886)Fixes a bug where the
cmapandnormkeyword arguments were ignored when callingplot. (#5889)Fix parsing of the GOES/XRS netcdf files to ignore leap seconds. (#5915)
Fixed compatibility with
h5netcdf>0.14when loading GOES netcdf files. (#5920)Fixed bugs with the rebinning and per-keV calculation for Fermi/GBM summary lightcurves (
GBMSummaryTimeSeries). (#5943)Fixed the unintentionally slow parsing of Fermi/GBM files (
GBMSummaryTimeSeries). (#5943)Fixes a bug in
SJIMapwhere undefined variable was used when parsing the wavelength. Also fixes the unit parsing by removing the “corrected” string from theBUNITkeyword as “corrected DN” cannot be parsed as a valid FITS unit. (#5968)Fixed unit handling issue with
GenericMapand lowercasing the unit before it submits it toastropy.units. (#5970)Fixed reading CDF files when a variable has more than 2 dimensions. If this is the case the variable will be ignored, and a user warning is provided. (#5975)
Fixed
sunpy.system_infoso it returns the extra group when an optional dependency is missing. (#6011)Relax condition check for a HMI Synoptic map source. (#6018)
VSOClientwas not passing**kwargsthrough each download method. (#6052)Fixed the inability to rotate images and maps with byte ordering that is different from the native byte order of the system (e.g., big-endian values on a little-endian system) for certain interpolation orders when internally using
scikit-image. (#6064)Fixed a crash for dask arrays when displaying the
GenericMaphtml representation. (#6088)Constructing the color map name for a
KCorMapno longer requires the “detector” key in the metadata. This allows for reading files that are missing this keyword, as in the KCor JPEG2000 files. (#6112)We now correctly pass keyword arguments in our internal FITS reader to
astropy.io.fits.open. (#6123)
Documentation#
Fixed various plotting issues with the gallery example Drawing the AIA limb on a STEREO EUVI image. (#5534)
Improved the gallery example AIA to STEREO coordinate conversion to better illustrate how coordinate transformations interact with submaps and coordinate plotting. (#5534)
Tidy the API Reference section of the documentation and improve the landing page for the docs. (#5623)
Add info about loading CDF files to the API documentation. (#5735)
Added a known issues entry about
scikit-imagepackage version pinning. (#5865)Edited entries in the example gallery to have a consistent plotting style. Added said style guidelines to the example gallery page in the dev guide. (#5870)
Added the gallery example Reprojecting to a Map Projection with a Custom Origin, which specifically showcases the azimuthal equidistant projection (also known as the Postel projection). (#5961)
Remove the part of the
SJIMapdocstring that says it only works on L1 as the data work for L2 and the level checking was not being enforced. (#5968)Updated the timeseries documentation to make it clear that you can pass in a numpy array. (#6024)
Internal Changes#
Sped up the parsing of results from the VSO. For large queries this significantly reduces the time needed to perform a query to the VSO. (#5681)
sunpy.map.GenericMap.wcsnow checks that the scale property has the correct units whilst constructing the WCS. (#5682)Added packaging as a core dependency as distutils is now deprecated. (#5713)
SunpyWarningis no longer a subclass ofAstropyWarning. (#5722)Running the tests now requires the
pytest-xdistpackage. By default tests are not run in parallel, but can be configured to do so usingpytest-xdistcommand line options. (#5827)Migrate the asdf infrastructure to the new style converters etc added in asdf 2.8.0. This makes sure sunpy will be compatible with the upcoming asdf 3.0 release. (#6057)
Declare in our dependencies that we are not compatible with asdf 3.0.0 until we are. (#6077)
Improved performance of the code that parses dates in clients that use the
Scraperto get available files. (#6101)
3.1.0 (2021-10-29)#
Breaking Changes#
sunpy.timeseries.sources.NOAAIndicesTimeSeries.peek()acceptsplot_typeas an argument instead oftype. (#5200)Fill values are now set to
numpy.naninsunpy.timeseries.sources.noaafile parsers. They were previously set to a fill value of-1. (#5363)sunpy.map.GenericMap.datenow looks for more metadata than just DATE-OBS, using new FITS keywords defined in version 4 of the standard.sunpy.map.GenericMap.datenow returns, in order of preference:The DATE-OBS FITS keyword
The current time.
If DATE-OBS is present alongside DATE-AVG or DATE-BEG and DATE-END, this results in a behaviour change to favour the new (more precisely defined) keywords. It is recommended to use
date_average,date_start, ordate_endinstead if you need one of these specific times. (#5449)sunpy.io.fits.get_headerno longer automatically tries to add the WAVEUNIT keyword if it isn’t present in the header. To replicate the original behaviour do:header = sunpy.io.fits.get_header(...) waveunit = sunpy.io.fits.extract_waveunit(header) if waveunit is not None: header['WAVEUNIT'] = waveunit
The
sunpy.map.GenericMap.waveunitproperty still usessunpy.io.fits.extract_waveunit`to try and get the waveunit if the WAVEUNIT key isn’t present. (#5501)sunpy.map.GenericMap.wcsno longer passes the whole.metadictionary toastropy.wcs.WCSwhen constructing.wcs. Instead each metadata value is manually taken from various map properties, which allows fixes to be made to the WCS without modifying the original map header. We think thatwcscorrectly sets all the keys needed for a full WCS header, but if you find anything missing please open an issue on the sunpy issue tracker. (#5501)
Deprecations#
sunpy.util.scraper.Scraperhas been moved intosunpy.net, please update your imports to befrom sunpy.net import Scraper. (#5364)Using “neighbour” as a resampling method in
sunpy.image.resample.resample()is deprecated. Use “nearest” instead, which has the same effect. (#5480)The
sunpy.visualization.animatorsubpackage has been spun out into the standalone mpl-animators package, with the exception ofMapSequenceAnimator. Please update your imports to replacesunpy.visualization.animatorwithmpl_animators.This is primarily because the
ndcubepackage now relies on the animator classes as well assunpy. (#5619)
Removals#
The deprecated
sunpy.roi.chaincode.Chaincodehas been removed in favour ofsunpy.net.helio.Chaincode. (#5304)The deprecated
sunpy.roi.roiwas removed, there is no direct replacement but astropy-regions is something to consider. (#5304)The deprecated
sunpy.instrhas been removed, please use sunkit_instruments. (#5304)The deprecated
sunpy.map.GenericMap.sizehas been removed, please usesunpy.map.GenericMap.data.size. (#5304)The deprecated ability to read txt files from
sunpy.timeseries.sources.noaa.NOAAIndicesTimeSeriesandsunpy.timeseries.sources.noaa.NOAAPredictIndicesTimeSerieshas been removed as the data provided by NOAA is now provided as JSON files. (#5304)Removed various deprecated methods on our Fido clients and responses:
UnifiedResponse.build_table,UnifiedResponse.tables,UnifiedResponse.responses,UnifiedResponse.get_responseandUnifiedResponse.blocksasUnifiedResponseis now anastropy.table.Tablethat is sliceable.UnifiedResponse.response_block_propertiesasUnifiedResponse.path_format_keyswas added as a better replacement.HECClient.time_queryas you can now useFido.searchdirectly.sunpy.net.jsoc.attrs.Keyswas not used for querying JSOC.sunpy.net.jsoc.JSOCClient.search_metadataas the functionality this provided was merged intosunpy.net.jsoc.JSOCClient.search.sunpy.net.vso.VSOClient.linkas better search support in the client replaces this method. (#5304)
The deprecated
sunpy.map.GenericMap.draw_rectangle()has been removed, the replacement issunpy.map.GenericMap.draw_quadrangle()(#5304)sunpy now errors if the unused
.rsunor.heliographic_observerattributes are set on aWCS. (#5348)Support for passing non-unit levels to
sunpy.map.GenericMap.draw_contours()when map data has units set has been removed, and with now raise an error. (#5352)The
originargument tosunpy.map.GenericMap.world_to_pixel()andsunpy.map.GenericMap.pixel_to_world()has been removed. (#5353)Support for plotting or contouring
GenericMapon axes that are notWCSAxeshas been removed. To create aWCSAxes, use theprojectionargument when the axes is created, e.g.fig.add_subplot(111, projection=my_map). (#5354)The following search attributes in
sunpy.net.vso.attrshave been removed:['Time', 'Instrument', 'Wavelength', 'Source', 'Provider', 'Level', 'Sample', 'Detector', 'Resolution', 'Physobs']. Use the equivalent attribute fromsunpy.net.attrsinstead. (#5355)The default response format from the VSO client is now a table. (#5355)
sunpy.net.hek.attrs.Timehas been removed, usesunpy.net.attrs.Timeinstead. (#5355)
New Features#
Ensured that
plotandpeekwill output the same figures for allsunpy.timeseries.TimeSeriessources. (#5200)Added hook file and tests for using PyInstaller with sunpy. (#5224)
Allows
sunpy.map.GenericMap.draw_quadrangle()to accept pixel units as input to enable plotting boxes in the pixel space of the map, which can be different from the plot axes. (#5275)Added the
propagate_with_solar_surface()context manager for transformations, which will automatically apply solar differential rotation when transforming a coordinate between frames with a change in time (obstime). (#5281)Add support for parsing the observer location from a
WCSobject when using the ‘OBSGEO’ formulation. This is the recommended way to define the observer location of a ground based observer. (#5315)Added a new function,
sunpy.visualization.draw_limb, that draws the solar limb as seen from an arbitrary observer coordinate on a world coordinate system aware Axes. (#5414)sunpy.map.GenericMap.rsun_metersnow usessunpy.map.GenericMap.rsun_obsas a fallback to calculate the assumed radius of emission if RSUN_REF metadata isn’t present but metadata forrsun_obsis. (#5416)Added
sunpy.coordinates.utils.get_limb_coordinates()to get the solar limb coordinates as seen from a given observer. (#5417)Printing the response from a
Fidoquery now includes the URL where the data files are sourced from.If you develop a third-party
Fidoclient, support for this can be automatically enabled by adding ainfo_urlproperty to yourBaseClientthat returns a URL as a string. (#5431)TimeSeriescan now read CDF files that conform to theISTP/IACG guidelines (https://spdf.gsfc.nasa.gov/sp_use_of_cdf.html). (#5435)
The properties
date_start,date_end, anddate_averagehave been added to be drawn from the relevant FITS metadata, if present in the map header. (#5449)Add default color map and normalization for
HMISynopticMapThe default color map is ‘hmimag’ and the default normalization is linear between -1.5e-3 and +1.5e3, the expected normalization for this particular color map. (#5464)The headers produced by
make_fitswcs_header()now includeNAXIS,NAXIS1, andNAXIS2keywords. (#5470)The
WCSinstance returned by thesunpy.map.GenericMap.wcsproperty now includes the shape of the data array. (#5470)Added the method
sunpy.map.GenericMap.reproject_to()for reprojecting aMapto a different WCS. This method requires the optional packagereprojectto be installed. (#5470)Registered the time format
tai_secondsforastropy.time.Time(viaTimeTaiSeconds) to support parsing the numerical time format of TAI seconds since 1958-01-01 00:00:00. This format includes UTC leap seconds, and enables equivalent functionality to theanytim2tairoutine in SSW. (#5489)Added
sunpy.map.sources.WISPRMapas a map source for WISPR on Parker Solar Probe. This improves thenameof the map and adds correct information for theprocessing_levelandexposure_time. (#5502)sunpy.io.fits.writecan now update thedataandheaderof an existing HDU instance, as an alternative to creating a new instance of a specified HDU type. This adds support for writing a HDU (such asCompImageHDU) initialised with non-default keyword arguments. (#5503)Added
observatoryto provide observatory information for the timeseries e.g. specific goes satellite number. (#5556)sunpy.timeseries.GenericTimeSeries.plot()andsunpy.timeseries.GenericTimeSeries.peek()will now automatically label the y-axis if all the columns being plotted have the same units. (#5557)sunpy.timeseries.GenericTimeSeries.plot()andsunpy.timeseries.GenericTimeSeries.peek()now have an optioncolumnsthat allows plotting a subset of the columns present. (#5557)Added a new CDAWeb client, along with helper utilities to
sunpy.net.cdaweb. (#5558)Support for filtering searches with JSOC keywords has been added to
Fido.search. (#5566)Added support for arithmetic operations between`~sunpy.map.GenericMap` and array-like objects. (#5614)
Added
quantityattribute toGenericMapto expose thedataattribute as aQuantityusing theunitattribute. (#5614)
Bug Fixes#
sunpy.map.GenericMap.superpixel()now keeps the reference coordinate of the WCS projection the same as the input map, and updates the reference pixel accordingly. This fixes inconsistencies in the input and output world coordinate systems when a non-linear projection is used. (#5295)Inputs to the
dimensionsandoffsetarguments tosunpy.map.GenericMap.superpixel()in units other thanu.pix(e.g.`u.kpix) are now handled correctly. (#5301)Fractional inputs to the
dimensionsandoffsetarguments tosunpy.map.GenericMap.superpixel()were previously rounded usingintin the superpixel algorithm, but not assigned integer values in the new metadata. This has now been changed so the rounding is correctly reflected in the metadata. (#5301)Remove runtime use of
astropy.tests.helper.assert_quantity_allclosewhich introduces a runtime dependency onpytest. (#5305)sunpy.map.GenericMap.resample()now keeps the reference coordinate of the WCS projection the same as the input map, and updates the reference pixel accordingly. This fixes inconsistencies in the input and output world coordinate systems when a non-linear projection is used. (#5309)Fix saving
GenericMapto an asdf file with version 2.8.0 of the asdf package. (#5342)When the limb is entirely visible,
sunpy.map.GenericMap.draw_limb()no longer plots an invisible patch for the hidden part of the limb and now returnsNoneinstead of the invisible patch. Similarly, when the limb is entirely invisible, no patch is drawn for the visible part andNoneis returned instead of the visible patch. (#5414)sunpy.map.GenericMap.plot()now correctly sets axis labels based on the coordinate system of the axes, and not the coordinate system of the map being plotted. This was previously only an issue if usingautoalign=Truewhen the Map coordinate system was different to the axes coordinate system. (#5432)sunpy.map.GenericMap.plot()no longer adds a unit string to the axis labels if the axes being plotted on is a WCSAxes. For a WCSAxes, angular units are indicated in the tick labels, and automatically change when the zoom level changes from e.g. degrees to arc-minutes. This could previously lead to situations where the axis label units were incorrect. (#5432)Implement automatic fallback to helioviewer mirrors if API is non-functional. (#5440)
Fixed the incorrect value for the FITS WCS
LONPOLEkeyword when usingmake_fitswcs_header()for certain combinations of WCS projection and reference coordinate. (#5448)The date returned by
datefor Solar Orbiter/EUI maps has been adjusted to be taken from the DATE-AVG keyword (the middle of the image acquisition period), instead of the DATE-OBS keyword (the beginning of the image acquisition period). This means the observer coordinate now has the correct date. (#5462)The
.unitattribute for HMI synoptic maps has been fixed. (#5467)When “TAI” is in the date string,
sunpy.map.GenericMap.datenow only raises a warning if the TIMESYS keyword is present and different to “TAI”. Previously a warning was raised all the time when “TAI” was in the date string. (#5468)Fixed a bug where the property
sunpy.map.GenericMap.rsun_meterswould always internally determine the observer location, even when it is not needed, particularly for Stonyhurst heliographic maps, which have no notion of an observer. Thus, when working with a Stonyhurst heliographic map, a user could get an irrelevant warning message about having to assume an observer location (Earth center). (#5478)Fixed the unintended insertion of (assumed) observer location information when accessing the property
sunpy.map.GenericMap.wcsfor Stonyhurst heliographic maps. (#5478)Fixed an incorrect value for the FITS WCS
LONPOLEkeyword when usingmake_fitswcs_header()forHelioprojectivemaps with certain values of latitude for the reference coordinate. (#5490)A non-standard
CROTAkeyword included in asunpy.map.sources.EUIMapFITS header is now renamed to the recommendedCROTA2so a warning is no longer raised. (#5493)The plotting x-limits of
sunpy.timeseries.sources.NOAAIndicesTimeSeries.plot()are now adjusted to only include finite points in the timeseries data. (#5496)The Hinode/XRT map source now corrects the TIMESYS keyword, fixing the
.wcsproperty that was previously broken for Hinode/XRT maps. (#5508)Updated
sunpy.map.CompositeMap.plotto support thelinestylesandcolorsarguments, in addition to the existinglinewidthsargument. (#5521)Fixed a bug where rotating a
Mapcould result in an extremely small shift (at the numerical-precision level) in the mapping from world coordinates to pixels. (#5553)Fixed a bug where rotating a
Mapthat is missing observation-time metadata could result in an incorrect reference coordinate. (#5553)Fix a bug where saving a helioprojective or heliocentric coordinate to an asdf file didn’t work due to a schema version mismatch if the observer location was a fully specified Stonyhurst heliographic coordinate. (#5584)
XRTMapuppercases theTIMESYSkey before checking if the key needs to be fixed. (#5592)Fixed passing a URL to
sunpy.io.read_fileon windows. (#5601)Fixed a bug where the
dateproperty onHMISynopticMapreturnedNoneif theDATE-OBSkey was present. (#5648)
Documentation#
Added the gallery example Comparing differential-rotation models to visualize the differences between models of solar differential rotation. (#5527)
Added an example to how to save out maps as FITS files and load them back in, Saving and loading sunpy Maps with FITS. (#5544)
Internal Changes#
The
Helioprojectiveframe now has the convenience propertyangular_radiusto return the angular radius of the Sun as seen by the observer. (#5191)Online tests can now report back status of remote urls and will XFAIL if the remote server is unreachable. (#5233)
Re-enabled the unit test to check for coordinates consistency with JPL HORIZONS when the matching ephemeris can be specified. (#5314)
The
TimeSeriesfactory has been refactored to improve readability and maintainability of the internal code. (#5411)sunpy.map.GenericMap.rsun_obsno longer emits a warning if the metadata it looks for is not present. Instead the standard photospheric radius is assumed and a log message emitted at the ‘info’ level. (#5416)Nearest-neighbour and linear (the default for
sunpy.map.GenericMap.resample()) resampling have been significantly sped up. (#5476)sunpy.map.Mapnow raises a clear error when the map is constructed if units of either two axes are not angular units. (#5602)
3.0.1 (2021-07-03)#
Bug Fixes#
Fixed a bug where
GenericMapused to break with keyword arguments. (#5392)Fixed a bug where calling
sunpy.map.GenericMap.draw_contours()on a different WCS could result in an unnecessary expansion of the plot limits. (#5398)Fixed incorrect return values from
all_corner_coords_from_map()if a rectangular map was provided. (#5419)Do not trigger a pytest import in the asdf plugin for saving sunpy coordinate frames. (#5429)
Constructing a 2D coordinate in the
HeliographicCarringtonframe withobserver='self'now raises an error upon creation. When specifyingobserver='self', theradiuscoordinate component serves as the Sun-observer distance that is necessary to fully define the Carrington heliographic coordinates. (#5358)Fixed two bugs with handling the motion of the Sun when transforming between coordinate frames with a change in
obstime. These bugs did not affect any results if the context managertransform_with_sun_center()had been used. (#5381)Fixed a bug where the
rsunframe attribute could be unintentionally reset to the default value during transformation. This bug primarily affected the transformation of aHelioprojectivecoordinate to aHeliographicStonyhurstframe. (#5395)Fixed a bug where creating a
HeliographicStonyhurstframe or aHeliographicCarringtonframe from WCS information failed to make use of any specifiedrsun_refvalue. (#5395)SXTMapnow always returnsNonefor thewavelengthattribute. Previously this raised an error. (#5401)
Added/Improved Documentation#
3.0.0 (2021-05-14)#
Backwards Incompatible Changes#
sunpy.instrhas been deprecated and will be removed in sunpy 3.1 in favour ofsunkit_instruments. The code that is undersunpy.instris imported viasunkit_instrumentsto ensure backwards comparability. (#4526)Several
sunpy.map.GenericMapattributes have been updated to returnNonewhen the relevant piece of FITS metadata is missing. These are:exposure_time, previously defaulted to zero seconds.measurement, previously defaulted to zero.waveunit, previously defaulted tou.one.wavelength, previously defaulted to zero. (#5126)
HeliographicStonyhurstandHeliographicCarringtonno longer automatically convert 2D input to a 3D coordinate during instantiation. Instead, the 2D-to-3D conversion is deferred until the coordinate is transformed to a different frame, or with a call to the methodmake_3d(). (#5211)Changed URL for the
sunpy.net.dataretriever.sources.noaa.SRSClientfrom “ftp://ftp.swpc.noaa.gov/pub/warehouse/” to “ftp://ftp.ngdc.noaa.gov/STP/swpc_products/daily_reports/”. The old URL is unsupported and we expect the files will be the same but we can not say with 100% certainty. (#5173)Changed
sunpy.net.attrs.Sourcetosunpy.net.attrs.Providerfor thesunpy.net.dataretriever.sources.gong.GONGClient. (#5174)The
rsunframe attribute ofHelioprojectivenow converts any input to kilometers. (#5211)sunpy.map.CompositeMap.plot()now internally callssunpy.map.GenericMap.plot()andsunpy.map.GenericMap.draw_contours(), which may affect the plot output of existing user code. (#5255)Removed the
basic_plotkeyword argument fromsunpy.map.CompositeMap.peek()due to its unreliability. (#5255)sunpy.util.sphinx.changelogandsunpy.util.towncrierhave been removed and are now in a standalone package sphinx-changelog. (#5049)
Deprecations and Removals#
Deprecated
sunpy.map.GenericMap.draw_rectanglein favor ofdraw_quadrangle(). (#5236)Using
GenericMapplotting methods on anAxesthat is not aWCSAxesis deprecated. This previously raised a warning, but is now formally deprecated, and will raise an error in sunpy 3.1. (#5244)Deprecated
sunpy.roi.chaincode.Chaincodeand created a replacement atsunpy.net.helio.Chaincode.This replacement has the following changes:
Added support for numpy array as an input (it was broken before).
Renamed
BoundingBoxtoboundingboxRenamed
subBoundingBoxtosub_boundingboxNow area and length raise
NotImplementedError(#5249)
Deprecated
sunpy.roi.roi, as it currently has no obvious use and has never seen any real development work. (#5249)
Features#
sunpy.coordinates.get_horizons_coord()can now be given a start time, end time, and number of intervals (or interval length) to query a evenly spaced set of times. See the documentation string for more information and an example. (#4698)Added
sunpy.map.GenericMap.draw_quadrangle()for drawing a quadrangle on a map. A quadrangle has edges that are aligned with lines of constant latitude and longitude, but these can be in a different coordinate system than that of the map. (#4809)Added a
longitudekeyword argument tocarrington_rotation_time()as an alternate way to specify a fractional Carrington rotation. (#4879)Colorbar in
sunpy.map.GenericMap.peeknow has a unit label. (#4930)The default axes used by
BaseFuncAnimator.get_animation()is nowBaseFuncAnimator.axes, instead of the currently active axes (accessed via.matplotlib.pyplot.gca()). The allows animations to be created on figures created directly usingmatplotlib.figure.Figure.To revert to the previous behaviour of using the current axes, give
axes=plt.gca()toget_animation(). (#4968)Added colormaps for Solar Orbiter EUI images. These are used automatically when an EUI image is loaded. (#5023)
Added the ability to dynamically scale
sunpy.visualization.animatorinstances. By specifying theclip_intervalkeyword, it will now clip the minimum and maximum at each slider step to the specified interval. (#5025)Added a
sunpy.time.timerange.TimeRange.__contains__method tosunpy.time.TimeRangethat tests if two time ranges overlap. (#5093)Added the ability to namespace files downloaded using
sunpy.data.data_manager.manager.DataManagerby prepending the file name with module name. (#5111)Added a rigid rotation model to
~sunpy.physics.differential_rotation.diff_rotviarot_type=rigid, where the rotation rate does not vary with latitude. (#5132)Added a
save()method tosunpy.map.MapSequencethat saves each map of the sequence. (#5145)The allowable
levelinputs tosunpy.map.GenericMap.contourandsunpy.map.GenericMap.draw_contours()have been consolidated. Both methods now accept - Scalars, if the map has no units - Quantities, if the map has units - Percentages (#5154)Added support for corrected NOAA SWPC solar region summary data files. (#5173)
Updated
sunpy.util.sysinfo.system_infoto return all optional dependencies of sunpy. (#5175)sunpy.map.Mapnow supports the EUI instrument on Solar Orbiter. (#5210)HeliographicStonyhurstandHeliographicCarringtonnow have anrsunframe attribute to specify the radius of the Sun, which defaults to the photospheric radius defined insunpy.sun.constants. This frame attribute is used when converting a 2D coordinate (longitude and latitude, with no specified radial distance) to a 3D coordinate by setting the radial distance torsun(i.e., the assumption is that the coordinate is on the surface of the Sun). (#5211)Enhanced
sunpy.map.GenericMap.draw_limb()so that the solar limb can be plotted on axes that correspond to a different map (e.g., with a different observer). The part of the limb that is not visible to the axes’s observer because it is on the far side of the Sun is shown as dotted rather than solid. (#5237)MetaDictnow saves a copy of the metadata on creation, which can be accessed using theoriginal_metaproperty. Three new properties have also been added to query any changes that have been made to metadata:As an example,
my_map.meta.modified_itemswill return a dictionary mapping keys to their original value and current value. (#5241)Added
sunpy.map.contains_coordinate()which provides a quick way to see if a world coordinate is contained within the array bounds of a map. (#5252)Added an optional keyword argument
autoaligntosunpy.map.GenericMap.plot()for plotting a map to axes that correspond to a different WCS. See Auto-Aligning AIA and HMI Data During Plotting. (#5255)sunpy.map.CompositeMap.plot()now properly makes use of WCS information to position and orient maps when overlaying them. (#5255)
Bug Fixes#
Fixed the drawing methods of
sunpy.map.GenericMap(e.g.,~sunpy.map.GenericMap.draw_rectangle) so that any text labels will appear in the legend. (#5019)Fixed bug in
sunpy.until.scraper.Scraperwhich caused URL patterns containing backslashes to be incorrectly parsed on Windows. (#5022)Constructing a
MetaDictis now more lenient, and accepts any class that inherits fromcollections.abc.Mapping. This fixes a regression where headers read withastropy.io.fitsraised an error when passed to individualmapsources. (#5047)Added warning to
sunpy.map.GenericMap.rotate()when specifiedmissingvalue is not compatible with the number type of the data array. (#5051)Prevented some colormaps being accidentally modified depending on the order and method through which they were accessed. (#5054)
Reverted change for
sunpy.map.GenericMap.draw_limbthat made it use “add_artist” as it was changing the FOV of the plotted image. (#5069)Fixed a bug where some
RotatedSunFrametransformations could fail with anobserver=Noneerror. (#5084)Fixed bug where
sunpy.data.data_manager.DataManagerwould fail to recover upon deleting the sqlite database file. (#5089)Fixed a bug where coordinate frames were considered different due to an unintended time difference during time handling at the level of numerical precision (i.e., tens of picoseconds). This resulted in the unexpected use of transformation machinery when transforming a coordinate to its own coordinate frame. (#5127)
Fixed a bug with failing downloads in 2010 with the
SRSClient. (#5159)If the property
sunpy.map.GenericMap.rsun_obsneeds to calculate the solar angular radius from header information, it now properly uses thersun_refkeyword if it is present and does not emit any warning. (#5172)Added a “rsun_obs” keyword to the output of
sunpy.map.header_helper.make_fitswcs_header()if the coordinate argument has a “rsun” frame attribute. (#5177)Fixed small inaccuracies in the grid plotted by
draw_grid()for maps that specify a radius of the Sun that is different from the constant insunpy.sun.constants. (#5211)Fixed
sunpy.map.GenericMap.draw_contours()so that the contours from a map can be plotted on axes with a different coordinate system. (#5239)When using the cylindrical representation of
Heliocentricto work in the Heliocentric Radial coordinate frame, thepsicomponent now goes from 0 to 360 degrees instead of -180 to 180 degrees. (#5242)Changed
MDIMapto use the “CONTENT” keyword to identify the measurement, similar toHMIMap, and removed the special-case nickname. This fixes the broken title on plots. (#5257)sunpy.coordinates.solar_frame_to_wcs_mapping()now sets the observer auxiliary information when aHeliographicCarringtonframe withobserver='self'is passed. (#5264)Calling
sunpy.map.header_helper.make_fitswcs_header()with aHeliographicCarringtoncoordinate that withobserver='self'set now correctly sets the observer information in the header. (#5264)sunpy.map.GenericMap.superpixel()now keeps the reference coordinate of the WCS projection the same as the input map, and updates the reference pixel accordingly. This fixes inconsistencies in the input and output world coordinate systems when a non-linear projection is used. (#5295)Inputs to the
dimensionsandoffsetarguments tosunpy.map.GenericMap.superpixel()in units other thanu.pix(e.g.`u.kpix) are now handled correctly. (#5301)Fractional inputs to the
dimensionsandoffsetarguments tosunpy.map.GenericMap.superpixel()were previously rounded usingintin the superpixel algorithm, but not assigned integer values in the new metadata. This has now been changed so the rounding is correctly reflected in the metadata. (#5301)Remove runtime use of
astropy.tests.helper.assert_quantity_allclosewhich introduces a runtime dependency onpytest. (#5305)sunpy.map.GenericMap.resample()now keeps the reference coordinate of the WCS projection the same as the input map, and updates the reference pixel accordingly. This fixes inconsistencies in the input and output world coordinate systems when a non-linear projection is used. (#5309)Fix saving
GenericMapto an asdf file with version 2.8.0 of the asdf package. (#5342)
Added/Improved Documentation#
Added a gallery example for drawing rectangles on maps. (#4528)
Added an example (Plotting points on a Map with WCSAxes) of how pixel and SkyCoords work when plotted with
wcsaxes. (#4867)Added a gallery example (Plot positions on a blank map) on how to create a blank map and mark locations. (#5077)
Added a gallery example (HMI Showcase: Cutout) demonstrating how to add a HMI zoomed-in region next to a full disk HMI image. (#5090)
Updated the Masking out the solar disk example to generate the mask using
sunpy.map.coordinate_is_on_solar_disk(). (#5114)Added a gallery example (Segmenting a Map based on transformation of coordinates) demonstrating how to create a segment of a particular map from transformed coordinates. (#5121)
For the various subclasses of
GenericMap(e.g.,AIAMap), the online documentation now shows all of the inherited attributes and methods. (#5142)Added a documentation string to
HMISynopticMap. (#5186)Added a new gallery example showcasing how to overlay HMI contours on an AIA image. (#5229)
Trivial/Internal Changes#
Replaced the old test runner with a new version that adds a dependency check before the test suite is run. (#4596)
The testing suite now raises a warning if the
pyplotfigure stack is not empty prior to running a test, and it closes all open figures after finishing each test. (#4969)Improved performance when moving the slider in
sunpy.visualisation.animator.ArrayAnimatorWCS. (#4971)Added some basic logging to HEK searches, at the ‘debug’ logging level. (#5020)
Refactored
RotatedSunFrametransformations for improved performance. (#5084)Re-ordered keyword-only arguments of
sunpy.map.GenericMap.draw_rectangleto matchsunpy.map.GenericMap.submap(). (#5091)Significantly sped up calls to
parse_time()for string arguments. This will have knock on effects, including improved performance of querying the VSO. (#5108)Added tests for
sunpy.visualization.animator.mapsequenceanimatorandsunpy.map.MapSequence.plot(). (#5125)The
CROTAkeywords are no longer set onsunpy.map.GenericMap.wcs, as thePC_ijkeywords are always set and the FITS standard says that these keywords must not co-exist. (#5166)Temporarily disabled the unit test to check for coordinates consistency with JPL HORIZONS due to the inability to choose a matching ephemeris. (#5203)
wcsaxes_heliographic_overlay()now acceptsobstimeandrsunoptional arguments. This function is not typically called directly by users. (#5211)GenericMapplotting methods now have consistent argument checking for theaxesargument, and will raise the same warnings or errors for similaraxesinput. (#5223)Calling
sunpy.map.GenericMap.plot()on aWCSAxeswith a different World Coordinate System (WCS) to the map now raises a warning, as the map data axes may not correctly align with the coordinate axes. This happens if anAxesis created with a projection that is a different map to the one being plotted. (#5244)Re-enabled the unit test to check for coordinates consistency with JPL HORIZONS when the matching ephemeris can be specified. (#5314)
2.1.0 (2020-02-21)#
Backwards Incompatible Changes#
Support for Python 3.6 and Numpy 1.15 has been dropped in line with NEP 29. The minimum supported version of Astropy is now 4.0, and the minimum version of scipy is now 1.2. (#4284)
Changed
sunpy.coordinates.sun.B0()return type fromAngletoLatitude. (#4323)An error is now raised if
vminorvmaxare passed to tosunpy.map.GenericMap.plotand they are already set on the mapnorm. This is consistent with upcoming Matplotlib changes. (#4328)Previously slicing the result of
Fido.search()(aUnifiedResponseobject) so that it had a length of one returned anotherUnifiedResponseobject. Now it will return aQueryResponseTableobject, which is a subclass ofastropy.table.Table. (#4358)The
.sizeproperty of a coordinate frame with no associated data will now raise an error instead of returning 0. (#4577)The following
Mapmethods have had support for specific positional arguments removed. They must now be passed as keyword arguments (i.e.m.method(keyword_arg=value)).The sunpy specific attributes
.heliographic_observerand.rsunare no longer set on theWCSreturned bysunpy.map.GenericMap.wcs. (#4620)Due to upstream changes, the parsing logic for the
HECClientnow returns strings and not bytes forget_table_names(). (#4643)Reduced the selection of dependent packages installed by default via
pip, which means that some of our sub-packages will not fully import when sunpy is installed withpip install "sunpy". You can install all dependencies by specifyingpip install "sunpy[all]", or you can install sub-package-specific dependencies by specifying, e.g.,[map]or[timeseries]. (#4662)The class inheritance for
RotatedSunFrameand the frames it creates has been changed in order to stop depending on unsupported behavior in the underlying machinery. The return values for someisinstance()/issubclass()calls will be different, but the API forRotatedSunFrameis otherwise unchanged. (#4691)Fix a bug in
submapwhere only the top right and bottom left coordinates of the input rectangle in world coordinates were considered when calculating the pixel bounding box. All four corners are once again taken into account now, meaning thatsubmapcorrectly returns the smallest pixel box which contains all four corners of the input rectangle.To revert to the previous 2.0.0 behaviour, first convert the top right and bottom left coordinates to pixel space before calling submap with:
top_right = smap.wcs.world_to_pixel(top_right) * u.pix bottom_left = smap.wcs.world_to_pixel(bottom_left) * u.pix smap.submap(bottom_left=bottom_left, top_right=top_right)
This will define the rectangle in pixel space. (#4727)
VSO results where the size was
-1(missing data) now returnNonerather than-1to be consistent with other missing data in the VSO results. (#4798)All result objects contained within the results of a
Fido.search()(aUnifiedResponseobject) are nowQueryResponseTableobjects (or subclasses thereof). These objects are subclasses ofastropy.table.Tableand can therefore be filtered and inspected as tabular objects, and the modified tables can be passed toFido.fetch.This, while a breaking change for anyone accessing these response objects directly, will hopefully make working with
Fidosearch results much easier. (#4798)Results from the
NOAAIndicesClientand theNOAAPredictClientno longer hasStart TimeorEnd Timein their results table as the results returned from the client are not dependent upon the time parameter of a search. (#4798)The
sunpy.net.vso.QueryResponse.searchmethod has been removed as it has not worked since the 1.0 release of sunpy. (#4798)The
sunpy.net.hek.hek.HEKColumnclass has been removed, theHEKTableclass now uses the standardastropy.table.Columnclass. (#4798)The keys used to format file paths in
Fido.fetchhave changed. They are now more standardised across all the clients, as they are all extracted from the names of the columns in the results table.For results from the VSO the keys are no longer separated with
., and are based on the displayed column names. For results from thedataretrieverclients the only main change is that the keys are now lower case, where they were capitalized before. You can use the.sunpy.net.fido_factory.UnifiedResponse.path_format_keysmethod to see all the possible keys for a particular search. (#4798)The time returned from
carrington_rotation_number()has been changed from the TT scale to the more common UTC scale. To undo this change, usetime_out = time_out.tton the outputted time. (#4819)response_block_propertieshas been renamed to.BaseQueryResponse.path_format_keys, on the return objects from allsearch()methods on all clients and fromFido.search(). (#4798)
Removals#
Removed deprecated functions:
sunpy.coordinates.frames.Helioprojective.calculate_distance, alternative issunpy.coordinates.frames.Helioprojective.make_3d.sunpy.image.coalignment.repair_image_nonfinite- if you wish to repair the image, this has to be done manually before calling the varioussunpy.image.coalignmentfunctions.The
repair_nonfinitekeyword argument tocalculate_shiftandcalculate_match_template_shifthas been removed.sunpy.instr.lyra.download_lytaf_database- this just downloaded the file athttps://proba2.sidc.be/lyra/data/lytaf/annotation_ppt.db, which can be done manually.sunpy.util.net.check_download_file, no alternative.sunpy.visualization.animator.ImageAnimatorWCS, alternative issunpy.visualization.animator.ArrayAnimatorWCS. (#4350)
Removed deprecated function
sunpy.instr.aia.aiaprep. Alternative isregisterfor converting AIA images from level 1 to level 1.5. (#4485)sunpy.cmhas been removed. All of the functionality in this module can now be found insunpy.visualization.colormaps. (#4488)sunpy.test.hashhas been removed, the functionality has been moved into the pytest-mpl package. (#4605)sunpy.util.multimethodhas been removed. (#4614)The
lytaf_pathargument (which previously did nothing) has been removed from -sunpy.instr.lyra.remove_lytaf_events_from_timeseries-sunpy.instr.lyra.get_lytaf_events-sunpy.instr.lyra.get_lytaf_event_types(#4615)
Deprecations#
Deprecated
sunpy.net.vso.attrs.Sourceandsunpy.net.vso.attrs.Provider. They are nowsunpy.net.attrs.Sourceandsunpy.net.attrs.Providerrespectively. (#4321)Deprecated the use of the
sunpy.map.GenericMap.sizeproperty, usesunpy.map.Map.data.sizeinstead. (#4338)sunpy.net.helio.HECClient.time_queryis deprecated,searchis the replacement. (#4358)sunpy.net.jsoc.attrs.Keysis deprecated; all fields are returned by default and can be filtered post search. (#4358)sunpy.net.hek.attrs.Timeis deprecated;Timeshould be used instead. (#4358)Support for
sunpy.coordinates.wcs_utils.solar_wcs_frame_mapping()to use the.heliographic_observerand.rsunattributes on aWCSis deprecated. (#4620)The
originargument tosunpy.map.GenericMap.pixel_to_worldandsunpy.map.GenericMap.world_to_pixelis deprecated.If passing
0, not using theoriginargument will have the same effect.If passing
1, manually subtract 1 pixel from the input topixel_to_world, or manually add 1 pixel to the output ofworld_to_pixel, and do not use theoriginargument. (#4700)
The
.VSOClient.linkmethod is deprecated as it is no longer used. (#4789)The
.UnifiedResponse.get_response,.UnifiedResponse.tablesand.UnifiedResponse.responsesattributes of.UnifiedResponsehave been deprecated as they are no longer needed now the object returns the table objects it contains when sliced. (#4798)sunpy.net.vso.VSOClient.search()has a new keyword argumentresponse_type=which controls the return type from thesearch()method. In sunpy 2.1 and 3.0 it will default to the"legacy"response format, in 3.1 it will default to the new"table"response format, and the"legacy"format may be deprecated and removed at a later date.Searches made with
Fidowill use the new"table"response format, so this only affects users interacting with theVSOClientobject directly. (#4798)
Features#
For
sunpy.map.GenericMap.quicklook()andsunpy.map.MapSequence.quicklook()(also used for the HTML representation shown in Jupyter notebooks), the histogram is now shaded corresponding to the colormap of the plotted image. Clicking on the histogram will toggle an alternate version of the histogram. (#4931)Add an
SRS_TABLEfile to the sample data, and use it in the magnetogram plotting example. (#4993)Added a
sunpy.map.GenericMap.contourmethod to find the contours on a map. (#3909)Added a context manager (
assume_spherical_screen) to interpretHelioprojectivecoordinates as being on the inside of a spherical screen instead of on the surface of the Sun. (#4003)Added
sunpy.map.sources.HMISynopticMapfor handling the Synoptic maps from HMI. (#4053)Added a
MDISynopticMapmap source class. (#4054)Created
GONGClientfor accessing magnetogram synoptic map archives of NSO-GONG. (#4055)All coordinate frames will now show the velocity if it exists in the underlying data. (#4102)
The ephemeris functions
get_body_heliographic_stonyhurst(),get_earth(), andget_horizons_coord()can now optionally return the body’s velocity as part of the output coordinate. (#4102)MetaDictnow maintains coherence between its keys and their corresponding keycomments. Callingdelon aMetaDictobject key is now case-insensitive. (#4129)Allow
sunpy.visualization.animator.ArrayAnimatorWCSto disable ticks for a coordinate, by settingticks: Falsein thecoord_paramsdictionary. (#4270)Added a
show()method forBaseQueryResponsewhich returnsTablewith specified columns for the Query Response. (#4309)Added
_extract_files_metamethod insunpy.util.scraper.Scraperwhich allows scraper to extract metadata from the file URLs retrieved for a given time range. (#4313)Refactoring of
dataretrieverwhich adds these capabilities toQueryResponse:Any
attrshall not be defaulted to a hard-coded value in all subclasses ofGenericClient; thus records for all possibleattrsshall be returned if it is not specified in the query.QueryResponsecan now show more columns; thus all metadata extractable from matching file URLs shall be shown and for a client, non-supportedattrsshall not be shown in the response tables. (#4321)
New class attributes added to
GenericClient:Additions in
sunpy.util.scraperto support the refactoring ofGenericClient: -sunpy.util.scraper.Scraper.findDatewith_extractorthat parses the url using extractor to return its start time. - Amatcherinsunpy.util.scraper.Scraper._extract_files_metawhich validates the extracted metadata by using the dictionary returned from_get_match_dict(). (#4321)Added methods
pre_search_hook()andpost_search_hook()which helps to translate the attrs for scraper before and after the search respectively. (#4321)sunpy.timeseries.sources.RHESSISummaryTimeSeries.peekhas had the following minor changes:Colors from the default matplotlib color cycle are now used (but the colors remain qualitatively the same)
The default matplotlib linewidth is now used
It is now possible to pass in a user specified linewidth
Seconds have been added to the x-axis labels (previously it was just hours and minutes) (#4326)
HECClientandHEKClientnow inheritBaseClientwhich makes them compatible with theUnifiedDownloaderFactory(Fido). (#4358)MaxRecordsandTableNameadded as “attrs” for HELIO searches. (#4358)Add the ability to download new GOES 16 & 17 data alongside the reprocessed GOES 13, 14 and 15 data via the GOES-XRS Fido client. (#4394)
sunpy.net.jsoc.JSOCClient.request_datanow support additional parameter “method” which allows user to download staged data as single .tar file. (#4405)Added
sunpy.util.get_timerange_from_exdictwhich finds time range for a URL using its metadata. Addedsunpy.util.scraper.Scraper.isvalid_timethat checks whether the file corresponds to a desired time range. (#4419)Colormap data has been moved to individual .csv files in the
sunpy/visualization/colormaps/datadirectory. (#4433)Added
solar_angle_equivalencyto convert between a physical distance on the Sun (e.g., km) to an angular separation as seen by an observer (e.g., arcsec). (#4443)sunpy.map.Mapinstances now have their.unitattribute set from the'BUNIT'FITS keyword. If the keyword cannot be parsed, or is not present the unit is set toNone. (#4451)The
sunpy.map.GenericMap.wcsproperty is now cached, and will be recomputed only if changes are made to the map metadata. This improves performance of a number of places in the code base, and only one warning will now be raised about WCS fixes for a given set of metadata (as opposed to a warning each time.wcsis accessed) (#4467)Extended
concatenate()andconcatenate()to allow iterables. (#4499)Enable
RotatedSunFrameto work with non-SunPy frames (e.g.,HeliocentricMeanEcliptic). (#4577)Add support for
pathlib.Pathobjects to be passed tosunpy.timeseries.TimeSeries. (#4589)Add support for GOES XRS netcdf files to be read as a
sunpy.timeseries.sources.XRSTimeSeries. (#4592)Add
Cutoutattr for requesting cutouts from JSOC viaJSOCClientandFido. (#4595)sunpy now sets auxiliary parameters on
sunpy.map.GenericMap.wcsusing theastropy.wcs.Wcsprm.auxattribute. This stores observer information, along with the reference solar radius if present. (#4620)The
HeliographicCarringtonframe now accepts the specification ofobserver='self'to indicate that the coordinate itself is also the observer for the coordinate frame. This functionality greatly simplifies working with locations of observatories that are provided in Carrington coordinates. (#4659)Add two new colormaps (
rhessiandstd_gamma_2) that are used for plotting RHESSI maps. (#4665)If either ‘CTYPE1’ or ‘CTYPE2’ are not present in map metadata, sunpy now assumes they are ‘HPLN-TAN’ and ‘HPLT-TAN’ (previously it assumed ‘HPLN- ‘ and ‘HPLT- ‘). In addition, a warning is also now raised when this assumption is made. (#4702)
Added a new
all_corner_coords_from_mapfunction to get the coordinates of all the pixel corners in aGenericMap. (#4776)Added support for “%Y/%m/%dT%H:%M” to
sunpy.time.parse_time(). (#4791)Added the STEREO EUVI instrument specific colormaps called” ‘euvi171’, ‘euvi195’, ‘euvi284’, ‘euvi304’. (#4822)
Bug Fixes#
sunpy.map.GenericMap.datenow has its time scale set from the ‘TIMESYS’ FITS keyword, if it is present. If it isn’t present the time scale defaults to ‘UTC’, which is unchanged default behaviour, so this change will only affect maps with a ‘TIMESYS’ keyword that is not set to ‘UTC’. (#4881)Fixed the
sunpy.net.dataretriever.sources.noaa.SRSClientwhich silently failed to download the SRS files when the tarball for the previous years did not exist. Client now actually searches for the tarballs and srs files on the ftp archive before returning them as results. (#4904)No longer is the WAVEUNIT keyword injected into a data source if it is missing from the file’s metadata. (#4926)
Map sources no longer overwrite FITS metadata keywords if they are present in the original metadata. The particular map sources that have been fixed are
SJIMap,KCorMap,RHESSIMap,EITMap,EUVIMap,SXTMap. (#4926)Fixed a handling bug in
sunpy.map.GenericMap.draw_rectanglewhen the rectangle is specified in a different coordinate frame than that of the map. A couple of other minor bugs insunpy.map.GenericMap.draw_rectanglewere also fixed. (#4929)Improved error message from
sunpy.net.Fido.fetch()when no email has been supplied for JSOC data. (#4950)Fixed a bug when transforming from
RotatedSunFrameto another frame at a different observation time that resulted in small inaccuracies. The translational motion of the Sun was not being handled correctly. (#4979)Fixed two bugs with
differential_rotate()andsolar_rotate_coordinate()that resulted in significant inaccuracies. Both functions now ignore the translational motion of the Sun. (#4979)The ability to to filter search results from the
VSOClientwas broken. This has now been restored. (#4011)Fixed a bug where transformation errors were not getting raised in some situations when a coordinate frame had
obstimeset to the default value ofNoneandSkyCoordwas not being used. Users are recommended to useSkyCoordto manage coordinate transformations unless they have a specific reason not to. (#4267)Fixed a bug in
_get_url_for_timerangewhich returned incorrect URLs because of not using**kwargsin the client’s_get_overlap_urls()method. (#4288)Data products from
NOAAIndicesClientandNOAAPredictClienthave been updated to download new JSON files. The old text files which the data used to come in no longer exist. The new JSON files forNOAAIndicesClientnow do not have the following columns: - Geomagnetic Observed and Smoothed - Sunspot Numbers Ratio (RI/SW)Both
sunpy.timeseries.sources.noaa.NOAAIndicesTimeSeriesandsunpy.timeseries.sources.noaa.NOAAPredictIndicesTimeSerieshave been updated to support the new JSON files. Loading the old text files is still supported, but support for this will be removed in a future version of sunpy. (#4340)Fixed a bug due to which
sunpy.net.helio.parser.wsdl_retrieverignored previously discovered Taverna links. (#4358)The flare class labels in GOES
peek()plots are now drawn at the center of the flare classes. Previously they were (ambiguously) drawn on the boundaries. (#4364)sunpy.map.GenericMap.rsun_obsno longer assumes the observer is at Earth ifrsun_obswas not present in the map metadata. The sun-observer distance is now taken directly from the observer coordinate. If the observer coordinate is not present, this defaults to the Earth, retaining previous behaviour. (#4375)
Nanosecond precision is now retained when using
parse_timewith aTimestamp. (#4409)Fixed a bug where SunPy could not be successfully imported if the default text encoding of the running environment was unable to handle non-ASCII characters. (#4422)
sunpy.net.dataretriever.sources.noaa.SRSClientnow correctly returns zero results for queries in the future or before 1996, which is when data is first available. (#4432)Fixes issue where NAXISn is not updated after invoking
GenericMap.resample()(#4445)The floating point precision of input to
sunpy.image.transform.affine_transformis now preserved. Previously all input was cast tonumpy.float64, which could cause large increases in memory use for 32 bit data. (#4452)Fixed
affine_transform()to scale images to [0, 1] before passing them toskimage.transform.warp()and later rescale them back. (#4477)Several
warnings.simplefilter('always', Warning)warning filters insunpy.timeserieshave been removed. (#4511)All calculations of the angular radius of the Sun now use the same underlying code with the accurate calculation. The previous inaccuracy was a relative error of ~0.001% (0.01 arcseconds) for an observer at 1 AU, but could be as large as ~0.5% for Parker Solar Probe perihelia. (#4524)
Fixed an issue in
sunpy.time.TimeRange.get_dates()where the function would return the wrong number of days if less than 24 hours had passed (#4529)Several functions in
sunpy.mapnow properly check if the provided coordinate is in the expectedHelioprojectiveframe. (#4552)Fixes a bug which occurs in setting the
ylimsbysunpy.visualization.animator.line.LineAnimatorwhen there are non-finite values in the data array to be animated. (#4554)Clear rotation metadata for SOHO/LASCO Helioviewer JPEG2000 images, as they are already rotated correctly. (#4561)
The
max_connargument toFido.fetch()is now correctly respected by the JSOC client. Previously the JSOC client would default to 4 connections no matter what the value passed toFido.fetch()was. (#4567)sunpy.time.parse_time()now correctly parses lists of time strings that have one of the built in sunpy time formats. (#4590)Fixes the SRSClient to search for files of correct queried time and now allows a path keyword to be downloaded in fetch. (#4600)
Fixed
sunpy.net.helio.parser.wsdl_retriever, which previously ignored discovered Taverna links. (#4601)The transformations between
HCRSandHeliographicStonyhursthave been re-implemented to enable the proper transformations of velocities. All ephemeris functions (e.g.,get_body_heliographic_stonyhurst()) now return properly calculated velocities wheninclude_velocity=Trueis specified. (#4613)The maximum number of connections opened by the JSOC downloader has been reduced from 4 to 2. This should prevent downloads of large numbers of files crashing. (#4624)
Fixed a significant performance bug that affected all coordinate transformations. Transformations have been sped up by a factor a few. (#4663)
Fixed a bug with the mapping of a WCS header to a coordinate frame if the observer location is provided in Carrington coordinates. (#4669)
sunpy.io.fits.header_to_fitsnow excludes any keys that have associated NaN values, as these are not valid in a FITS header, and throws a warning if this happens. (#4676)Fixed an assumption in
sunpy.map.GenericMap.pixel_to_worldthat the first data axis is longitude, and the second is latitude. This will affect you if you are using data where the x/y axes are latitude/longitude, and now returns correct values in methods and properties that callpixel_to_world, such asbottom_left_coord,top_right_coord,center. (#4700)Added a warning when a 2D
Helioprojectivecoordinate is upgraded to a 3D coordinate and the number type is lower precision than the native Python float. This 2D->3D upgrade is performed internally when transforming a 2DHelioprojectivecoordinate to any other coordinate frame. (#4724)All columns from a
sunpy.net.vso.VSOClient.searchwill now be shown. (#4788)The search results object returned from
Fido.search(UnifiedResponse) now correctly counts all results in it’sfile_numproperty. Note that because someFidoclients now return metadata only results, this is really the number of records and does not always correspond to the number of files that would be downloaded. (#4798)Improved the file processing logic for EVE L0CS files, which may have fixed a bug where the first line of data was parsed incorrectly. (#4805)
Fixing the
CROTAmeta keyword in EUVI FITS toCROTAnstandard. (#4846)
Added/Improved Documentation#
Added a developer guide for writing a new
Fidoclient. (#4387)Added an example of how to use Matplotlib’s axes range functionality when plotting a Map with WCSAxes. (#4792)
Add links to Thompson 2006 paper on solar coordinates to synoptic map example. (#3549)
Clarified the meaning of
.bottom_left_coordand.top_right_coordinsunpy.map.GenericMap. (#3706)Added a list of possible signatures to
sunpy.timeseries.metadata.TimeSeriesMetaData. (#3709)Added
sunpy.data.manager,sunpy.data.cache,sunpy.net.Fido,sunpy.map.Map, andsunpy.timeseries.TimeSeriesto the docs. (#4098)Clarified spline option for
sunpy.map.GenericMap.resample. (#4136)Updated the gallery example Plotting a solar cycle index to retrieve data using
Fido. (#4169)Fixed example usage of
sunpy.io.fits.readto account for the fact that it returns a list of data-header pairs rather than the data-header pairs directly. (#4183)Added example of how to create a
sunpy.map.GenericMapfrom observations in RA-DEC coordinates. (#4236)Added
sunpy.coordinates.SunPyBaseCoordinateFrameandsunpy.coordinates.BaseHeliographicto the documentation. (#4274)sunpy.time.TimeRangehad a.__contains__method and this is now documented. (#4372)Revamped sunpy pull request review developer documentation. (#4378)
Revamped sunpy installation documentation. (#4378)
Fixed broken documentation links in the guide. (#4414)
Fixed miscellaneous links in the API documentation. (#4415)
Added
sunpy.data.data_manager.downloader,sunpy.data.data_manager.storage, andsunpy.net.hek.HEKTableto the docs. (#4418)Added documentation for copying Map objects using the copy module’s deepcopy method. (#4470)
Added a gallery example for saving and loading sunpy Maps using asdf. (#4494)
Added description for a counter-intuitive section in the Differentially rotating a map example. (#4548)
Added Coordinates with velocity information to explain how to use velocity information in the coordinates framework. (#4610)
New gallery example of searching and downloading GOES XRS data (with GOES 15, 16 and 17). (#4686)
Created the new gallery example Offsetting the north pole of a coordinate frame for
NorthOffsetFrame. (#4709)Added more information on which FITS keywords are used for various
sunpy.map.GenericMapproperties. (#4717)Improved documentation for
sunpy.physics.differential_rotation.diff_rot. (#4876)
Documentation Fixes#
The keyword
clip_intervalis now used more extensively in gallery examples when plotting the sample AIA image (e.g., Plotting a map). (#4573)Modified Overplotting SRS active region locations on a magnetograms to use HMI file from sample data instead of downloading it with Fido. (#4598)
Removed unnecessary transformations of coordinates prior to plotting them using
plot_coord. (#4609)Ensure that all attrs are documented and clean the
sunpy.net.hek.attrsnamespace of non-attr objects. (#4834)Fixed miscellaneous issues with the gallery example Aligning AIA and HMI Data with Reproject. (#4843)
Fixed the display of arguments in the documentation for
Fidoattributes (sunpy.net.attrs). (#4916)
Trivial/Internal Changes#
Fido.fetchnow always specifies apath=argument of typepathlib.Pathto thefetchmethod of the client. This path will default to the configured sunpy download dir, will have the user directory expanded, will have the{file}placeholder and will be tested to ensure that it is writeable. (#4949)Added information on what went wrong when
sunpy.map.GenericMap.wcsfails to parse a FITS header into a WCS. (#4335)Fixed the
Helioprojectivedocstring to be clear about the names of the coordinate components. (#4351)Raise a better error message if trying to load a FITS file that contains only one dimensional data. (#4426)
The following functions in
sunpy.maphave had their performance greatly increased, with runtimes typically improving by a factor of 20x. This has been achieved by improving many of the checks so that they only require checking the edge pixels of a map as opposed to all of the pixels.Improved the output when you print a sunpy Map. (#4464)
Creating a
MetaDictwith dictionary keys that are not strings now raises as user-friendlyValueErrorwhich prints all the non-compliant keys. (#4476)Maps created directly via.
sunpy.map.GenericMapnow have their metadata automatically converted to aMetaDict, which is the same current behaviour of thesunpy.map.Mapfactory. (#4476)If the
top_rightcorner given tosunpy.map.GenericMap.submap()is below or to the right of thebottom_leftcorner, a warning is no longer raised (as the rectangle is still well defined), but a message is still logged at the debug level to the sunpy logger. (#4491)Added test support for Python 3.9 (no wheels yet). (#4569)
sunpy.sunfunctions now make use of theGeocentricTrueEclipticframe to simplify internal calculations, but the returned values are unchanged. (#4584)Change the format of the time returned from
carrington_rotation_number()from'jd'to'iso', so printing theTimereturned will now print an ISO timestamp instead of the Julian days. (#4819)The listings for the sample data (
sunpy.data.sample) are now sorted. (#4838)Changed the implementation of a
hypothesis-based test so that it does not raise an error withhypothesis6.0.0. (#4852)
2.0.0 (2020-06-12)#
Backwards Incompatible Changes#
The frames
HeliographicStonyhurstandHeliographicCarringtonnow inherit from the new base classBaseHeliographic. This changes means thatisinstance(frame, HeliographicStonyhurst)is no longerTruewhenframeisHeliographicCarrington. (#3595)aia_color_table,eit_color_tableandsuvi_color_tablenow only takeastropy.unitsquantities instead of strings. (#3640)sunpy.map.Mapis now more strict when the metadata of a map cannot be validated, and an error is now thrown instead of a warning if metadata cannot be validated. In order to load maps that previously loaded without error you may need to passsilence_errors=Truetosunpy.map.Map. (#3646)Fido.searchwill now return results from all clients which match a query, you no longer have to make the query specific to a single client. This means that searches involving the ‘eve’ and ‘rhessi’ instruments will now potentially also return results from the VSO. ForRHESSIClientyou can now specifya.Physobs("summary_lightcurve")to only include the summary lightcurve data products not provided by the VSO. (#3770)The objects returned by the
searchmethods onVSOClient,JSOCClientandGenericClienthave been changed to be based onsunpy.net.base_client.BaseQueryResponse. This introduces a few subtle breaking changes for people using the client search methods directly (notFido.search), or people usingsunpy.net.fido_factory.UnifiedResponse.get_response. When slicing an instance ofQueryResponseit will now return an instance of itself,QueryResponse.blockscan be used to access the underlying records. Also, the.clientattribute of the response no longer has to be the instance of the class the search was made with, however, it often is. (#3770)HeliographicCarringtonis now an observer-based frame, where the observer location (specifically, the distance from the Sun) is used to account for light travel time when determining apparent Carrington longitudes. Coordinate transformations using this frame now require an observer to be specified. (#3782)To enable the precise co-alignment of solar images from different observatories, the calculation of Carrington coordinates now ignores the stellar-aberration correction due to observer motion. For an Earth observer, this change results in an increase in Carrington longitude of ~20 arcseconds. See Calculating Carrington longitude for more information. (#3782)
Fixed a bug where some of the coordinate transformations could raise
ValueErrorinstead ofConvertErrorwhen the transformation could not be performed. (#3894)Astropy 3.2 is now the minimum required version of that dependency. (#3936)
Deprecations and Removals#
Fido search attrs available as
sunpy.net.attrsi.e,a.Time,a.Instrumentetc are now deprecated as VSO attrs (sunpy.net.vso.attrs). (#3714)sunpy.util.multimethod.MultiMethodis deprecated,functools.singledispatchprovides equivalent functionality in the standard library. (#3714)sunpy.net.vso.attrs.Physobshas been moved tosunpy.net.attrs.Physobsand the original deprecated. (#3877)Deprecate
sunpy.instr.aia.aiaprepin favor of theaiapy.calibrate.registerfunction in the [aiapy](https://gitlab.com/LMSAL_HUB/aia_hub/aiapy) package.sunpy.instr.aia.aiaprepwill be removed in version 2.1 (#3960)Removed the module
sunpy.sun.sun, which was deprecated in version 1.0. Use the modulesunpy.coordinates.suninstead. (#4014)Removed Sun-associated functions in
sunpy.coordinates.ephemeris, which were deprecated in 1.0. Use the corresponding functions insunpy.coordinates.sun. (#4014)Remove the deprecated
sunpy.net.vso.vso.VSOClient.query_legacyand.latestmethods. (#4109)Removed the sample datasets NOAAINDICES_TIMESERIES and NOAAPREDICT_TIMESERIES because they will invariably be out of date. Up-to-date versions of these NOAA indices can be downloaded using
Fido(see Plotting a solar cycle index). (#4169)
Features#
Added
RotatedSunFramefor defining coordinate frames that account for solar rotation. (#3537)Added a context manager (
transform_with_sun_center) to ignore the motion of the center of the Sun for coordinate transformations. (#3540)Updated the gallery example titled ‘Downloading and plotting an HMI magnetogram’ to rotate the HMI magnetogram such that solar North is pointed up. (#3573)
Creates a function named
sunpy.map.sample_at_coordsthat samples the data from the map at the given set of coordinates. (#3592)Enabled the discovery of search attributes for each of our clients. (#3637)
Printing
sunpy.net.attrs.Instrumentor other “attrs” will show all attributes that exist under the corresponding “attr”. (#3637)Printing
sunpy.net.Fidowill print out all the clients that Fido can use. (#3637)Updates
draw_gridto allow disabling the axes labels and the ticks on the top and right axes. (#3673)Creates a
tablesproperty forUnifiedResponse, which allows to access theBaseQueryResponseas anTable, which then can be used for indexing of results. (#3675)Change the APIs for
sunpy.map.GenericMap.draw_rectangleandsunpy.map.GenericMap.submap()to be consistent with each other and to use keyword-only arguments for specifying the bounding box. (#3677)Updates the
observer_coordinateproperty to warn the user of specific missing metadata for each frame. Omits warning about frames where all metadata is missing or all meta is present. (#3692)Added
sunpy.util.config.copy_default_configthat copies the default config file to the user’s config directory. (#3722)sunpy.databasenow supports adding database entries and downloading data fromHEKquery (#3731)Added a helper function (
get_rectangle_coordinates) for defining a rectangle in longitude and latitude coordinates. (#3737)Add a
.dataproperty inGenericTimeSeries, so that users are encouraged to useto_dataframe()to get the data of the timeseries. (#3746)It is now possible to turn on or off various corrections in
L0()(the apparent Carrington longitude of Sun-disk center as seen from Earth). (#3782)Made skimage.transform import lazy to reduce import time of
sunpy.image.transformby ~50% (#3818)Add support for parfive 1.1. This sets a limit on the number of open connections to JSOC when downloading files to 10. (#3822)
Fido clients (subclasses of
sunpy.net.base_client.BaseClient) can now register their own attrs modules withsunpy.net.attrs. This allows clients which require attr classes specific to that client to register modules that can be used by the user i.e.a.vso. It also allows clients implemented externally to sunpy to register attrs. (#3869)Added the methods
sunpy.map.GenericMap.quicklook()andsunpy.map.MapSequence.quicklook()to display an HTML summary of the instance, including interactive controls. When using Jupyter notebooks, this HTML summary is automatically shown instead of a text-only representation. (#3951)Added
_localfilelistmethod insunpy.util.scraper.Scraperto scrap local data archives. (#3994)Added extra constants to
sunpy.sun.constants:Longitude of the prime meridian (epoch J2000.0) :
sunpy.sun.constants.get('W_0')Sidereal rotation rate :
sunpy.sun.constants.sidereal_rotation_rateFirst Carrington rotation (JD TT) :
sunpy.sun.constants.first_carrington_rotationMean synodic period :
sunpy.sun.constants.mean_synodic_periodRight ascension (RA) of the north pole (epoch J2000.0) :
sunpy.sun.constants.get('alpha_0')Declination of the north pole (epoch J2000.0) :
sunpy.sun.constants.get('delta_0')(#4013)
Adds to
sunpy.util.scraper.Scraperthe ability to include regular expressions in the URL passed. (#4107)
Bug Fixes#
Added support for passing
TimeSeriesMetaDataobject totimeseries_factoryand associated validation tests. (#3639)Now when
GenericMapfails to load a file, the filename that failed to load will now be part of the error message. (#3727)Work around incorrect Content-Disposition headers in some VSO downloads, which were leading to mangled filenames. (#3740)
Fido.searchcan now service queries withouta.Timebeing specified. This is currently only used by thesunpy.net.jsoc.JSOCClient. (#3770)Fixed a bug with the calculation of Carrington longitude as seen from Earth where it was using an old approach instead of the current approach (for example, the varying Sun-Earth distance is now taken into account). The old approach resulted in errors no greater than 7 arcseconds in Carrington longitude when using
L0andHeliographicCarrington. (#3772)Updated
sunpy.map.CompositeMap.plotto support a linewidths argument. (#3792)Fix a bug in
sunpy.net.jsoc.JSOCClientwhere requesting data for export would not work if a non-time primekey was used. (#3825)Add support for passing paths of type
pathlib.Pathinsunpy.net.jsoc.JSOCClient.fetch. (#3838)Add explicit support for dealing with download urls for files, under ‘as-is’ protocol in
sunpy.net.jsoc.JSOCClient.get_request. (#3838)Updated the method used to filter time in the VSO post-search filtering function. (#3840)
Fix failing of fetching of the indexed JSOCResponses using
sunpy.net.fido_factory.UnifiedDownloaderFactory.fetch. (#3852)Prevented
sunpy.map.GenericMap.plotmodifying in-place any items passed asimshow_kwargs. (#3867)Changed the format of DATE-OBS in
sunpy.map.GenericMap.wcsfrom iso to isot (ie. with a “T” between the date and time) to conform with the FITS standard. (#3872)Fixed a minor error (up to ~10 arcseconds) in the calculation of the Sun’s position angle (
sunpy.coordinates.sun.P()). (#3886)Updated to HTTPS for HEK. (#3917)
The accuracy of the output of
sunpy.coordinates.ephemeris.get_horizons_coord()is significantly improved. (#3919)Fixed a bug where the longitude value for the reference coordinate in the Map repr would be displayed with the unintended longitude wrapping. (#3959)
It is now possible to specify a local file path to
sunpy.data.data_manager.DataManager.override_filewithout having to prefix it withfile://. (#3970)Closed the session in the destructor of VSOClient thus solving the problem of socket being left open (#3973)
Fixed a bug of where results of VSO searches would have inconsistent ordering in
sunpy.net.vso.vso.QueryResponseby always sorting the results by start time. (#3974)Fixes two bugs in
sunpy.util.deprecated: correctly calculates the removal version and does not override the default and/or alternative functionality message. Providing a custom deprecation message now suppresses any mention of the removal version. Additionally, apendingkeyword argument is provided to denote functions/classes that are pending deprecation. (#3982)Correctly generate labels for sliders in
~sunpy.visualization.animator.ArrayAnimatorWCSwhen the number of pixel dimensions and the number of world dimensions are not the same in the WCS. (#3990)Updated VSOClient.response_block_properties to check if “None” is in the return. (#3993)
Fix a bug with
sunpy.visualization.animator.ArrayAnimatorWCSwhere animating a line with a masked array with the whole of the initial line masked out the axes limits for the x axis were not correctly set. (#4001)Fixed passing in a list of URLs into
sunpy.map.GenericMap, before it caused an error due to the wrong type being returned. (#4007)Fixed a bug with
transform_with_sun_center()where the global variable was sometimes restored incorrectly. This bug was most likely encountered if there was a nested use of this context manager. (#4015)Fixes a bug in fido_factory to allow path=”./” in fido.fetch(). (#4058)
Prevented
sunpy.io.fits.header_to_fitsmodifying the passed header in-place. (#4067)Strip out any unknown unicode from the HEK response to prevent it failing to load some results. (#4088)
Fixed a bug in
get_body_heliographic_stonyhurst()that resulted in a error when requesting an array of locations in conjunction with enabling the light-travel-time correction. (#4112)sunpy.map.GenericMap.top_right_coordandcenterhave had their definitions clarified, and both have had off-by-one indexing errors fixed. (#4121)Fixed
sunpy.map.GenericMap.submap()when scaled pixel units (e.g.u.mpix) are used. (#4127)Fixed bugs in
sunpy.util.scraper.Scraper.filelistthat resulted in error when the HTML page of URL opened by the scraper contains some “a” tags without “href” attribute and resulted in incorrect file urls when any href stores filepath relative to the URL’s domain instead of just a filename. (#4132)Fixed inconsistencies in how
submapbehaves when passed corners in pixel and world coordinates. The behavior for submaps specified in pixel coordinates is now well-defined for pixels on the boundary of the rectangle and is consistent for all boundaries. Previously pixels on the lower left boundary were included, but excluded on the upper and right boundary. This means the shape of a submap may now be 1 pixel larger in each dimension. Added several more tests forsubmapfor a range of cutout sizes in both pixel and world coordinates. (#4134)sunpy.map.on_disk_bounding_coordinatesnow fully propagates the coordinate frame of the input map to the output coordinates. Previously only the observer coordinate, and no other frame attributes, were propagated. (#4141)Fix an off-by-one error in the reference pixel returned by
sunpy.map.header_helper.make_fitswcs_header(). (#4152)sunpy.map.GenericMap.reference_pixelnow uses zero-based indexing, in order to be consistent with the rest of thesunpy.mapAPI. (#4154)Previously
sunpy.map.GenericMap.resamplewithmethod='linear'was using an incorrect and constant value to fill edges when upsampling a map. Values near the edges are now correctly extrapolated using thefill_value=extrapolateoption toscipy.interpolate.interp1d. (#4164)Fixed a bug where passing an
intorlistvia thehduskeyword argument tosunpy.io.fits.readthrew an exception because the list of HDU objects was no longer of typeHDUList. (#4183)Fix attr printing when the attr registry is empty for that attr (#4199)
Improved the accuracy of
angular_radius()by removing the use of the small-angle approximation. The inaccuracy had been less than 5 milliarcseconds. (#4239)Fixed a bug with the
observerframe attribute for coordinate frames where an input that was not supplied as aSkyCoordwould sometimes result in a transformation error. (#4266)
Improved Documentation#
Fixed an issue with the scaling of class-inheritance diagrams in the online documentation by blocking the versions of graphviz containing a bug. (#3548)
A new example gallery example “Plotting a difference image” has been added, which can be used for base difference or running difference images. (#3627)
Removed obsolete Astropy Helpers submodule section in
CONTRIBUTING.rst; Also removed mentions of astropy_helpers in all files of the project. (#3676)Corrected misleading
TimeSeriesMetaDatadocumentation about optional parameters. (#3680)Added an example for
world_to_pixelfunction in the Units & Coordinates guide. (#3776)Added a page describing how SunPy calculates Carrington longitudes. (#3782)
Changed padding value of an example in the example gallery to fix the overlap of titles and x-label axes. (#3835)
More information and links about how to create changelogs. (#3856)
Clarified some inputs to
sunpy.map.GenericMap.plot. (#3866)Changed quoted sentence (that we suggest authors add to their research papers) in CITATION.rst (#3896)
Add example of how to use SunPy’s HEK client to search for the GOES flare event list. (#3953)
Improved the doc layout of
sunpy.data.sample. (#4034)Made improvements to STEREO starfield gallery example. (#4039)
Improved the documentation of
sunpy.map.GenericMap.resample. (#4043)Updated the STEREO starfield example to use all of the information in the star catalog. (#4116)
Mini-galleries are now easier to create in the documentation thanks to a custom Sphinx directive (
minigallery). The page Differential rotation using coordinate frames has an example of a mini-gallery at the bottom. (#4124)Added
sunpy.visualization.colormaps.color_tablesto the docs. (#4182)Made minor improvements to the map histogramming example. (#4205)
Add a warning to
sunpy.iodocs to recommend not using it for FITS (#4208)
Trivial/Internal Changes#
Removed un-used and un-tested code paths in the private
_remove_lytaf_eventsfunction insunpy.instr.lyra. (#3570)Removed
astropy_helpersand this means thatpython setup.py <test,build_docs>no longer works. So if you want to:Run the tests: Use
tox -e <env name>or callpytestdirectlyBuild the docs: Use
tox -e docsor cd into the docs folder and runmake htmlorsphinx-build docs docs/_build/html -W -b html -d docs/_build/.doctrees(#3598)
Cleaned up test warnings in sunpy.coordinates. (#3652)
Fix Python version for requiring importlib_resources (#3683)
sunpy.net.attr.AttrWalkerno longer usessunpy.util.multimethod.MultiMethodit uses a derivative offunctools.singledispatchsunpy.util.functools.seconddispatchwhich dispatches on the second argument. (#3714)Errors from a VSO search will now be raised to the user. (#3719)
Fixed the transformation test for
NorthOffsetFrame, which would intermittently fail. (#3775)earth_distance()is now computed without using coordinate transformations for better performance. (#3782)Created a helper function for testing the equality/closeness of longitude angles (i.e., angles with wrapping). (#3804)
Bump the astropy version figure tests are run with from 3.1.2 to 3.2.3 (#3925)
Used
urllib.parse.urlsplitinsunpy.util.scraperfor file scraping functionalities. (#3956)Added
sunpy.net.base_client.BaseClient.check_attr_types_in_queryas a helper method to check if a query contains a set of required attributes, and is a subset of optional attributes. (#3979)Removes appending login details for ftp urls from scraper. (#4020)
Re-factored the
sunpy.map.Mapfactory to dispatch argument parsing based on type. (#4037)Improved the error message raised by the Map factory when a map matches multiple source map types. (#4052)
Added log messages when the sample data fails to download. (#4137)
Remove an Astropy 3.1 compatibility wrapper for
Quantity.to_string. (#4172)Refactor the sphinx config to no longer depend on astropy-sphinx and more closely match the new sunpy package template (#4188)
1.1.0 (2020-01-10)#
Backwards Incompatible Changes#
The
sunpy.net.vso.vso.get_online_vso_urlfunction has been broken into two components, the newsunpy.net.vso.vso.get_online_vso_urlfunction takes no arguments (it used to take three) and now only returns an online VSO mirror or None. The construction of azeep.Clientobject is now handled bysunpy.net.vso.vso.build_clientwhich has a more flexible API for customising thezeep.Clientinterface. (#3330)Importing
sunpy.timeseries.timeseriesbaseno longer automatically imports Matplotlib. (#3376)sunpy.timeseries.sources.NOAAIndicesTimeSeries.peek()now checks that thetypeargument is a valid string, and raises aValueErrorif it isn’t. (#3378)Observer-based coordinate frames (
HeliocentricandHelioprojective) no longer assume a default observer (Earth) if no observer is specified. These frames can now be used with no observer specified, but most transformations cannot be performed for such frames. This removal of a default observer only affectssunpy.coordinates, and has no impact on the default observer insunpy.map. (#3388)The callback functions provided to
BaseFuncAnimatorbutton_funckeyword argument now take two positional arguments rather than one. The function signature is now(animator, event)where the first arg is the animator object, and the second is the matplotlib mouse event. (#3407)The colormap stored in SunPy’s Map subclasses (ie.
map.plot_settings['cmap']) can now be colormap string instead of the fullmatplotlib.colors.Colormapobject. To get the fullColormapobject use the new attributemap.cmap. (#3412)Fix a warning in
sunpy.map.GenericMap.rotatewhere the truth value of an array was being calculated. This changes the behaviour ofrotatewhen theangle=parameter is not anQuantityobject to raiseTypeErrorrather thanValueError. (#3456)
Deprecations and Removals#
Removed the step of repairing images (replacing non-finite entries with local mean) before coaligning them. The user is expected to do this themselves before coaligning images. If NaNs/non-finite entries are present, a warning is thrown. The function
sunpy.image.coalignment.repair_image_nonfiniteis deprecated. (#3287)The method to convert a
Helioprojectiveframe from 2D to 3D has been renamed fromcalculate_distancetomake_3d. This method is not typically directly called by users. (#3389)sunpy.visualization.animator.ImageAnimatorWCSis now deprecated in favour ofArrayAnimatorWCS. (#3407)sunpy.cmhas been moved tosunpy.visualization.colormapsand will be removed in a future version. (#3410)
Features#
Add a new
sunpy.data.managerandsunpy.data.cachefor dealing with versioned remote data within functions. Please see theRemote Data Managerguide. (#3124)Added the coordinate frames
HeliocentricEarthEcliptic(HEE),GeocentricSolarEcliptic(GSE),HeliocentricInertial(HCI), andGeocentricEarthEquatorial(GEI). (#3212)Added SunPy Map support for GOES SUVI images. (#3269)
Support APE14 for
ImageAnimatorWCSin SunPy’s visualization module (#3275)
Add ability to disable progressbars when downloading files using
sunpy.net.helioviewerand edited docstrings to mention this feature. (#3280)Adds support for searching and downloading SUVI data. (#3301)
Log all VSO XML requests and responses to the SunPy logger at the
DEBUGlevel. (#3330)Transformations between frames in
sunpy.coordinatescan now provide detailed debugging output. Set thelogginglevel toDEBUGto enable this output. (#3339)Added the
sunpy.coordinates.sun.carrington_rotation_timefunction to compute the time of a given Carrington rotation number. (#3360)A new method has been added to remove columns from a
sunpy.timeseries.GenericTimeSeries. (#3361)Add
shapeproperty to TimeSeries. (#3380)Added ASDF schemas for the new coordinate frames (
GeocentricEarthEquatorial,GeocentricSolarEcliptic,HeliocentricEarthEcliptic,HeliocentricInertial). See the gallery for an example of usingasdfto save and load a coordinate frame. (#3398)sunpy.visualization.animator.ArrayAnimatorWCSwas added which uses the WCS object to get the coordinates of all axes, including the slider labels. It also provides the ability to customise the plot by specifying arguments toWCSAxesmethods and supports animation of WCS aware line plots with Astroy 4.0. (#3407)The returned list of
Mapobjects is now sorted by filename when passing a directory or glob pattern toMapFactory. (#3408)Single character wildcards and character ranges can now be passed as glob patterns to
Map. (#3408)Mapnow accepts filenames and directories aspathlib.Pathobjects. (#3408)GenericMapobjects now have a.cmapattribute, which returns the fullColormap. object. (#3412)sunpy.io.write_filenow acceptsPathobjects as filename inputs. (#3469)sunpy.map.header_helper.make_fitswcs_header()now accepts atuplerepresenting the shape of an array as well as the actual array as thedataargument. (#3483)Made a couple of module imports lazy to reduce the import time of sunpy.map by ~40%. (#3495)
sunpy.map.GenericMap.wcsnow uses the full FITS header to construct the WCS. This adds support for instruments with more complex projections, such as WISPR, however does mean that Map will be more sensitive to incorrect or invalid FITS headers. If you are using custom headers with SunPy Map you might encounter issues relating to this change. (#3501)sunpy.visualization.animator.BaseFuncAnimatornow takes an optionalslider_labelskeyword argument which draws text labels in the center of the sliders. (#3504)Added a more helpful error message when trying to load a file or directory that doesn’t exist with
sunpy.map.Map. (#3568)Add
__repr__forMapSequenceobjects so that users can view the critical information of all theMapobjects, in a concise manner. (#3636)
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_refinmake_fitswcs_header()and and ensure that the default reference pixel is indexed from 1. (#3184)Fixed the missing transformation between two
HeliographicCarringtonframes with different observation times. (#3186)sunpy.map.sources.AIAMapandsunpy.map.sources.HMIMapwill no longer assume the existence of certain header keys. (#3217)sunpy.map.header_helper.make_fitswcs_header()now supports specifying the map projection rather than defaulting toTAN. (#3218)Fix the behaviour of
sunpy.coordinates.frames.Helioprojective.calculate_distanceif the representation isn’t Spherical. (#3219)Fixed a bug where the longitude of a coordinate would not wrap at the expected angle following a frame transformation. (#3223)
Fixed a bug where passing a time or time interval to the differential rotation function threw an error because the new observer was not in HGS. (#3225)
Fixed bug where
get_horizons_coordwas unable to acceptTimearrays as input. (#3227)Fix the ticks on the default heliographic grid overlay so they are not white (and normally invisible) by default. (#3235)
Fixed a bug with
sunpy.net.hek.HEKClientwhen the results returned were a mixed dataset. (#3240)Fix
sunpy.physics.differential_rotation.differential_rotateto rotate in the correct direction and to account for the rotation of the heliographic coordinate frame with time. (#3245)Fixed a bug with the handling of changing observation times for transformations between
HCRSandHeliographicStonyhurst, which also indirectly affected other transformations when changing observation times. (#3246)Fixed all coordinate transformations to properly handle a change in observation time. (#3247)
Fixed the handling of coordinates with velocity information when transforming between Astropy frames and SunPy frames. (#3247)
Fixed
sunpy.physics.solar_rotation.calculate_solar_rotate_shiftso 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
LineAnimatoraxes_rangesentry given as1Darray when data is>1D, i.e. as an independent axis. (#3283)Fixed a
sunpy.coordinatesbug where a frame using the default observer of Earth could have its observer overwritten during a transformation. (#3291)Fixed a bug where the transformation from
HelioprojectivetoHeliocentricused 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
HeliocentricandHeliographicStonyhurstwhen the frame observation time was not the same as the observer observation time. The most common way to encounter this bug was when transforming fromHelioprojectiveto any non-observer-based frame while also changing the observation time. (#3291)VSO client
fetchshould not download whenwaitkeyword argument is specified. (#3298)Fixed a bug with
solar_frame_to_wcs_mappingthat assumed that the supplied frame was a SunPy frame. (#3305)Fixed bugs with
solar_frame_to_wcs_mappingif the input frame does not include an observation time or an observer. (#3305)GreatArcnow accounts for the start and end points of the arc having different observers. (#3334)Fixed situations where 2D coordinates provided to
HeliographicStonyhurstandHeliographicCarringtonwere not converted to 3D as intended. Furthermore, the stored data will always be the post-conversion, 3D version. (#3351)Fix off by one error in
sunpy.map.header_helper.make_fitswcs_header()where when using the defaultreference_pixel=Nonekeyword argument the pixel coordinate of the reference pixel was off by +1. (#3356)Updated both GOES XRS and LYRA dataretriever clients to use
sunpy.util.scraper.Scraper, to make sure that files are actually on the servers being queried. (#3367)Fixing the ordering of lon and lat inputs into make_fitswcs_header (#3371)
Updated the URL for Fermi spacecraft-pointing files to use an HTTPS connection to HEASARC. (#3381)
Fixed a bug where permission denied errors when downloading files are very verbose by adding an error message in
fetch. (#3417)Fixed a malformed call to
astropy.time.Timein a test, which resulted in an incorrect time scale (UTC instead of TT). (#3418)Fix incorrect files being included in the tarball, and docs missing from the tarball (#3423)
Fixed a bug where clipping behavior had been enabled by default in the plotting normalizers for
Mapobjects. Clipping needs to be disabled to make use of the over/under/masked colors in the colormap. (#3427)Fix a bug with observer based frames that prevented a coordinate with an array of obstimes being transformed to other frames. (#3455)
sunpy.map.GenericMapwill no longer raise a warning if the position of the observer is not known for frames that don’t need an observer, i.e. heliographic frames. (#3462)Apply
os.path.expandusertosunpy.map.map_factory.MapFactoryinput before passing toglob.glob(#3477)Fix multiple instances of
sunpy.mapsources assuming the type of FITS Header values. (#3497)Fixed a bug with
NorthOffsetFramewhere non-spherical representations for the north pole produced an error. (#3517)Fixed
map.__repr__when the coordinate system information contained in theCUNIT1/2metadata is not set to a known value. (#3569)Fixed bugs with some coordinate transformations when
obstimeisNoneon the destination frame but can be assumed to be the same as theobstimeof the source frame. (#3576)Updated
sunpy.map.mapsequence.MapSequenceso that calling_derotate()raisesNotImplementedError. Added associated tests. (#3613)Fixed pandas plotting registration in
sunpy.timeseries. (#3633)Correctly catch and emit a warning when converting a map metadata to a FITS header and it contains a keyword with non-ascii characters. (#3645)
Improved Documentation#
Clean up the docstring for
sunpy.physics.differential_rotation.solar_rotate_coordinateto make the example clearer. (#2708)Added new gallery examples and cleaned up various gallery examples. (#3181)
Cleaned and expanded upon the docstrings for each Fido Client. (#3220)
Added clarifying hyperlinks to the gallery example
getting_lasco_observer_locationto link to astroquery docs page. (#3228)Added more details to docstrings in
sunpy.coordinates.frames. (#3262)Added a link to package maintainer list in the API Stability page. (#3281)
Improved the contributing guide by updating commands and highlighting text. (#3394)
Removing
.fitsfrom the end of path kwargs insunpy.net.fido_factory.UnifiedDownloaderFactory.fetchdocs to change output file extension from{file}.fits.fitsto{file}.fits. (#3399)A new example gallery section “Using SunPy with Other Packages” has been added, which contains a set of new examples using the reproject with solar data. (#3405)
Added a table of supported coordinate systems and other miscellaneous improvements to the coordinates documentation. (#3414)
Clarified the meaning of
sunpy.map.GenericMap.dsun. (#3430)Fixed the plots with multiple subplots in the
Mapuser guide to properly usewcsaxesand to be appropriately sized. (#3454)Fixed various issues with the gallery example of saving/loading coordinates using
asdf. (#3473)Added
sunpy.__citation__with a BibTex entry for citing sunpy. (#3478)Added an example showing how to display two maps and fade between them. (#3488)
Clarified the meaning of some
GenericMapobserver properties. (#3585)Added inherited members of
sunpy.mapclasses to the docs. (#3587)Fixed documentation of
sunpy.database.Database.searchby addingReturnsdocstring. (#3593)Updated the docstring for the parameter
sortbyinMapSequencewith the default value, valid value and how to disable sorting. (#3601)Updated the tour guide to reflect that the time series is not random data. (#3603)
Fixes bold type and extra line breaks of remote data manager example. (#3615)
Trivial/Internal Changes#
Allow running our sphinx-gallery examples as Jupyter notebooks via Binder (#3256)
Improve error messages and type checking in
sunpy.visualization.animator.image.ImageAnimatorWCS. (#3346)Copy the library
distrointosunpy/extern: replaces the deprecatedplatform/linux_distribution(#3396)The version of Matplotlib used to generate figure tests has been bumped from 3.0.3 to 3.1.1. (#3406)
Corrected spelling of ‘plotting’ in timeseries method (changed ‘ploting’ to ‘plotting’). (#3429)
Switched to “importlib_metadata” to get package version to speed up import of SunPy. (#3449)
Fix tests for
sunpy.data.data_managerand ensure they are correctly executed with pytest. (#3550)
1.0.0 (2019-06-01)#
Backwards Incompatible Changes#
Move the matplotlib animators from
sunpy.visualisation.imageanimatorandsunpy.visualization.mapcubeanimatortosunpy.visualization.animator. (#2515)Make
sunpy.time.parse_timereturnastropy.time.Timeinstead ofdatetime.datetime. (#2611)The properties and methods of
sunpy.time.TimeRangereturnsastropy.time.Timeandastropy.time.TimeDeltainstead ofdatetime.datetimeanddatetime.timedeltarespectively. (#2638)The
sunpy.instr.goesmodule now accepts and returnssunpy.timeseries.sources.XRSTimeSeriesobjects only. (#2666)obstimekeyword param ofsunpy.instr.goes._goes_lxtakes a non-scalarastropy.time.Timeobject instead ofnumpy.ndarray. The precision of times contained insunpy.timeserieshas been increased to 9 from 6. (#2676)Removed
sunpy.net.jsoc.attrs.Timebecause it served the same purpose assunpy.net.attrs.Timeafter the switch toastropy.time.Time. (#2694)Remove unused
**kwargswithin 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_colormapsfunction now accepts the keyword ‘search’ instead of ‘filter’. (#2731)The keyword arguments to all client
.fetchmethods have been changed to support the new parfive downloader and to ensure consistency 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.base.ArrayAnimator,sunpy.visualization.animator.image.ImageAnimatorandsunpy.visualization.animator.line.LineAnimatornow 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
~sunpy.net.helioviewer.HelioviewerClientfunction. 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.interiorandsunpy.sun.models.evolutionfrompandas.DataFrametoastropy.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.constantsto IAU 2015 values. (#3001)Renamed
eccentricity_sunearth_orbittoeccentricity_sun_earth_orbit. (#3001)Renamed
sunpy.image.rescaletosunpy.image.resample. (#3044)Remove the
basic_plotkeyword argument frompeek. An example has been added to the gallery showing how to make a plot like this. (#3109)sunpy.map.GenericMapwill no longer use the keysolar_b0as a value for heliographic latitude. (#3115)sunpy.map.GenericMapnow 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.sunfunctions have been re-implemented using Astropy for significantly improved accuracy. Some functions have been removed. (#3137)All of the functions in
sunpy.sun.sunand all of the Sun-specific functions insunpy.coordinates.ephemerishave been moved to the new modulesunpy.coordinates.sun. (#3163)
Deprecations and Removals#
The deprecated
sunpy.lightcurve,sunpy.wcsandsunpy.spectramodules have now been removed. (#2666)sunpy.instr.rhessi.get_obssumm_dbase_filesunpy.instr.rhessi.get_obssum_filename,sunpy.instr.rhessi.get_obssumm_filehave been removed.Fidoshould be used to download these files. (#2808)Removed
heliographic_solar_centerin favour ofsunpy.coordinates.get_sun_L0andsunpy.coordinates.get_sun_B0(#2830)Removed
GenericClient.queryin favour ofsunpy.net.dataretriever.GenericClient.search(#2830)Removed
sunearth_distancein favour ofget_sunearth_distance(#2830)Removed
remove_lytaf_events_from_lightcurvein favour ofsunpy.instr.lyra.remove_lytaf_events_from_timeseries(#2830)Removed
sunpy.cm.get_cmapin favour ofplt.get_cmap(#2830)Removed
database.queryin favour ofsunpy.database.Database.search(#2830)Removed
sunpy.net.vso.InteractiveVSOClient(#2830)Removed
MapCubein favour ofMapSequence(#2830)Removed
solar_northin favour ofget_sun_P(#2830)Removed
database.downloadin favour ofsunpy.database.Database.fetch(#2830)Removed
sunpy.map.GenericMap.pixel_to_datain favour ofsunpy.map.GenericMap.pixel_to_world(#2830)Removed
GenericClient.getin favour ofsunpy.net.dataretriever.GenericClient.fetch. This changes applies to the other clients as well. (#2830)Removed
Map.xrangeandMap.yrange(#2830)Removed
sunpy.net.attrs.Wavein favour ofsunpy.net.vso.attrs.Wavelength(#2830)Removed
JSOCClient.check_requestin favour ofdrms.ExportRequest.status(#2830)sunpy.net.vso.VSOClient.query_legacyandsunpy.net.vso.VSOClient.latesthave been deprecated as we strongly recommend people usesunpy.net.Fidofor all queries. (#2866)The deprecated
sunpy.physics.transformsmodule has been removed, it is replaced bysunpy.physics.solar_rotationandsunpy.physics.differential_rotation. (#2994)Removed
sunpy.sun.sun.solar_cycle_numberbecause it was fundamentally flawed (#3150)
Features#
Change arguments to
sunpy.testfromoffline=andonline=toonlineandonline_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
GenericMapallowing 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.MapCubehas been renamed tosunpy.map.MapSequenceto 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 typenumpy.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)searchnow returns anastropy.table.Tableinstead of list of adict. (#2759)Add a downscaled HMI image to the sample data. (#2782)
Now able to create a
sunpy.map.Mapusing an array and aastropy.wcs.WCSobject. (#2793)The download manager for
Fidohas been replaced with parfive. This provides advanced progress bars, proper handling of overwriting and the ability to retry failed downloads. (#2797)sunpy.map.GenericMapcan 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.VSOClientfrom 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 thesunpy.net.vso.VSOClient. (#2866)Provided access to the Helioviewer header information using
~sunpy.net.helioviewer.HelioviewerClient.get_jp2_headerfunction. (#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_shiftsnow 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(#3032)The default style for Map plots have changed to reflect the changes in Astropy 3.2. (#3054)
sunpy.coordinates.ephemeris.get_body_heliographic_stonyhurstcan 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.header_helper.make_fitswcs_header()) that allows users to create a meta header for custom createdsunpy.map.GenericMap. (#3083)Map plotting now accepts the optional keyword
clip_intervalfor 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_coordenables 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_cmapwithmatplotlib.cm.get_cmapto 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 testnow saves the figures and the hashes to the same directory as setup.py. (#2658)sunpy.instr.fermi.met_to_utcnow 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 dependency. (#2693)
Fix eve 0cs timeseries separator regex to support Python 3.7 (#2697)
Fix the bug which crashes
LASCOMapfor when ‘date-obs’ is reformatted again from a self applied function. (#2700)Change all instances of quantity_allclose to
astropy.units.allclosethis prevents pytest being needed to importsunpy.coordinateson 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
HMIMapobjects as input tosunpy.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.writeto handle the keywordCOMMENTcorrectly. (#2880)If Carrington longitude (“crln_obs”) is found in the FITS header,
Mapconverts this to the correct Heliographic longitude. (#2946)sunpy.net.helio.hec.HECClient.time_querynow 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. (#2983)Fix bug in
sunpy.net.hekwhich raised and error if a search returned zero results, now returns an emptysunpy.net.hek.HEKTable. (#3046)AIAMapnow 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.Scraperformatting to prevent errors when the millisecond value was less than 100. (#3063)Fix
sunpy.util.scraper.Scraperfailing 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 othersunpy.map.GenericMapand overwrites mapbase’s assumption of a photospheric limb as seen from Earth. (#3099)Fixed bugs related to using
plotandpeekwith theinlineMatplotlib backend in Jupyter notebook. (#3103)Make a correction to
sunpy.coordinates.wcs_utils.solar_wcs_frame_mappingso thatastropy.wcs.WCSobjects are correctly converted tosunpy.coordinates.framesobjects irrespective of the ordering of the axes. (#3116)The
solar_rotate_coordinatefunction returns a coordinate that accounts for the location of the new observer. (#3123)Add support for rotation parameters to
sunpy.map.header_helper.make_fitswcs_header(). (#3139)Improve the implementation of
differential_rotatethe image warping when transforming Maps for differential rotation and change in observer position. (#3149)Fix a bug where new helioviewer sources potentially cause
~sunpy.net.helioviewer.HelioviewerClient.data_sourcesto 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
sunpy.visualization.animator.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 instructions for the guide section of our documentation. (#3147)
Trivial/Internal Changes#
parse_timenow usessingledispatchunderneath. (#2408)Revert the handling of
quantity_allclosenow 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.visualizationwith 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
textwrapto keep source code indented when multiline texts is used (#2671)Fix misspelling of private attribute
_default_heliographic_latitudein map. (#2730)Miscellaneous fixes to developer docs about building sunpy’s documentation. (#2825)
Changed
sunpy.instr.aia.aiaprepto update BITPIX keyword to reflect the float64 dtype. (#2831)Remove warning from
GenericMap.submapwhen using pixelQuantitiesas 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.mockfor creating offline tests for simulating online tests fortest_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
~sunpy.net.helioviewer.HelioviewerClientto access the available sources. Either byobservatoryandmeasurementorinstrumentandmeasurementas this much information is enough to get the source ID for most of the cases. (#2926)Remove the pytest dependency on the
GenericMapasdf tag. (#2943)Fix initialization of
VSOClientwhen 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
HeliographicStonyhurstcoordinate 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.representationhas been removed. Longitude wrapping is now done in the constructor of the frames. [#2431]Propagation of
obstimein the coordinate frame transformation has changed, this means in general when transforming directly between frames (notSkyCoord) you will have to specifyobstimein more places. [#2461]Transforming between Heliographic Stonyhurst and Carrington now requires that
obstimebe 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 download.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_distancewith SkyCoord constructor. [#2463]removed
wavelnthkeyword in meta desc of Maps to avoid using non standard FITS keyword likenan[#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
SkyCoordframe instantiation when distance is1*u.one. This fixes a plotting bug withWCSAxesin Astropy 3.0 [#2465]removed
wavelnthkeyword in meta desc of Maps to avoid using non standard FITS keyword likenan[#2427]Change the default units for HPC distance from
u.kmtoNone. [#2465]
0.8.3#
Bug Fixes#
XRSClientnow 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
obstimefor 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_timefunction fromsunpy.timeand also tests related to the function fromsunpy.time.testsUser can now pass a custom time format as an argument inside
sunpy.database.add_from_dir()in case thedate-obsmetadata 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.databaseclass to make it easier to display the database contents.Remove unused
sunpy.visualization.plottingmodulePort the pyana wrapper to Python 3
Map.peek(basic_plot-True)no longer issues warningsRemove the
sunpy.map.nddata_compatmodule, this makesMap.dataandMap.metaread only.Add a
NorthOffsetFrameclass for generating HGS-like coordinate systems with a shifted north pole.Remove deprecated
VSOClient.showmethod.Deprecate
sunpy.wcs:sunpy.coordinatesandsunpy.mapnow provide all that functionality in a more robust manner.Added hdu index in
sunpy.database.tables.DatabaseEntryas a column in the table.Removed
HelioviewerClientfrom thesunpy.netnamespace. It should now be imported withfrom sunpy.net.helioviewer import HelioviewerClient.Removed compatibility with standalone
wcsaxesand 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 andidof the object.A new
sunpy.visualization.imageanimator.LineAnimatorclass has been added to animate 1D data. This has resulted in API change for thesunpy.visualization.imageanimator.ImageAnimatorclass. 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.
HelioprojectiveandHelioCentricframes now have anobserverattribute which itself is a coordinate object (SkyCoord) instead ofB0,L0andD0to describe the position of the observer.GenericMap.draw_gridnow usesWCSAxes, it will only work on aWCSAxesplot, this may be less performant than the previous implementation.GenericMap.world_to_pixelandGenericMap.pixel_to_worldnow accept and returnSkyCoordobjects only.GenericMaphas a new propertyobserver_coordinatewhich returns aSkyCoorddescribing the position of the observer.GenericMap.submapnow takes arguments of the formbottom_leftandtop_rightrather thanrange_aandrange_b. This change enables submap to properly handle rotated maps and take input in the form ofSkyCoordobjects.When referring to physical coordinates
Pair.xhas been replaced withSpatialPair.axis1. This means values returned byGenericMapnow 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
HelioprojectiveFramecoordinate frame.A new
sunpy.visualization.imageanimator.ImageAnimatorWCSclass 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
dateobstoobstimeEphemeris calculations with higher accuracy are now available under
sunpy.coordinates.ephemerisAdd 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,
obstimemust 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
searchandfetch. 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_pixelwhere crpix[1] was used for both axes.Fix some leftover instances of
GenericMap.unitsFixed bugs in
sunequationssunpy.io.fits.readwill now return any parse-able HDUs even if some raise an error.VSOClientno 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 failure (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.centernow usesMap.wcsto 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
MapMetaAdd
sunpy.util.scraperto the API documentation.
0.7.2#
Fixed bugs in
sunequations
0.7.1#
Fix bug in
wcs.convert_data_to_pixelwhere crpix[1] was used for both axes.Fix some leftover instances of
GenericMap.unitsFixed bugs in
sunequationsNow the
sunpy.database.tables.display_entries()prints an astropy table.Additional methods added inside the
sunpy.databaseclass to make it easier to display the database contents.sunpy.io.fits.readwill now return any parse-able HDUs even if some raise an error.VSOClientno longer prints a lot of XML junk if the query fails.Remove unused
sunpy.visualization.plottingmoduleMap.peek(basic_plot-True)no longer issues warningsRemove the
sunpy.map.nddata_compatmodule, this makesMap.dataandMap.metaread only.Add a
NorthOffsetFrameclass for generating HGS-like coordinate systems with a shifted north pole.Remove deprecated
VSOClient.showmethod.Deprecate
sunpy.wcs:sunpy.coordinatesandsunpy.mapnow provide all that functionality in a more robust manner.Added hdu index in
sunpy.database.tables.DatabaseEntryas a column in the table.Removed
HelioviewerClientfrom thesunpy.netnamespace. It should now be imported withfrom sunpy.net.helioviewer import HelioviewerClient.Removed compatibility with standalone
wcsaxesand 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 andidof 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
timeoutparameter insunpy.data.download_sample_data()Fixed
aiaprepto 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 oflen(qr)Add a
draw_rectanglehelper toGenericMapwhich 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
GenericMapsubclasses with the factory as long as they define anis_datasource_formethod.Added functions
flareclass_to_fluxandflux_to_flareclasswhich 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_arrayfunction 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.transformshas been deprecated and the code moved intosunpy.physics.Add the
sunpy.coordinatesmodule, 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.unitsis renamed toGenericMap.spatial_unitsto avoid confusion withNDData.unit.GenericMapnow has acoordinate_frameproperty which returns anastropy.coordinatesframe with all the meta data from the map populated.GenericMapnow has a_mpl_axesmethod which allows it to be specified as a projection tomatplotlibmethods and will return aWCSAxesobject withWCSprojection.
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_pixelwhere crpix[1] was used for both axes.Fixed bugs in
sunequations
0.6.4#
Bug fix for rhessi summary lightcurve values.
Fix docstring for
pixel_to_dataanddata_to_pixel.Fix the URL for the Helioviewer API. (This fixes Helioviewer.)
Fix the way
reshape_image_to_4d_superpixelchecks 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_shiftsnow 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 UnifiedDownloader.
Provide
__str__and__repr__methods on vsoQueryResponsedeprecate.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_transformnow 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 vsoQueryResponsedeprecate.show()SunPy colormaps are now registered with matplotlib on import of
sunpy.cmsunpy.cm.get_cmapno 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_cmapno 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_transformnow 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
mapcompatibility 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, queries 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 dependencies 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 provide utcnow datetime.
Fixed time dependent 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 independence.
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 calculations.
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 available.
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 dependency
Parse_time now looks through nested lists/tuples
Draw_limb and draw_grid are now implemented on MapCube and CompositeMap
Calculations for differential rotation 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 deprecated 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 inheriting 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 multiple 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 internal 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.