summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
...
* Added wcskey parameters for the two files in isWCSIdenticaldencheva2011-11-021-3/+7
| | | | git-svn-id: http://svn.stsci.edu/svn/ssb/stsci_python/stsci_python/trunk/stwcs@13937 fe389314-cf27-0410-b35b-8c050e845b92
* 'ext' is now a required parameter so restoreWCS was split into two ↵dencheva2011-11-021-29/+86
| | | | | | functions, one of which requires from_ext and to_ext, but not ext. This function is necessary because of the requirement to always keep a copy of the primary WCS in ERR and DQ extensions of HST observations. git-svn-id: http://svn.stsci.edu/svn/ssb/stsci_python/stsci_python/trunk/stwcs@13936 fe389314-cf27-0410-b35b-8c050e845b92
* The API for 'updatewcs.utils.extract_rootname()' was changed, along with all ↵hack2011-11-013-11/+17
| | | | | | 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-313-41/+40
| | | | | | | | | | - 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 problems with calling 'create_headerlet()' directly in public ↵hack2011-10-281-9/+27
| | | | | | functions in the headerlet module. Also, adds code to delete fit keyword values from SCI WCS. git-svn-id: http://svn.stsci.edu/svn/ssb/stsci_python/stsci_python/trunk/stwcs@13924 fe389314-cf27-0410-b35b-8c050e845b92
* Removed extraneous function 'getHeaderletObj' and replaced calls to that ↵hack2011-10-281-44/+52
| | | | | | | | | with direct calls to 'create_headerlet()'. Also, updated the logic for how to handle missing values for 'wcsname', 'wcskey' and 'hdrname' in 'create_headerlet()'. Initial changes are also included for managing headerlet fit values, such as fit_ra and nmatch. This code still works when those values are not provided or found in the input image. git-svn-id: http://svn.stsci.edu/svn/ssb/stsci_python/stsci_python/trunk/stwcs@13923 fe389314-cf27-0410-b35b-8c050e845b92
* Maybe this time the defsetup and new_setup files for STWCS will correctly ↵hack2011-10-282-2/+7
| | | | | | install all the data files associated with the stwcs.gui package (namely, .cfg/.cfgspc and .help files). git-svn-id: http://svn.stsci.edu/svn/ssb/stsci_python/stsci_python/trunk/stwcs@13922 fe389314-cf27-0410-b35b-8c050e845b92
* Fixed a problem with the specification of how to install 'stwcs.gui'.hack2011-10-281-1/+1
| | | | git-svn-id: http://svn.stsci.edu/svn/ssb/stsci_python/stsci_python/trunk/stwcs@13921 fe389314-cf27-0410-b35b-8c050e845b92
* Update the STWCS installation scripts to install the new 'gui' package.hack2011-10-282-2/+3
| | | | git-svn-id: http://svn.stsci.edu/svn/ssb/stsci_python/stsci_python/trunk/stwcs@13920 fe389314-cf27-0410-b35b-8c050e845b92
* Renamed the 'STWCSVER' keyword in headerlets to 'UPWCSVER' to be consistent ↵hack2011-10-271-3/+3
| | | | | | with the keyword name used by 'updatewcs'. git-svn-id: http://svn.stsci.edu/svn/ssb/stsci_python/stsci_python/trunk/stwcs@13919 fe389314-cf27-0410-b35b-8c050e845b92
* This update to the 'headerlet' module should enable proper verification of ↵hack2011-10-271-2/+2
| | | | | | 'wcsname' and 'wcskey' input values. The changes also result in Exceptions being raised for conditions where HDRNAME is not given, when WCSNAME can't be found when it it needed or when 'wcsname' and 'wcskey' inputs are not consistent with the WCS's in the image. Also, fixes some white-space problems with the HDRNAME logic in 'create_headerlet'. git-svn-id: http://svn.stsci.edu/svn/ssb/stsci_python/stsci_python/trunk/stwcs@13918 fe389314-cf27-0410-b35b-8c050e845b92
* This update to the 'headerlet' module should enable proper verification of ↵hack2011-10-271-22/+37
| | | | | | 'wcsname' and 'wcskey' input values. The changes also result in Exceptions being raised for conditions where HDRNAME is not given, when WCSNAME can't be found when it it needed or when 'wcsname' and 'wcskey' inputs are not consistent with the WCS's in the image. git-svn-id: http://svn.stsci.edu/svn/ssb/stsci_python/stsci_python/trunk/stwcs@13917 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
* Updates to correct formatting problems with some exceptions in the headerlet ↵hack2011-10-272-55/+72
| | | | | | module, and to redefine the 'ext' parameter for altwcs functions (archive, restore and delete functions). git-svn-id: http://svn.stsci.edu/svn/ssb/stsci_python/stsci_python/trunk/stwcs@13914 fe389314-cf27-0410-b35b-8c050e845b92
* Modified isWCSIdentical to accept IRAF style extension syntaxdencheva2011-10-261-13/+39
| | | | git-svn-id: http://svn.stsci.edu/svn/ssb/stsci_python/stsci_python/trunk/stwcs@13913 fe389314-cf27-0410-b35b-8c050e845b92
* The WCSDVARR extensions included in the headerlet by 'create_headerlet' now ↵hack2011-10-261-6/+11
| | | | | | only includes those extensions associated with the SCI extension being included in the headerlet. git-svn-id: http://svn.stsci.edu/svn/ssb/stsci_python/stsci_python/trunk/stwcs@13912 fe389314-cf27-0410-b35b-8c050e845b92
* The headerlet module was revised to fix the following issues:hack2011-10-262-12/+22
| | | | | | | | | | | - 'sciext' default changed from None to 'SCI', while now accepting integer values to (try to) support creating headerlets from simple FITS files - added logic in 'create_headerlet' to not create a SIPWCS extension for a headerlet from a FITS extension which does not have a valid WCS (using hstwcs.wcs.is_unity()) - made update of 'ORIENTAT' optional (same with VAFACTOR) in creating a headerlet - fixed a bug in the logic in altwcs.archiveWCS that dealt with interpreting the PRIMARY WCS git-svn-id: http://svn.stsci.edu/svn/ssb/stsci_python/stsci_python/trunk/stwcs@13911 fe389314-cf27-0410-b35b-8c050e845b92
* Merging changes from 'stwcs_hdrlet' branch (r18787 - r13909) into trunk. ↵hack2011-10-2540-360/+2855
| | | | | | 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
* The .size() method on HDUs is a property now, so updating to reflect that so ↵embray2011-10-071-53/+52
| | | | | | this doesn't break with the PyFITS changes from trunk git-svn-id: http://svn.stsci.edu/svn/ssb/stsci_python/stsci_python/trunk/stwcs@13882 fe389314-cf27-0410-b35b-8c050e845b92
* fix except..assienkiew2011-09-151-1/+1
| | | | git-svn-id: http://svn.stsci.edu/svn/ssb/stsci_python/stsci_python/trunk/stwcs@13787 fe389314-cf27-0410-b35b-8c050e845b92
* Initial Sphinx documentation for headerlet module API was added to STWCS.hack2011-09-144-2/+89
| | | | git-svn-id: http://svn.stsci.edu/svn/ssb/stsci_python/stsci_python/trunk/stwcs@13786 fe389314-cf27-0410-b35b-8c050e845b92
* python 2.5 compatibility (no "as" in exception)sienkiew2011-09-121-1/+1
| | | | git-svn-id: http://svn.stsci.edu/svn/ssb/stsci_python/stsci_python/trunk/stwcs@13782 fe389314-cf27-0410-b35b-8c050e845b92
* stsci_sphinxext -> stsci.sphinxextembray2011-08-311-2/+2
| | | | git-svn-id: http://svn.stsci.edu/svn/ssb/stsci_python/stsci_python/trunk/stwcs@13701 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
* The 'createDgeoHDU' and 'createNpolHDU' methods in 'udpatewcs' were updated ↵hack2011-08-192-2/+29
| | | | | | to also include header keywords from the reference file's primary header. This information will provide the user with the source of the calibration data. git-svn-id: http://svn.stsci.edu/svn/ssb/stsci_python/stsci_python/trunk/stwcs@13649 fe389314-cf27-0410-b35b-8c050e845b92
* Corrected the generation of the WCSNAME keyword to use ↵hack2011-08-191-1/+1
| | | | | | 'utils.extract_rootname', so that the same conventions can be used and to eliminate problems that generate values such as 'IDC_./n7n18501j'. git-svn-id: http://svn.stsci.edu/svn/ssb/stsci_python/stsci_python/trunk/stwcs@13647 fe389314-cf27-0410-b35b-8c050e845b92
* update the values of the idctab coefficients in the SCi extension header ↵dencheva2011-08-191-0/+4
| | | | | | when the coefficients are shifted in subarray mode git-svn-id: http://svn.stsci.edu/svn/ssb/stsci_python/stsci_python/trunk/stwcs@13646 fe389314-cf27-0410-b35b-8c050e845b92
* A new create_headerlet method to match the requirements in the new documentdencheva2011-08-191-138/+262
| | | | git-svn-id: http://svn.stsci.edu/svn/ssb/stsci_python/stsci_python/trunk/stwcs@13643 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
* Cleaning the model.shift methoddencheva2011-08-192-8/+9
| | | | git-svn-id: http://svn.stsci.edu/svn/ssb/stsci_python/stsci_python/trunk/stwcs@13641 fe389314-cf27-0410-b35b-8c050e845b92
* Revised how DISTNAME and SIPNAME are computed to meet requirements specified ↵hack2011-08-192-20/+66
| | | | | | 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
* 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
* Coefficients from the idc table were not properly shifted when the data is ↵dencheva2011-08-181-5/+16
| | | | | | taken in subarray mode. git-svn-id: http://svn.stsci.edu/svn/ssb/stsci_python/stsci_python/trunk/stwcs@13637 fe389314-cf27-0410-b35b-8c050e845b92
* The code for 'updatewcs' was revised to correctly add the NPOL related ↵hack2011-08-151-2/+6
| | | | | | keywords to a science header which does not have any HISTORY keywords. This caused problems with data processed using the IMPHTTAB, as that code no longer reports the files used for the photometry keyword computation as HISTORY keywords. git-svn-id: http://svn.stsci.edu/svn/ssb/stsci_python/stsci_python/trunk/stwcs@13616 fe389314-cf27-0410-b35b-8c050e845b92
* (past) last minute check in - corrected aproblem when wcsname was ↵dencheva2011-08-101-4/+7
| | | | | | overwritten by an old value git-svn-id: http://svn.stsci.edu/svn/ssb/stsci_python/stsci_python/trunk/stwcs@13565 fe389314-cf27-0410-b35b-8c050e845b92
* A problem with the logic initializing the WCSCORR table when no alternate ↵hack2011-08-091-1/+2
| | | | | | WCS's exist has been fixed. git-svn-id: http://svn.stsci.edu/svn/ssb/stsci_python/stsci_python/trunk/stwcs@13554 fe389314-cf27-0410-b35b-8c050e845b92
* Added additional keywords to headers to support alternate WCSs and headerlets.dencheva2011-08-091-1/+27
| | | | git-svn-id: http://svn.stsci.edu/svn/ssb/stsci_python/stsci_python/trunk/stwcs@13552 fe389314-cf27-0410-b35b-8c050e845b92
* Do not copy the recomputed primary WCS. Also removed parameters related to ↵dencheva2011-08-091-62/+12
| | | | | | this change - wcsname, wcskey, clobber. git-svn-id: http://svn.stsci.edu/svn/ssb/stsci_python/stsci_python/trunk/stwcs@13548 fe389314-cf27-0410-b35b-8c050e845b92
* Use reusekey=True in updatewcs to overwrite the 'A' key. This is necessary ↵dencheva2011-08-091-1/+2
| | | | | | in order to be able to repeatedly run updatewcs on files. git-svn-id: http://svn.stsci.edu/svn/ssb/stsci_python/stsci_python/trunk/stwcs@13545 fe389314-cf27-0410-b35b-8c050e845b92
* Added pywcs version to headersdencheva2011-08-081-9/+15
| | | | git-svn-id: http://svn.stsci.edu/svn/ssb/stsci_python/stsci_python/trunk/stwcs@13539 fe389314-cf27-0410-b35b-8c050e845b92
* Removed parameter clobber in restoreWCS, so that it always overwrites the ↵dencheva2011-08-082-50/+33
| | | | | | primary WCS. Not passing input parameter check now raises an Error. Not findong a wcskey raises a KeyError. git-svn-id: http://svn.stsci.edu/svn/ssb/stsci_python/stsci_python/trunk/stwcs@13537 fe389314-cf27-0410-b35b-8c050e845b92
* Changed archiveWCS to raise an error if reusekey is False and wcskey already ↵dencheva2011-08-081-25/+69
| | | | | | in use. Corrected docstrings. git-svn-id: http://svn.stsci.edu/svn/ssb/stsci_python/stsci_python/trunk/stwcs@13535 fe389314-cf27-0410-b35b-8c050e845b92
* this change to updatewcs goes with r13513dencheva2011-08-051-3/+4
| | | | git-svn-id: http://svn.stsci.edu/svn/ssb/stsci_python/stsci_python/trunk/stwcs@13516 fe389314-cf27-0410-b35b-8c050e845b92
* correct type in previous commitdencheva2011-08-051-1/+1
| | | | git-svn-id: http://svn.stsci.edu/svn/ssb/stsci_python/stsci_python/trunk/stwcs@13515 fe389314-cf27-0410-b35b-8c050e845b92
* Almost a complete rewrite of altwcs, the goals being:dencheva2011-08-051-134/+231
| | | | | | | | | | | | | - make all public functions work with HDUList objects in memory (in addition to files) - make all public functions work with simple fits files - remove all HST specific assumptions (like extname values) git-svn-id: http://svn.stsci.edu/svn/ssb/stsci_python/stsci_python/trunk/stwcs@13513 fe389314-cf27-0410-b35b-8c050e845b92
* static version numbers in __init__sienkiew2011-08-011-8/+12
| | | | git-svn-id: http://svn.stsci.edu/svn/ssb/stsci_python/stsci_python/trunk/stwcs@13441 fe389314-cf27-0410-b35b-8c050e845b92
* temporarily revert to the old install systemsienkiew2011-07-304-35/+58
| | | | git-svn-id: http://svn.stsci.edu/svn/ssb/stsci_python/stsci_python/trunk/stwcs@13423 fe389314-cf27-0410-b35b-8c050e845b92
* Merged in several changes from the release branch. People are starting to ↵embray2011-07-252-3/+3
| | | | | | update versions in trunk, so this will help smooth things out a bit. I'll add that I don't think any version numbers in trunk should be updated from the last release version until and unless more development is done on that project (otherwise there's no reason to increase its version number. git-svn-id: http://svn.stsci.edu/svn/ssb/stsci_python/stsci_python/trunk/stwcs@13397 fe389314-cf27-0410-b35b-8c050e845b92
* Changed version numberdencheva2011-07-211-1/+1
| | | | git-svn-id: http://svn.stsci.edu/svn/ssb/stsci_python/stsci_python/trunk/stwcs@13375 fe389314-cf27-0410-b35b-8c050e845b92