summaryrefslogtreecommitdiff
path: root/lib/stwcs/updatewcs
Commit message (Collapse)AuthorAgeFilesLines
* restructure and add stwcs testsNadia Dencheva2016-08-048-2252/+0
|
* 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
* 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
* Add RADESYS to headers. Fixed cleanWCS which was trying to delete WCS ↵dencheva2015-05-291-3/+7
| | | | | | 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-262-5/+3
| | | | | | 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-222-12/+6
| | | | 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-212-6/+12
| | | | 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-213-9/+9
| | | | 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-141-3/+6
| | | | | | 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-046-37/+42
| | | | 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-041-9/+53
| | | | | | 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
* update to STWCS code to handle additional TDD coefficient for ACS: ↵hack2014-10-061-4/+14
| | | | | | 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
* STWCS v1.2.1: This version fixes a typo in altwcs._restore(), adds TDD_CYA ↵hack2014-05-232-5/+11
| | | | | | 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
* further changes to move to astropydencheva2014-05-015-56/+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-303-15/+19
| | | | git-svn-id: http://svn.stsci.edu/svn/ssb/stsci_python/stwcs/trunk@31259 fe389314-cf27-0410-b35b-8c050e845b92
* changes to use astropy instead of pyfits and pywcsdencheva2014-04-284-9/+11
| | | | git-svn-id: http://svn.stsci.edu/svn/ssb/stsci_python/stwcs/trunk@31240 fe389314-cf27-0410-b35b-8c050e845b92
* Support has been added for optional TDD Alpha term to be read in from IDCTAB ↵hack2014-04-021-2/+5
| | | | | | 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-264-77/+109
| | | | | | 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-301-8/+21
| | | | | | 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
* This update removes all references to .has_key() method, including those for ↵hack2013-04-301-3/+3
| | | | | | 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
* Add support for binned images and subarrays to D2IM and NPOL correctionsdencheva2013-04-172-23/+30
| | | | git-svn-id: http://svn.stsci.edu/svn/ssb/stsci_python/stwcs/trunk@24316 fe389314-cf27-0410-b35b-8c050e845b92
* The update failed when a new idctab was provided because it tried to remove ↵dencheva2013-04-171-4/+9
| | | | | | a WCS with wkey=' ' and wcsname=' '. Fixed. Also write the name of d2imfile used to the sci extension. git-svn-id: http://svn.stsci.edu/svn/ssb/stsci_python/stwcs/trunk@24315 fe389314-cf27-0410-b35b-8c050e845b92
* Merging d2im changes into trunkdencheva2013-03-182-115/+193
| | | | git-svn-id: http://svn.stsci.edu/svn/ssb/stsci_python/stwcs/trunk@23819 fe389314-cf27-0410-b35b-8c050e845b92
* fixing variable problems from import ordersienkiew2013-01-291-11/+7
| | | | git-svn-id: http://svn.stsci.edu/svn/ssb/stsci_python/stwcs/trunk@21885 fe389314-cf27-0410-b35b-8c050e845b92
* Minor change to insure that NPOL WCSDVARR extensions ALWAYS get written out ↵hack2012-11-091-6/+5
| | | | | | as Float32 datatype, as some NPOL file reference files may have Float64 input arrays which cause PyWCS to choke. git-svn-id: http://svn.stsci.edu/svn/ssb/stsci_python/stsci_python/trunk/stwcs@20341 fe389314-cf27-0410-b35b-8c050e845b92
* Adding support for NPOL correction to WFC3 in updatewcs.hack2012-11-051-1/+1
| | | | git-svn-id: http://svn.stsci.edu/svn/ssb/stsci_python/stsci_python/trunk/stwcs@20240 fe389314-cf27-0410-b35b-8c050e845b92
* Refactored headerlet code works with pywcs.WCS objects now. Also works iwth ↵dencheva2012-10-011-34/+107
| | | | | | non-HST files git-svn-id: http://svn.stsci.edu/svn/ssb/stsci_python/stsci_python/trunk/stwcs@19777 fe389314-cf27-0410-b35b-8c050e845b92
* fixed a bug in populating cperror keywordsdencheva2012-09-101-7/+11
| | | | git-svn-id: http://svn.stsci.edu/svn/ssb/stsci_python/stsci_python/trunk/stwcs@19338 fe389314-cf27-0410-b35b-8c050e845b92
* Write out the correct keyword name for error values in wcsdvarr extensions, ↵dencheva2012-09-061-3/+2
| | | | | | 'CPERR', instead of 'CPERROR', and populate the keyword with values from the data arrays. git-svn-id: http://svn.stsci.edu/svn/ssb/stsci_python/stsci_python/trunk/stwcs@19145 fe389314-cf27-0410-b35b-8c050e845b92
* do not attempt to make a correction if idcmodel is Nonedencheva2012-08-302-0/+6
| | | | git-svn-id: http://svn.stsci.edu/svn/ssb/stsci_python/stsci_python/trunk/stwcs@19030 fe389314-cf27-0410-b35b-8c050e845b92
* Should fix most problems in stwcs due to pyfits Header updates. The main ↵embray2012-02-224-136/+145
| | | | | | 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
* Removing an (unnecessary?) call to .setPscale() which no longer exists for ↵hack2012-02-211-1/+0
| | | | | | deep copies of HSTWCS objects. git-svn-id: http://svn.stsci.edu/svn/ssb/stsci_python/stsci_python/trunk/stwcs@15196 fe389314-cf27-0410-b35b-8c050e845b92
* Fix a lot of DeprecationWarnings.embray2011-12-091-47/+47
| | | | git-svn-id: http://svn.stsci.edu/svn/ssb/stsci_python/stsci_python/trunk/stwcs@14056 fe389314-cf27-0410-b35b-8c050e845b92
* Fixes a bug in the creation of headerlets without NPOLFILE or D2IMFILE. ↵hack2011-11-151-1/+5
| | | | | | This was found by Ray when running 'tweakreg' on ACS/HRC data, with the problem and subsequent fix being verified using ACS/HRC dither box data. git-svn-id: http://svn.stsci.edu/svn/ssb/stsci_python/stsci_python/trunk/stwcs@14014 fe389314-cf27-0410-b35b-8c050e845b92
* Updates the HeaderletHDU class to use PyFITS's new FitsHDU class as its base.embray2011-11-081-16/+16
| | | | | | | | | | | | | | | | | | | | | | This works mostly the same way as the old implementation. The differences are as follows: * The headerlet data is no longer needlessly encapsulated in a tar file; instead it's included directly as an embedded FITS file which should work fine for most FITS readers (though most won't know what to do with it, and will just treat it as raw data). * A few new keywords are included in the HeaderletHDU's header--these keywords (the XINDn keywords) give the offsets of each HDU embedded in the HeaderletHDU. Howver, this information is not currently used. * In addition to the `.headerlet` property the `.hdulist` property is provided, which returns the HeaderletHDU's contents as a normal `HDUList` object instead of a `Headerlet` object. git-svn-id: http://svn.stsci.edu/svn/ssb/stsci_python/stsci_python/trunk/stwcs@13979 fe389314-cf27-0410-b35b-8c050e845b92
* The WCSCORR table update will not crash anymore (based on my testing) when ↵hack2011-11-041-0/+6
| | | | | | WCSNAME is missing from the image PRIMARY WCS. This required adding a new function to define the default WCSNAME value based on the IDCTAB so that it could be called upon initialization of the table, and when updating it if WCSNAME is missing. git-svn-id: http://svn.stsci.edu/svn/ssb/stsci_python/stsci_python/trunk/stwcs@13961 fe389314-cf27-0410-b35b-8c050e845b92
* The API for 'updatewcs.utils.extract_rootname()' was changed, along with all ↵hack2011-11-012-9/+14
| | | | | | calls to the function in STWCS, to allow it to strip off a user-specified suffix. The default behavior would be replicate current (old) behavior. This update fixed unwanted differences that showed up in the betadrizzle regression tests. git-svn-id: http://svn.stsci.edu/svn/ssb/stsci_python/stsci_python/trunk/stwcs@13934 fe389314-cf27-0410-b35b-8c050e845b92
* Updates to STWCS correct the following problems:hack2011-10-311-12/+5
| | | | | | | | | | - DISTNAME value now generated without recursively stripping everything after the underscore by relying on fileutil.buildNewRootname() - error message for 'attach_to_file()' expanded to provide specific reason for failure - primary header keywords now updated, rather than inserted, by 'updateRefFiles()' to eliminate the problem with creating duplicate keywords git-svn-id: http://svn.stsci.edu/svn/ssb/stsci_python/stsci_python/trunk/stwcs@13932 fe389314-cf27-0410-b35b-8c050e845b92
* Corrected a couple of (minor) interface violations with PyFITS in updatewcs ↵hack2011-10-312-3/+3
| | | | | | calls to '.getval()'. git-svn-id: http://svn.stsci.edu/svn/ssb/stsci_python/stsci_python/trunk/stwcs@13925 fe389314-cf27-0410-b35b-8c050e845b92
* Corrects errors in calling 'fileutil.countExtn()' by actually importing ↵hack2011-10-271-2/+4
| | | | | | 'fileutil' into the updatewcs.utils module. git-svn-id: http://svn.stsci.edu/svn/ssb/stsci_python/stsci_python/trunk/stwcs@13916 fe389314-cf27-0410-b35b-8c050e845b92