diff options
author | hack <hack@stsci.edu> | 2010-10-12 16:13:55 -0400 |
---|---|---|
committer | hack <hack@stsci.edu> | 2010-10-12 16:13:55 -0400 |
commit | 7fabbed98fa339cdb83d8d08ae195ae61f3a08e4 (patch) | |
tree | f7d0d3dc7c727d6722c4bad44da13f53af35a441 /doc | |
parent | 70040275e4919a15f8980686a66acaac493dd263 (diff) | |
download | stwcs_hcf-7fabbed98fa339cdb83d8d08ae195ae61f3a08e4.tar.gz |
Updates were made to the headerlet definition to turn it into a TSR when creating PDF output and address comments discussed with Nadia. The index for the headerlet tsr was also moved so that it can turned into a TSR PDF while allowing the remainder of the STWCS docs to be turned into a manual. WJH
git-svn-id: http://svn.stsci.edu/svn/ssb/stsci_python/stsci_python/trunk/stwcs@10528 fe389314-cf27-0410-b35b-8c050e845b92
Diffstat (limited to 'doc')
-rw-r--r-- | doc/source/conf.py | 4 | ||||
-rw-r--r-- | doc/source/hdrlet_tsr.rst | 4 | ||||
-rw-r--r-- | doc/source/headerlet_def.rst | 43 | ||||
-rw-r--r-- | doc/source/index.rst | 7 |
4 files changed, 42 insertions, 16 deletions
diff --git a/doc/source/conf.py b/doc/source/conf.py index fce6518..e24bb8f 100644 --- a/doc/source/conf.py +++ b/doc/source/conf.py @@ -48,7 +48,7 @@ copyright = u'2010, Nadia Dencheva, Warren Hack' # The short X.Y version. version = '0.8' # The full version, including alpha/beta/rc tags. -release = '0.8' +release = '2011.xx' # The language for content autogenerated by Sphinx. Refer to documentation # for a list of supported languages. @@ -175,6 +175,8 @@ htmlhelp_basename = 'STWCSdoc' latex_documents = [ ('index', 'STWCS.tex', u'STWCS Documentation', u'Nadia Dencheva, Warren Hack', 'manual'), + ('hdrlet_tsr', 'headerlet_tsr.tex', u'Headerlet Definition', + u'Nadia Dencheva, Warren Hack', 'tsr'), ] # The name of an image file (relative to this directory) to place at the top of diff --git a/doc/source/hdrlet_tsr.rst b/doc/source/hdrlet_tsr.rst new file mode 100644 index 0000000..09be6c5 --- /dev/null +++ b/doc/source/hdrlet_tsr.rst @@ -0,0 +1,4 @@ +.. toctree:: + :maxdepth: 3 + + headerlet_def diff --git a/doc/source/headerlet_def.rst b/doc/source/headerlet_def.rst index 8619c6e..76ade6b 100644 --- a/doc/source/headerlet_def.rst +++ b/doc/source/headerlet_def.rst @@ -1,11 +1,23 @@ =================================================================== Definition of a Headerlet and It's Role in Updating WCS Information =================================================================== -:Authors: Warren Hack, Nadezhda Dencheva -Abstract -======== -The 'headerlet' serves as a mechanism for encapsulating WCS information which can be used to update the WCS solution of an image. This object needs to be as compact as possible while providing an unambigious and self-consistent WCS solution for an image while requiring a minimum level of software necessary to apply the headerlet to an image. These basic requirements come from the desire to create a mechanism for passing improved astrometric solutions for HST data and provide those solutions in a manner that would not require getting entirely new images from an archive when only the WCS information has been updated. This report describes the format and contents of a headerlet along with the procedures which would be used to update images with the updated WCS information from the headerlet. +.. abstract:: + :author: Warren Hack, Nadezhda Dencheva + :date: 12 Oct 2010 + + The 'headerlet' serves as a mechanism for encapsulating WCS information + which can be used to update the WCS solution of an image. This object + needs to be as compact as possible while providing an unambigious and + self-consistent WCS solution for an image while requiring a minimum + level of software necessary to apply the headerlet to an image. + These basic requirements come from the desire to create a mechanism + for passing improved astrometric solutions for HST data and provide + those solutions in a manner that would not require getting entirely + new images from an archive when only the WCS information has been + updated. This report describes the format and contents of a headerlet + along with the procedures which would be used to update images with + the updated WCS information from the headerlet. Introduction ============ @@ -33,7 +45,7 @@ The WCS information in the FLT images has been updated to include the full disto column-correction for that chip from the D2IMFILE. -Each science header will have its own set of these keywords and extensions that will be kept together as part of the headerlet definition. This avoids any ambiguity as to what solution was used for any given WCS. A summary of all the WCS solutions for all the chips can be written out to the WCSCORR table. +Each science header will have its own set of these keywords and extensions that will be kept together as part of the headerlet definition. This avoids any ambiguity as to what solution was used for any given WCS. A summary of all the WCS solutions for all the chips can be written out to the WCSCORR table, a `binary FITS table extension <http://mediawiki.stsci.edu/mediawiki/index.php/Telescopedia:WCSTableDefinition>`__ described online. An ACS/WFC exposure would end up with the following set of extensions:: @@ -53,7 +65,7 @@ An ACS/WFC exposure would end up with the following set of extensions:: 11 IMAGE WCSDVARR 4 64x32 -32 12 BINTABLE WCSCORR 18Fx10R -There may be a lot of extensions appended to this FITS file, but the sum total of all these new extensions comes to approximately 100kB for ACS/WFC images, making them a fairly space efficient means of managing all the distortion and WCS information. +There may be a lot of extensions appended to this FITS file, but the sum total of all these new extensions comes to approximately 100kB for ACS/WFC images (our sample only requires 86400 bytes), making them a space efficient means of managing all the distortion and WCS information. Headerlet Definition ==================== @@ -105,7 +117,7 @@ This file now fully describes the WCS solution for this image, complete with all The primary header must have 4 required keywords: `HDRNAME` - a unique name for the headerlet -`DISTIM` - target image filename (the original archive filename) +`DESTIM` - target image filename (the original archive filename) `STWCSVER` - version of STWCS used to create the headerlet `PYWCSVER` - version of PyWCS used to create the headerlet @@ -129,18 +141,27 @@ Updating an image retrieved from the HST Archive with a `headerlet` only require #. Update the extver IDs for the NPOLFILE and D2IMFILE keywords in the headerlet SIPWCS extensions to point to the actual extver values for the new extensions #. Overwrite the SCI header keywords for each chip with the same keywords from the SIPWCS extension that corresponds to the same chip from the newly appended `headerlet` #. Add a keyword `SIPVER` to each science header with a value of the appropriate SIPWCS' `EXTVER` keyword. - #. Update the WCSCORR table with the linear WCS keyword values and name of the SIP solution from each SIPWCS extension from the `headerlet` + #. Update the WCSCORR table with the linear WCS keyword values and name of the SIP solution (based on the name of the reference files) from each SIPWCS extension from the `headerlet`, along with the keyword values from the PRIMARY header of the `headerlet` This process assumes that when an image gets updated with a `headerlet`, the new solution from the `headerlet` should become the prime WCS. Further implementations of the software to work with `headerlets` can expand on this functionality if necessary. Initially, the `headerlet` simply needs to be used to update the image's FITS file so that the WCS information can be used at all. Software Requirements ===================== +Implementing support for the `headerlet` and its use in updating HST FITS files will require a few new software tasks; namely, -- A task which given a science file creates a headerlet and writes it to a file. +- A task which given a science file creates a `headerlet` and writes it to a file. -- A task which given a science file and a headerlet applies the headerlet to the science file +- A task which given a science file and a `headerlet` applies the `headerlet` to the science file - #. Default behaviour will be to append the headerlet to the file and copy the WCS recorded in the headerlet as a primary WCS. + #. Default behaviour will be to append the `headerlet` to the file and copy the WCS recorded in the `headerlet` as a primary WCS. #. It will be possible (optionally) to copy the updated science file to a new file and keep the original science file locally unchanged. +The operation of updating a science file with a `headerlet` only requires the use of basic FITS operations: + +- Appending the extensions in the `headerlet` to the science file +- Updating keywords in the science extensions of the file with values from the SIPWCS extensions from the `headerlet` + +These operations do not require any computations and can be done using any FITS library. This allows a `headerlet` to be usable by the community even if they do not use the software we develop based on PyFITS and STWCS, both for creating and applying these files. + + .. _FITSConventions: http://mediawiki.stsci.edu/mediawiki/index.php/Telescopedia:FITSDistortionConventions diff --git a/doc/source/index.rst b/doc/source/index.rst index 87000f5..bb9f7a4 100644 --- a/doc/source/index.rst +++ b/doc/source/index.rst @@ -22,14 +22,13 @@ Contents: wcsutil updatewcs -Headerlet Definition and Use -============================ +Headerlet Definition TSR +======================== .. toctree:: :maxdepth: 2 - headerlet_def - + hdrlet_tsr Indices and tables ================== |