summaryrefslogtreecommitdiff
path: root/lib/stwcs/updatewcs/utils.py
Commit message (Collapse)AuthorAgeFilesLines
* restructure and add stwcs testsNadia Dencheva2016-08-041-264/+0
|
* Fix a problem with removing Lookup tale distortions.Nadia Dencheva2016-07-181-1/+1
|
* Resolves #1191dencheva2015-05-261-1/+32
| | | | git-svn-id: http://svn.stsci.edu/svn/ssb/stsci_python/stwcs/trunk@40436 fe389314-cf27-0410-b35b-8c050e845b92
* STWCS v1.2.1: This version fixes a typo in altwcs._restore(), adds TDD_CYA ↵hack2014-05-231-3/+6
| | | | | | 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-011-15/+15
| | | | git-svn-id: http://svn.stsci.edu/svn/ssb/stsci_python/stwcs/trunk@31270 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
* 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
* 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-011-8/+12
| | | | | | 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
* 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
* Merging changes from 'stwcs_hdrlet' branch (r18787 - r13909) into trunk. ↵hack2011-10-251-5/+48
| | | | | | 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
* Refined the definition of the 'SIPNAME' and 'DISTNAME' keyword values to ↵hack2011-08-301-2/+3
| | | | | | properly reflect that the distortion model is specific to each input image. git-svn-id: http://svn.stsci.edu/svn/ssb/stsci_python/stsci_python/trunk/stwcs@13698 fe389314-cf27-0410-b35b-8c050e845b92
* Revised how DISTNAME and SIPNAME are computed to meet requirements specified ↵hack2011-08-191-0/+63
| | | | | | by 8/11/2011 version of Headerlet Design document. The function 'compute_distname' was moved from __init__ to utils for use in other STWCS routines if necessary. git-svn-id: http://svn.stsci.edu/svn/ssb/stsci_python/stsci_python/trunk/stwcs@13640 fe389314-cf27-0410-b35b-8c050e845b92
* Redoing the r13221-13223 merge in the actual trunk now. This updates trunk ↵embray2011-06-221-0/+28
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