-
Notifications
You must be signed in to change notification settings - Fork 10
Description
I am finally using the dev branch code and trying to reduce data on a target. When I get to the data.combine step, it seems to go through OK and drizzles two or three of the input images onto the final grid before crashing out with a segmentation fault. I have hit the same bug on both my MacOS laptop and our linux cluster. I have used the CalcStrehl code before running data.combine, although I am not weighting by the Strehl in the final combination, i.e., I have set weight=None when calling data.combine. Here is the call in my wrapper reduction script:
""" Coadd the frames """ print('') print('Combining the calibrated files') print('------------------------------') data.combine(sci_frames, obsfilt, obsdate, field=target, trim=0, weight=combwht, submaps=submaps, instrument=inst, clean_dirs=clean_dirs)
In this call weight=None, submaps=0, instrument=NIRC2. The output of the code is below. Could this be a memory issue? Any suggestions?
Combining the calibrated files
combine: reference image - /Users/cdf/Sandbox/SHARP/NIRC2N_Kp/2016+112/combo/clean/2016_Kp/c0017.fits
Different PAs found
Rotating frame: 0016
Rotating frame: 0017
Rotating frame: 0018
Rotating frame: 0019
Rotating frame: 0020
Rotating frame: 0021
Rotating frame: 0022
Rotating frame: 0023
Rotating frame: 0024
Rotating frame: 0025
Rotating frame: 0026
Rotating frame: 0027
Rotating frame: 0028
Rotating frame: 0029
Rotating frame: 0030
Rotating frame: 0031
Rotating frame: 0032
Rotating frame: 0033
Rotating frame: 0059
Rotating frame: 0060
combine: registering images
combine: Size of output image is 1970
combine: drizzling images together
/Users/cdf/git/KAI/kai/reduce/weather/cfht-wx.2017.06.dat
Drizzling: 0017
xsh = -0.00
ysh = -0.00
weight = 0.05
outnx = 1970
/Users/cdf/git/KAI/kai/reduce/weather/cfht-wx.2017.06.dat
Drizzling: 0016
xsh = 463.08
ysh = -455.71
weight = 0.05
outnx = 1970
/Users/cdf/git/KAI/kai/reduce/weather/cfht-wx.2017.06.dat
Drizzling: 0029
xsh = 0.06
ysh = 1.61
weight = 0.05
outnx = 1970
Segmentation fault