summaryrefslogtreecommitdiff
path: root/hstwcs/__init__.py
diff options
context:
space:
mode:
authordencheva <dencheva@stsci.edu>2009-02-12 14:57:59 -0500
committerdencheva <dencheva@stsci.edu>2009-02-12 14:57:59 -0500
commit29e09d97fbac778ad0d216fef4b21fc189315bf4 (patch)
treea35d83a729925fdd8fe7fd29021864f395c5d414 /hstwcs/__init__.py
parent48391819c2284d83a2440b3ba7173a2e4c18354b (diff)
downloadstwcs_hcf-29e09d97fbac778ad0d216fef4b21fc189315bf4.tar.gz
Added support for nicmos, stis, wfc3
git-svn-id: http://svn.stsci.edu/svn/ssb/stsci_python/development/trunk/updatewcs@7549 fe389314-cf27-0410-b35b-8c050e845b92
Diffstat (limited to 'hstwcs/__init__.py')
-rw-r--r--hstwcs/__init__.py15
1 files changed, 13 insertions, 2 deletions
diff --git a/hstwcs/__init__.py b/hstwcs/__init__.py
index dfb2e4b..926d4c3 100644
--- a/hstwcs/__init__.py
+++ b/hstwcs/__init__.py
@@ -129,6 +129,14 @@ def getNrefchip(fobj):
Nrefchip = 1
elif instrument == 'NICMOS':
Nrefchip = fobj[0].header['CAMERA']
+ elif instrument == 'WFC3':
+ detector = fobj[0].header['DETECTOR']
+ if detector == 'UVIS':
+ Nrefchip =2
+ else:
+ Nrefchip = 1
+ else:
+ Nrefchip = 1
return Nrefchip, Nrefext
def checkFiles(input):
@@ -136,9 +144,9 @@ def checkFiles(input):
Purpose
=======
Checks that input files are in the correct format.
- Converts geis and waiver fits files to multietension fits.
+ Converts geis and waiver fits files to multiextension fits.
"""
- from pytools.check_files import geis2mef, waiver2mef
+ from pytools.check_files import geis2mef, waiver2mef, checkFiles
removed_files = []
newfiles = []
for file in input:
@@ -176,5 +184,8 @@ def checkFiles(input):
print 'The following files will be removed from the list of files to be processed :\n'
for f in removed_files:
print f
+
+ newfiles = checkFiles(newfiles)[0]
+
return newfiles