summaryrefslogtreecommitdiff
path: root/lib/stwcs/gui/write_headerlet.py
diff options
context:
space:
mode:
authorhack <hack@stsci.edu>2012-10-22 17:15:28 -0400
committerhack <hack@stsci.edu>2012-10-22 17:15:28 -0400
commitfaeb7556f35bbc7ec8c1fa8db5d4ec4105b3d53f (patch)
tree74871b6b0da9f509a1036b41f015a9f0dc125e2a /lib/stwcs/gui/write_headerlet.py
parent128637b72d71562a6fc4b40e859cc0720a1fb921 (diff)
downloadstwcs_hcf-faeb7556f35bbc7ec8c1fa8db5d4ec4105b3d53f.tar.gz
Added 'catalog' to the write_headerlet TEAL interface. It already existed in the headerlet API, so no changes were needed in the headerlet code itself.
git-svn-id: http://svn.stsci.edu/svn/ssb/stsci_python/stsci_python/trunk/stwcs@20022 fe389314-cf27-0410-b35b-8c050e845b92
Diffstat (limited to 'lib/stwcs/gui/write_headerlet.py')
-rw-r--r--lib/stwcs/gui/write_headerlet.py14
1 files changed, 7 insertions, 7 deletions
diff --git a/lib/stwcs/gui/write_headerlet.py b/lib/stwcs/gui/write_headerlet.py
index 1debcf6..ffd7416 100644
--- a/lib/stwcs/gui/write_headerlet.py
+++ b/lib/stwcs/gui/write_headerlet.py
@@ -41,7 +41,7 @@ def run(configObj=None):
print ' Please check the working directory and restart this task.'
print '='*60
return
-
+
if configObj['hdrname'] in ['',' ','INDEF']:
print '='*60
print 'ERROR:'
@@ -57,10 +57,10 @@ def run(configObj=None):
print ' Please restart this task and provide a value for this parameter.'
print '='*60
return
-
+
str_kw = ['wcsname','destim','sipname','npolfile','d2imfile',
- 'descrip','history','author','output']
+ 'descrip','history','author','output','catalog']
# create dictionary of remaining parameters, deleting extraneous ones
# such as those above
@@ -70,17 +70,17 @@ def run(configObj=None):
del cdict['_task_name_']
del cdict['filename']
del cdict['hdrname']
-
+
# Convert blank string input as None
for kw in str_kw:
if cdict[kw] == '': cdict[kw] = None
if cdict['wcskey'].lower() == 'primary': cdict['wcskey'] = ' '
# Call function with properly interpreted input parameters
- # Syntax: write_headerlet(filename, hdrname, output, sciext='SCI',
+ # Syntax: write_headerlet(filename, hdrname, output, sciext='SCI',
# wcsname=None, wcskey=None, destim=None,
- # sipname=None, npolfile=None, d2imfile=None,
+ # sipname=None, npolfile=None, d2imfile=None,
# author=None, descrip=None, history=None,
# attach=True, clobber=False)
- headerlet.write_headerlet(flist, configObj['hdrname'],
+ headerlet.write_headerlet(flist, configObj['hdrname'],
**cdict) \ No newline at end of file