[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[gnuastro-commits] master 8d4e7f3d 14/69: Book: adding documentation of
From: |
Mohammad Akhlaghi |
Subject: |
[gnuastro-commits] master 8d4e7f3d 14/69: Book: adding documentation of 'psf-create-junction' script |
Date: |
Wed, 26 Jan 2022 12:39:10 -0500 (EST) |
branch: master
commit 8d4e7f3da5aa15e321d75159729fc2ae11c780b0
Author: Raul Infante-Sainz <infantesainz@gmail.com>
Commit: Mohammad Akhlaghi <mohammad@akhlaghi.org>
Book: adding documentation of 'psf-create-junction' script
Until this commit, the documentation and information of this script was
missing. With this commit, the basic information and the options of this
script have been added into the book of Gnuastro.
---
doc/gnuastro.texi | 107 +++++++++++++++++++++++++++++++++++++++++++++++++++++-
1 file changed, 106 insertions(+), 1 deletion(-)
diff --git a/doc/gnuastro.texi b/doc/gnuastro.texi
index 5e41b601..ab1c9a53 100644
--- a/doc/gnuastro.texi
+++ b/doc/gnuastro.texi
@@ -658,6 +658,7 @@ SAO DS9 region files from table
PSF construction and correction
* Invoking astscript-psf-create-make-stamp:: How to call
astscript-psf-create-make-stamp
+* Invoking astscript-psf-create-junction:: How to call
astscript-psf-create-junction
Library
@@ -23434,13 +23435,16 @@ To do that, we have the script
@file{astscript-psf-model-scattered-light}.
It will allocate the PSF at a given position (coordinates) and with the
appropiate flux level.
In what follows, each script all options of each script is described in detail.
-At the end of this section, a fully working example is exposed
@ref{PSFEXAMPLEOF}.
+At the end of this section, a fully working example is exposed @ref{TBD}.
For more on installed scripts please see (see @ref{Installed scripts}).
@menu
*Invoking astscript-psf-create-make-stamp:: How to call
astscript-psf-create-make-stamp
+*Invoking astscript-psf-create-junction:: How to call
astscript-psf-create-junction
@end menu
+
+
@node Invoking astscript-psf-create-make-stamp
@subsection Invoking astscript-psf-create-make-stamp
This installed script will read an image, the center of an object
@option{--center}, the type of the center coordinates @option{--mode} (img or
wcs), the normalization radii @option{--normradii}, and the size of the output
stamp @option{--stampwidth}.
@@ -23588,6 +23592,107 @@ The main reason of setting this name is to have an
unique name for each stamp by
+@node Invoking astscript-psf-create-junction
+@subsection Invoking astscript-psf-create-junction
+This installed script will join two PSF images at a given radius.
+This operation is commonly used when the outer part of the PSF has been
computed from very bright stars, and consequently, they are saturated in most
central part (core).
+In order to have an extended but not saturated PSF in the core, it is
necessary to put in the central part the PSF constructed from fainter stars.
+This is the main goal of the current script.
+
+This script can be used with the following general template:
+
+@example
+$ astscript-psf-create-junction [OPTION...] FITS-file
+@end example
+
+@noindent
+Examples:
+
+@example
+## Consider outer.fits as the outer part of the PSF.
+## Consider inner.fits as the inner part of the PSF.
+## Join these two PSFs at a radius equal to 25 pixels
+## and scale the inner part by a factor of 3.
+## Name the joined PSF as joined.fits.
+$ astscript-psf-create-junction outer.fits \
+ --core=inner.fits --fluxfactor=3 \
+ --radius=25 --output=joined.fits
+
+## Same example than the above, but considering an
+## ellipse (instead of a circle). The parameters of
+## the ellipse are position angle 40 deg, and axis
+## ratio of 0.5.
+$ astscript-psf-create-junction outer.fits \
+ --core=inner.fits --fluxfactor=3 \
+ --radius=25 --axisratio=0.5 \
+ --positionangle=40 --output=joined.fits
+
+@end example
+
+The junction is done by considering the input image as the outer part.
+The central part is specified by the option @option{--core} and it is
multiplied by the factor @option{--fluxfactor}.
+Then, the core image is cropped and appened to the outer image at a radius
specified by the option @option{--radius} (in pixels).
+The factor by which the core is multiplied has to be provided manually.
+Note that this script assumes that PSF is centered in both images.
+More options are available with the goal of obtaining a good junction.
+A full description of each option is given below.
+
+@table @option
+
+@item -h STR
+@itemx --hdu=STR
+The HDU/extension of the input image to use.
+
+@item -c STR
+@itemx --core=STR
+Filename of the core PSF.
+This image is considered to be the central part of the PSF.
+It will be cropped at the radius specified by the option @option{--radius},
and multiplied by the factor specified by @option{--fluxfactor}.
+After that, it will be appened to the outer part (input image).
+
+@item -C STR
+@itemx --corehdu=STR
+The HDU/extension of the core PSF (option @option{--core}).
+
+@item -r FLT
+@itemx --radius=FLT
+Radius (in pixels) at which the junction of the images is done.
+
+@item -f FLT
+@itemx --fluxfactor=FLT
+Factor by which the core (@option{--core}) is multiplied.
+This factor is necessary to put the two different parts of the PSF at the same
flux level.
+A convenient way of obtaining this value is by using the script
@file{astscript-model-flux-factor}, see @ref{TBD}.
+
+@item -Q FLT
+@itemx --axisratio=FLT
+By default, the junction is done at a radius specified by @option{--radius}
assuming a circular shape.
+However, in some situations it could be a good idea to make an ellipse shape,
for example if the PSF is not circulary symmetric.
+With this option, the axis ratio of the ellipse can be specified.
+
+@item -p FLT
+@itemx --positionangle=FLT
+Position angle of the ellipse (in degrees).
+Similar option than @option{--axisratio} (see above) to specify the shape of
the ellipse.
+
+@item -t STR
+@itemx --tmpdir=STR
+Several intermediate files are necessary to obtain the junction.
+All of these temporal files are saved into a temporal directory.
+With this option, you can directly specify this directory.
+By default (when this option isn't called), it will be built in the running
directory and given an input-based name.
+If the directory doesn't exist at run-time, this script will create it.
+Once the junction image has been obtained, this directory is removed.
+You can disable the deletion of the temporary directory with the
@option{--keeptmp} option, see below.
+
+@item -k
+@itemx --keeptmp
+Don't delete the temporary directory (see description of @option{--tmpdir}
above).
+This option is useful for debugging.
+@end table
+
+
+
- [gnuastro-commits] master f3619dd5 57/69: Book: edits in the PSF scripts, (continued)
- [gnuastro-commits] master f3619dd5 57/69: Book: edits in the PSF scripts, Mohammad Akhlaghi, 2022/01/26
- [gnuastro-commits] master ce020710 41/69: Book: new section for the tutorial on how to construct and extended PSF, Mohammad Akhlaghi, 2022/01/26
- [gnuastro-commits] master 9ab3dd28 51/69: PSF stamp: new option to set a mask sky pixel value: maskskyval, Mohammad Akhlaghi, 2022/01/26
- [gnuastro-commits] master 31f0373a 05/69: PSF model: new script for putting a PSF image into a sky position, Mohammad Akhlaghi, 2022/01/26
- [gnuastro-commits] master 0ea23b70 69/69: Book: PSF tutorial now with instruction to build first inner region, Mohammad Akhlaghi, 2022/01/26
- [gnuastro-commits] master 00f2ab56 63/69: PSF select-stars: simplifying some parts and language corrections, Mohammad Akhlaghi, 2022/01/26
- [gnuastro-commits] master 6638c671 53/69: Book: correct the definition of option --minaxisratio, Mohammad Akhlaghi, 2022/01/26
- [gnuastro-commits] master e9f4d343 09/69: PSF model: fixed bug in defining the radial profiles for flux factor, Mohammad Akhlaghi, 2022/01/26
- [gnuastro-commits] master 30e33ec6 06/69: PSF model: new script for computing the PSF flux factor, Mohammad Akhlaghi, 2022/01/26
- [gnuastro-commits] master 65fb6894 02/69: PSF stamp: wrong script location, fixing it, Mohammad Akhlaghi, 2022/01/26
- [gnuastro-commits] master 8d4e7f3d 14/69: Book: adding documentation of 'psf-create-junction' script,
Mohammad Akhlaghi <=
- [gnuastro-commits] master 5a236622 21/69: PSF model: computing radial profile up to the minimum possible value, Mohammad Akhlaghi, 2022/01/26
- [gnuastro-commits] master b5262f34 26/69: PSF stamp: rmax option was redundant, Mohammad Akhlaghi, 2022/01/26
- [gnuastro-commits] master 03bc1e69 22/69: PSF model: using PSF radial profile as input for flux factor computation, Mohammad Akhlaghi, 2022/01/26
- [gnuastro-commits] master df256000 35/69: PSF select-stars: Add 'astscript-psf-create-select-stars' section to the, Mohammad Akhlaghi, 2022/01/26
- [gnuastro-commits] master 117fd766 24/69: PSF select stars: new script for selecting stars, Mohammad Akhlaghi, 2022/01/26
- [gnuastro-commits] master 5d9a6d9b 50/69: PSF select-stars: make check steps done again because some new option are added, Mohammad Akhlaghi, 2022/01/26
- [gnuastro-commits] master 1e0cc1a0 43/69: PSF select-stars: changing default values to not crash in make check, Mohammad Akhlaghi, 2022/01/26
- [gnuastro-commits] master ca8fc03a 55/69: PSF scripts: getting proper NAXIS values when data is compressed as .fz, Mohammad Akhlaghi, 2022/01/26
- [gnuastro-commits] master 5eac0cea 40/69: Book: polishing the description of the PSF select-stars script, Mohammad Akhlaghi, 2022/01/26
- [gnuastro-commits] master d99fc9df 60/69: PSF select-stars: add new option for selecting more bright stars, Mohammad Akhlaghi, 2022/01/26