summaryrefslogtreecommitdiff
path: root/lib/stwcs/wcsutil/altwcs.py
Commit message (Collapse)AuthorAgeFilesLines
* restructure and add stwcs testsNadia Dencheva2016-08-041-758/+0
|
* delete all kwNadia Dencheva2016-07-311-1/+1
|
* Reverting r40221 - unintentionally checked in these changes.dencheva2015-05-221-1/+1
| | | | git-svn-id: http://svn.stsci.edu/svn/ssb/stsci_python/stwcs/trunk@40327 fe389314-cf27-0410-b35b-8c050e845b92
* fix a couple of typosdencheva2015-05-211-1/+1
| | | | git-svn-id: http://svn.stsci.edu/svn/ssb/stsci_python/stwcs/trunk@40221 fe389314-cf27-0410-b35b-8c050e845b92
* Fixed problems with python 2 to 3 conversionbsimon2015-05-211-3/+3
| | | | git-svn-id: http://svn.stsci.edu/svn/ssb/stsci_python/stwcs/trunk@40220 fe389314-cf27-0410-b35b-8c050e845b92
* Updated files to run under python 2 and 3bsimon2015-05-041-20/+20
| | | | git-svn-id: http://svn.stsci.edu/svn/ssb/stsci_python/stwcs/trunk@39775 fe389314-cf27-0410-b35b-8c050e845b92
* The logic in altwcs.getKeyFromName() was improved to correctly handle the ↵hack2014-10-131-2/+7
| | | | | | random ordering of keys in the wcsnames dict. This update supports the changes for Ticket #1165. git-svn-id: http://svn.stsci.edu/svn/ssb/stsci_python/stwcs/trunk@34873 fe389314-cf27-0410-b35b-8c050e845b92
* update to STWCS code to handle additional TDD coefficient for ACS: ↵hack2014-10-061-3/+2
| | | | | | specifically, TDD_CXA* and TDD_CXB*. git-svn-id: http://svn.stsci.edu/svn/ssb/stsci_python/stwcs/trunk@34759 fe389314-cf27-0410-b35b-8c050e845b92
* deleteWCS crashes when called on compressed FITS HDU (CompImageHDU) because ↵mcara2014-06-041-1/+2
| | | | | | | | | of a bug in CompImageHDU that does not allow `del` on non-existent header keywords. For more details see https://github.com/astropy/astropy/issues/2594 git-svn-id: http://svn.stsci.edu/svn/ssb/stsci_python/stwcs/trunk@32334 fe389314-cf27-0410-b35b-8c050e845b92
* STWCS v1.2.1: This version fixes a typo in altwcs._restore(), adds TDD_CYA ↵hack2014-05-231-1/+5
| | | | | | and TDD_CYB as new header keywords for 2014 TDD correction, and updated _restore() to reset those keywords to 0.0 everytime so that if TDDCORR=OMIT, it will be obvious. git-svn-id: http://svn.stsci.edu/svn/ssb/stsci_python/stwcs/trunk@31920 fe389314-cf27-0410-b35b-8c050e845b92
* further changes to move to astropydencheva2014-05-011-92/+95
| | | | git-svn-id: http://svn.stsci.edu/svn/ssb/stsci_python/stwcs/trunk@31270 fe389314-cf27-0410-b35b-8c050e845b92
* deal with pyfits/wcs deprecation wrningsdencheva2014-04-301-3/+5
| | | | git-svn-id: http://svn.stsci.edu/svn/ssb/stsci_python/stwcs/trunk@31259 fe389314-cf27-0410-b35b-8c050e845b92
* changes to use astropy instead of pyfits and pywcsdencheva2014-04-281-2/+4
| | | | git-svn-id: http://svn.stsci.edu/svn/ssb/stsci_python/stwcs/trunk@31240 fe389314-cf27-0410-b35b-8c050e845b92
* This update removes all references to .has_key() method, including those for ↵hack2013-04-301-2/+2
| | | | | | list and dict comprehension, but primarily to work with PyFITS 3.2.dev checked in on 29-Apr-2013. [Trac Ticket #1007] git-svn-id: http://svn.stsci.edu/svn/ssb/stsci_python/stwcs/trunk@24552 fe389314-cf27-0410-b35b-8c050e845b92
* fixed a problem with archiving a WCS in simple fits when wcsname is missingdencheva2012-04-181-1/+4
| | | | git-svn-id: http://svn.stsci.edu/svn/ssb/stsci_python/stsci_python/trunk/stwcs@16261 fe389314-cf27-0410-b35b-8c050e845b92
* Modified a few print statements in altwcs to make 'updatewcs' a little less ↵hack2012-04-171-7/+7
| | | | | | disconcerting for users to address an issue raised in astrodrizzle testing. git-svn-id: http://svn.stsci.edu/svn/ssb/stsci_python/stsci_python/trunk/stwcs@16258 fe389314-cf27-0410-b35b-8c050e845b92
* fix to archiveWCSdencheva2012-03-161-1/+3
| | | | git-svn-id: http://svn.stsci.edu/svn/ssb/stsci_python/stsci_python/trunk/stwcs@15729 fe389314-cf27-0410-b35b-8c050e845b92
* The primary wcs can have a WCSNAME, so if wcsname=' ' in the call to ↵dencheva2012-03-151-1/+3
| | | | | | archiveWCS, set wcsname to the one in the primary WCS git-svn-id: http://svn.stsci.edu/svn/ssb/stsci_python/stsci_python/trunk/stwcs@15625 fe389314-cf27-0410-b35b-8c050e845b92
* deleteWCS did not detect the case of a data array in the primary hdu when ↵dencheva2012-03-151-7/+2
| | | | | | the file is not simple fits. The file checking is more robust now. git-svn-id: http://svn.stsci.edu/svn/ssb/stsci_python/stsci_python/trunk/stwcs@15624 fe389314-cf27-0410-b35b-8c050e845b92
* Should fix most problems in stwcs due to pyfits Header updates. The main ↵embray2012-02-221-63/+63
| | | | | | issue that caused incompatibility is that slices of headers (including by wildcard patterns) now returns a new Header rather than a list of cards. git-svn-id: http://svn.stsci.edu/svn/ssb/stsci_python/stsci_python/trunk/stwcs@15198 fe389314-cf27-0410-b35b-8c050e845b92
* The 'archiveWCS' function in wcsutil.altwcs did not always find a WCSNAME, ↵hack2011-11-161-1/+14
| | | | | | especially when previous use of (older) updatewcs code did not define the keyword. A default name of 'DEFAULT' now gets defined when this code runs. This code was tested against the WFC3/IR data from the adrizzle test data. git-svn-id: http://svn.stsci.edu/svn/ssb/stsci_python/stsci_python/trunk/stwcs@14017 fe389314-cf27-0410-b35b-8c050e845b92
* 'ext' is now a required parameter so restoreWCS was split into two ↵dencheva2011-11-021-29/+86
| | | | | | functions, one of which requires from_ext and to_ext, but not ext. This function is necessary because of the requirement to always keep a copy of the primary WCS in ERR and DQ extensions of HST observations. git-svn-id: http://svn.stsci.edu/svn/ssb/stsci_python/stsci_python/trunk/stwcs@13936 fe389314-cf27-0410-b35b-8c050e845b92
* Updates to correct formatting problems with some exceptions in the headerlet ↵hack2011-10-271-30/+53
| | | | | | module, and to redefine the 'ext' parameter for altwcs functions (archive, restore and delete functions). git-svn-id: http://svn.stsci.edu/svn/ssb/stsci_python/stsci_python/trunk/stwcs@13914 fe389314-cf27-0410-b35b-8c050e845b92
* The headerlet module was revised to fix the following issues:hack2011-10-261-1/+1
| | | | | | | | | | | - 'sciext' default changed from None to 'SCI', while now accepting integer values to (try to) support creating headerlets from simple FITS files - added logic in 'create_headerlet' to not create a SIPWCS extension for a headerlet from a FITS extension which does not have a valid WCS (using hstwcs.wcs.is_unity()) - made update of 'ORIENTAT' optional (same with VAFACTOR) in creating a headerlet - fixed a bug in the logic in altwcs.archiveWCS that dealt with interpreting the PRIMARY WCS git-svn-id: http://svn.stsci.edu/svn/ssb/stsci_python/stsci_python/trunk/stwcs@13911 fe389314-cf27-0410-b35b-8c050e845b92
* Merging changes from 'stwcs_hdrlet' branch (r18787 - r13909) into trunk. ↵hack2011-10-251-29/+97
| | | | | | This version of STWCS (0.9.1) provides support for headerlets based on 'Headerlet Design' wiki document, and includes TEAL interfaces for all public headerlet functions. It also moves the TEAL interface for 'updatewcs' from 'astrodither' to this package. The TEAL interaces have been included as a new 'gui' sub-package in order to keep them separate from the remainder of the package's functionality. git-svn-id: http://svn.stsci.edu/svn/ssb/stsci_python/stsci_python/trunk/stwcs@13910 fe389314-cf27-0410-b35b-8c050e845b92
* (past) last minute check in - corrected aproblem when wcsname was ↵dencheva2011-08-101-4/+7
| | | | | | overwritten by an old value git-svn-id: http://svn.stsci.edu/svn/ssb/stsci_python/stsci_python/trunk/stwcs@13565 fe389314-cf27-0410-b35b-8c050e845b92
* Removed parameter clobber in restoreWCS, so that it always overwrites the ↵dencheva2011-08-081-46/+30
| | | | | | primary WCS. Not passing input parameter check now raises an Error. Not findong a wcskey raises a KeyError. git-svn-id: http://svn.stsci.edu/svn/ssb/stsci_python/stsci_python/trunk/stwcs@13537 fe389314-cf27-0410-b35b-8c050e845b92
* Changed archiveWCS to raise an error if reusekey is False and wcskey already ↵dencheva2011-08-081-25/+69
| | | | | | in use. Corrected docstrings. git-svn-id: http://svn.stsci.edu/svn/ssb/stsci_python/stsci_python/trunk/stwcs@13535 fe389314-cf27-0410-b35b-8c050e845b92
* correct type in previous commitdencheva2011-08-051-1/+1
| | | | git-svn-id: http://svn.stsci.edu/svn/ssb/stsci_python/stsci_python/trunk/stwcs@13515 fe389314-cf27-0410-b35b-8c050e845b92
* Almost a complete rewrite of altwcs, the goals being:dencheva2011-08-051-134/+231
| | | | | | | | | | | | | - make all public functions work with HDUList objects in memory (in addition to files) - make all public functions work with simple fits files - remove all HST specific assumptions (like extname values) git-svn-id: http://svn.stsci.edu/svn/ssb/stsci_python/stsci_python/trunk/stwcs@13513 fe389314-cf27-0410-b35b-8c050e845b92
* Redoing the r13221-13223 merge in the actual trunk now. This updates trunk ↵embray2011-06-221-0/+451
to the setup_refactoring branch (however, coords, pysynphot, and pywcs are still being pulled from the astrolib setup_refactoring branch. Will have to do that separately then update the svn:externals) git-svn-id: http://svn.stsci.edu/svn/ssb/stsci_python/stsci_python/trunk/stwcs@13225 fe389314-cf27-0410-b35b-8c050e845b92