From 462577895390869011e5aeb22e6afdd55b95c008 Mon Sep 17 00:00:00 2001 From: hack Date: Tue, 5 Apr 2011 13:42:56 +0000 Subject: The HSTWCS method 'wcs2header' was modified to append the SIP and IDC 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 --- wcsutil/wcscorr.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'wcsutil/wcscorr.py') diff --git a/wcsutil/wcscorr.py b/wcsutil/wcscorr.py index cb0497b..1ff10c5 100644 --- a/wcsutil/wcscorr.py +++ b/wcsutil/wcscorr.py @@ -222,7 +222,7 @@ def update_wcscorr(fimg,hdr,selections=None): # Now, we need to merge this into the existing table old_table = fimg['WCSCORR'] - rowind = find_wcscorr_row(old_table.data,{'wcs_id':' '}) + rowind = find_wcscorr_row(old_table.data,{'wcs_id':''}) old_nrows = np.where(rowind)[0][0] # check to see if there is room for the new row -- cgit