- Update to 5.1.2
* Fixed the appearance of a double "Notes" heading in
~sunpy.map.Map subclasses. (#7376)
* Fix a bug which caused Fido.search to crash due to SSL
certificate verification error for the
~sunpy.net.helio.HECClient now returns no results and logs a
warning in this case. (#7446)
* 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)
* 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.map utility
functions (~sunpy.map.contains_full_disk,
~sunpy.map.coordinate_is_on_solar_disk, and
~sunpy.map.is_all_off_disk) resulting from the accidental use
of the small-angle approximation. (#7512)
* The ~sunpy.map.GenericMap.rotate function now correctly updates
the NAXISi. (#7522)
* Fixed an inaccuracy in the implementation of
~sunpy.coordinates.HeliocentricEarthEcliptic and
~sunpy.coordinates.GeocentricSolarEcliptic such 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
~sunpy.coordinates.GeocentricEarthEquatorial (GEI) returning
output with AU as the length unit, rather than preserving the
length unit of the initial coordinate. (#7545)
OBS-URL: https://build.opensuse.org/request/show/1171980
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:numeric/python-sunpy?expand=0&rev=47
- update to 5.1.1:
* Add an example of plotting a rectangle on a map with a
rotation angle relative to the axes (:ref:`sphx_glr_generated
_gallery_plotting_plot_rotated_rectangle.py`).
* Added testing and explicit support for Python 3.12.
* When calling :meth:`sunpy.map.GenericMap.rotate` on an
integer data array, with missing set to NaN (the default
value), the method will now itself raise an informative error
message instead deferring to NumPy to raise the error.
* Fixed the usage of :meth:`~sunpy.map.GenericMap.superpixel`
in :ref:`sphx_glr_generated_gallery_map_map_resampling_and_su
perpixels.py`.
* Added Clarification on setting JSOC Email.
* Added explanation text to :ref:`sphx_glr_generated_gallery_pl
otting_plotting_blank_map.py` about the offset between "(0,
0)" in helioprojective coordinates and the heliographic
equator.
* The delim_whitespace keyword in pandas.read_csv is deprecated
and was updated with sep='\s+'. This should have no affect on
the output of the code.
* Fixed an environment-specific failure of a unit test for
:meth:`sunpy.coordinates.Helioprojective.is_visible`.
OBS-URL: https://build.opensuse.org/request/show/1140256
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-sunpy?expand=0&rev=24
* Add an example of plotting a rectangle on a map with a
rotation angle relative to the axes (:ref:`sphx_glr_generated
_gallery_plotting_plot_rotated_rectangle.py`).
* Added testing and explicit support for Python 3.12.
* When calling :meth:`sunpy.map.GenericMap.rotate` on an
integer data array, with missing set to NaN (the default
value), the method will now itself raise an informative error
message instead deferring to NumPy to raise the error.
* Fixed the usage of :meth:`~sunpy.map.GenericMap.superpixel`
in :ref:`sphx_glr_generated_gallery_map_map_resampling_and_su
perpixels.py`.
* Added Clarification on setting JSOC Email.
* Added explanation text to :ref:`sphx_glr_generated_gallery_pl
otting_plotting_blank_map.py` about the offset between "(0,
0)" in helioprojective coordinates and the heliographic
equator.
* The delim_whitespace keyword in pandas.read_csv is deprecated
and was updated with sep='\s+'. This should have no affect on
the output of the code.
* Fixed an environment-specific failure of a unit test for
:meth:`sunpy.coordinates.Helioprojective.is_visible`.
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:numeric/python-sunpy?expand=0&rev=45
- Update to 5.1.0
## 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) for
~sunpy.coordinates.get_body_heliographic_stonyhurst to silence
the normal reporting of the light-travel-time correction when
observer is 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) to
~sunpy.map.header_helper.make_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 ~astropy.visualization.AsinhStretch is
used for the scaling to ensure coronal details are visible
despite the much-brighter stars. Parsing of the detector and
level fields of the FITS headers is also improved. (#7180)
* When creating a coordinate or coordinate frame without
specifying obstime, the obstime value from the observer frame
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.spice to enable the use of
the ~astropy.coordinates.SkyCoord API to perform computations
using SPICE kernels. (#7237)
* Added three coordinate frames that depend on the orientation of
Earth's magnetic dipole: ~sunpy.coordinates.Geomagnetic (MAG),
~sunpy.coordinates.SolarMagnetic (SM), and
~sunpy.coordinates.GeocentricSolarMagnetospheric (GSM). (#7239)
## Bug Fixes
* Fix RHESSI (~sunpy.net.dataretriever.RHESSIClient) fallback
server detection. (#7092)
* Fix bug in ~sunpy.coordinates.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 ~sunpy.net.dataretriever.GBMClient to
match on files other than those that end with version 0 (i.e.,
V0.pha). (#7148)
* When directly instantiating a ~astropy.wcs.WCS from 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 the ~sunpy.map.Map class, which has
always prioritized Stonyhurst coordinates over Carrington
coordinates. (#7188)
* Fixed a bug with ~sunpy.map.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 setting norm
to None would result in an error. (#7261)
## Deprecations
* Deprecated silence_errors in Map and Timeseries. This has been
replaced with allow_errors keyword. (#7021)
* The sunpy.coordinates.transformations module is now slated for
removal from the public API as it consists of internal
functions used by coordinate transformations. The context
managers sunpy.coordinates.transform_with_sun_center and
sunpy.coordinates.propagate_with_solar_surface should be
accessed under sunpy.coordinates. (#7113)
## Removals
* sunpy.map.extract_along_coord() has been removed. Instead, use
~sunpy.map.pixelate_coord_path, and then pass its output to
~sunpy.map.sample_at_coords. pixelate_coord_path uses a
different line algorithm by default, but you can specify
bresenham=True as an argument to use the same line algorithm as
extract_along_coord. (#7200)
* sunpy.visualisation.limb.draw_limb() has been removed. Use
sunpy.visualization.drawing.limb instead. (#7202)
* Removed GenericTimeSeries.index. Use GenericTimeseries.time
instead as a direct replacement. (#7203)
* Removed the deprecated sunpy.io.cdf submodule, 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 Use sunpy.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 ~sunpy.map.Map methods
preserve laziness when operating on Maps backed by a
dask.array.Array. (#7100)
* Added missing support to find GOES-18 XRS data in
~sunpy.net.dataretriever.XRSClient. (#7108)
* Raise an error with a helpful message when
sunpy.map.GenericMap.plot is called with a non-boolean value
for the annotate keyword, 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 drms requirement to < 0.7 to avoid breaking changes
in drms version 0.7. (#7308)
OBS-URL: https://build.opensuse.org/request/show/1128594
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:numeric/python-sunpy?expand=0&rev=43
- Update to 5.0.1
* Fix RHESSI (RHESSIClient) fallback server detection.
* 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.
* Updated the url of the GBMClient to match on files other than those that
end with version 0
* Added missing support to find GOES-18 XRS data in XRSClient.
- Really drop python-311.patch
OBS-URL: https://build.opensuse.org/request/show/1111366
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:numeric/python-sunpy?expand=0&rev=41
* `~sunpy.net.dataretriever.XRSClient` now provides the re-processed
GOES-XRS 8-15 data from NOAA.
* Changed the output of :func:`sunpy.map.sample_at_coords` to return the
sampled values as `~astropy.units.Quantity` with the appropriate units
instead of merely numbers.
* Able to run the ``sunpy`` tests doing ``python -m sunpy.tests.self_test``.
* Able to detect gzip-compressed FITS files even if they don't have the
``.gz`` extension in the filename.
`~sunpy.io.detect_filetype` now looks for the right file signature while
checking for gzipped FITS files.
* Added ``AttrAnd`` and ``AttrOr`` to the namespace in ``sunpy.net.attrs``.
* `~sunpy.net.dataretriever.SUVIClient` now provides GOES-18 SUVI data.
* The minimum required versions of several core dependencies have been
updated:
+ Python 3.9
+ astropy 5.0.1
+ numpy 1.21.0
* Added the utility function :func:`sunpy.map.pixelate_coord_path` to
fully pixelate a coordinate path according to the pixels of a given map.
* Able to download files from REST/TAP Data Providers from the VSO.
* Adding data unit into html repr for `sunpy.map.Map`
* Joined ``HISTORY`` keys with newline characters when parsing ``HISTORY``
cards from FITS header.
* Added the ability to query for the GOES-XRS 1 minute average data with
the `.XRSClient`.
* Increased minimum version of `parfive` to 2.0.0.
* Fixed the incorrect calculation in
sunpy.map.header_helper.make_fitswcs_header` of the rotation matrix
from a rotation angle when the pixels are non-square.
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:numeric/python-sunpy?expand=0&rev=40
- Remove patch sunpy-pr6662-np1.24.patch
- Add patch python-311.patch to support python 3.11, gh#sunpy/sunpy#6512
- Update to v4.1.3
* Backport PR #6740 on branch 4.1 (Exclude scipy==1.10.0 in deps) by
@meeseeksmachine in #6746
* Backport PR #6749 on branch 4.1 (Unpin and update database for
SQLA 2.0) by @meeseeksmachine in #6750
* Backport PR #6731 on branch 4.1 (fig-devdeps : Have to add a unit
to lon.coord_wrap) by @meeseeksmachine in #6753
* Backport PR #6711 on branch 4.1 (Raise error if downloader for
cache fails) by @meeseeksmachine in #6755
* Backport PR #6725 on branch 4.1 (add unit detection for XRT data)
by @meeseeksmachine in #6761
* Backport PR #6737 on branch 4.1 (Updating the GOES-XRS baseurl
following change on noaa side) by @meeseeksmachine in #6762
* Backport PR #6710 on branch 4.1 (Fix init issue for JP2 HMI images
from helioveiwer) by @meeseeksmachine in #6765
* Backport PR #6648 on branch 4.1 (Fix draw_quadrangle() so that it
accepts frames with data) by @meeseeksmachine in #6777
- v4.1.2
* Backport PR #6694 on branch 4.1 (pin sqlalchemy<2.0 and ignore
warning for now) by @meeseeksmachine in #6697
* Backport PR #6693 on branch 4.1 (detect gzipped-FITS files by
magic-bytes) by @meeseeksmachine in #6700
* Backport PR #6702 on branch 4.1 (fix the extremely minor issue in
Fido docs) by @meeseeksmachine in #6704
* Backport PR #6712 on branch 4.1 (Add changelog entry for
sqlalchemy pin) by @meeseeksmachine in #6714
* Backport PR #6728 on branch 4.1 (Fix HISTORY key in test maps
created from header files) by @meeseeksmachine in #6730
- v4.1.1
* Added three tutorials which replicate ~sunpy.map.CompositeMap
functionality
(sphx_glr_generated_gallery_plotting_AIA_HMI_composite.py,
sphx_glr_generated_gallery_plotting_masked_composite_plot.py,
sphx_glr_generated_gallery_plotting_three_map_composite.py). A
fourth tutorial
(sphx_glr_generated_gallery_plotting_rgb_composite.py)
demonstrates how to create an RGB image with three different maps.
(#6459)
* Fixed the incorrect calculation in
~sunpy.map.header_helper.make_fitswcs_header of the rotation
matrix from a rotation angle when the pixels are non-square.
(#6597)
* Fixed an issue with loading old EIT fits files with sunpy.map.Map
where the date could not be parsed. (#6605)
* Added sunpy.map.PixelPair to the reference documentation. (#6620)
OBS-URL: https://build.opensuse.org/request/show/1068001
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-sunpy?expand=0&rev=20
- Add patch python-311.patch to support python 3.11, gh#sunpy/sunpy#6512
- Update to v4.1.3
* Backport PR #6740 on branch 4.1 (Exclude scipy==1.10.0 in deps) by
@meeseeksmachine in #6746
* Backport PR #6749 on branch 4.1 (Unpin and update database for
SQLA 2.0) by @meeseeksmachine in #6750
* Backport PR #6731 on branch 4.1 (fig-devdeps : Have to add a unit
to lon.coord_wrap) by @meeseeksmachine in #6753
* Backport PR #6711 on branch 4.1 (Raise error if downloader for
cache fails) by @meeseeksmachine in #6755
* Backport PR #6725 on branch 4.1 (add unit detection for XRT data)
by @meeseeksmachine in #6761
* Backport PR #6737 on branch 4.1 (Updating the GOES-XRS baseurl
following change on noaa side) by @meeseeksmachine in #6762
* Backport PR #6710 on branch 4.1 (Fix init issue for JP2 HMI images
from helioveiwer) by @meeseeksmachine in #6765
* Backport PR #6648 on branch 4.1 (Fix draw_quadrangle() so that it
accepts frames with data) by @meeseeksmachine in #6777
- v4.1.2
* Backport PR #6694 on branch 4.1 (pin sqlalchemy<2.0 and ignore
warning for now) by @meeseeksmachine in #6697
* Backport PR #6693 on branch 4.1 (detect gzipped-FITS files by
magic-bytes) by @meeseeksmachine in #6700
* Backport PR #6702 on branch 4.1 (fix the extremely minor issue in
Fido docs) by @meeseeksmachine in #6704
* Backport PR #6712 on branch 4.1 (Add changelog entry for
sqlalchemy pin) by @meeseeksmachine in #6714
* Backport PR #6728 on branch 4.1 (Fix HISTORY key in test maps
created from header files) by @meeseeksmachine in #6730
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:numeric/python-sunpy?expand=0&rev=36
- Update to v4.1.0
## Breaking Changes
* Updated the sample data file, AIA_171_ROLL_IMAGE to 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 timeseries peek() 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.
Use ~sunpy.timeseries.GenericTimeSeries.time to get an astropy
Time object, or ts.to_dataframe().index to get the times as a
pandas DataTimeIndex. (#6327)
* Deprecated the sunpy.visualization.limb module. The
sunpy.visualization.limb.draw_limb function has been moved into
~sunpy.visualization.drawing as
~sunpy.visualization.drawing.limb. (#6332)
* The sunpy.net.helioviewer module 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 the HelioviewerClient class. (#6404)
* Passing the algorithm, return_footprint arguments 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. Use
sunpy.data.sample.download_all instead. (#6426)
* The sunpy.database module is no longer actively maintained and
has a number of outstanding issues. It is anticiapted that
OBS-URL: https://build.opensuse.org/request/show/1037155
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:numeric/python-sunpy?expand=0&rev=32
- Update to v4.0.6
* Fix a bug in loading .XRSTimeSeries due to unsupported quality
flag column names. (#6410)
* Adds units (dimensionless units) to the quality columns in
.XRSTimeSeries. (#6423)
* Refactored ~sunpy.map.sources.SXTMap to use ITRS observer
coordinate information in header rather than incorrect HGS
keywords. The ~sunpy.map.sources.SXTMap also now uses the
default dsun property as this information can be derived from
the (now corrected) observer coordinate. (#6436)
* In sunpy.map.GenericMap.coordinate_system and
sunpy.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 ~sunpy.map.sources.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.Fido and
no results are returned. An empty response table is now
returned. (#6450)
* Fix a bug to parse the GOES "observatory" number in
~.XRSTimeSeries for GOES 13, 14, 15 and for the 1 minute GOES-R
data. (#6451)
* Changed the default scaling for ~sunpy.map.sources.XRTMap from
a linear stretch to ~astropy.visualization.LogStretch.
OBS-URL: https://build.opensuse.org/request/show/1034357
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:numeric/python-sunpy?expand=0&rev=31
- Update to v4.0.4
* update metadata for pypi page
* Add bugfix release policy to docs
* Update license year
- Release v4.0.3
* Fixed ~sunpy.timeseries.sources.XRSTimeSeries inability to read
leap-second files for GOES. It floors the leap-second timestamp
to be 59.999, so that Python datetime does not raise an
exception. (#6262)
* Fixed bugs when working with a coordinate frame where the
observer is specified in
~sunpy.coordinates.frames.HeliographicStonyhurst with 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)
OBS-URL: https://build.opensuse.org/request/show/995213
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-sunpy?expand=0&rev=17
- Update to v4.0.4
* update metadata for pypi page
* Add bugfix release policy to docs
* Update license year
- Release v4.0.3
* Fixed ~sunpy.timeseries.sources.XRSTimeSeries inability to read
leap-second files for GOES. It floors the leap-second timestamp
to be 59.999, so that Python datetime does not raise an
exception. (#6262)
* Fixed bugs when working with a coordinate frame where the
observer is specified in
~sunpy.coordinates.frames.HeliographicStonyhurst with 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)
OBS-URL: https://build.opensuse.org/request/show/994520
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:numeric/python-sunpy?expand=0&rev=29
- Update to v4.0.2
* Added a SDO/AIA 1600 file of the Venus transit to the sunpy
sample data. (#6242)
* Expose GOES quality flags in order to allow filtering corrupt
values when using the
~sunpy.timeseries.sources.goes.XRSTimeSeries. (#6260)
* The sunpy.net.dataretriever.sources.noaa.SRSClient was not
correctly setting the passive mode for FTP connection resulting
in a permission error. This has been fixed. (#6256)
* Changed the default scaling for ~sunpy.map.sources.EUIMap from
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())
* 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/ to
https://github.com/sunpy/data/raw/main/sunpy/v1/. We expect
GitHub to redirect from the old URL for sometime but will
eventually expire it. The data.sunpy.org mirror will continue
to be available. (#6289)
* Add support for downloading sample data from more than two
mirror locations. (#6295)
- Relese 4.0.1
* Updated the sample data file, AIA_171_ROLL_IMAGE to be rice
compressed instead of gzip compressed. This means that the data
is now stored in the second HDU. (#6221)
* 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)
* Fix a bug that prevented EUI maps with missing wavelength
metadata loading. (#6199)
* 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)
* Updated the info_url for the
~sunpy.net.dataretriever.sources.goes.XRSClient to account for
the different default sources that vary based on GOES satellite
number. (#6152)
* 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_EXTENSION which
when present will cause sunpy to not compile the ANA C
extension when building from source. (#6166)
* sunpy now uses the Limited Python API. Therefore, one binary
distribution (wheel) per platform is now published and it is
compatible with all Python versions sunpy supports. (#6171)
- Replace sunpy-test-ignore-warnings.patch by
sunpy-obs-profile.patch and sunpy-scikit-image-deprecation.patch
OBS-URL: https://build.opensuse.org/request/show/985360
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:numeric/python-sunpy?expand=0&rev=27
- Update to 3.1.5
* Maps created from ~sunpy.map.GenericMap.resample and
~sunpy.map.GenericMap.superpixel 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)
* When getting IRIS files from the VSO, Fido was incorrectly
labelling them as XML files. (#5868)
* Fixes a bug where the cmap and norm keyword arguments were
ignored when calling ~sunpy.map.MapSequence.plot. (#5889) Fix
parsing of the GOES/XRS netcdf files to ignore leap seconds.
(#5915)
* Fixed compatability with h5netcdf>0.14 when loading GOES netcdf
files. (#5920)
* Fixes a bug in ~sunpy.map.sources.IRISMap where undefined
variable was used when parsing the wavelength. Also fixes the
unit parsing by removing the "corrected" string from the BUNIT
keyword as "corrected DN" cannot be parsed as a valid FITS
unit. (#5968)
* Fixed unit handling issue with .GenericMap and lowercasing the
unit before it submits it to astropy.units. (#5970)
- Release 3.1.4
* Fixed plotting and peeking NORH timeseries data with pandas
1.4.0. (#5830)
* In the case where sunpy.database.Database.fetch() successfully
downloads only some of the search results, a
~sunpy.database.PartialFetchError is raised. This fixes a bug
where the successful downloads would have been added to the
OBS-URL: https://build.opensuse.org/request/show/966576
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:numeric/python-sunpy?expand=0&rev=17
- Update to 2.1.4
Big changelog since 2.0.7:
https://github.com/sunpy/sunpy/releases
Backwards incompatible changes in 2.1.0:
* 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 from ~astropy.
coordinates.Angle to ~astropy.coordinates.Latitude. (#4323)
* An error is now raised if vmin or vmax are passed to to sunpy.
map.GenericMap.plot and they are already set on the map norm.
This is consistent with upcoming Matplotlib changes. (#4328)
* Previously slicing the result of Fido.search() (a ~sunpy.net.
fido_factory.UnifiedResponse object) so that it had a length
of one returned another ~sunpy.net.fido_factory.
UnifiedResponse object. Now it will return a ~sunpy.net.
base_client.QueryResponseTable object, which is a subclass of
astropy.table.Table. (#4358)
* The .size property of a coordinate frame with no associated
data will now raise an error instead of returning 0. (#4577)
* The following ~sunpy.map.Map methods have had support for
specific positional arguments removed. They must now be passed
as keyword arguments (i.e. m.method(keyword_arg=value)).
* ~sunpy.map.GenericMap.submap: width, height.
~sunpy.map.GenericMap.draw_rectangle: width, height, axes,
top_right. (#4616)
* The sunpy specific attributes .heliographic_observer and .rsun
are no longer set on the ~astropy.wcs.WCS returned by sunpy.
map.GenericMap.wcs. (#4620)
* Due to upstream changes, the parsing logic for the ~sunpy.net.
OBS-URL: https://build.opensuse.org/request/show/884070
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:numeric/python-sunpy?expand=0&rev=13
- Update to 2.0.7
+ Big changlog since 1.1.0.
See https://docs.sunpy.org/en/stable/whatsnew/2.0.htmlhttps://github.com/sunpy/sunpy/blob/master/CHANGELOG.rst
and https://github.com/sunpy/sunpy/releases
+ Highlights from the 2.0 update:
* sunpy.net.Fido now supports tab completion of search
attributes. This allows you to do a.Instrument.AIA, and
print a.Instrument to see the list of known supported
instruments.
* sunpy.instr.aia.aiaprep has been deprecated in favor
of the functionality in the aiapy
<https://aiapy.readthedocs.io/>__ package.
* Various fixes and clarifications to pixel indexing in
the sunpy.map subpackage.
* Standardization of specifying rectangles in coordinate
space in the :meth:~sunpy.map.GenericMap.submap and
:meth:~sunpy.map.GenericMap.draw_rectangle methods of
~sunpy.map.GenericMap.
* HTML quicklook previews of ~sunpy.map.GenericMap and
~sunpy.map.MapSequence instances are available with
the new :meth:~sunpy.map.GenericMap.quicklook and
:meth:~sunpy.map.MapSequence.quicklook methods,
respectively. This is also the default display in
Jupyter <https://jupyter.org/>__ notebooks.
* Integration of differential rotation into the
sunpy.coordinates framework. This enables, amongst
other things, the warping of images with the reproject
<https://reproject.readthedocs.io/>__ package and the
plotting of rotated grid lines with :ref:WCSAxes
OBS-URL: https://build.opensuse.org/request/show/866241
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:numeric/python-sunpy?expand=0&rev=11
- Update to version 1.1.0
+ Backwards Incompatible Changes
* The `sunpy.net.vso.vso.get_online_vso_url` function has been broken into two components, the new `sunpy.net.vso.vso.get_online_vso_url` function takes no arguments (it used to take three) and now only returns an online VSO mirror or None.
The construction of a `zeep.Client` object is now handled by `sunpy.net.vso.vso.build_client` which has a more flexible API for customising the `zeep.Client` interface.
* Importing `sunpy.timeseries.timeseriesbase` no longer automatically imports
Matplotlib.
* `NOAAIndicesTimeSeries.peek` now checks that the `type` argument is a
valid string, and raises a `ValueError` if it isn't.
* Observer-based coordinate frames (`~sunpy.coordinates.frames.Heliocentric` and `~sunpy.coordinates.frames.Helioprojective`) 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 affects `sunpy.coordinates`, and has no impact on the default observer in `sunpy.map`.
* The callback functions provided to
`~sunpy.visualization.animator.BaseFuncAnimator` ``button_func`` keyword
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.
* The colormap stored in SunPy's Map subclasses (ie. ``map.plot_settings['cmap']``)
can now be colormap string instead of the full `matplotlib.colormap.Colormap`
object. To get the full `Colormap` object use the new attribute
``map.cmap``.
* Fix a warning in `sunpy.map.GenericMap.rotate` where the truth value of an array
was being calculated. This changes the behaviour of
`~sunpy.map.GenericMap.rotate` when the ``angle=`` parameter is not an
`~astropy.units.Quantity` object to raise `TypeError` rather than `ValueError`.
+ Deprecations and Removals
* Removed the step of reparing 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_nonfinite` is deprecated.
* The method to convert a `~sunpy.coordinates.frames.Helioprojective` frame from 2D to 3D has been renamed from `~sunpy.coordinates.frames.Helioprojective.calculate_distance` to `~sunpy.coordinates.frames.Helioprojective.make_3d`. This method is not typically directly called by users.
* `sunpy.visualization.animator.ImageAnimatorWCS` is now deprecated in favour of
`~sunpy.visualization.animator.ArrayAnimatorWCS`.
* ``sunpy.cm`` has been moved to `sunpy.visualization.colormaps` and will be
removed in a future version.
+ Features
* Add a new `sunpy.data.manager` and `sunpy.data.cache` for dealing with versioned remote data within functions.
Please see the `Remote Data Manager <https://docs.sunpy.org/en/latest/dev_guide/remote_data.html>`__ guide.
* Added the coordinate frames `~sunpy.coordinates.frames.HeliocentricEarthEcliptic` (HEE), `~sunpy.coordinates.frames.GeocentricSolarEcliptic` (GSE), `~sunpy.coordinates.frames.HeliocentricInertial` (HCI), and `~sunpy.coordinates.frames.GeocentricEarthEquatorial` (GEI).
* Added SunPy Map support for GOES SUVI images.
* - Support APE14 for ``ImageAnimatorWCS`` in SunPy's visualization module
* Add ability to disable progressbars when dowloading files using `sunpy.net.helioviewer.py` and edited docstrings to mention this feature.
* Adds support for searching and downloading SUVI data.
* Log all VSO XML requests and responses to the SunPy logger at the ``DEBUG``
level.
* Transformations between frames in `sunpy.coordinates` can now provide detailed debugging output. Set the `logging` level to ``DEBUG`` to enable this output.
* Added the `sunpy.coordinates.sun.carrington_rotation_time` function to
compute the time of a given Carrington rotation number.
* A new method has been added to remove columns from a
`sunpy.timeseries.GenericTimeSeries`.
* Add `shape` property to TimeSeries.
* Added ASDF schemas for the new coordinate frames (`~sunpy.coordinates.frames.GeocentricEarthEquatorial`, `~sunpy.coordinates.frames.GeocentricSolarEcliptic`, `~sunpy.coordinates.frames.HeliocentricEarthEcliptic`, `~sunpy.coordinates.frames.HeliocentricInertial`). See the gallery for an example of using `asdf` to save and load a coordinate frame.
* `sunpy.visualization.animator.ArrayAnimatorWCS` was 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 to
`~astropy.visualization.wcsaxes.WCSAxes` methods and supports animation of
WCS aware line plots with Astroy 4.0.
* The returned list of `~sunpy.map.Map` objects is now sorted by filename when
passing a directory or glob pattern to `~sunpy.map.MapFactory`.
* Single character wildcards and character ranges can now be passed as
glob patterns to `~sunpy.map.Map`.
* `~sunpy.map.Map` now accepts filenames and directories as `pathlib.Path`
objects.
* `~sunpy.map.GenericMap` objects now have a ``.cmap`` attribute, which returns the full `~matplotlib.colormap.Colormap`.
object.
* `sunpy.io.write_file()` now accepts `~pathlib.Path` objects as filename inputs.
* `sunpy.map.make_fitswcs_header` now accepts a `tuple` representing the shape of an array as well as the actual array as the ``data`` argument.
* Made a couple of module imports lazy to reduce the import time of sunpy.map by
~40%.
* `sunpy.map.GenericMap.wcs` now 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.
* `sunpy.visualization.animator.BaseFuncAnimator` now takes an optional
``slider_labels`` keyword argument which draws text labels in the center of the
sliders.
* Added a more helpful error message when trying to load a file or directory
that doesn't exist with `Map`.
* Add ``__repr__`` for `~sunpy.map.MapSequence` objects so that users can view the
critical information of all the ``Map`` objects, in a concise manner.
+ Bug Fixes
* Fixed accuracy issues with the calculations of Carrington longitude (`~sunpy.coordinates.sun.L0`) and Carrington rotation number (`~sunpy.coordinates.sun.carrington_rotation_number`).
* Updated `sunpy.map.header_helper.make_fitswcs_header` to be more strict on the inputs it accepts.
* Fix the calculation of ``rsun_ref`` in `~sunpy.map.make_fitswcs_header` and and
ensure that the default reference pixel is indexed from 1.
* Fixed the missing transformation between two `~sunpy.coordinates.HeliographicCarrington` frames with different observation times.
* `sunpy.map.sources.AIAMap` and `sunpy.map.sources.HMIMap` will no longer assume
the existance of certain header keys.
* `sunpy.map.make_fitswcs_header` now supports specifying the map projection
rather than defaulting to ``TAN``.
* Fix the behaviour of
`sunpy.coordinates.frames.Helioprojective.calculate_distance` if the
representation isn't Spherical.
* Fixed a bug where the longitude of a coordinate would not wrap at the expected angle following a frame transformation.
* 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.
* Fixed bug where `~sunpy.coordinates.ephemeris.get_horizons_coord` was unable to accept `~astropy.time.Time` arrays as input.
* Fix the ticks on the default heliographic grid overlay so they are not white
(and normally invisible) by default.
* Fixed a bug with `sunpy.net.hek.HEKClient` when the results returned were a mixed dataset.
* Fix `sunpy.physics.differential_rotation.differential_rotate` to rotate in the
correct direction and to account for the rotation of the heliographic
coordinate frame with time.
* Fixed a bug with the handling of changing observation times for transformations between `~astropy.coordinates.HCRS` and `~sunpy.coordinates.frames.HeliographicStonyhurst`, which also indirectly affected other transformations when changing observation times.
* Fixed all coordinate transformations to properly handle a change in observation time.
* Fixed the handling of coordinates with velocity information when transforming between Astropy frames and SunPy frames.
* Fixed `~sunpy.physics.solar_rotation.calculate_solar_rotate_shift` so that it does not calculate a shift between the reference layer and itself, which would sometimes incorrectly result in a shift of a pixel due to numerical precision.
* Stop crash when ``LineAnimator`` ``axes_ranges`` entry given as ``1D`` array when data is ``>1D``, i.e. as an independent axis.
* Fixed a `sunpy.coordinates` bug where a frame using the default observer of Earth could have its observer overwritten during a transformation.
* Fixed a bug where the transformation from `~sunpy.coordinates.frames.Helioprojective` to `~sunpy.coordinates.frames.Heliocentric` used the Sun-observer distance from the wrong frame when shifting the origin, and thus might not give the correct answer if the observer was not the same for the two frames.
* Fixed a bug with the transformations between `~sunpy.coordinates.frames.Heliocentric` and `~sunpy.coordinates.frames.HeliographicStonyhurst` when the frame observation time was not the same as the observer observation time. The most common way to encounter this bug was when transforming from `~sunpy.coordinates.frames.Helioprojective` to any non-observer-based frame while also changing the observation time.
* VSO client `fetch` should not download when `wait` keyword argument is specified.
* Fixed a bug with `~sunpy.coordinates.wcs_utils.solar_frame_to_wcs_mapping` that assumed that the supplied frame was a SunPy frame.
* Fixed bugs with `~sunpy.coordinates.wcs_utils.solar_frame_to_wcs_mapping` if the input frame does not include an observation time or an observer.
* `~sunpy.coordinates.utils.GreatArc` now accounts for the start and end points of the arc having different observers.
* Fixed situations where 2D coordinates provided to `~sunpy.coordinates.frames.HeliographicStonyhurst` and `~sunpy.coordinates.frames.HeliographicCarrington` were not converted to 3D as intended. Furthermore, the stored data will always be the post-conversion, 3D version.
* Fix off by one error in `sunpy.map.make_fitswcs_header` where when using the
default ``reference_pixel=None`` keyword argument the pixel coordinate of the
reference pixel was off by +1.
* 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.
* Fixing the ordering of lon and lat inputs into make_fitswcs_header
* Updated the URL for Fermi spacecraft-pointing files to use an HTTPS connection to HEASARC.
* Fixed a bug where permission denied errors when downloading files are very verbose by adding an error message in `~sunpy.net.fido_factory.UnifiedDownloaderFactory.fetch`.
* Fixed a malformed call to `astropy.time.Time` in a test, which resulted in an incorrect time scale (UTC instead of TT).
* Fix incorrect files being included in the tarball, and docs missing from the
tarball
* Fixed a bug where clipping behavior had been enabled by default in the plotting normalizers for ``Map`` objects. Clipping needs to be disabled to make use of the over/under/masked colors in the colormap.
* Fix a bug with observer based frames that prevented a coordinate with an array of obstimes being transformed to other frames.
* `sunpy.map.GenericMap` will no longer raise a warning if the posisition of the
observer is not known for frames that don't need an observer, i.e. heliographic
frames.
* Apply `os.path.expanduser` to `sunpy.map.MapFactory` input
before passing to `glob.glob`
* Fix multiple instances of `sunpy.map.sources` assuming the type of FITS Header
values.
* Fixed a bug with `~sunpy.coordinates.NorthOffsetFrame` where non-spherical representations for the north pole produced an error.
* Fixed ``map.__repr__`` when the coordinate system information contained in the
``CUNIT1/2`` metadata is not set to a known value.
* Fixed bugs with some coordinate transformations when ``obstime`` is ``None`` on the destination frame but can be assumed to be the same as the ``obstime`` of the source frame.
* Updated `sunpy.map.mapsequence.MapSequence` so that calling ``_derotate()`` raises ``NotImplementedError``.
Added associated tests.
* Fixed pandas plotting registration in `sunpy.timeseries`.
* Correctly catch and emit a warning when converting a map metadata to a FITS
header and it contains a keyword with non-ascii characters.
+ Improved Documentation
* Clean up the docstring for `sunpy.physics.differential_rotation.solar_rotate_coordinate` to make the example clearer.
* Added new gallery examples and cleaned up various gallery examples.
* Cleaned and expanded upon the docstrings for each Fido Client.
* Added clarifying hyperlinks to the gallery example `getting_lasco_observer_location` to link to `astroquery` docs page.
* Added more details to docstrings in `sunpy.coordinates.frames`.
* Added a link to package maintainer list in the API Stability page.
* Improved the contributing guide by updating commands and highlighting text.
* Removing `.fits` from the end of path kwargs in `sunpy.net.FIDO.fetch` docs to change output file extension from `{file}.fits.fits` to `{file}.fits`.
* A new example gallery section "Using SunPy with Other Packages" has been added,
which contains a set of new examples using the `reproject
<https://reproject.readthedocs.io/>`__ with solar data.
* Added a table of supported coordinate systems and other miscellaneous improvements to the :ref:`coordinates documentation <sunpy-coordinates>`.
* Clarified the meaning of :attr:`GenericMap.dsun`.
* Fixed the plots with multiple subplots in the ``Map`` user guide to properly use `~astropy.visualization.wcsaxes` and to be appropriately sized.
* Fixed various issues with the gallery example of saving/loading coordinates using `asdf`.
* Added ``sunpy.__citation__`` with a BibTex entry for citing sunpy.
* Added an example showing how to display two maps and fade between them.
* Clarified the meaning of some `GenericMap` observer properties.
* Added inherited members of `sunpy.map` classes to the docs.
* Fixed documentation of `sunpy.database.Database.search` by adding ``Returns`` docstring.
* Updated the docstring for the parameter ``sortby`` in `~sunpy.map.MapSequence` with the default value, valid value and how to disable sorting.
* Updated the tour guide to reflect that the time series is not random data.
* Fixes bold type and extra line breaks of remote data manager example
in `remote_data_manager.py`.
+ Trivial/Internal Changes
* Allow running our sphinx-gallery examples as Jupyter notebooks via Binder
* Improve error messages and type checking in
`sunpy.visualization.animator.image.ImageAnimatorWCS`.
* Copy the library `distro` into `sunpy/extern`: replaces the deprecated `platform/linux_distribution`
* The version of Matplotlib used to generate figure tests has been bumped from
3.0.3 to 3.1.1.
* Corrected spelling of 'plotting' in timeseries method (changed 'ploting' to 'plotting').
* Switched to "importlib_metadata" to get package version to speed up import of SunPy.
* Fix tests for `sunpy.data.data_manager` and ensure they are correctly executed with pytest.
- Add fix_importlib_py_ver.patch
Fixes a dependency that is not required for later python versions.
See https://github.com/sunpy/sunpy/pull/3683
OBS-URL: https://build.opensuse.org/request/show/768898
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:numeric/python-sunpy?expand=0&rev=7
oid sha256:cbeb70d48f82eb00c5949bce6d6ace862b2baf2402797ba5930172442b808130
size 3662938
Reference in New Issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.