Skip to content

Commit

Permalink
aa
Browse files Browse the repository at this point in the history
  • Loading branch information
Fil8 committed Apr 10, 2024
1 parent cc5cef1 commit 4fe014a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion caracal/workers/selfcal_worker.py
Expand Up @@ -1194,11 +1194,13 @@ def sofia_mask(trg, num, img_dir, field):

# print(postGridMask)
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))

idxNan = np.isnan(datForn)
datForn[idxNan] = 0.0
datForn[idxNan] = 0

datTot = np.add(datMask,datForn)

Expand Down

0 comments on commit 4fe014a

Please sign in to comment.