astropy.config
astropy.convolution
astropy.coordinates
astropy.io.ascii
astropy.io.fits
astropy.io.misc
astropy.io.votable
astropy.modeling
astropy.sphinx
astropy.table
astropy.time
astropy.units
astropy.utils
astropy.wcs
astropy.wcs.WCS, astropy.wcs.WCS.fix and astropy.wcs.find_all_wcs now have a translate_units keyword argument that is passed down to astropy.wcs.Wcsprm.fix. This can be used to specify any unsafe translations of units from rarely used ones to more commonly used ones.
Although "S" is commonly used to represent seconds, its translation to "s" is potentially unsafe since the standard recognizes "S" formally as Siemens, however rarely that may be used. The same applies to "H" for hours (Henry), and "D" for days (Debye).
When these sorts of changes are performed, a warning is emitted (but this reporting requires a patched version of wcslib, distributed with astropy). [#1854]
astropy.wcs.WCS.to_header will now raise a more meaningful exception when the WCS information is inavlid or inconsistent in some way. [#1854]
When a unit is “fixed” by astropy.wcs.WCS.fix or astropy.wcs.Wcsprm.unitfix, it now correctly reports the CUNIT field that was changed. [#1854]
astropy.wcs.Wcs.printwcs will no longer warn that cdelt is being ignored when none was present in the FITS file. [#1845]
astropy.wcs.Wcsprm.set is called from within the astropy.wcs.WCS constructor, therefore any invalid information in the keywords will be raised from the constructor, rather than on a subsequent call to a transformation method. [#1918]
Fix a memory corruption bug when using astropy.wcs.Wcs.sub with astropy.wcs.WCSSUB_CELESTIAL. [#1960]
Fixed the AttributeError exception that was raised when using astropy.wcs.WCS.footprint_to_file. [#1912]
Fixed a NameError exception that was raised when using astropy.wcs.validate or the wcslint script. [#2053]
Fixed a bug where named WCSes may be erroneously reported as ' ' when using astropy.wcs.validate or the wcslint script. [#2053]
Fixed a bug where error messages about incorrect header keywords may not be propagated correctly, resulting in a “NULL error object in wcslib” message. [#2106]
Misc
General
A top-level configuration item, unicode_output has been added to control whether the Unicode string representation of certain objects will contain Unicode characters. For example, when use_unicode is False (default):
>>> from astropy import units as u
>>> print(unicode(u.degree))
deg
When use_unicode is True:
>>> from astropy import units as u
>>> print(unicode(u.degree))
°
See handling-unicode for more information. [#1441]
astropy.convolution
astropy.coordinates
astropy.cosmology
astropy.io.ascii
astropy.io.fits
astropy.io.votable
astropy.modeling
astropy.stats
astropy.table
astropy.time
astropy.units
astropy.vo
astropy.wcs
astropy.utils
astropy.extern.six
Astropy now uses the ERFA library instead of the IAU SOFA library for fundamental time transformation routines. The ERFA library is derived, with permission, from the IAU SOFA library but is distributed under a BSD license. See license/ERFA.rst for details. [#1293]
astropy.logger
General
astropy.coordinates
astropy.cosmology
astropy.io.ascii
astropy.io.fits
astropy.io.registry
astropy.io.votable
astropy.nddata
astropy.stats.funcs
astropy.table
astropy.time
astropy.units
astropy.wcs
For those including the astropy.wcs C headers in their project, they should now include it as:
#include “astropy_wcs/astropy_wcs_api.h”
instead of:
#include “astropy_wcs_api.h”
[#1631]
The --enable-legacy option for setup.py has been removed. [#1493]
astropy.io.ascii
astropy.io.fits
- Binary tables containing compressed images may, optionally, contain other columns unrelated to the tile compression convention. Although this is an uncommon use case, it is permitted by the standard.
- Reworked some of the file I/O routines to allow simpler, more consistent mapping between OS-level file modes (‘rb’, ‘wb’, ‘ab’, etc.) and the more “PyFITS-specific” modes used by PyFITS like “readonly” and “update”. That is, if reading a FITS file from an open file object, it doesn’t matter as much what “mode” it was opened in so long as it has the right capabilities (read/write/etc.) Also works around bugs in the Python io module in 2.6+ with regard to file modes.
- Fixed a long-standing issue where writing binary tables did not correctly write the TFORMn keywords for variable-length array columns (they omitted the max array length parameter of the format). This was thought fixed in an earlier version, but it was only fixed for compressed image HDUs and not for binary tables in general.
astropy.nddata
astropy.table
astropy.time
astropy.wcs
astropy.units
Misc
This is a brief overview of the new features included in Astropy 0.2–please see the “What’s New” section of the documentation for more details.
astropy.coordinates
astropy.cosmology
astropy.table I/O infrastructure for custom readers/writers implemented. [#305]
New astropy.time sub-package. [#332]
New astropy.units sub-package that includes a class for units (astropy.units.Unit) and scalar quantities that have units (astropy.units.Quantity). [#370, #445]
This has the following effects on other sub-packages:
astropy.io.ascii
Generalized I/O infrastructure so that astropy.nddata can also have custom readers/writers [#659]
astropy.wcs