From d6432457220db0693499cca272c33081c880d69c Mon Sep 17 00:00:00 2001 From: hack Date: Thu, 17 Dec 2015 22:19:02 +0000 Subject: 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 --- lib/stwcs/updatewcs/wfpc2_dgeo.py | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) (limited to 'lib/stwcs/updatewcs/wfpc2_dgeo.py') 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 -- cgit