summaryrefslogtreecommitdiff
path: root/lib
Commit message (Collapse)AuthorAgeFilesLines
...
* 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
* Refined the definition of the 'SIPNAME' and 'DISTNAME' keyword values to ↵hack2011-08-301-2/+3
| | | | | | properly reflect that the distortion model is specific to each input image. git-svn-id: http://svn.stsci.edu/svn/ssb/stsci_python/stsci_python/trunk/stwcs@13698 fe389314-cf27-0410-b35b-8c050e845b92
* The 'createDgeoHDU' and 'createNpolHDU' methods in 'udpatewcs' were updated ↵hack2011-08-192-2/+29
| | | | | | to also include header keywords from the reference file's primary header. This information will provide the user with the source of the calibration data. git-svn-id: http://svn.stsci.edu/svn/ssb/stsci_python/stsci_python/trunk/stwcs@13649 fe389314-cf27-0410-b35b-8c050e845b92
* Corrected the generation of the WCSNAME keyword to use ↵hack2011-08-191-1/+1
| | | | | | 'utils.extract_rootname', so that the same conventions can be used and to eliminate problems that generate values such as 'IDC_./n7n18501j'. git-svn-id: http://svn.stsci.edu/svn/ssb/stsci_python/stsci_python/trunk/stwcs@13647 fe389314-cf27-0410-b35b-8c050e845b92
* update the values of the idctab coefficients in the SCi extension header ↵dencheva2011-08-191-0/+4
| | | | | | when the coefficients are shifted in subarray mode git-svn-id: http://svn.stsci.edu/svn/ssb/stsci_python/stsci_python/trunk/stwcs@13646 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
* Cleaning the model.shift methoddencheva2011-08-192-8/+9
| | | | git-svn-id: http://svn.stsci.edu/svn/ssb/stsci_python/stsci_python/trunk/stwcs@13641 fe389314-cf27-0410-b35b-8c050e845b92
* Revised how DISTNAME and SIPNAME are computed to meet requirements specified ↵hack2011-08-192-20/+66
| | | | | | by 8/11/2011 version of Headerlet Design document. The function 'compute_distname' was moved from __init__ to utils for use in other STWCS routines if necessary. git-svn-id: http://svn.stsci.edu/svn/ssb/stsci_python/stsci_python/trunk/stwcs@13640 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
* Coefficients from the idc table were not properly shifted when the data is ↵dencheva2011-08-181-5/+16
| | | | | | taken in subarray mode. git-svn-id: http://svn.stsci.edu/svn/ssb/stsci_python/stsci_python/trunk/stwcs@13637 fe389314-cf27-0410-b35b-8c050e845b92
* The code for 'updatewcs' was revised to correctly add the NPOL related ↵hack2011-08-151-2/+6
| | | | | | keywords to a science header which does not have any HISTORY keywords. This caused problems with data processed using the IMPHTTAB, as that code no longer reports the files used for the photometry keyword computation as HISTORY keywords. git-svn-id: http://svn.stsci.edu/svn/ssb/stsci_python/stsci_python/trunk/stwcs@13616 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
* Added additional keywords to headers to support alternate WCSs and headerlets.dencheva2011-08-091-1/+27
| | | | git-svn-id: http://svn.stsci.edu/svn/ssb/stsci_python/stsci_python/trunk/stwcs@13552 fe389314-cf27-0410-b35b-8c050e845b92
* Do not copy the recomputed primary WCS. Also removed parameters related to ↵dencheva2011-08-091-62/+12
| | | | | | this change - wcsname, wcskey, clobber. git-svn-id: http://svn.stsci.edu/svn/ssb/stsci_python/stsci_python/trunk/stwcs@13548 fe389314-cf27-0410-b35b-8c050e845b92
* Use reusekey=True in updatewcs to overwrite the 'A' key. This is necessary ↵dencheva2011-08-091-1/+2
| | | | | | in order to be able to repeatedly run updatewcs on files. git-svn-id: http://svn.stsci.edu/svn/ssb/stsci_python/stsci_python/trunk/stwcs@13545 fe389314-cf27-0410-b35b-8c050e845b92
* Added pywcs version to headersdencheva2011-08-081-9/+15
| | | | git-svn-id: http://svn.stsci.edu/svn/ssb/stsci_python/stsci_python/trunk/stwcs@13539 fe389314-cf27-0410-b35b-8c050e845b92
* Removed parameter clobber in restoreWCS, so that it always overwrites the ↵dencheva2011-08-082-50/+33
| | | | | | 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
* this change to updatewcs goes with r13513dencheva2011-08-051-3/+4
| | | | git-svn-id: http://svn.stsci.edu/svn/ssb/stsci_python/stsci_python/trunk/stwcs@13516 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
* static version numbers in __init__sienkiew2011-08-011-8/+12
| | | | git-svn-id: http://svn.stsci.edu/svn/ssb/stsci_python/stsci_python/trunk/stwcs@13441 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
* Updated packages to use the svn_info hooks, and to get their version numbers ↵embray2011-07-071-11/+25
| | | | | | from pkg_resources. I only did this with packages that were already using __svn_version__, __full_svn_info__, etc. to begin with. git-svn-id: http://svn.stsci.edu/svn/ssb/stsci_python/stsci_python/trunk/stwcs@13327 fe389314-cf27-0410-b35b-8c050e845b92
* don't use private attributesdencheva2011-06-271-3/+3
| | | | git-svn-id: http://svn.stsci.edu/svn/ssb/stsci_python/stsci_python/trunk/stwcs@13266 fe389314-cf27-0410-b35b-8c050e845b92
* Redoing the r13221-13223 merge in the actual trunk now. This updates trunk ↵embray2011-06-2223-1/+6023
| | | | | | 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
* Initially the log file was defined at the top level. Moved it to updatewcs ↵dencheva2011-06-021-10/+0
| | | | | | to avoid creating an empty file when logging is not requested. git-svn-id: http://svn.stsci.edu/svn/ssb/stsci_python/stsci_python/trunk/stwcs@12996 fe389314-cf27-0410-b35b-8c050e845b92
* Adding logging to updatewcsdencheva2011-03-111-3/+10
| | | | git-svn-id: http://svn.stsci.edu/svn/ssb/stsci_python/stsci_python/trunk/stwcs@12183 fe389314-cf27-0410-b35b-8c050e845b92
* One version string for the packagedencheva2010-10-141-0/+2
| | | | git-svn-id: http://svn.stsci.edu/svn/ssb/stsci_python/stsci_python/trunk/stwcs@10536 fe389314-cf27-0410-b35b-8c050e845b92
* More docsdencheva2010-10-111-0/+11
| | | | git-svn-id: http://svn.stsci.edu/svn/ssb/stsci_python/stsci_python/trunk/stwcs@10521 fe389314-cf27-0410-b35b-8c050e845b92
* Remove incorrect import dencheva2010-09-231-1/+1
| | | | git-svn-id: http://svn.stsci.edu/svn/ssb/stsci_python/stsci_python/trunk/stwcs@10378 fe389314-cf27-0410-b35b-8c050e845b92
* Moved utils from stwcs to updatewcsdencheva2010-09-221-28/+0
| | | | git-svn-id: http://svn.stsci.edu/svn/ssb/stsci_python/stsci_python/trunk/stwcs@10375 fe389314-cf27-0410-b35b-8c050e845b92
* Changes to updatewcs which correspond to the refactored wcsutil and deal ↵dencheva2010-09-221-200/+0
| | | | | | with alternate WCS descriptions git-svn-id: http://svn.stsci.edu/svn/ssb/stsci_python/stsci_python/trunk/stwcs@10372 fe389314-cf27-0410-b35b-8c050e845b92
* Corrected a problem with input header created with the last checkin.dencheva2010-09-151-2/+2
| | | | git-svn-id: http://svn.stsci.edu/svn/ssb/stsci_python/stsci_python/trunk/stwcs@10316 fe389314-cf27-0410-b35b-8c050e845b92
* Added parameters to updatewcs to allow the primary WCS to be archived under ↵dencheva2010-09-091-9/+14
| | | | | | an arbitrary name. Corrected bugs. git-svn-id: http://svn.stsci.edu/svn/ssb/stsci_python/stsci_python/trunk/stwcs@10267 fe389314-cf27-0410-b35b-8c050e845b92
* Wcskey and alternate WCS used now in stwcsdencheva2010-08-312-54/+175
| | | | git-svn-id: http://svn.stsci.edu/svn/ssb/stsci_python/stsci_python/trunk/stwcs@10201 fe389314-cf27-0410-b35b-8c050e845b92
* 'from __future__ import division' changesdencheva2009-12-232-2/+6
| | | | git-svn-id: http://svn.stsci.edu/svn/ssb/stsci_python/stsci_python/trunk/stwcs@8517 fe389314-cf27-0410-b35b-8c050e845b92
* Minor refactoring and cleaning; fixed a problem when ORIENTAT is not present ↵dencheva2009-12-181-1/+4
| | | | | | in the header. Tests against makewcs pass for all instruments. git-svn-id: http://svn.stsci.edu/svn/ssb/stsci_python/stsci_python/trunk/stwcs@8507 fe389314-cf27-0410-b35b-8c050e845b92
* Once more - dgeo correction for binned imagesdencheva2009-10-151-1/+11
| | | | git-svn-id: http://svn.stsci.edu/svn/ssb/stsci_python/stsci_python/trunk/stwcs@8343 fe389314-cf27-0410-b35b-8c050e845b92
* Added verison numbers and 'origin' kw to pywcs callsdencheva2009-02-051-0/+5
| | | | git-svn-id: http://svn.stsci.edu/svn/ssb/stsci_python/development/trunk/updatewcs@7523 fe389314-cf27-0410-b35b-8c050e845b92
* -Added SIP correction to look up tablesdencheva2008-12-163-41/+5
| | | | | | | | | -Changed CTYPE to reflect the use of SIP - mappings module was moved to wcsutil git-svn-id: http://svn.stsci.edu/svn/ssb/stsci_python/development/trunk/hstwcs@7381 fe389314-cf27-0410-b35b-8c050e845b92
* Added TDD correction to WCSdencheva2008-10-291-1/+6
| | | | git-svn-id: http://svn.stsci.edu/svn/ssb/stsci_python/development/trunk/hstwcs@7210 fe389314-cf27-0410-b35b-8c050e845b92
* Added keyword WCSCDATE - local time WCS archive was created to headerdencheva2008-10-271-2/+3
| | | | git-svn-id: http://svn.stsci.edu/svn/ssb/stsci_python/development/trunk/hstwcs@7203 fe389314-cf27-0410-b35b-8c050e845b92
* Added DGEOCorr to list of allowed corrections and NAXIS1/2 to list of kw to ↵dencheva2008-10-271-3/+3
| | | | | | be archived git-svn-id: http://svn.stsci.edu/svn/ssb/stsci_python/development/trunk/hstwcs@7202 fe389314-cf27-0410-b35b-8c050e845b92
* - HSTWCS class was modified to dencheva2008-08-222-43/+87
| | | | | | | | | | | | | | | | - not keep the headers as attributes - accept an adittional paramter fobj, consistent with SIP and WCS classes. - The restore method was renamed to get_archive and moved to utils - corrections classes: - updateWCS were turned into classmethods - diff_abgles was moved to utils - restoreWCS() was moved to utils git-svn-id: http://svn.stsci.edu/svn/ssb/stsci_python/development/trunk/hstwcs@6973 fe389314-cf27-0410-b35b-8c050e845b92
* moved hstwcs from general development repository to stsci_python/developmentdencheva2008-08-152-0/+85
git-svn-id: http://svn.stsci.edu/svn/ssb/stsci_python/development/trunk/hstwcs@6931 fe389314-cf27-0410-b35b-8c050e845b92