AstroDrizzle possible Numpy error - ValueError: object too deep for desired array

bajoshibajoshi Member Posts: 1
Hello,

I've been having this problem trying to drizzle combine ACS F814W images. These were taken as part of an image+grism observation pair. I'm guessing that this is a Numpy issue but I cannot track down where or why the error is happening.

I'm calling AstroDrizzle from within pyraf by using -
astrodrizzle.AstroDrizzle('@F814W_GS1_99.lis',output='F814W_GS1_99',build=yes)

The AstroDrizzle output is reproduced below. I will really appreciate any help I can get with this.

Thanks!
Bhavin

--> astrodrizzle.AstroDrizzle('@F814W_GS1_99.lis',output='F814W_GS1_99',build=yes)
Setting up logfile : astrodrizzle.log
AstroDrizzle Version 1.0.2(13-July-2012) started at: 13:51:49.675 (17/02/2016)

==== Processing Step Initialization started at 13:51:49.676 (17/02/2016)
##############################################################################
# #
# ERROR: #
# AstroDrizzle Version 1.0.2 encountered a problem! Processing terminated #
# at 13:51:54.010 (17/02/2016). #
# #
##############################################################################

-------------------- --------------------
Step Elapsed time
-------------------- --------------------

Initialization 0.0000 sec.
==================== ====================
Total 0.0000 sec.
Trailer file written to: astrodrizzle.log
Traceback (most recent call last):
File "/usr/local/scisoft/packages/python/lib/python2.7/site-packages/drizzlepac/util.py", line 209, in wrapper
func(*args, **kwargs)
File "/usr/local/scisoft/packages/python/lib/python2.7/site-packages/drizzlepac/astrodrizzle.py", line 194, in run
imgObjList, outwcs = processInput.setCommonInput(configobj)
File "/usr/local/scisoft/packages/python/lib/python2.7/site-packages/drizzlepac/processInput.py", line 191, in setCommonInput
undistort=undistort)
File "/usr/local/scisoft/packages/python/lib/python2.7/site-packages/drizzlepac/processInput.py", line 315, in createImageObjectList
image = _getInputImage(img,group=group)
File "/usr/local/scisoft/packages/python/lib/python2.7/site-packages/drizzlepac/processInput.py", line 384, in _getInputImage
if _detector == 'WFC': return acsData.WFCInputImage(input,group=group)
File "/usr/local/scisoft/packages/python/lib/python2.7/site-packages/drizzlepac/acsData.py", line 94, in __init__
ACSInputImage.__init__(self,filename,group=group)
File "/usr/local/scisoft/packages/python/lib/python2.7/site-packages/drizzlepac/acsData.py", line 17, in __init__
imageObject.__init__(self,filename,group=group)
File "/usr/local/scisoft/packages/python/lib/python2.7/site-packages/drizzlepac/imageObject.py", line 1005, in __init__
sci_chip.wcs=wcs_functions.get_hstwcs(self._filename,self._image,sci_chip.extnum)
File "/usr/local/scisoft/packages/python/lib/python2.7/site-packages/drizzlepac/wcs_functions.py", line 128, in get_hstwcs
hdrwcs = wcsutil.HSTWCS(hdulist,ext=extnum)
File "/usr/local/scisoft/packages/python/lib/python2.7/site-packages/stwcs/wcsutil/hstwcs.py", line 102, in __init__
key=self.wcskey)
File "/usr/local/scisoft/packages/python/lib/python2.7/site-packages/pywcs/pywcs.py", line 270, in __init__
det2im = self._read_det2im_kw(header, fobj)
File "/usr/local/scisoft/packages/python/lib/python2.7/site-packages/pywcs/pywcs.py", line 411, in _read_det2im_kw
cpdis = DistortionLookupTable(d2im_data, crpix, crval, cdelt)
ValueError: object too deep for desired array
Traceback (innermost last):
File "", line 1, in
File "/usr/local/scisoft/packages/python/lib/python2.7/site-packages/drizzlepac/astrodrizzle.py", line 110, in AstroDrizzle
run(configObj, wcsmap=wcsmap)
File "/usr/local/scisoft/packages/python/lib/python2.7/site-packages/drizzlepac/util.py", line 218, in wrapper
raise Exception, errorobj
ValueError: object too deep for desired array

Comments

  • travism1travism1 Member Posts: 1
    Here is more information for NumPy that might be helpful
Sign In or Register to comment.