gnuastro-commits
[Top][All Lists]
Advanced

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

[gnuastro-commits] master 362819c 30/32: astscript-radial-profile: fixed


From: Mohammad Akhlaghi
Subject: [gnuastro-commits] master 362819c 30/32: astscript-radial-profile: fixed bug when creating the temporal directory
Date: Wed, 24 Feb 2021 22:36:20 -0500 (EST)

branch: master
commit 362819cc9edd7f151289d29da19daa0d9ed573c0
Author: Carlos Morales-Socorro <cmorsoc@gmail.com>
Commit: Raul Infante-Sainz <infantesainz@gmail.com>

    astscript-radial-profile: fixed bug when creating the temporal directory
    
    Until this commit, the conditional for creating the temporal directory
    (where all the necessary files for constructing the radial profile are
    kept) was not the correct one. With this commit, this has been fixed. In
    addition to this, also minor corrections to some parts of the comments
    have been added.
---
 bin/script/radial-profile.in | 9 +++++----
 doc/gnuastro.texi            | 4 ++--
 2 files changed, 7 insertions(+), 6 deletions(-)

diff --git a/bin/script/radial-profile.in b/bin/script/radial-profile.in
index 050cd6e..80c74a0 100644
--- a/bin/script/radial-profile.in
+++ b/bin/script/radial-profile.in
@@ -8,6 +8,7 @@
 # Contributing author(s):
 #   Copyright (C) 2020   Mohammad Akhlaghi <mohammad@akhlaghi.org>
 #   Copyright (C) 2020   Zahra Sharbaf <zahra.sharbaf2@gmail.com>
+#   Copyright (C) 2021   Carlos Morales-Socorro <cmorsoc@gmail.com>
 # Copyright (C) 2020, Free Software Foundation, Inc.
 #
 # Gnuastro is free software: you can redistribute it and/or modify it under
@@ -90,11 +91,11 @@ $scriptname options:
   -R, --rmax=FLT          Maximum radius for the radial profile (in pixels).
   -Q, --qratio=FLT        Axis ratio for ellipse profiles (A/B).
   -p, --pangle=FLT        Position angle for ellipse profiles.
-  -m, --measure=STR       Operators for measuring the value (mean, median, 
etc.).
+  -m, --measure="STR"     Operators for measuring the values ("--mean", 
"--median", etc.).
   -s, --sigmaclip=FLT,FLT Parameters for sigma clipping measure operators.
 
  Output:
-  -k, --keeptmp          Keep temporal/auxiliar files.
+  -k, --keeptmp           Keep temporal/auxiliar files.
   -o, --output            Output table with the radial profile.
 
  Operating mode:
@@ -361,8 +362,8 @@ if [ z$output = zdefault ]; then 
output="$defaultname.fits"; fi
 # If the user set the directory, then make it. This directory will be deleted
 # at the end of the script if the user does not want to keep it (with the
 # `--keeptmp' option).
-if [ z$tmpdir = z        ]; then tmpdir=$defaultname
-else                             mkdir -p $tmpdir; fi
+if [ z$tmpdir = z        ]; then tmpdir=$defaultname; fi
+mkdir -p $tmpdir
 
 
 
diff --git a/doc/gnuastro.texi b/doc/gnuastro.texi
index 079b30e..323174d 100644
--- a/doc/gnuastro.texi
+++ b/doc/gnuastro.texi
@@ -15710,7 +15710,7 @@ $ astscript-radial-profile image.fits     \
 
 ## Generate the radial profile centered at x=44 and y=37 (in pixels),
 ## up to a radial distance of 100 pixels, compute sigma clipped
-## mean and standard deviation (sigclip-mean, sigclip-std) using
+## mean and standard deviation (sigclip-mean and sigclip-std) using
 ## 3 sigma and 10 iterations.
 $ astscript-radial-profile image.fits       \
                            --xcenter=44     \
@@ -15781,7 +15781,7 @@ This parameter is used as the option @option{--pcol} in 
the generation of the ap
 @itemx --measure="STR"
 The operator for measuring the values over each different aperture.
 By default, it is @option{--measure="--mean"}, which means that the mean of 
all pixels inside each aperture will be computed.
-This parameter is used for computing the measured values with 
@command{astmkcatalog}.
+This parameter is used for measuring the values with @command{astmkcatalog}.
 As a consequence, all operators like median, mean, std, sigclip-mean, 
sigclip-number, etc. can be used here.
 Multiple operators can be specified at once.
 For example, by setting @option{--measure="--mean --median"} the mean and 
median values will be computed.



reply via email to

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