diff options
author | hack <hack@stsci.edu> | 2011-11-07 10:42:11 -0500 |
---|---|---|
committer | hack <hack@stsci.edu> | 2011-11-07 10:42:11 -0500 |
commit | 55d79f92922222251fb03bf0dd19dc47f8a43449 (patch) | |
tree | 20cea541e8a03a2c5ce42314260b2ef890353977 /lib/stwcs/wcsutil/headerlet.py | |
parent | d372728784f465dcd451fe9b690f8574f7ec77c2 (diff) | |
download | stwcs_hcf-55d79f92922222251fb03bf0dd19dc47f8a43449.tar.gz |
The docstrings for 'write_headerlet' and 'extract_headerlet' have been 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
Diffstat (limited to 'lib/stwcs/wcsutil/headerlet.py')
-rw-r--r-- | lib/stwcs/wcsutil/headerlet.py | 26 |
1 files changed, 15 insertions, 11 deletions
diff --git a/lib/stwcs/wcsutil/headerlet.py b/lib/stwcs/wcsutil/headerlet.py index 0e15102..814d9c4 100644 --- a/lib/stwcs/wcsutil/headerlet.py +++ b/lib/stwcs/wcsutil/headerlet.py @@ -554,12 +554,15 @@ def extract_headerlet(filename, output, extnum=None, hdrname=None, Parameters ---------- - filename: string or HDUList or Python list of filenames - Either a filename or PyFITS HDUList object for the input science file - An input filename (str) will be expanded as necessary to interpret - any environmental variables included in the filename. - If a list of filenames has been specified, it will extract a - headerlet from the same extnum from all filenames. + filename: string or HDUList or Python list + This specifies the name(s) of science file(s) from which headerlets + will be extracted. + String input formats supported include use of wild-cards, IRAF-style + '@'-files (given as '@<filename>') and comma-separated list of names. + An input filename (str) will be expanded as necessary to interpret + any environmental variables included in the filename. + If a list of filenames has been specified, it will extract a + headerlet from the same extnum from all filenames. output: string Filename or just rootname of output headerlet FITS file If string does not contain '.fits', it will create a filename with @@ -632,11 +635,12 @@ def write_headerlet(filename, hdrname, output=None, sciext='SCI', Parameters ---------- filename: string or HDUList or Python list - Either a filename, PyFITS HDUList object or Python list of - filenames for the input science file or files. The filename - could also be a comma-separated list of filenames. - An input filename (str) will be expanded as necessary to interpret - any environmental variables included in the filename. + This specifies the name(s) of science file(s) from which headerlets + will be created and written out. + String input formats supported include use of wild-cards, IRAF-style + '@'-files (given as '@<filename>') and comma-separated list of names. + An input filename (str) will be expanded as necessary to interpret + any environmental variables included in the filename. hdrname: string Unique name for this headerlet, stored as HDRNAME keyword output: string or None |