Skip to content

nircam and miri SGD notebook error due to NANs #1

Description

@abhijithrajan

Hello,

I have been testing the MIRI SGD notebook and running into issues when generating the KLIP reference. This is related to uncorrected nan's in the SGD reference images, possibly due to saturation artifacts, that cause the code to crash.

Here's what is in the original code -

reg = analysis.register_to_target(slope,target_slope,rescale_reference=True)
sgd_reg.append(reg)
sgd_reg = np.array(sgd_reg) 

I modified it in the following manner -

slope[np.isnan(slope)] = 0
reg = analysis.register_to_target(slope,target_slope,rescale_reference=True)
sgd_reg.append(reg) 

This does result in the central PSF artifact not getting completely removed in the target-reference but that could be corrected by drawing a mask on the central 0.1-0.2 arcsec.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions