| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
| |
header which resulted in kw duplication after the headerlet was applied. Added code which cleans the primary header before applying the headerlet.
git-svn-id: http://svn.stsci.edu/svn/ssb/stsci_python/stsci_python/trunk/stwcs@13052 fe389314-cf27-0410-b35b-8c050e845b92
|
|
|
|
|
|
| |
allow applying a headerlet without creating and updating a wcscorr table. May be useful not only for testing ...
git-svn-id: http://svn.stsci.edu/svn/ssb/stsci_python/stsci_python/trunk/stwcs@13051 fe389314-cf27-0410-b35b-8c050e845b92
|
|
|
|
| |
git-svn-id: http://svn.stsci.edu/svn/ssb/stsci_python/stsci_python/trunk/stwcs@13049 fe389314-cf27-0410-b35b-8c050e845b92
|
|
|
|
| |
git-svn-id: http://svn.stsci.edu/svn/ssb/stsci_python/stsci_python/trunk/stwcs@13047 fe389314-cf27-0410-b35b-8c050e845b92
|
|
|
|
| |
git-svn-id: http://svn.stsci.edu/svn/ssb/stsci_python/stsci_python/trunk/stwcs@13046 fe389314-cf27-0410-b35b-8c050e845b92
|
|
|
|
| |
git-svn-id: http://svn.stsci.edu/svn/ssb/stsci_python/stsci_python/trunk/stwcs@13000 fe389314-cf27-0410-b35b-8c050e845b92
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
- add EXTVER keyword to WCSCORR table extension in 'init_wcscorr()'
- revised how pad rows are defined when creating a WCSCORR table
- added logic to only work with NPOLFILE and D2IMFILE related keywords in input files that have been updated to use those reference files
- added logic to only delete WCS's from IMAGE extensions to avoid problems of trying to delete a WCS from a table extension
git-svn-id: http://svn.stsci.edu/svn/ssb/stsci_python/stsci_python/trunk/stwcs@12710 fe389314-cf27-0410-b35b-8c050e845b92
|
|
|
|
|
|
| |
extension version numbers (I should look into fixing that). This makes sure that each headerlet HDU appended to a file is given a sensible extension version by default.
git-svn-id: http://svn.stsci.edu/svn/ssb/stsci_python/stsci_python/trunk/stwcs@12459 fe389314-cf27-0410-b35b-8c050e845b92
|
|
|
|
|
|
|
|
|
|
| |
sensibly. It allows users to specify a name for the headerlet generated from
a file, but if hdrname is not specified a sensible default is still used.
Removed support for the destim arg from `applyHeaderlet()`, as it was not used
anywhere.
git-svn-id: http://svn.stsci.edu/svn/ssb/stsci_python/stsci_python/trunk/stwcs@12446 fe389314-cf27-0410-b35b-8c050e845b92
|
|
|
|
|
|
|
|
|
|
|
|
| |
of the file's HDU list. And it now also applies the new headerlet to the HDU
list under that, and update's the WCSCORR table with rows for the WCSs in the
new headerlet. This should achieve most of the basic requirements for
headerlet functionality, though I still need to look into reversing the
application of a headerlet...
git-svn-id: http://svn.stsci.edu/svn/ssb/stsci_python/stsci_python/trunk/stwcs@12398 fe389314-cf27-0410-b35b-8c050e845b92
|
|
|
|
|
|
| |
works what I believe to be 'correctly'--it applies all existing WCSs from the SCI extension headers to the new WCSCORR table in the correct order (wcs_key w/ 'O' first; extver).
git-svn-id: http://svn.stsci.edu/svn/ssb/stsci_python/stsci_python/trunk/stwcs@12393 fe389314-cf27-0410-b35b-8c050e845b92
|
|
|
|
|
|
|
|
|
|
|
| |
* Had to add the standard NAXIS, BITPIX, etc. header keywords in order for
pyfits to correctly determine the HeaderletHDU data size.
* Added a monkey patch so that pyfits can recognize the HeaderletHDU type
when opening a FITS file; naturally this module has to be imported for
headerlet support to be available.
git-svn-id: http://svn.stsci.edu/svn/ssb/stsci_python/stsci_python/trunk/stwcs@12387 fe389314-cf27-0410-b35b-8c050e845b92
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* Moved several functions into the Headerlet class
* Started work on the HeaderletHDU class--this is a non-standard extension
HDU type for representing the tarred headerlet file that is appended to a
file that has that headerlet applied to it. I originally wanted the
`HeaderletHDU.data` attribute to transparently return the Headerlet object
itself (rather than a long binary string), but that doesn't work due to the
way pyfits currently writes files. So instead the Headerlet object can be
accessed from the `HeaderletHDU.headerlet` attribute.
* Other miscellaneous cleanup
git-svn-id: http://svn.stsci.edu/svn/ssb/stsci_python/stsci_python/trunk/stwcs@12346 fe389314-cf27-0410-b35b-8c050e845b92
|
|
|
|
| |
git-svn-id: http://svn.stsci.edu/svn/ssb/stsci_python/stsci_python/trunk/stwcs@12320 fe389314-cf27-0410-b35b-8c050e845b92
|
|
|
|
| |
git-svn-id: http://svn.stsci.edu/svn/ssb/stsci_python/stsci_python/trunk/stwcs@12193 fe389314-cf27-0410-b35b-8c050e845b92
|
|
|
|
| |
git-svn-id: http://svn.stsci.edu/svn/ssb/stsci_python/stsci_python/trunk/stwcs@12192 fe389314-cf27-0410-b35b-8c050e845b92
|
|
|
|
| |
git-svn-id: http://svn.stsci.edu/svn/ssb/stsci_python/stsci_python/trunk/stwcs@12074 fe389314-cf27-0410-b35b-8c050e845b92
|
|
|
|
|
|
| |
meet in order to apply a headerlet has shrunk to 1 - the roootname (file name, if rootname is missing), should match the headerlet's destim kw. Added documenation, made cosmetic changes.
git-svn-id: http://svn.stsci.edu/svn/ssb/stsci_python/stsci_python/trunk/stwcs@12070 fe389314-cf27-0410-b35b-8c050e845b92
|
|
|
|
| |
git-svn-id: http://svn.stsci.edu/svn/ssb/stsci_python/stsci_python/trunk/stwcs@12060 fe389314-cf27-0410-b35b-8c050e845b92
|
|
|
|
| |
git-svn-id: http://svn.stsci.edu/svn/ssb/stsci_python/stsci_python/trunk/stwcs@12055 fe389314-cf27-0410-b35b-8c050e845b92
|
|
git-svn-id: http://svn.stsci.edu/svn/ssb/stsci_python/stsci_python/trunk/stwcs@12052 fe389314-cf27-0410-b35b-8c050e845b92
|