diff options
author | dencheva <dencheva@stsci.edu> | 2011-03-02 16:36:26 -0500 |
---|---|---|
committer | dencheva <dencheva@stsci.edu> | 2011-03-02 16:36:26 -0500 |
commit | 98f7d940e661d94ec4a6277145bb810df3b9aebc (patch) | |
tree | 1b639e3ba20d38c330ec82b2e00392e56a34692f | |
parent | c6be587a6f279cf28056ebb1361d4a25aaaf7a50 (diff) | |
download | stwcs_hcf-98f7d940e661d94ec4a6277145bb810df3b9aebc.tar.gz |
more docstrings
git-svn-id: http://svn.stsci.edu/svn/ssb/stsci_python/stsci_python/trunk/stwcs@12074 fe389314-cf27-0410-b35b-8c050e845b92
-rw-r--r-- | wcsutil/headerlet.py | 23 |
1 files changed, 22 insertions, 1 deletions
diff --git a/wcsutil/headerlet.py b/wcsutil/headerlet.py index 5104a2f..70ebc7c 100644 --- a/wcsutil/headerlet.py +++ b/wcsutil/headerlet.py @@ -193,7 +193,28 @@ def createHeaderlet(fname, hdrname, destim=None, output=None): def applyHeaderlet(hdrfile, destfile, destim=None, hdrname=None, createheaderlet=True): """ - apply headerlet 'hdrfile' to a science observation 'destfile' + Apply headerlet 'hdrfile' to a science observation 'destfile' + + Parameters + ---------- + hdrfile: string + Headerlet file + destfile: string + File name of science observation wyhose WCS solution willbe updated + destim: string or None (default) + ROOTNAME of destfile (default) + This string will be written as the DESTIM keyword in the headerlet, + created from the old WCS solution + Normally it should be None, unless the science file is missing the + ROOTNAME kw, in which case the name of the file (stripped of .fits) + should be specified. + hdrname: string or None (default) + will be the value of the HDRNAME keyword in the headerlet. + It's not required if createheaderlet is False + createheaderlet: boolean + True (default): before updating, create a headerlet with the + WCS old solution. + """ hlet = Headerlet(hdrfile) hlet.apply2obs(destfile, destim=destim, hdrname=hdrname, createheaderlet=createheaderlet) |