summaryrefslogtreecommitdiff
path: root/lib/stwcs/wcsutil/hstwcs.py
Commit message (Collapse)AuthorAgeFilesLines
* restructure and add stwcs testsNadia Dencheva2016-08-041-988/+0
|
* 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
* Add RADESYS to headers. Fixed cleanWCS which was trying to delete WCS ↵dencheva2015-05-291-0/+26
| | | | | | 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
* Fixed problems with python 2 to 3 conversionbsimon2015-05-211-2/+2
| | | | git-svn-id: http://svn.stsci.edu/svn/ssb/stsci_python/stwcs/trunk@40220 fe389314-cf27-0410-b35b-8c050e845b92
* Updated files to run under python 2 and 3bsimon2015-05-041-30/+29
| | | | git-svn-id: http://svn.stsci.edu/svn/ssb/stsci_python/stwcs/trunk@39775 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
* replace deprecateed methodsdencheva2014-05-021-8/+8
| | | | git-svn-id: http://svn.stsci.edu/svn/ssb/stsci_python/stwcs/trunk@31371 fe389314-cf27-0410-b35b-8c050e845b92
* further changes to move to astropydencheva2014-05-011-54/+53
| | | | 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-301-72/+60
| | | | 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-281-3/+4
| | | | 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-241-0/+16
| | | | 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
* 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
* Updated API for stwcs.wcsutil.hstwcs.HSTWCS.all_sky2pix() to accept both 1-D ↵hack2013-11-181-1/+29
| | | | | | | | | arrays for Ra,Dec and a single 2-D array to be consistent with pywcs.WCS.all_pix2sky(). This resolves #1076. git-svn-id: http://svn.stsci.edu/svn/ssb/stsci_python/stwcs/trunk@27470 fe389314-cf27-0410-b35b-8c050e845b92
* Very minor/simple update to HSTWCS.all_sky2pix() method to not update output ↵hack2013-10-301-4/+4
| | | | | | values based on an increasingly bad inversion. This only affects positions at an extreme distance outside the frame where the distortion model breaks down and becomes unstable. git-svn-id: http://svn.stsci.edu/svn/ssb/stsci_python/stwcs/trunk@27118 fe389314-cf27-0410-b35b-8c050e845b92
* This update removes all references to .has_key() method, including those for ↵hack2013-04-301-2/+2
| | | | | | list and dict comprehension, but primarily to work with PyFITS 3.2.dev checked in on 29-Apr-2013. [Trac Ticket #1007] git-svn-id: http://svn.stsci.edu/svn/ssb/stsci_python/stwcs/trunk@24552 fe389314-cf27-0410-b35b-8c050e845b92
* minor documentation correctiondencheva2013-01-111-2/+3
| | | | git-svn-id: http://svn.stsci.edu/svn/ssb/stsci_python/stsci_python/trunk/stwcs@21532 fe389314-cf27-0410-b35b-8c050e845b92
* part of the refactoring, missed this changedencheva2012-10-021-1/+1
| | | | git-svn-id: http://svn.stsci.edu/svn/ssb/stsci_python/stsci_python/trunk/stwcs@19781 fe389314-cf27-0410-b35b-8c050e845b92
* Refactored headerlet code works with pywcs.WCS objects now. Also works iwth ↵dencheva2012-10-011-13/+17
| | | | | | non-HST files git-svn-id: http://svn.stsci.edu/svn/ssb/stsci_python/stsci_python/trunk/stwcs@19777 fe389314-cf27-0410-b35b-8c050e845b92
* Should fix most problems in stwcs due to pyfits Header updates. The main ↵embray2012-02-221-16/+16
| | | | | | issue that caused incompatibility is that slices of headers (including by wildcard patterns) now returns a new Header rather than a list of cards. git-svn-id: http://svn.stsci.edu/svn/ssb/stsci_python/stsci_python/trunk/stwcs@15198 fe389314-cf27-0410-b35b-8c050e845b92
* This update to STWCS.wcsutil includes the following changes:hack2012-01-261-0/+47
| | | | | | | | | | - removes use of RMS_RA and RMS_Dec in science header WCS keywords in favor of FITS standard keywords CRDER* - add default WCSNAME keyword to header created from .wcs2header() method of HSTWCS if that keyword did not exist in input image header - update WCSCORR table to populate RMS_RA and RMS_Dec columns using CRDER* keywords. git-svn-id: http://svn.stsci.edu/svn/ssb/stsci_python/stsci_python/trunk/stwcs@14488 fe389314-cf27-0410-b35b-8c050e845b92
* Merging changes from 'stwcs_hdrlet' branch (r18787 - r13909) into trunk. ↵hack2011-10-251-2/+1
| | | | | | This version of STWCS (0.9.1) provides support for headerlets based on 'Headerlet Design' wiki document, and includes TEAL interfaces for all public headerlet functions. It also moves the TEAL interface for 'updatewcs' from 'astrodither' to this package. The TEAL interaces have been included as a new 'gui' sub-package in order to keep them separate from the remainder of the package's functionality. git-svn-id: http://svn.stsci.edu/svn/ssb/stsci_python/stsci_python/trunk/stwcs@13910 fe389314-cf27-0410-b35b-8c050e845b92
* don't try to update the old idc table keywords if they don't exist (as in ↵dencheva2011-08-191-1/+2
| | | | | | 'ERR' extensions git-svn-id: http://svn.stsci.edu/svn/ssb/stsci_python/stsci_python/trunk/stwcs@13642 fe389314-cf27-0410-b35b-8c050e845b92
* A fix for computing the WCS of polarizer data. This software change requires ↵dencheva2011-08-191-2/+24
| | | | | | also a change to and a new delivery of the IDC table for polarizer data. Tested with a private version of IDCTAB. git-svn-id: http://svn.stsci.edu/svn/ssb/stsci_python/stsci_python/trunk/stwcs@13639 fe389314-cf27-0410-b35b-8c050e845b92
* Redoing the r13221-13223 merge in the actual trunk now. This updates trunk ↵embray2011-06-221-0/+451
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