summaryrefslogtreecommitdiff
path: root/updatewcs
Commit message (Collapse)AuthorAgeFilesLines
* Redoing the r13221-13223 merge in the actual trunk now. This updates trunk ↵embray2011-06-227-1647/+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
* Initially the log file was defined at the top level. Moved it to updatewcs ↵dencheva2011-06-021-0/+6
| | | | | | 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
* A couple of small updates to STWCS.UPDATEWCS which avoid problems when ↵hack2011-04-292-1/+16
| | | | | | working with NICMOS and WFPC2 data; specifically, avoiding applying TDD correction to non-ACS data and updating the header with the UPWCSVER keyword when no HISTORY keywords are present. The changes were tested manually against ACS/WFC data (with and without TDD corrections), WFPC2 image, and a NICMOS image. git-svn-id: http://svn.stsci.edu/svn/ssb/stsci_python/stsci_python/trunk/stwcs@12684 fe389314-cf27-0410-b35b-8c050e845b92
* Updated `update_wcscorr()` to be more flexible and general-purpose. It canembray2011-04-061-52/+52
| | | | | | | | | 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
* Fixed a problem with TDDCorr handling in the 'zero_point_corr()' classmethod ↵hack2011-03-171-1/+2
| | | | | | in updatewcs.makewcs to allow WFC3 data (at least) process successfully. git-svn-id: http://svn.stsci.edu/svn/ssb/stsci_python/stsci_python/trunk/stwcs@12214 fe389314-cf27-0410-b35b-8c050e845b92
* Adding logging to updatewcsdencheva2011-03-116-39/+90
| | | | git-svn-id: http://svn.stsci.edu/svn/ssb/stsci_python/stsci_python/trunk/stwcs@12183 fe389314-cf27-0410-b35b-8c050e845b92
* No code changes, only name changes - all occurences of 'dgeo' changed to 'npol'dencheva2011-03-075-359/+48
| | | | git-svn-id: http://svn.stsci.edu/svn/ssb/stsci_python/stsci_python/trunk/stwcs@12119 fe389314-cf27-0410-b35b-8c050e845b92
* Renamed dgeo to npoldencheva2011-03-071-0/+311
| | | | git-svn-id: http://svn.stsci.edu/svn/ssb/stsci_python/stsci_python/trunk/stwcs@12118 fe389314-cf27-0410-b35b-8c050e845b92
* Closes #674: updatewcs adds a keyword UPWCSVER to the primary header of the ↵dencheva2011-02-241-2/+4
| | | | | | 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
* Make sure the input to checkFiles is a listdencheva2010-12-171-0/+3
| | | | git-svn-id: http://svn.stsci.edu/svn/ssb/stsci_python/stsci_python/trunk/stwcs@11451 fe389314-cf27-0410-b35b-8c050e845b92
* Initial fix for #637, will change this later.dencheva2010-12-131-1/+1
| | | | git-svn-id: http://svn.stsci.edu/svn/ssb/stsci_python/stsci_python/trunk/stwcs@11373 fe389314-cf27-0410-b35b-8c050e845b92
* Fixed getNrefchip for instruments which don't have CCDCHIP keyword. Tested ↵dencheva2010-12-131-40/+46
| | | | | | for all instrument/detector configurations git-svn-id: http://svn.stsci.edu/svn/ssb/stsci_python/stsci_python/trunk/stwcs@11372 fe389314-cf27-0410-b35b-8c050e845b92
* Reworked getNrefchip to make it independent of the order of the fits extensionsdencheva2010-11-191-18/+42
| | | | git-svn-id: http://svn.stsci.edu/svn/ssb/stsci_python/stsci_python/trunk/stwcs@11210 fe389314-cf27-0410-b35b-8c050e845b92
* One version string for the packagedencheva2010-10-141-2/+0
| | | | git-svn-id: http://svn.stsci.edu/svn/ssb/stsci_python/stsci_python/trunk/stwcs@10536 fe389314-cf27-0410-b35b-8c050e845b92
* More docsdencheva2010-10-115-39/+89
| | | | git-svn-id: http://svn.stsci.edu/svn/ssb/stsci_python/stsci_python/trunk/stwcs@10521 fe389314-cf27-0410-b35b-8c050e845b92
* Added documentaiondencheva2010-09-304-43/+61
| | | | git-svn-id: http://svn.stsci.edu/svn/ssb/stsci_python/stsci_python/trunk/stwcs@10441 fe389314-cf27-0410-b35b-8c050e845b92
* Fixed a typodencheva2010-09-241-1/+1
| | | | git-svn-id: http://svn.stsci.edu/svn/ssb/stsci_python/stsci_python/trunk/stwcs@10417 fe389314-cf27-0410-b35b-8c050e845b92
* git-svn-id: ↵dencheva2010-09-231-4/+4
| | | | http://svn.stsci.edu/svn/ssb/stsci_python/stsci_python/trunk/stwcs@10385 fe389314-cf27-0410-b35b-8c050e845b92
* Moved deleteing of WCS's when a new idctab is detected to updatewcsdencheva2010-09-232-25/+27
| | | | git-svn-id: http://svn.stsci.edu/svn/ssb/stsci_python/stsci_python/trunk/stwcs@10384 fe389314-cf27-0410-b35b-8c050e845b92
* Made ext a required parameter for all file level functionsdencheva2010-09-231-5/+10
| | | | git-svn-id: http://svn.stsci.edu/svn/ssb/stsci_python/stsci_python/trunk/stwcs@10383 fe389314-cf27-0410-b35b-8c050e845b92
* One more incorrect import statementdencheva2010-09-231-1/+1
| | | | git-svn-id: http://svn.stsci.edu/svn/ssb/stsci_python/stsci_python/trunk/stwcs@10380 fe389314-cf27-0410-b35b-8c050e845b92
* Addresses #609 - deletes all alternate WCS's (except the original OPUS obne) ↵dencheva2010-09-222-3/+5
| | | | | | if a new idc table is detected. git-svn-id: http://svn.stsci.edu/svn/ssb/stsci_python/stsci_python/trunk/stwcs@10376 fe389314-cf27-0410-b35b-8c050e845b92
* Moved utils from stwcs to updatewcsdencheva2010-09-225-4/+32
| | | | 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-222-48/+91
| | | | | | 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
* Added nicmos extension names. Removed extraneous cextver variable which was ↵dencheva2010-09-101-2/+1
| | | | | | causing upatewcs to break at the wcscorr binary table. git-svn-id: http://svn.stsci.edu/svn/ssb/stsci_python/stsci_python/trunk/stwcs@10302 fe389314-cf27-0410-b35b-8c050e845b92
* Added parameters to updatewcs to allow the primary WCS to be archived under ↵dencheva2010-09-091-9/+36
| | | | | | 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-311-18/+48
| | | | git-svn-id: http://svn.stsci.edu/svn/ssb/stsci_python/stsci_python/trunk/stwcs@10201 fe389314-cf27-0410-b35b-8c050e845b92
* Should call repr instead of str which inserts \ndencheva2010-07-161-4/+4
| | | | git-svn-id: http://svn.stsci.edu/svn/ssb/stsci_python/stsci_python/trunk/stwcs@9877 fe389314-cf27-0410-b35b-8c050e845b92
* Keeping up with changes in pywcsdencheva2010-07-151-2/+6
| | | | git-svn-id: http://svn.stsci.edu/svn/ssb/stsci_python/stsci_python/trunk/stwcs@9843 fe389314-cf27-0410-b35b-8c050e845b92
* Pywcs was changed not to set the WCS values for a default object (header is ↵dencheva2010-07-142-6/+6
| | | | | | None) and these are the corresponing changes in wcsutil.And some other minor bug fixes. git-svn-id: http://svn.stsci.edu/svn/ssb/stsci_python/stsci_python/trunk/stwcs@9839 fe389314-cf27-0410-b35b-8c050e845b92
* The logic for printing out the warning message about using the hard-coded ↵hack2010-06-151-15/+17
| | | | | | TDD coeffs in STWCS.updatewcs has been slightly revised to only print the message for post-SM4 data, as per Andy's request. WJH git-svn-id: http://svn.stsci.edu/svn/ssb/stsci_python/stsci_python/trunk/stwcs@9675 fe389314-cf27-0410-b35b-8c050e845b92
* The default value for 'skew_coeffs' in STWCS.distortion.mutil needed to be ↵hack2010-05-261-1/+1
| | | | | | reset to None so that logic in STWCS.updatewcs.corrections can recognize that there are no TDD coefficients available from the IDCTAB for use. The default set of skew_coeffs in STWCS.updatewcs needed to be updated to include the TDDORDER key and value with a default value of 1 as appropriate for the hard-coded default coeffs. These changes were needed to allow betadrizzle/updatewcs to work correctly with IDCTAB files which do not yet have the TDD coeffs in the PRIMARY header. WJH git-svn-id: http://svn.stsci.edu/svn/ssb/stsci_python/stsci_python/trunk/stwcs@9438 fe389314-cf27-0410-b35b-8c050e845b92
* Addresses ticket #563dencheva2010-05-211-9/+39
| | | | git-svn-id: http://svn.stsci.edu/svn/ssb/stsci_python/stsci_python/trunk/stwcs@9431 fe389314-cf27-0410-b35b-8c050e845b92
* Checked in test code by mistake previouslydencheva2010-03-161-2/+2
| | | | git-svn-id: http://svn.stsci.edu/svn/ssb/stsci_python/stsci_python/trunk/stwcs@8914 fe389314-cf27-0410-b35b-8c050e845b92
* CDELT is the stepsize of the subsampled full-size dgeo file and is recorded ↵dencheva2010-03-152-13/+11
| | | | | | in the header of the npl file. It is copied from there to the WCSDVARR extension header. git-svn-id: http://svn.stsci.edu/svn/ssb/stsci_python/stsci_python/trunk/stwcs@8912 fe389314-cf27-0410-b35b-8c050e845b92
* Modified 'updatewcs' in 'stwcs' to report the CRPIX value corrected for the ↵hack2010-03-051-2/+4
| | | | | | additional pixel in the NAXIS. This correction was tested using a the artificial DGEOFILE generation code added to 'reftools.test_small_dgeo'. WJH git-svn-id: http://svn.stsci.edu/svn/ssb/stsci_python/stsci_python/trunk/stwcs@8834 fe389314-cf27-0410-b35b-8c050e845b92
* Corrected a reference to pyfits HDUList objectsdencheva2010-02-182-2/+2
| | | | git-svn-id: http://svn.stsci.edu/svn/ssb/stsci_python/stsci_python/trunk/stwcs@8757 fe389314-cf27-0410-b35b-8c050e845b92
* The dgeo module in stwcs.updatewcs was revised to create header keywords for ↵hack2010-02-171-3/+3
| | | | | | the WCSDVARR extensions that properly match the sampling of the table to the full size image. The computations for the CDELT and CRPIX keywords were the only ones affected. WJH git-svn-id: http://svn.stsci.edu/svn/ssb/stsci_python/stsci_python/trunk/stwcs@8755 fe389314-cf27-0410-b35b-8c050e845b92
* Addressed #507dencheva2010-02-013-69/+74
| | | | git-svn-id: http://svn.stsci.edu/svn/ssb/stsci_python/stsci_python/trunk/stwcs@8694 fe389314-cf27-0410-b35b-8c050e845b92
* - If idc table is not found and idc model cannot be restored from SIP, ↵dencheva2010-01-251-1/+5
| | | | | | | | | | | | idcmodel is always set to None. - Two cases are considered when output_wcs is created and idcmodel for the reference image is None: -- if idcmodel can be found, a RuntimeError will be raised and the user prompted to run 'updatewcs' or pass 'undistort=False' kw. -- if idcmodel cannot be found, the original WCS for the reference object will be returned and used as an output WCS. git-svn-id: http://svn.stsci.edu/svn/ssb/stsci_python/stsci_python/trunk/stwcs@8640 fe389314-cf27-0410-b35b-8c050e845b92
* Check if correction is in the list of corrections before removing it.dencheva2010-01-221-3/+4
| | | | git-svn-id: http://svn.stsci.edu/svn/ssb/stsci_python/stsci_python/trunk/stwcs@8635 fe389314-cf27-0410-b35b-8c050e845b92
* alignwcs is not going to be useddencheva2009-12-231-95/+0
| | | | git-svn-id: http://svn.stsci.edu/svn/ssb/stsci_python/stsci_python/trunk/stwcs@8520 fe389314-cf27-0410-b35b-8c050e845b92
* set type to float64dencheva2009-12-231-3/+3
| | | | git-svn-id: http://svn.stsci.edu/svn/ssb/stsci_python/stsci_python/trunk/stwcs@8519 fe389314-cf27-0410-b35b-8c050e845b92
* Use 'import numpy as np' and a fix to a header commentdencheva2009-12-232-11/+11
| | | | git-svn-id: http://svn.stsci.edu/svn/ssb/stsci_python/stsci_python/trunk/stwcs@8518 fe389314-cf27-0410-b35b-8c050e845b92
* 'from __future__ import division' changesdencheva2009-12-236-1/+13
| | | | git-svn-id: http://svn.stsci.edu/svn/ssb/stsci_python/stsci_python/trunk/stwcs@8517 fe389314-cf27-0410-b35b-8c050e845b92
* removed a print statementdencheva2009-12-221-1/+0
| | | | git-svn-id: http://svn.stsci.edu/svn/ssb/stsci_python/stsci_python/trunk/stwcs@8516 fe389314-cf27-0410-b35b-8c050e845b92
* Comments and minor correctionsdencheva2009-12-222-18/+36
| | | | git-svn-id: http://svn.stsci.edu/svn/ssb/stsci_python/stsci_python/trunk/stwcs@8515 fe389314-cf27-0410-b35b-8c050e845b92
* Update version numbersdencheva2009-12-221-1/+1
| | | | git-svn-id: http://svn.stsci.edu/svn/ssb/stsci_python/stsci_python/trunk/stwcs@8514 fe389314-cf27-0410-b35b-8c050e845b92
* Fix for missing kw CCDCHIP. Covered the case when IDCTAB kw is not present ↵dencheva2009-12-223-41/+85
| | | | | | or is not a valid file or is present but the file is missing on disk, in which case the idcmodel is restored from the SIP coefficients. git-svn-id: http://svn.stsci.edu/svn/ssb/stsci_python/stsci_python/trunk/stwcs@8513 fe389314-cf27-0410-b35b-8c050e845b92
* Added detector to image correction for WFPC2 datadencheva2009-12-211-1/+1
| | | | git-svn-id: http://svn.stsci.edu/svn/ssb/stsci_python/stsci_python/trunk/stwcs@8511 fe389314-cf27-0410-b35b-8c050e845b92