diff options
author | hack <hack@stsci.edu> | 2015-12-17 17:19:02 -0500 |
---|---|---|
committer | hack <hack@stsci.edu> | 2015-12-17 17:19:02 -0500 |
commit | d6432457220db0693499cca272c33081c880d69c (patch) | |
tree | 52a95c020819bbf1ea9982efb40c77a40d7afa89 /lib/stwcs/updatewcs/wfpc2_dgeo.py | |
parent | b143dd4cc14676f3d50c7f94377d4e7c08421a25 (diff) | |
download | stwcs_hcf-d6432457220db0693499cca272c33081c880d69c.tar.gz |
Docstring for user-interface to WFPC2 dgeo file conversion in updatewcs was updated to better describe the inputs and return values.
git-svn-id: http://svn.stsci.edu/svn/ssb/stsci_python/stwcs/trunk@47118 fe389314-cf27-0410-b35b-8c050e845b92
Diffstat (limited to 'lib/stwcs/updatewcs/wfpc2_dgeo.py')
-rw-r--r-- | lib/stwcs/updatewcs/wfpc2_dgeo.py | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/lib/stwcs/updatewcs/wfpc2_dgeo.py b/lib/stwcs/updatewcs/wfpc2_dgeo.py index b7b064a..d2d03ef 100644 --- a/lib/stwcs/updatewcs/wfpc2_dgeo.py +++ b/lib/stwcs/updatewcs/wfpc2_dgeo.py @@ -17,6 +17,23 @@ def update_wfpc2_d2geofile(filename, fhdu=None): """ Creates a D2IMFILE from the DGEOFILE for a WFPC2 image (input), and modifies the header to reflect the new usage. + + Parameters + ---------- + filename: string + Name of WFPC2 file to be processed. This file will be updated + to delete any reference to a DGEOFILE and add a D2IMFILE to replace + that correction when running updatewcs. + fhdu: object + FITS object for WFPC2 image. If user has already opened the WFPC2 + file, they can simply pass that FITS object in for direct processing. + + Returns + ------- + d2imfile: string + Name of D2IMFILE created from DGEOFILE. The D2IMFILE keyword in the + image header will be updated/added to point to this newly created file. + """ close_fhdu = False |