summaryrefslogtreecommitdiff
path: root/wcsutil/headerlet.py
Commit message (Collapse)AuthorAgeFilesLines
* Various cleanup and small bug fixes. In particular, init_wcscorr() now ↵embray2011-04-051-49/+68
| | | | | | 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
* * Added compression supportembray2011-04-011-26/+58
| | | | | | | | | | | * 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
* Headerlet work:embray2011-03-311-202/+355
| | | | | | | | | | | | | | | * 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
* Some mostly trivial PEP8 pedantry.embray2011-03-291-158/+211
| | | | git-svn-id: http://svn.stsci.edu/svn/ssb/stsci_python/stsci_python/trunk/stwcs@12320 fe389314-cf27-0410-b35b-8c050e845b92
* Added logging to headerletdencheva2011-03-141-19/+70
| | | | git-svn-id: http://svn.stsci.edu/svn/ssb/stsci_python/stsci_python/trunk/stwcs@12193 fe389314-cf27-0410-b35b-8c050e845b92
* temporary work around pyfits problem #48dencheva2011-03-141-7/+18
| | | | git-svn-id: http://svn.stsci.edu/svn/ssb/stsci_python/stsci_python/trunk/stwcs@12192 fe389314-cf27-0410-b35b-8c050e845b92
* more docstringsdencheva2011-03-021-1/+22
| | | | git-svn-id: http://svn.stsci.edu/svn/ssb/stsci_python/stsci_python/trunk/stwcs@12074 fe389314-cf27-0410-b35b-8c050e845b92
* Added a function which compares two WCS solutions. The list of criteria to ↵dencheva2011-03-021-52/+192
| | | | | | 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
* bugfixesdencheva2011-02-281-16/+34
| | | | git-svn-id: http://svn.stsci.edu/svn/ssb/stsci_python/stsci_python/trunk/stwcs@12060 fe389314-cf27-0410-b35b-8c050e845b92
* Make some attempt to write the WCS kw in the WCS group in the headerdencheva2011-02-281-5/+19
| | | | git-svn-id: http://svn.stsci.edu/svn/ssb/stsci_python/stsci_python/trunk/stwcs@12055 fe389314-cf27-0410-b35b-8c050e845b92
* headerletsdencheva2011-02-281-0/+315
git-svn-id: http://svn.stsci.edu/svn/ssb/stsci_python/stsci_python/trunk/stwcs@12052 fe389314-cf27-0410-b35b-8c050e845b92