EranOfek / AstroPack

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

PSF estimation error due to non-existend method call in imProc.psf.selectPsfStars #328

Closed RuslanKonno closed 10 months ago

RuslanKonno commented 10 months ago

Trying to construct a PSF for any image using imProc.psf.constructPSF fails. imProc.psf.selectPsfStars calls the method imUtil.background.mode (line 61), which does not exist.

> AI = imProc.psf.constructPSF(AI)
Unable to resolve the name 'imUtil.background.mode'.

Error in imProc.psf.selectPsfStars (line 61)
    MedSigma = imUtil.background.mode(Sigma(FlagSN));

Error in imProc.psf.constructPSF (line 63)
        [PsfXY, ~, Flux, Back] = imProc.psf.selectPsfStars(Obj(Iobj).CatData,...
EranOfek commented 10 months ago

bug corrected by switching from mode to modeVar_LogHist. However, from now on you should use: imProc.psf.populatePSF