summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* Wcskey and alternate WCS used now in stwcsdencheva2010-08-314-101/+269
| | | | git-svn-id: http://svn.stsci.edu/svn/ssb/stsci_python/stsci_python/trunk/stwcs@10201 fe389314-cf27-0410-b35b-8c050e845b92
* Added a small correction which was accidentally dropped in the previous ↵dencheva2010-08-231-0/+6
| | | | | | debugging git-svn-id: http://svn.stsci.edu/svn/ssb/stsci_python/stsci_python/trunk/stwcs@10133 fe389314-cf27-0410-b35b-8c050e845b92
* Pywcs was changed not to set default values when header is not provided, so ↵dencheva2010-07-191-1/+1
| | | | | | setting ctype here. git-svn-id: http://svn.stsci.edu/svn/ssb/stsci_python/stsci_python/trunk/stwcs@9881 fe389314-cf27-0410-b35b-8c050e845b92
* Should call repr instead of str which inserts \ndencheva2010-07-163-8/+9
| | | | 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
* typo in previous check indencheva2010-07-141-9/+2
| | | | git-svn-id: http://svn.stsci.edu/svn/ssb/stsci_python/stsci_python/trunk/stwcs@9841 fe389314-cf27-0410-b35b-8c050e845b92
* Pywcs was changed not to set the WCS values for a default object (header is ↵dencheva2010-07-144-15/+25
| | | | | | 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
* Changed a warning statementdencheva2010-05-281-1/+1
| | | | git-svn-id: http://svn.stsci.edu/svn/ssb/stsci_python/stsci_python/trunk/stwcs@9483 fe389314-cf27-0410-b35b-8c050e845b92
* The default value for 'skew_coeffs' in STWCS.distortion.mutil needed to be ↵hack2010-05-262-2/+2
| | | | | | 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
* Removed commented out codedencheva2010-05-211-14/+1
| | | | git-svn-id: http://svn.stsci.edu/svn/ssb/stsci_python/stsci_python/trunk/stwcs@9432 fe389314-cf27-0410-b35b-8c050e845b92
* Addresses ticket #563dencheva2010-05-212-10/+92
| | | | 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-254-31/+71
| | | | | | | | | | | | 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
* Resolves #501: added an option to create an output WCS without applying the ↵dencheva2010-01-191-5/+11
| | | | | | distortion model. git-svn-id: http://svn.stsci.edu/svn/ssb/stsci_python/stsci_python/trunk/stwcs@8612 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-234-46/+46
| | | | 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-2315-5/+32
| | | | 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-223-19/+37
| | | | 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-222-2/+2
| | | | 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-225-52/+132
| | | | | | 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
* More code cleaningdencheva2009-12-181-24/+6
| | | | git-svn-id: http://svn.stsci.edu/svn/ssb/stsci_python/stsci_python/trunk/stwcs@8508 fe389314-cf27-0410-b35b-8c050e845b92
* Minor refactoring and cleaning; fixed a problem when ORIENTAT is not present ↵dencheva2009-12-185-67/+131
| | | | | | 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
* Corrected typo in 'stwcs.updatewcs.__init' function 'getNrefchip' to ↵hack2009-12-071-1/+1
| | | | | | recognize 'WFC' as the ACS detector, not 'WCS'. WJH git-svn-id: http://svn.stsci.edu/svn/ssb/stsci_python/stsci_python/trunk/stwcs@8476 fe389314-cf27-0410-b35b-8c050e845b92
* Allow arbitrary number of axes in a lookup tabledencheva2009-10-212-98/+81
| | | | git-svn-id: http://svn.stsci.edu/svn/ssb/stsci_python/stsci_python/trunk/stwcs@8365 fe389314-cf27-0410-b35b-8c050e845b92
* Once more - dgeo correction for binned imagesdencheva2009-10-153-27/+29
| | | | git-svn-id: http://svn.stsci.edu/svn/ssb/stsci_python/stsci_python/trunk/stwcs@8343 fe389314-cf27-0410-b35b-8c050e845b92
* Handle dgeo files for binned images using CDELTdencheva2009-10-141-7/+20
| | | | git-svn-id: http://svn.stsci.edu/svn/ssb/stsci_python/stsci_python/trunk/stwcs@8341 fe389314-cf27-0410-b35b-8c050e845b92
* Another attempt to get the correct dgeo extension using CCDCHIPdencheva2009-10-141-13/+48
| | | | git-svn-id: http://svn.stsci.edu/svn/ssb/stsci_python/stsci_python/trunk/stwcs@8340 fe389314-cf27-0410-b35b-8c050e845b92
* Use 'CCDCHIP', not 'EXTVER' when choosing the dgeo extensiondencheva2009-10-131-6/+18
| | | | git-svn-id: http://svn.stsci.edu/svn/ssb/stsci_python/stsci_python/trunk/stwcs@8336 fe389314-cf27-0410-b35b-8c050e845b92
* Changes to the WCSDVARR extension header which allow mapping of the dgeo ↵dencheva2009-10-132-18/+33
| | | | | | table to image coordinates when the science image is a subarray. git-svn-id: http://svn.stsci.edu/svn/ssb/stsci_python/stsci_python/trunk/stwcs@8334 fe389314-cf27-0410-b35b-8c050e845b92
* Added code to handle iraf environment variablesdencheva2009-10-011-2/+2
| | | | git-svn-id: http://svn.stsci.edu/svn/ssb/stsci_python/stsci_python/trunk/stwcs@8315 fe389314-cf27-0410-b35b-8c050e845b92
* Added code which allows to create an HSTWCS object without the requirement ↵dencheva2009-09-243-47/+43
| | | | | | to tie it to an instrument and detector (WCS headerlets). Also better handling of iraf type fits names git-svn-id: http://svn.stsci.edu/svn/ssb/stsci_python/stsci_python/trunk/stwcs@8308 fe389314-cf27-0410-b35b-8c050e845b92
* Modified logic for TDD correction, so that it is always applied for ACS/WFCdencheva2009-07-271-9/+3
| | | | git-svn-id: http://svn.stsci.edu/svn/ssb/stsci_python/stsci_python/trunk/stwcs@8163 fe389314-cf27-0410-b35b-8c050e845b92
* Removed code related to d2im correction. Changed the type of CDELT to be float.dencheva2009-07-272-14/+4
| | | | git-svn-id: http://svn.stsci.edu/svn/ssb/stsci_python/stsci_python/trunk/stwcs@8162 fe389314-cf27-0410-b35b-8c050e845b92
* Remove d2im support from stwcs, since it is now part of pywcs.mdroe2009-07-221-178/+48
| | | | git-svn-id: http://svn.stsci.edu/svn/ssb/stsci_python/stsci_python/trunk/stwcs@8151 fe389314-cf27-0410-b35b-8c050e845b92
* future division in various install/setup codesienkiew2009-06-032-0/+3
| | | | git-svn-id: http://svn.stsci.edu/svn/ssb/stsci_python/stsci_python/trunk/stwcs@8074 fe389314-cf27-0410-b35b-8c050e845b92
* Moved stwcs from develpment area to stsci_python to be included in the ↵dencheva2009-04-290-0/+0
| | | | | | nightly builds. git-svn-id: http://svn.stsci.edu/svn/ssb/stsci_python/stsci_python/trunk/stwcs@7980 fe389314-cf27-0410-b35b-8c050e845b92
* More name changesdencheva2009-04-296-9/+9
| | | | git-svn-id: http://svn.stsci.edu/svn/ssb/stsci_python/development/trunk/stwcs@7979 fe389314-cf27-0410-b35b-8c050e845b92
* Changed names dencheva2009-04-292-4/+4
| | | | git-svn-id: http://svn.stsci.edu/svn/ssb/stsci_python/development/trunk/stwcs@7977 fe389314-cf27-0410-b35b-8c050e845b92
* Renamed hstwcs to udpatewcsdencheva2009-04-297-0/+0
| | | | git-svn-id: http://svn.stsci.edu/svn/ssb/stsci_python/development/trunk/stwcs@7976 fe389314-cf27-0410-b35b-8c050e845b92
* Renaming packages:dencheva2009-04-290-0/+0
| | | | | | | | | updatewcs --> stwcs updatewcs.hstwcs --> updatewcs git-svn-id: http://svn.stsci.edu/svn/ssb/stsci_python/development/trunk/stwcs@7975 fe389314-cf27-0410-b35b-8c050e845b92