Skip to content

Commit

Permalink
aaa
Browse files Browse the repository at this point in the history
  • Loading branch information
Fil8 committed Apr 10, 2024
1 parent 819866f commit 8a729b9
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion caracal/workers/selfcal_worker.py
Expand Up @@ -1198,12 +1198,15 @@ def sofia_mask(trg, num, img_dir, field):

caracal.log.info('++++++++++++++LOADING MASKS+++++++++++++++++')


caracal.log.info(outmaskName)
datMask = fits.getdata('{}/{}'.format(pipeline.masking,outmaskName))
# datMask = np.around(datMask.astype(np.float32)).astype(np.int16)

datHead = fits.getheader('{}/{}'.format(pipeline.masking,outmaskName))
datForn = fits.getdata('{}/{}'.format(pipeline.masking,postGridMaskSof))
caracal.log.info(postGridMaskSof)
datForn = np.expand_dims(datForn,axis=0)
datForn = np.expand_dims(datForn,axis=0)

idxNan = np.isnan(datForn)
datForn[idxNan] = 0
Expand Down

0 comments on commit 8a729b9

Please sign in to comment.