From faeb7556f35bbc7ec8c1fa8db5d4ec4105b3d53f Mon Sep 17 00:00:00 2001 From: hack Date: Mon, 22 Oct 2012 21:15:28 +0000 Subject: 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 --- lib/stwcs/gui/write_headerlet.py | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'lib/stwcs/gui/write_headerlet.py') 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 -- cgit