summaryrefslogtreecommitdiff
path: root/wcsutil/hstwcs.py
Commit message (Collapse)AuthorAgeFilesLines
* Redoing the r13221-13223 merge in the actual trunk now. This updates trunk ↵embray2011-06-221-451/+0
| | | | | | 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
* Updated `update_wcscorr()` to be more flexible and general-purpose. It canembray2011-04-061-6/+8
| | | | | | | | | now apply WCS keywords to the WCSCORR table even from extensions in a different file from the one containing the WCSCORR table. This might break any existing code using either it, or `archive_wcs_file()`.` git-svn-id: http://svn.stsci.edu/svn/ssb/stsci_python/stsci_python/trunk/stwcs@12397 fe389314-cf27-0410-b35b-8c050e845b92
* Various cleanup and small bug fixes. In particular, init_wcscorr() now ↵embray2011-04-051-63/+63
| | | | | | works what I believe to be 'correctly'--it applies all existing WCSs from the SCI extension headers to the new WCSCORR table in the correct order (wcs_key w/ 'O' first; extver). git-svn-id: http://svn.stsci.edu/svn/ssb/stsci_python/stsci_python/trunk/stwcs@12393 fe389314-cf27-0410-b35b-8c050e845b92
* The HSTWCS method 'wcs2header' was modified to append the SIP and IDC ↵hack2011-04-051-15/+14
| | | | | | | | | | | | distortion model keywords to the header using the '.update()' method instead of extending the header with a CardList. This corrected a problem with the CardList not fully updating the original header making the appended cards unaccessible using the dictionary lookup syntax. The logic for using the 'readModel()' method of HSTWCS was also improved to not try and read the IDCModel when no 'idctab' had been specified in the header. Finally, a small bug was fixed in the 'wcscorr' module for recognizing what rows are available for being updated so that the update will actually occur. git-svn-id: http://svn.stsci.edu/svn/ssb/stsci_python/stsci_python/trunk/stwcs@12392 fe389314-cf27-0410-b35b-8c050e845b92
* This update to the HSTWCS class in STWCS attempts to address a couple of ↵hack2011-03-171-4/+10
| | | | | | issues: namely, makes recognition of non-HST data more general (slightly) and only applies distortion model in all_sky2pix when it is present. The first change should allow HSTWCS to be run on data created with IRAF's artdata package/task. git-svn-id: http://svn.stsci.edu/svn/ssb/stsci_python/stsci_python/trunk/stwcs@12216 fe389314-cf27-0410-b35b-8c050e845b92
* revert r12062: put back all idc model keywords in the science headerdencheva2011-03-151-2/+1
| | | | git-svn-id: http://svn.stsci.edu/svn/ssb/stsci_python/stsci_python/trunk/stwcs@12194 fe389314-cf27-0410-b35b-8c050e845b92
* More changes to go with r12056dencheva2011-03-021-3/+8
| | | | git-svn-id: http://svn.stsci.edu/svn/ssb/stsci_python/stsci_python/trunk/stwcs@12069 fe389314-cf27-0410-b35b-8c050e845b92
* some of the IDC model kw are not used, do not store them in the header. Do ↵dencheva2011-03-011-1/+3
| | | | | | not archive ORIENTAT in alternate WCSs but recompute it every time a WCS is restored. git-svn-id: http://svn.stsci.edu/svn/ssb/stsci_python/stsci_python/trunk/stwcs@12062 fe389314-cf27-0410-b35b-8c050e845b92
* wcslib.wcsini populates the WCS struct which includes 'RESTFRQ' and ↵dencheva2011-02-281-0/+5
| | | | | | 'RESTWAV'. Remove them when writing it to headerhstwcs.py git-svn-id: http://svn.stsci.edu/svn/ssb/stsci_python/stsci_python/trunk/stwcs@12057 fe389314-cf27-0410-b35b-8c050e845b92
* Add some IDC model parameters to header. Use header.ascard instead of cardList()dencheva2011-02-281-9/+15
| | | | git-svn-id: http://svn.stsci.edu/svn/ssb/stsci_python/stsci_python/trunk/stwcs@12056 fe389314-cf27-0410-b35b-8c050e845b92
* Closes #674: updatewcs adds a keyword UPWCSVER to the primary header of the ↵dencheva2011-02-241-3/+1
| | | | | | flt file to record the version of STWCS used in the updates. In addition removed the __version__ string from hstwcs - we have decided to have only one version string for the entire package. git-svn-id: http://svn.stsci.edu/svn/ssb/stsci_python/stsci_python/trunk/stwcs@12011 fe389314-cf27-0410-b35b-8c050e845b92
* Fixed(?) circular import introduced into the HSTWCS module. hack2011-02-221-1/+3
| | | | git-svn-id: http://svn.stsci.edu/svn/ssb/stsci_python/stsci_python/trunk/stwcs@12005 fe389314-cf27-0410-b35b-8c050e845b92
* Made the new 'all_sky2pix()' method in HSTWCS dramatically faster, by ↵hack2011-02-221-15/+20
| | | | | | performing the fit in the linear pixel space rather than in decimal degrees on the sky. This allows the method to use a simple (limited) for loop for the iterations instead of a potentially infinite while loop, while generally requiring much fewer than 10 iterations as opposed to over 350 for the fit on the sky. The added complication, though, is that this method now relies on a linear WCS derived using the 'utils.output_wcs()' function. git-svn-id: http://svn.stsci.edu/svn/ssb/stsci_python/stsci_python/trunk/stwcs@12004 fe389314-cf27-0410-b35b-8c050e845b92
* The HSTWCS class of STWCS has been updated with a new method: all_sky2pix(). ↵hack2011-02-211-1/+84
| | | | | | This new method implements an iterative solution using the full distortion model to convert sky positions into pixel positions. The algorithm used was based on the code from drizzle's task 'tranback'. This method has been checked using WFC/IR image with SIP and ACS/HRC image with SIP+NPOLFILE such that the RA/Dec positions for a few random positions can be returned to within a delta close to the error limit (<<0.001 pixels). This also addresses Ticket #673. git-svn-id: http://svn.stsci.edu/svn/ssb/stsci_python/stsci_python/trunk/stwcs@12003 fe389314-cf27-0410-b35b-8c050e845b92
* Pulled the code which deals with input into a separate module. Changes to ↵dencheva2011-02-161-58/+29
| | | | | | the HSTWCS module are related to using it with headerlets, as well as with observations from other telescopes. git-svn-id: http://svn.stsci.edu/svn/ssb/stsci_python/stsci_python/trunk/stwcs@11958 fe389314-cf27-0410-b35b-8c050e845b92
* Added a method to update the scaledencheva2011-02-041-0/+7
| | | | git-svn-id: http://svn.stsci.edu/svn/ssb/stsci_python/stsci_python/trunk/stwcs@11869 fe389314-cf27-0410-b35b-8c050e845b92
* Added documentaiondencheva2010-09-301-57/+74
| | | | git-svn-id: http://svn.stsci.edu/svn/ssb/stsci_python/stsci_python/trunk/stwcs@10440 fe389314-cf27-0410-b35b-8c050e845b92
* Fixed a probelm with converting a PC to a CD matrix in alternate WCS'sdencheva2010-09-231-1/+1
| | | | git-svn-id: http://svn.stsci.edu/svn/ssb/stsci_python/stsci_python/trunk/stwcs@10381 fe389314-cf27-0410-b35b-8c050e845b92
* Corrected a mistake in previous checkindencheva2010-09-221-1/+1
| | | | git-svn-id: http://svn.stsci.edu/svn/ssb/stsci_python/stsci_python/trunk/stwcs@10373 fe389314-cf27-0410-b35b-8c050e845b92
* Refactored wcsutildencheva2010-09-221-0/+344
git-svn-id: http://svn.stsci.edu/svn/ssb/stsci_python/stsci_python/trunk/stwcs@10371 fe389314-cf27-0410-b35b-8c050e845b92