summaryrefslogtreecommitdiff
path: root/lib/stwcs/wcsutil
Commit message (Collapse)AuthorAgeFilesLines
...
* Updates to correct formatting problems with some exceptions in the headerlet ↵hack2011-10-272-55/+72
| | | | | | 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
* Modified isWCSIdentical to accept IRAF style extension syntaxdencheva2011-10-261-13/+39
| | | | git-svn-id: http://svn.stsci.edu/svn/ssb/stsci_python/stsci_python/trunk/stwcs@13913 fe389314-cf27-0410-b35b-8c050e845b92
* The WCSDVARR extensions included in the headerlet by 'create_headerlet' now ↵hack2011-10-261-6/+11
| | | | | | only includes those extensions associated with the SCI extension being included in the headerlet. git-svn-id: http://svn.stsci.edu/svn/ssb/stsci_python/stsci_python/trunk/stwcs@13912 fe389314-cf27-0410-b35b-8c050e845b92
* The headerlet module was revised to fix the following issues:hack2011-10-262-12/+22
| | | | | | | | | | | - '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-254-337/+1994
| | | | | | 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
* The .size() method on HDUs is a property now, so updating to reflect that so ↵embray2011-10-071-53/+52
| | | | | | this doesn't break with the PyFITS changes from trunk git-svn-id: http://svn.stsci.edu/svn/ssb/stsci_python/stsci_python/trunk/stwcs@13882 fe389314-cf27-0410-b35b-8c050e845b92
* fix except..assienkiew2011-09-151-1/+1
| | | | git-svn-id: http://svn.stsci.edu/svn/ssb/stsci_python/stsci_python/trunk/stwcs@13787 fe389314-cf27-0410-b35b-8c050e845b92
* python 2.5 compatibility (no "as" in exception)sienkiew2011-09-121-1/+1
| | | | git-svn-id: http://svn.stsci.edu/svn/ssb/stsci_python/stsci_python/trunk/stwcs@13782 fe389314-cf27-0410-b35b-8c050e845b92
* A new create_headerlet method to match the requirements in the new documentdencheva2011-08-191-138/+262
| | | | git-svn-id: http://svn.stsci.edu/svn/ssb/stsci_python/stsci_python/trunk/stwcs@13643 fe389314-cf27-0410-b35b-8c050e845b92
* don't try to update the old idc table keywords if they don't exist (as in ↵dencheva2011-08-191-1/+2
| | | | | | 'ERR' extensions git-svn-id: http://svn.stsci.edu/svn/ssb/stsci_python/stsci_python/trunk/stwcs@13642 fe389314-cf27-0410-b35b-8c050e845b92
* A fix for computing the WCS of polarizer data. This software change requires ↵dencheva2011-08-191-2/+24
| | | | | | also a change to and a new delivery of the IDC table for polarizer data. Tested with a private version of IDCTAB. git-svn-id: http://svn.stsci.edu/svn/ssb/stsci_python/stsci_python/trunk/stwcs@13639 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
* A problem with the logic initializing the WCSCORR table when no alternate ↵hack2011-08-091-1/+2
| | | | | | WCS's exist has been fixed. git-svn-id: http://svn.stsci.edu/svn/ssb/stsci_python/stsci_python/trunk/stwcs@13554 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
* Fixes something I broke in r13329. Didn't realize that siphdr was the ↵embray2011-07-111-4/+4
| | | | | | CardList and not a Header. Another example of the Header API being not great... git-svn-id: http://svn.stsci.edu/svn/ssb/stsci_python/stsci_python/trunk/stwcs@13332 fe389314-cf27-0410-b35b-8c050e845b92
* Updated the headerlet module to work with the new version of pyfits in ↵embray2011-07-071-106/+73
| | | | | | trunk. Some additional minor cleanup. git-svn-id: http://svn.stsci.edu/svn/ssb/stsci_python/stsci_python/trunk/stwcs@13329 fe389314-cf27-0410-b35b-8c050e845b92
* Redoing the r13221-13223 merge in the actual trunk now. This updates trunk ↵embray2011-06-2210-0/+3006
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