summaryrefslogtreecommitdiff
path: root/wcsutil/wcscorr.py
Commit message (Collapse)AuthorAgeFilesLines
* Redoing the r13221-13223 merge in the actual trunk now. This updates trunk ↵embray2011-06-221-458/+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
* Minor update to wcscorr module to not try to create a WCSCORR table when ↵hack2011-05-111-0/+4
| | | | | | updating a simple FITS file. git-svn-id: http://svn.stsci.edu/svn/ssb/stsci_python/stsci_python/trunk/stwcs@12801 fe389314-cf27-0410-b35b-8c050e845b92
* Very minor change to the logic for determining when to add new rows to the ↵hack2011-05-041-1/+1
| | | | | | WCSCORR table to (try to) insure that the last row will always be blank for use in initializing the new empty rows which get added to the old table. git-svn-id: http://svn.stsci.edu/svn/ssb/stsci_python/stsci_python/trunk/stwcs@12718 fe389314-cf27-0410-b35b-8c050e845b92
* Further refinements to the WCSCORR code in STWCS to reduce the number of new ↵hack2011-05-031-6/+10
| | | | | | rows that gets added each time, and to maintain the same header information from one update to the next. git-svn-id: http://svn.stsci.edu/svn/ssb/stsci_python/stsci_python/trunk/stwcs@12715 fe389314-cf27-0410-b35b-8c050e845b92
* This update to STWCS includes the following revisions:hack2011-05-031-3/+5
| | | | | | | | | | | | | | - add EXTVER keyword to WCSCORR table extension in 'init_wcscorr()' - revised how pad rows are defined when creating a WCSCORR table - added logic to only work with NPOLFILE and D2IMFILE related keywords in input files that have been updated to use those reference files - added logic to only delete WCS's from IMAGE extensions to avoid problems of trying to delete a WCS from a table extension git-svn-id: http://svn.stsci.edu/svn/ssb/stsci_python/stsci_python/trunk/stwcs@12710 fe389314-cf27-0410-b35b-8c050e845b92
* This update to the 'wcscorr' modele in STWCS.WCSUTIL fixes a problem with ↵hack2011-04-231-4/+4
| | | | | | initializing the WCSCORR table, and in fact, the entire header by archiving the original WCS values if no WCS with wcskey='O' has already been created. This affects the usage of the 'init_wcscorr()' function. git-svn-id: http://svn.stsci.edu/svn/ssb/stsci_python/stsci_python/trunk/stwcs@12589 fe389314-cf27-0410-b35b-8c050e845b92
* Updated the 'wcscorr' module in stwcs.wcsutil to define the number of new ↵hack2011-04-211-1/+1
| | | | | | rows (pad_rows) to add to the table when there are not enough to record the new WCS solutions. git-svn-id: http://svn.stsci.edu/svn/ssb/stsci_python/stsci_python/trunk/stwcs@12529 fe389314-cf27-0410-b35b-8c050e845b92
* The logic for finding an empty (matching) row in ↵hack2011-04-121-3/+5
| | | | | | 'wcscorr.find_wcscorr_row()' was modified to strip blank characters from the end of each element before comparing. This allows the '==' comparison to actually match a blank string and find the rows to be filled. The fix allows the WFC3/IR demo datasets (8 WFC3/IR images) to be processed by betadrizzle. git-svn-id: http://svn.stsci.edu/svn/ssb/stsci_python/stsci_python/trunk/stwcs@12456 fe389314-cf27-0410-b35b-8c050e845b92
* Corrected a syntax problem with one of the new exception calls in ↵hack2011-04-071-1/+1
| | | | | | 'update_wcscorr'. git-svn-id: http://svn.stsci.edu/svn/ssb/stsci_python/stsci_python/trunk/stwcs@12402 fe389314-cf27-0410-b35b-8c050e845b92
* `Headerlet.apply()` now appends the headerlet of the original WCS to the *end*embray2011-04-061-2/+4
| | | | | | | | | | | | of the file's HDU list. And it now also applies the new headerlet to the HDU list under that, and update's the WCSCORR table with rows for the WCSs in the new headerlet. This should achieve most of the basic requirements for headerlet functionality, though I still need to look into reversing the application of a headerlet... git-svn-id: http://svn.stsci.edu/svn/ssb/stsci_python/stsci_python/trunk/stwcs@12398 fe389314-cf27-0410-b35b-8c050e845b92
* Updated `update_wcscorr()` to be more flexible and general-purpose. It canembray2011-04-061-49/+116
| | | | | | | | | 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-66/+107
| | | | | | 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-1/+1
| | | | | | | | | | | | 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
* Per Warren's suggestion, moved the wcscorr and convertwcs modules out of ↵embray2011-04-011-0/+336
betadrizzle and moved them into the stwcs.wcsutil package. Also cleaned up some imports and cleaned up some whitespace--might want to view this diff with ignore-whitespace. git-svn-id: http://svn.stsci.edu/svn/ssb/stsci_python/stsci_python/trunk/stwcs@12388 fe389314-cf27-0410-b35b-8c050e845b92