[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[gnuastro-commits] master de1b645b 20/69: PSF stamp: computing radial pr
From: |
Mohammad Akhlaghi |
Subject: |
[gnuastro-commits] master de1b645b 20/69: PSF stamp: computing radial profile up to the minimum possible value |
Date: |
Wed, 26 Jan 2022 12:39:11 -0500 (EST) |
branch: master
commit de1b645bd61cea03a723881c6ed93657fca7d889
Author: Raul Infante-Sainz <infantesainz@gmail.com>
Commit: Mohammad Akhlaghi <mohammad@akhlaghi.org>
PSF stamp: computing radial profile up to the minimum possible value
Until this commit, when creating the stamps of for constructing the PSF,
the radial profile was computed up to the maximum possible value. In
principle I thought it was not a problem since the stamps are allways
smaller than the original image. However, when trying to compute an
extended PSF, the size of the individual stamps could be considerable
large. And consequently, computing the entire radial profile is a waste of
CPU time (the radial profile is only necessary for making the
normalization). With this commit, this inefficiency has been fixed by
computing the radial profile up to a radius equal to the outer part of the
normalization ring. Since the radial profile is computed for the
normalization, it is not necessary to obtain larger radial profile than
this. However, if the user wants to obtain radial profile larger than this
default value, it is possible by using the --rmax option. Possible
situations are those in which the user want to have a look and check
individual radial profiles of all star stamps.
---
bin/script/psf-create-make-stamp.in | 8 +++++---
doc/gnuastro.texi | 5 ++++-
2 files changed, 9 insertions(+), 4 deletions(-)
diff --git a/bin/script/psf-create-make-stamp.in
b/bin/script/psf-create-make-stamp.in
index f7208b2d..f9f81096 100644
--- a/bin/script/psf-create-make-stamp.in
+++ b/bin/script/psf-create-make-stamp.in
@@ -474,11 +474,13 @@ fi
if [ x"$normradiusmin" != x ] && [ x"$normradiusmax" != x ]; then
# Generate the radial profile of the stamp, since it has been already
# centered on the center of the object, it is not necessary to give the
- # center coordinates. If the user specifies a maximum radius, use it. If
- # the user specifies sigma clip parameters, use them.
+ # center coordinates. If the user specifies a maximum radius, use it.
+ # Otherwise, compute the radial profile up to the outer part of the
+ # ring for the normalization +1 pixel (to not wast CPU time). If the
+ # user specifies sigma clip parameters, use them.
radialprofile=$tmpdir/rprofile-$objectid.fits
if [ x"$rmax" != x ]; then maximumradius="--rmax=$rmax"
- else maximumradius=""
+ else maximumradius="--rmax=$normradiusmax";
fi
if [ x"$sigmaclip" = x ]; then finalsigmaclip=""
else finalsigmaclip="--sigmaclip=$sigmaclip";
diff --git a/doc/gnuastro.texi b/doc/gnuastro.texi
index 63af1536..451a1109 100644
--- a/doc/gnuastro.texi
+++ b/doc/gnuastro.texi
@@ -23656,7 +23656,10 @@ With this option, it is possible to control the size
of the central region for c
@item -R FLT
@itemx --rmax=FLT
Maximum radius (in pixels) for computing the radial profile.
-By default, the radial profile will be computed up to a radial distance equal
to the maximum radius that fits into the stamp image.
+By default, the radial profile will be computed up to a radial distance equal
to the outer radius of the normalization region (@option{--normradii}).
+If the user wants to compute larger radial profile it is possible with this
option.
+Situations in which this option is necessary are those in which the user wants
to check individual radial profiles to ensure everything is fine.
+To be able to check the radial profile use the option @option{--keeptmp} to
not delete temporary files, see below.
@item -N STR
@itemx --normop=STR
- [gnuastro-commits] master updated (86a4db4b -> 0ea23b70), Mohammad Akhlaghi, 2022/01/26
- [gnuastro-commits] master 5f23616b 01/69: PSF stamp: new script to generate star stamps and construct a PSF, Mohammad Akhlaghi, 2022/01/26
- [gnuastro-commits] master f7af955d 03/69: PSF stamp: Renaming this script to 'psf-create-make-stamp', Mohammad Akhlaghi, 2022/01/26
- [gnuastro-commits] master 9a66fff9 07/69: Scripts: removing the executability of some source code scripts, Mohammad Akhlaghi, 2022/01/26
- [gnuastro-commits] master f58c3211 08/69: PSF model: checking that a PSF image is given for computing flux factor, Mohammad Akhlaghi, 2022/01/26
- [gnuastro-commits] master a6788c50 13/69: Book: adding documentation of 'psf-create-make-stamp' script, Mohammad Akhlaghi, 2022/01/26
- [gnuastro-commits] master 57b27b9e 12/69: PSF scripts: correcting several bugs and homogenizing the notation, Mohammad Akhlaghi, 2022/01/26
- [gnuastro-commits] master b14fdf1d 04/69: PSF stamp: fixing wrong directory of this script, Mohammad Akhlaghi, 2022/01/26
- [gnuastro-commits] master 4c5fe969 17/69: Book: fully working example on how to construct and correct the PSF, Mohammad Akhlaghi, 2022/01/26
- [gnuastro-commits] master ccae240f 29/69: PSF stamp: bug in --rmax option introduced in previous commit fixed, Mohammad Akhlaghi, 2022/01/26
- [gnuastro-commits] master de1b645b 20/69: PSF stamp: computing radial profile up to the minimum possible value,
Mohammad Akhlaghi <=
- [gnuastro-commits] master 194b49d1 59/69: PSF select-stars: change the name of the two varibales., Mohammad Akhlaghi, 2022/01/26
- [gnuastro-commits] master 781f0f33 39/69: PSF scripts: checking that the input file actually exists, Mohammad Akhlaghi, 2022/01/26
- [gnuastro-commits] master 0a6625ab 61/69: Book: explain about two new option in the psf-create-select-stars, Mohammad Akhlaghi, 2022/01/26
- [gnuastro-commits] master 6901ec82 49/69: PSF select-stars: check the image and catalog have a overlap area or not, Mohammad Akhlaghi, 2022/01/26
- [gnuastro-commits] master f9b7edfa 10/69: PSF stamp: removing the option --oversample as it is not enabled, Mohammad Akhlaghi, 2022/01/26
- [gnuastro-commits] master 81720014 15/69: Book: adding documentation of 'psf-model-flux-factor' script, Mohammad Akhlaghi, 2022/01/26
- [gnuastro-commits] master 9ca784e4 27/69: PSF select stars: if the image has not stars in `--min` and `--max` range, Mohammad Akhlaghi, 2022/01/26
- [gnuastro-commits] master f1cfd384 25/69: PSF select stars: remove --input add --output and --catalog, Mohammad Akhlaghi, 2022/01/26
- [gnuastro-commits] master bf8792c2 52/69: Book: For selecting stars some mandatory options did not mention, Mohammad Akhlaghi, 2022/01/26
- [gnuastro-commits] master f3619dd5 57/69: Book: edits in the PSF scripts, Mohammad Akhlaghi, 2022/01/26