gnuastro-commits
[Top][All Lists]
Advanced

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

[gnuastro-commits] master c8c3d29a: Book: corrections in the extended PS


From: Mohammad Akhlaghi
Subject: [gnuastro-commits] master c8c3d29a: Book: corrections in the extended PSF tutorial
Date: Mon, 14 Feb 2022 07:13:30 -0500 (EST)

branch: master
commit c8c3d29af93967e7b28681f76ccac4604680b21f
Author: Sepideh Eskandarlou <sepideh.eskandarlou@gmail.com>
Commit: Mohammad Akhlaghi <mohammad@akhlaghi.org>

    Book: corrections in the extended PSF tutorial
    
    Until now, the following typos were present in the extended PSF tutorial:
    
     - 'cat.fits' file was extra and it should have been removed (it was just a
       demo, not meant to be used later in the tutorial).
    
     - An 'rm' was forgotten and in stamp steps the name of input
    
     - The new name for Segment's output was not used when building the outer
       stamps.
    
    With this commit, a command for removing the 'cat.fits' is added and the
    'rm' has been added in the first of the command and finally the name of the
    input and segment of the stamps step are corrected.
---
 doc/gnuastro.texi | 20 ++++++++++++--------
 1 file changed, 12 insertions(+), 8 deletions(-)

diff --git a/doc/gnuastro.texi b/doc/gnuastro.texi
index ada9b18e..4710d412 100644
--- a/doc/gnuastro.texi
+++ b/doc/gnuastro.texi
@@ -5662,7 +5662,7 @@ $ astnoisechisel label/67510-fill.fits --interpnumngb=100 
\
                  --detgrowquant=0.8 --detgrowmaxholesize=100000 \
                  --convolved=label/67510-fill-conv.fits \
                  --output=label/67510-nc.fits
-$ label/67510-fill.fits
+$ rm label/67510-fill.fits
 $ astsegment label/67510-nc.fits --output=label/67510-seg-raw.fits \
              --convolved=label/67510-fill-conv.fits --rawoutput
 $ rm label/67510-fill-conv.fits
@@ -5717,6 +5717,9 @@ $ asttable cat.fits -hCLUMPS | awk '$3!=$4'
 # Using Table arithmetic (can use column names, or save as FITS):
 asttable cat.fits -hCLUMPS -cHOST_OBJ_ID --noblankend=2 \
          -c'arith AREA AREA AREA_FULL ne nan where'
+
+# Remove the table.
+$ rm cat.fits
 @end example
 
 @node Building outer part of PSF, Inner parts of the PSF, Saturated pixels and 
Segment's clumps, Building the extended PSF
@@ -5786,12 +5789,12 @@ $ counter=1
 $ mkdir finding-normradii
 $ asttable outer/67510-6-8.fits \
            | while read -r ra dec mag; do
-               astscript-psf-create-make-stamp flat/67510-no-sat.fits \
+               astscript-psf-create-make-stamp label/67510-seg.fits \
                     --mode=wcs \
                     --stampwidth=500 \
                     --center=$ra,$dec \
                     --normradii=250,260 \
-                    --segment=label/seg.fits \
+                    --segment=label/67510-seg.fits \
                     --output=finding-normradii/$counter.fits \
                     --tmpdir=finding-normradii --keeptmp; \
                counter=$((counter+1)); \
@@ -5820,12 +5823,12 @@ $ counter=1
 $ mkdir outer/stamps
 $ asttable outer/67510-6-8.fits \
            | while read -r ra dec mag; do
-               astscript-psf-create-make-stamp flat/67510-no-sat.fits \
+               astscript-psf-create-make-stamp label/67510-seg.fits \
                     --mode=wcs \
                     --stampwidth=500 \
                     --center=$ra,$dec \
                     --normradii=50,60 \
-                    --segment=label/seg.fits \
+                    --segment=label/67510-seg.fits \
                     --output=outer/stamps/67510-$counter.fits; \
                counter=$((counter+1)); \
              done
@@ -5888,7 +5891,7 @@ $ astscript-psf-create-select-stars flat/67510.fits \
 
 $ astscript-ds9-region inner-1/67510-8-10.fits -cra,dec \
            --namecol=phot_g_mean_mag \
-           --command="ds9 flat/67510-no-sat.fits -zoom to fit -zscale"
+           --command="ds9 flat/67510.fits -zoom to fit -zscale"
 @end example
 
 We only have two stars, but they if you zoom into their centers, you will see 
that they don't have any major bleeding-vertical saturations any more!
@@ -5902,12 +5905,12 @@ $ counter=1
 $ mkdir inner-1/stamps
 $ asttable inner-1/67510-8-10.fits \
            | while read -r ra dec mag; do
-               astscript-psf-create-make-stamp flat/67510-no-sat.fits \
+               astscript-psf-create-make-stamp label/67510-seg.fits \
                     --mode=wcs \
                     --stampwidth=500 \
                     --center=$ra,$dec \
                     --normradii=30,40 \
-                    --segment=label/seg.fits \
+                    --segment=label/67510-seg.fits \
                     --output=inner-1/stamps/67510-$counter.fits; \
                counter=$((counter+1)); \
              done
@@ -5915,6 +5918,7 @@ $ asttable inner-1/67510-8-10.fits \
 $ imgs=inner-1/stamps/*.fits
 $ numimgs=$(echo $imgs | wc -w)
 $ astarithmetic $imgs $numimgs median -g1 --output=inner-1/stack.fits
+$ ds9 inner-1/stack.fits inner-1/stamps/*.fits
 @end example
 
 @noindent



reply via email to

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