gnuastro-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[gnuastro-commits] master e9f4d343 09/69: PSF model: fixed bug in defini


From: Mohammad Akhlaghi
Subject: [gnuastro-commits] master e9f4d343 09/69: PSF model: fixed bug in defining the radial profiles for flux factor
Date: Wed, 26 Jan 2022 12:39:09 -0500 (EST)

branch: master
commit e9f4d3430b8f96e84b64957ebe8c2f5cafc016d7
Author: Raul Infante-Sainz <infantesainz@gmail.com>
Commit: Mohammad Akhlaghi <mohammad@akhlaghi.org>

    PSF model: fixed bug in defining the radial profiles for flux factor
    
    Until this commit, in the calculation of the flux factor there was a
    problem in the definition of the radial profile names. The problem was that
    the radial profile of the PSF and the object were not set properly. As a
    consequence, the flux factor was not properly computed. With this commit,
    this bug has been fixed. Now, both radial profiles are set properly and the
    flux factor is the expected one.
---
 bin/script/psf-model-flux-factor.in | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/bin/script/psf-model-flux-factor.in 
b/bin/script/psf-model-flux-factor.in
index b438f0dc..73907cc9 100644
--- a/bin/script/psf-model-flux-factor.in
+++ b/bin/script/psf-model-flux-factor.in
@@ -511,11 +511,11 @@ astscript-radial-profile $psf --hdu=$psfhdu 
$maximumradius \
 # values. Here, the radii values are extracted from the radial profiles of
 # the input object and the provided PSF image. After that, the two
 # different tables are concatenated into a single one.
-radialprofile_ring=$tmpdir/rprofile-psf-ring-$objectid.fits
+radialprofile_ring=$tmpdir/rprofile-ring-$objectid.fits
 asttable $radialprofile --range=1,$normradiusmin,$normradiusmax \
                         --output=$radialprofile_ring $quiet
 
-psfradialprofile_ring=$tmpdir/rprofile-ring-$objectid.fits
+psfradialprofile_ring=$tmpdir/rprofile-psf-ring-$objectid.fits
 asttable $psfradialprofile --range=1,$normradiusmin,$normradiusmax \
                            --output=$psfradialprofile_ring $quiet
 



reply via email to

[Prev in Thread] Current Thread [Next in Thread]