summaryrefslogtreecommitdiff
path: root/lib
Commit message (Collapse)AuthorAgeFilesLines
* restructure and add stwcs testsNadia Dencheva2016-08-0455-10634/+0
|
* delete all kwNadia Dencheva2016-07-311-1/+1
|
* Fix a problem with removing Lookup tale distortions.Nadia Dencheva2016-07-181-1/+1
|
* Merge branch 'opus_2015_3dms' (fixed conflicts)1.2.3Joseph Hunkeler2016-03-151-1/+1
|\
| * STWCS v1.2.3dev: Added wfpc2_dgeo module to updatewcs in order to integrate ↵hack2015-12-171-0/+102
| | | | | | | | | | | | the conversion of WFPC2 DGEOFILEs into D2IMFILEs when running updatewcs. This functionality has been moved from DrizzlePac v2.1.0rev47111 to get all operations to run in the correct order while keeping updatewcs and astrodrizzle/tweakreg functionality separated. WJH git-svn-id: http://svn.stsci.edu/svn/ssb/stsci_python/stwcs/branches/opus_2015_3dms@47114 fe389314-cf27-0410-b35b-8c050e845b92
| * STWCS v1.2.3dev: Added wfpc2_dgeo module to updatewcs in order to integrate ↵hack2015-12-171-1/+7
| | | | | | | | | | | | the conversion of WFPC2 DGEOFILEs into D2IMFILEs when running updatewcs. This functionality has been moved from DrizzlePac v2.1.0rev47111 to get all operations to run in the correct order while keeping updatewcs and astrodrizzle/tweakreg functionality separated. WJH git-svn-id: http://svn.stsci.edu/svn/ssb/stsci_python/stwcs/branches/opus_2015_3dms@47113 fe389314-cf27-0410-b35b-8c050e845b92
* | For WFPC2 only, stwcs should re-create missing d2imfile from ``ODGEOFIL`` if ↵mcara2016-02-231-4/+7
| | | | | | | | | | | | ``DGEOFILE`` was set to 'N/A'. See ticket #1244 for more details. git-svn-id: http://svn.stsci.edu/svn/ssb/stsci_python/stwcs/trunk@49347 fe389314-cf27-0410-b35b-8c050e845b92
* | Logic for setting D2IMFILE has been revised to allow updatewcs to be run ↵hack2015-12-181-1/+2
| | | | | | | | | | | | multiple times without causing problems. In this case, D2IMFILE only gets set if DGEOFILE needs to be changed or D2IMFILE is not there already. git-svn-id: http://svn.stsci.edu/svn/ssb/stsci_python/stwcs/trunk@47227 fe389314-cf27-0410-b35b-8c050e845b92
* | Docstring for user-interface to WFPC2 dgeo file conversion in updatewcs was ↵hack2015-12-171-0/+17
| | | | | | | | | | | | updated to better describe the inputs and return values. git-svn-id: http://svn.stsci.edu/svn/ssb/stsci_python/stwcs/trunk@47118 fe389314-cf27-0410-b35b-8c050e845b92
* | STWCS v1.2.3dev: Added wfpc2_dgeo module to updatewcs in order to integrate ↵hack2015-12-172-1/+109
|/ | | | | | the conversion of WFPC2 DGEOFILEs into D2IMFILEs when running updatewcs. This functionality has been moved from DrizzlePac v2.1.0rev47111 to get all operations to run in the correct order while keeping updatewcs and astrodrizzle/tweakreg functionality separated. WJH git-svn-id: http://svn.stsci.edu/svn/ssb/stsci_python/stwcs/trunk@47112 fe389314-cf27-0410-b35b-8c050e845b92
* Update to STWCS output_wcs(): This update forces output_wcs() to always ↵hack2015-10-231-2/+66
| | | | | | return a CD matrix that is orthogonal (cross-terms identical). This is needed to address Ticket #1182. git-svn-id: http://svn.stsci.edu/svn/ssb/stsci_python/stwcs/trunk@45804 fe389314-cf27-0410-b35b-8c050e845b92
* HSTWCS object was updated to read in 3 more keywords written out to the ↵hack2015-08-311-2/+2
| | | | | | image header by 'updatewcs'; namely, idcv2ref, idcv3ref, idctheta. This will allow for the computation of the 'troll' angle strictly from HSTWCS attributes without having to read in separate information from the header or from the IDCModel. git-svn-id: http://svn.stsci.edu/svn/ssb/stsci_python/stwcs/trunk@44009 fe389314-cf27-0410-b35b-8c050e845b92
* use absolute_import for python 2 and 3 compatibilitybsimon2015-08-141-1/+1
| | | | git-svn-id: http://svn.stsci.edu/svn/ssb/stsci_python/stwcs/trunk@43226 fe389314-cf27-0410-b35b-8c050e845b92
* convert string functions to methods for python 3 compatibilitybsimon2015-06-123-3/+0
| | | | git-svn-id: http://svn.stsci.edu/svn/ssb/stsci_python/stwcs/trunk@41178 fe389314-cf27-0410-b35b-8c050e845b92
* replaced string functions (lower, strip) with string methodsbsimon2015-06-051-8/+7
| | | | git-svn-id: http://svn.stsci.edu/svn/ssb/stsci_python/stwcs/trunk@40961 fe389314-cf27-0410-b35b-8c050e845b92
* Add RADESYS to headers. Fixed cleanWCS which was trying to delete WCS ↵dencheva2015-05-292-3/+33
| | | | | | keywords from the primary header and raising an error. Resolves #1173. git-svn-id: http://svn.stsci.edu/svn/ssb/stsci_python/stwcs/trunk@40546 fe389314-cf27-0410-b35b-8c050e845b92
* Resolves #1191dencheva2015-05-262-2/+35
| | | | git-svn-id: http://svn.stsci.edu/svn/ssb/stsci_python/stwcs/trunk@40436 fe389314-cf27-0410-b35b-8c050e845b92
* Raise an IOError if NPOLFILE or D2IMFILE keywords have values but the files ↵dencheva2015-05-263-8/+6
| | | | | | are not found on disk. Part of #1074 git-svn-id: http://svn.stsci.edu/svn/ssb/stsci_python/stwcs/trunk@40433 fe389314-cf27-0410-b35b-8c050e845b92
* Fixes #1074. Raises an IOError is IDCTAB file not found on disk. Tests added ↵dencheva2015-05-221-5/+22
| | | | | | too. git-svn-id: http://svn.stsci.edu/svn/ssb/stsci_python/stwcs/trunk@40328 fe389314-cf27-0410-b35b-8c050e845b92
* Reverting r40221 - unintentionally checked in these changes.dencheva2015-05-223-13/+7
| | | | git-svn-id: http://svn.stsci.edu/svn/ssb/stsci_python/stwcs/trunk@40327 fe389314-cf27-0410-b35b-8c050e845b92
* fix a couple of typosdencheva2015-05-213-7/+13
| | | | git-svn-id: http://svn.stsci.edu/svn/ssb/stsci_python/stwcs/trunk@40221 fe389314-cf27-0410-b35b-8c050e845b92
* Fixed problems with python 2 to 3 conversionbsimon2015-05-217-23/+25
| | | | git-svn-id: http://svn.stsci.edu/svn/ssb/stsci_python/stwcs/trunk@40220 fe389314-cf27-0410-b35b-8c050e845b92
* Update to ACS TDD apply_tdd2idc2015 code to eliminate use of zero-point from ↵hack2015-05-142-4/+7
| | | | | | header and to only optionally use TDD term based on its presence in the IDCTAB header. All this was done based on discussions with Vera about the calibrations. git-svn-id: http://svn.stsci.edu/svn/ssb/stsci_python/stwcs/trunk@39993 fe389314-cf27-0410-b35b-8c050e845b92
* Updated files to run under python 2 and 3bsimon2015-05-0426-255/+277
| | | | git-svn-id: http://svn.stsci.edu/svn/ssb/stsci_python/stwcs/trunk@39775 fe389314-cf27-0410-b35b-8c050e845b92
* Update STWCS with the latest code necessary to support the 'final' ↵hack2015-05-042-14/+75
| | | | | | velocity-aberration-corrected TDD calibrations for ACS. This continues to address Ticket #1108. git-svn-id: http://svn.stsci.edu/svn/ssb/stsci_python/stwcs/trunk@39773 fe389314-cf27-0410-b35b-8c050e845b92
* The logic in altwcs.getKeyFromName() was improved to correctly handle the ↵hack2014-10-131-2/+7
| | | | | | random ordering of keys in the wcsnames dict. This update supports the changes for Ticket #1165. git-svn-id: http://svn.stsci.edu/svn/ssb/stsci_python/stwcs/trunk@34873 fe389314-cf27-0410-b35b-8c050e845b92
* update to STWCS code to handle additional TDD coefficient for ACS: ↵hack2014-10-063-7/+28
| | | | | | specifically, TDD_CXA* and TDD_CXB*. git-svn-id: http://svn.stsci.edu/svn/ssb/stsci_python/stwcs/trunk@34759 fe389314-cf27-0410-b35b-8c050e845b92
* Minor updates to HSTWCS to allow it to provide a uniform interface to some ↵hack2014-09-221-2/+7
| | | | | | non-HST data as well as HST data. These changes only support data already supported by astropy.wcs and do not affect any aspect of HST support. No support for undistorting non-HST data should ever be implied or assumed. git-svn-id: http://svn.stsci.edu/svn/ssb/stsci_python/stwcs/trunk@34531 fe389314-cf27-0410-b35b-8c050e845b92
* deleteWCS crashes when called on compressed FITS HDU (CompImageHDU) because ↵mcara2014-06-041-1/+2
| | | | | | | | | of a bug in CompImageHDU that does not allow `del` on non-existent header keywords. For more details see https://github.com/astropy/astropy/issues/2594 git-svn-id: http://svn.stsci.edu/svn/ssb/stsci_python/stwcs/trunk@32334 fe389314-cf27-0410-b35b-8c050e845b92
* STWCS v1.2.1: This version fixes a typo in altwcs._restore(), adds TDD_CYA ↵hack2014-05-233-6/+16
| | | | | | and TDD_CYB as new header keywords for 2014 TDD correction, and updated _restore() to reset those keywords to 0.0 everytime so that if TDDCORR=OMIT, it will be obvious. git-svn-id: http://svn.stsci.edu/svn/ssb/stsci_python/stwcs/trunk@31920 fe389314-cf27-0410-b35b-8c050e845b92
* replace deprecateed methodsdencheva2014-05-023-10/+9
| | | | git-svn-id: http://svn.stsci.edu/svn/ssb/stsci_python/stwcs/trunk@31371 fe389314-cf27-0410-b35b-8c050e845b92
* fix a typo dencheva2014-05-021-1/+1
| | | | git-svn-id: http://svn.stsci.edu/svn/ssb/stsci_python/stwcs/trunk@31370 fe389314-cf27-0410-b35b-8c050e845b92
* Do not import pywcs or astropy.wcs in the top level stwcsdencheva2014-05-021-1/+0
| | | | git-svn-id: http://svn.stsci.edu/svn/ssb/stsci_python/stwcs/trunk@31369 fe389314-cf27-0410-b35b-8c050e845b92
* further changes to move to astropydencheva2014-05-0125-330/+307
| | | | git-svn-id: http://svn.stsci.edu/svn/ssb/stsci_python/stwcs/trunk@31270 fe389314-cf27-0410-b35b-8c050e845b92
* deal with pyfits/wcs deprecation wrningsdencheva2014-04-308-108/+100
| | | | git-svn-id: http://svn.stsci.edu/svn/ssb/stsci_python/stwcs/trunk@31259 fe389314-cf27-0410-b35b-8c050e845b92
* restore naxis1/2 propertydencheva2014-04-291-0/+16
| | | | git-svn-id: http://svn.stsci.edu/svn/ssb/stsci_python/stwcs/trunk@31253 fe389314-cf27-0410-b35b-8c050e845b92
* Restored 'wkey'->'key' - a change made by Nadia and overwritten by me.mcara2014-04-291-1/+1
| | | | git-svn-id: http://svn.stsci.edu/svn/ssb/stsci_python/stwcs/trunk@31252 fe389314-cf27-0410-b35b-8c050e845b92
* 1. Replaced `failed2converge` with a better name `slow_conv` in the ↵mcara2014-04-291-35/+31
| | | | | | | | | | | `NoConvergence` exception class; 2. Minor performance tweaking in the non-adaptive part of the code; 3. Added reference to the theory, numerical method, and algorithm description on the GitHub; 4. Fixed typos in the comments. git-svn-id: http://svn.stsci.edu/svn/ssb/stsci_python/stwcs/trunk@31251 fe389314-cf27-0410-b35b-8c050e845b92
* fix kwyword parameter namedencheva2014-04-291-1/+1
| | | | git-svn-id: http://svn.stsci.edu/svn/ssb/stsci_python/stwcs/trunk@31245 fe389314-cf27-0410-b35b-8c050e845b92
* changes to use astropy instead of pyfits and pywcsdencheva2014-04-2823-51/+71
| | | | git-svn-id: http://svn.stsci.edu/svn/ssb/stsci_python/stwcs/trunk@31240 fe389314-cf27-0410-b35b-8c050e845b92
* port changes from astropy.wcs - naxis1/2 are private now.dencheva2014-04-243-6/+22
| | | | git-svn-id: http://svn.stsci.edu/svn/ssb/stsci_python/stwcs/trunk@31128 fe389314-cf27-0410-b35b-8c050e845b92
* Minor simplification and improvement to the final check for ↵mcara2014-04-231-43/+50
| | | | | | diverging/invalid coordinates compared to r31125. Improvements/corrections in code formatting, comments, and help. git-svn-id: http://svn.stsci.edu/svn/ssb/stsci_python/stwcs/trunk@31126 fe389314-cf27-0410-b35b-8c050e845b92
* This revision improves upon changes made to the `all_sky2pix` in r31122 and ↵mcara2014-04-231-83/+271
| | | | | | | | | | r31123 that address issues described in ticket #1121 and ticket #1122, by implementing a more robust handling of the divergent solutions. The new parameter `detect_divergence` will allow to detect divergent solutions at each iteration. Now, even if `adaptive` is set to `False`, assuming `detect_divergence` is `True`, when divergent solutions are detected `all_sky2pix` will automatically switch from the highly efficient fully vectorized algorithm to a less efficient (~30%) (still vectorized) but adaptive algorithm. Updated comments and examples to `all_sky2pix` to reflect the changes. git-svn-id: http://svn.stsci.edu/svn/ssb/stsci_python/stwcs/trunk@31125 fe389314-cf27-0410-b35b-8c050e845b92
* 1. reverted to 1e-4 default accuracy (compared to r31122 );mcara2014-04-211-24/+96
| | | | | | | | 2. improved NoConvergence error class and its documentation; 3. implemented detection of a divergent numerical method (previously this would have been impossible to distinguish why a method does not converge: was it due to too low maxiter (and or accuracy) setting or it was due to inherent divergence of the method for given deometric distortions. git-svn-id: http://svn.stsci.edu/svn/ssb/stsci_python/stwcs/trunk@31123 fe389314-cf27-0410-b35b-8c050e845b92
* 1. Modified all_sky2pix to return either a list of 1D vectors or a 2D array ↵mcara2014-04-171-103/+225
| | | | | | | | | depending on the format of the input data to bring all_sky2pix to behave similarly to other similar functions: wcs_pix2sky, wcs_sky2pix, all_pix2sky. 2. Major improvements (10x for non-vetorized use and ~400x for vectorized use) in performance of the function. git-svn-id: http://svn.stsci.edu/svn/ssb/stsci_python/stwcs/trunk@31122 fe389314-cf27-0410-b35b-8c050e845b92
* Support has been added for optional TDD Alpha term to be read in from IDCTAB ↵hack2014-04-022-3/+11
| | | | | | primary header for new (non-Jay Anderson) TDD correction. git-svn-id: http://svn.stsci.edu/svn/ssb/stsci_python/stwcs/trunk@30795 fe389314-cf27-0410-b35b-8c050e845b92
* Initial check-in to add support for new ACS TDD correction described in ↵hack2014-02-265-99/+138
| | | | | | Ticket #1108 git-svn-id: http://svn.stsci.edu/svn/ssb/stsci_python/stwcs/trunk@29972 fe389314-cf27-0410-b35b-8c050e845b92
* STWCS.updatewcs update to insure that NEXTEND keyword (if already present in ↵hack2013-12-301-1/+3
| | | | | | primary header) remains consistent with full size of FITS file after updates. git-svn-id: http://svn.stsci.edu/svn/ssb/stsci_python/stwcs/trunk@28704 fe389314-cf27-0410-b35b-8c050e845b92
* STWCS update to insure that NEXTEND keyword (if already present in primary ↵hack2013-12-303-10/+34
| | | | | | header) remains consistent with full size of FITS file after updates. git-svn-id: http://svn.stsci.edu/svn/ssb/stsci_python/stwcs/trunk@28702 fe389314-cf27-0410-b35b-8c050e845b92
* remove unused variablesdencheva2013-12-031-1/+1
| | | | git-svn-id: http://svn.stsci.edu/svn/ssb/stsci_python/stwcs/trunk@27708 fe389314-cf27-0410-b35b-8c050e845b92