EranOfek / AstroPack

Astronomy & Astrophysics Software Pacakge
Other
19 stars 4 forks source link

AstroDiff image is not as expected #500

Open liorozer opened 2 months ago

liorozer commented 2 months ago

The difference Image is not as expected, by Eran. Could be a problem with the SigmaN, SigmaR values.

To observe run the following code (make sure marvin path is correct for you): AInPath = '/marvin/LAST.01.04.03/2023/09/13/proc/195156v0/LAST.01.04.03..clear_000_001_009_sci_coadd_Image_1.fits' AIrPath = '/marvin/LAST.01.04.03/2023/09/16/proc/181015v0/LAST.01.04.03..clear_000_001_009_sci_coadd_Image_1.fits' AIn_Dir = '/marvin/LAST.01.04.03/2023/09/13/proc/195156v0' AIr_Dir ='/marvin/LAST.01.04.03/2023/09/16/proc/181015v0'

FN = FileNames.generateFromFileName(AIn_Path); AIn = AstroImage.readFileNamesObj(FN,'Path',AIn_Dir); FR = FileNames.generateFromFileName(AIr_Path); AIr = AstroImage.readFileNamesObj(FR,'Path',AIr_Dir);

AD = AstroZOGY; AD.Ref = AIr; AD.New = AIn;

AD.register; AD.subtractionD; AD.subtractionS;

EranOfek commented 2 months ago

I suspect the problem is due to an erroneous value for SignaN/SigmaR - check

On Thu, Sep 26, 2024 at 11:08 AM liorozer @.***> wrote:

The difference Image is not as expected, by Eran. Could be a problem with the SigmaN, SigmaR values.

To observe run the following code (make sure marvin path is correct for you): AInPath = '/marvin/LAST.01.04.03/2023/09/13/proc/195156v0/LAST.01.04.03 ..clear *000_001_009_sci_coadd_Image_1.fits' AIr_Path = '/marvin/LAST.01.04.03/2023/09/16/proc/181015v0/LAST.01.04.03*..clear _000_001_009_sci_coadd_Image_1.fits' AIn_Dir = '/marvin/LAST.01.04.03/2023/09/13/proc/195156v0' AIr_Dir ='/marvin/LAST.01.04.03/2023/09/16/proc/181015v0'

FN = FileNames.generateFromFileName(AIn_Path); AIn = AstroImage.readFileNamesObj(FN,'Path',AIn_Dir); FR = FileNames.generateFromFileName(AIr_Path); AIr = AstroImage.readFileNamesObj(FR,'Path',AIr_Dir);

AD = AstroZOGY; AD.Ref = AIr; AD.New = AIn;

AD.register; AD.subtractionD; AD.subtractionS;

— Reply to this email directly, view it on GitHub https://github.com/EranOfek/AstroPack/issues/500, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABJUQ4I6ID6TTRAG3TJB5IDZYO6HRAVCNFSM6AAAAABO4NOC32VHI2DSMVQWIX3LMV43ASLTON2WKOZSGU2DSOBTGU4TEMA . You are receiving this because you are subscribed to this thread.Message ID: @.***>