| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
| |
git-svn-id: http://svn.stsci.edu/svn/ssb/stsci_python/stsci_python/trunk/stwcs@14049 fe389314-cf27-0410-b35b-8c050e845b92
|
|
|
|
|
|
| |
archive_as_headerlet
git-svn-id: http://svn.stsci.edu/svn/ssb/stsci_python/stsci_python/trunk/stwcs@14047 fe389314-cf27-0410-b35b-8c050e845b92
|
|
|
|
| |
git-svn-id: http://svn.stsci.edu/svn/ssb/stsci_python/stsci_python/trunk/stwcs@14046 fe389314-cf27-0410-b35b-8c050e845b92
|
|
|
|
| |
git-svn-id: http://svn.stsci.edu/svn/ssb/stsci_python/stsci_python/trunk/stwcs@14045 fe389314-cf27-0410-b35b-8c050e845b92
|
|
|
|
|
|
|
|
|
|
|
|
| |
- Exception should be raised when both extnum and hdrname are None
- If both hdrname and extnum are given, check if they match and if not, raise an Exception
- use the correct method to write the headerlet to a file; use clobber
git-svn-id: http://svn.stsci.edu/svn/ssb/stsci_python/stsci_python/trunk/stwcs@14044 fe389314-cf27-0410-b35b-8c050e845b92
|
|
|
|
| |
git-svn-id: http://svn.stsci.edu/svn/ssb/stsci_python/stsci_python/trunk/stwcs@14043 fe389314-cf27-0410-b35b-8c050e845b92
|
|
|
|
| |
git-svn-id: http://svn.stsci.edu/svn/ssb/stsci_python/stsci_python/trunk/stwcs@14042 fe389314-cf27-0410-b35b-8c050e845b92
|
|
|
|
|
|
| |
especially when previous use of (older) updatewcs code did not define the keyword. A default name of 'DEFAULT' now gets defined when this code runs. This code was tested against the WFC3/IR data from the adrizzle test data.
git-svn-id: http://svn.stsci.edu/svn/ssb/stsci_python/stsci_python/trunk/stwcs@14017 fe389314-cf27-0410-b35b-8c050e845b92
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
| |
the WCSCORR table.
git-svn-id: http://svn.stsci.edu/svn/ssb/stsci_python/stsci_python/trunk/stwcs@14007 fe389314-cf27-0410-b35b-8c050e845b92
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
- added fit keywords (rms*,nmatch,catalog) to SIPWCS header in headerlet for use in updating WCSCORR
- changed definition of FIT_KW to get values from SCI header, not PRIMARY
- changed calls to finding blank rows to also use rows with wcs_id='0.0' as a blank row. This also required updating the logic to support multiple selection criteria
- implemented update of WCSCORR by wcskey value
- get FIT keywords from full header, not just HSTWCS header
- only update columns which have been defined (for backward compatiblity with WCSCORR tables with columns that have since been removed from the definition)
These changes have been tested to insure that the RMS values get updated in the WCSCORR table properly from the SCI image as well as from the headerlet. They also make sure the headerlet gets updated with the correct values.
git-svn-id: http://svn.stsci.edu/svn/ssb/stsci_python/stsci_python/trunk/stwcs@13971 fe389314-cf27-0410-b35b-8c050e845b92
|
|
|
|
|
|
| |
updated to reflect the added support for filename input formats provided by 'parseinput'.
git-svn-id: http://svn.stsci.edu/svn/ssb/stsci_python/stsci_python/trunk/stwcs@13965 fe389314-cf27-0410-b35b-8c050e845b92
|
|
|
|
|
|
|
|
|
|
|
| |
- added a check to 'output' par value in TEAL interface to 'write_headerlet'
- implemented use of 'parseinput' in TEAL interface for 'write_headerlet'
- moved 'output' and 'clobber' parameters closer to top of par list in TEAL interface for 'write_headerlet'
- implemented use of 'parseinput' to interpret input filename(s) for 'write_headerlet' and 'extract_headerlet' providing support for additional input modes
- fixed logic problems with defining output filename in 'write_headerlet' and 'extract_headerlet'
git-svn-id: http://svn.stsci.edu/svn/ssb/stsci_python/stsci_python/trunk/stwcs@13964 fe389314-cf27-0410-b35b-8c050e845b92
|
|
|
|
|
|
|
|
|
| |
right syntax when calling HSTWCS for the alternate WCS.
In addition, implemented support for running 'extract_headerlet' and 'write_headerlet' on a list of input filenames in addition to a single filename or single HDUList.
git-svn-id: http://svn.stsci.edu/svn/ssb/stsci_python/stsci_python/trunk/stwcs@13962 fe389314-cf27-0410-b35b-8c050e845b92
|
|
|
|
|
|
| |
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
|
|
|
|
| |
git-svn-id: http://svn.stsci.edu/svn/ssb/stsci_python/stsci_python/trunk/stwcs@13941 fe389314-cf27-0410-b35b-8c050e845b92
|
|
|
|
|
|
| |
extension instead of looping over all extensions
git-svn-id: http://svn.stsci.edu/svn/ssb/stsci_python/stsci_python/trunk/stwcs@13940 fe389314-cf27-0410-b35b-8c050e845b92
|
|
|
|
|
|
| |
when attach is true
git-svn-id: http://svn.stsci.edu/svn/ssb/stsci_python/stsci_python/trunk/stwcs@13938 fe389314-cf27-0410-b35b-8c050e845b92
|
|
|
|
| |
git-svn-id: http://svn.stsci.edu/svn/ssb/stsci_python/stsci_python/trunk/stwcs@13937 fe389314-cf27-0410-b35b-8c050e845b92
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
|
|
| |
- 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
|
|
|
|
|
|
| |
calls to '.getval()'.
git-svn-id: http://svn.stsci.edu/svn/ssb/stsci_python/stsci_python/trunk/stwcs@13925 fe389314-cf27-0410-b35b-8c050e845b92
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
| |
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
|
|
|
|
| |
git-svn-id: http://svn.stsci.edu/svn/ssb/stsci_python/stsci_python/trunk/stwcs@13921 fe389314-cf27-0410-b35b-8c050e845b92
|
|
|
|
| |
git-svn-id: http://svn.stsci.edu/svn/ssb/stsci_python/stsci_python/trunk/stwcs@13920 fe389314-cf27-0410-b35b-8c050e845b92
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
| |
'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
|
|
|
|
|
|
| |
'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
|
|
|
|
|
|
| |
'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
|
|
|
|
|
|
| |
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
|
|
|
|
| |
git-svn-id: http://svn.stsci.edu/svn/ssb/stsci_python/stsci_python/trunk/stwcs@13913 fe389314-cf27-0410-b35b-8c050e845b92
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
|
|
|
| |
- '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
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
| |
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
|
|
|
|
| |
git-svn-id: http://svn.stsci.edu/svn/ssb/stsci_python/stsci_python/trunk/stwcs@13787 fe389314-cf27-0410-b35b-8c050e845b92
|
|
|
|
| |
git-svn-id: http://svn.stsci.edu/svn/ssb/stsci_python/stsci_python/trunk/stwcs@13786 fe389314-cf27-0410-b35b-8c050e845b92
|
|
|
|
| |
git-svn-id: http://svn.stsci.edu/svn/ssb/stsci_python/stsci_python/trunk/stwcs@13782 fe389314-cf27-0410-b35b-8c050e845b92
|
|
|
|
| |
git-svn-id: http://svn.stsci.edu/svn/ssb/stsci_python/stsci_python/trunk/stwcs@13701 fe389314-cf27-0410-b35b-8c050e845b92
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
| |
'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
|
|
|
|
|
|
| |
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
|
|
|
|
| |
git-svn-id: http://svn.stsci.edu/svn/ssb/stsci_python/stsci_python/trunk/stwcs@13643 fe389314-cf27-0410-b35b-8c050e845b92
|
|
|
|
|
|
| |
'ERR' extensions
git-svn-id: http://svn.stsci.edu/svn/ssb/stsci_python/stsci_python/trunk/stwcs@13642 fe389314-cf27-0410-b35b-8c050e845b92
|
|
|
|
| |
git-svn-id: http://svn.stsci.edu/svn/ssb/stsci_python/stsci_python/trunk/stwcs@13641 fe389314-cf27-0410-b35b-8c050e845b92
|