New
v7.1.0
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,
patternwithin sunpy.net.Scraper (#8338) - Remove deprecated
assume_spherical_screenmethod in favor of ~sunpy.coordinates.SphericalScreen. (#8386) - Removed
silence_errorskeyword for input to both sunpy.map.Map and sunpy.timeseries.TimeSeries constructors after its long deprecation period. (#8397) - Removed the ability to read SDO/EVE level 0CS average files in sunpy.timeseries.TimeSeries after its long deprecation period. (#8397)
- Removed all deprecated API (
all_maps_same_shape,at_least_one_map_has_mask,as_array,all_metaandderotate) from sunpy.map.MapSequence after its long deprecation period. In addition,derotatewas removed from the initialization of sunpy.map.MapSequence. Finally,resamplekeyword was removed from the plotting method of sunpy.map.MapSequence. (#8397) - Removed
contourmethod on sunpy.map.Map after 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
extendon sunpy.time.TimeRange after 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 ~sunpy.net.solarnet.SOLARNETClient. (#7880)
- Added
sunpy.net.fido_factory.UnifiedResponse.show_in_notebookto render ~sunpy.net.Fido search results and~sunpy.net.attr.AttrMeta.show_in_notebookon 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 μ for limb-darkening calculations. (#7979) - Enhanced sunpy.net.Fido's
searchmethod to be robust against client errors. Any client error will be caught and attached to.errorsproperty on both the ~sunpy.net.fido_factory.UnifiedResponse and individual ~sunpy.net.base_client.QueryResponseTable, the search will continue. (#8009) - A ~sunpy.util.SunpyUserWarning will be raised when sunpy.image.resample is used with
method='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
~sunpy.map.GenericMap.reproject_toto 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 ~sunpy.map.sources.HXIMap for the Hard X-ray Imager (HXI) payload. (#8398)
- Pass
sleep,timeout, andretries_notfoundfrom~sunpy.net.jsoc.JSOCClient.fetchtodrms.ExportRequest.wait. Previously,sleepwas a keyword to~sunpy.net.jsoc.JSOCClient.fetchbut 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_timenow 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
- ~sunpy.data.data_manager.cache.Cache will 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_infowould report sunpy as an optional dependency of itself instead of properly reporting all of the optional dependencies. (#8294) - Fixed
sunpy.util.system_infoso that the version reported for a development installation of sunpy itself 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 ~sunpy.net.jsoc.attrs.Cutout class for requesting JSOC cutouts did not require the supplied coordinate to be in the ~sunpy.coordinates.Helioprojective coordinate frame. (#8346)
- For the ~sunpy.net.jsoc.attrs.Cutout class 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
~sunpy.time.parse_timefailed to parse time strings stored in an astropy.table.Column or a pandas.Series using the normal wide range of supported time-string formats. (#8356) - Fixed a bug where
~sunpy.time.parse_timecould not accept pandas.Index input. (#8356) - Fix ~sunpy.net.dataretriever.ADAPTClient returning 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 to ~sunpy.net.jsoc.attrs.Cutout. (#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 (
sphx_glr_generated_gallery_plotting_time_distance.py) 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 ~sunpy.coordinates.Helioprojective. (#8293)
- Added an example (
sphx_glr_generated_gallery_plotting_adding_earth.py) showing how to add an Earth scale image to a Map plot. (#8322) - Modified the example
sphx_glr_generated_gallery_plotting_adding_earth.pyto use mesh-based plotting instead of image-based plotting. (#8340)