[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.
- [gnuastro-commits] master e24caa6 07/32: astscript-radial-profile: user can now specify output column names, (continued)
- [gnuastro-commits] master e24caa6 07/32: astscript-radial-profile: user can now specify output column names, Mohammad Akhlaghi, 2021/02/24
- [gnuastro-commits] master e1ded16 11/32: Book: minor typos and corrections in radial profile script examples, Mohammad Akhlaghi, 2021/02/24
- [gnuastro-commits] master 87d68b0 12/32: astscript-radial-profile: removing --rmin option because it is not used, Mohammad Akhlaghi, 2021/02/24
- [gnuastro-commits] master aec3057 13/32: Book: describing most important options of radial profile script, Mohammad Akhlaghi, 2021/02/24
- [gnuastro-commits] master 1b505d1 21/32: Binning the S/N column, Mohammad Akhlaghi, 2021/02/24
- [gnuastro-commits] master 4294506 32/32: astscript-radial-profile: polished the script and book, Mohammad Akhlaghi, 2021/02/24
- [gnuastro-commits] master ad7fb58 26/32: Central coordinates of the cropped image, Mohammad Akhlaghi, 2021/02/24
- [gnuastro-commits] master d085379 22/32: Radial-profile script documentation, Mohammad Akhlaghi, 2021/02/24
- [gnuastro-commits] master 8089ea3 27/32: astscript-radial-profile: Samaeh's changes included, conflicts fixed, Mohammad Akhlaghi, 2021/02/24
- [gnuastro-commits] master 04a8bec 29/32: Book: simplifying documentation of astscript-radial-profile, Mohammad Akhlaghi, 2021/02/24
- [gnuastro-commits] master 362819c 30/32: astscript-radial-profile: fixed bug when creating the temporal directory,
Mohammad Akhlaghi <=
- [gnuastro-commits] master c9647b5 31/32: Imported work on the radial profile script, minor conflict fixed, Mohammad Akhlaghi, 2021/02/24
- [gnuastro-commits] master 1072b2b 02/32: astscript-radial-profile: added the option -b for binning the data, Mohammad Akhlaghi, 2021/02/24
- [gnuastro-commits] master 87f5383 23/32: astscript-radial-profile: minor corrections of previous commits, Mohammad Akhlaghi, 2021/02/24
- [gnuastro-commits] master e41c2e4 24/32: astscript-radial-profile: sigma clip parameters for measurements added, Mohammad Akhlaghi, 2021/02/24
- [gnuastro-commits] master 337e46d 18/32: The half-light radii, Mohammad Akhlaghi, 2021/02/24
- [gnuastro-commits] master 2df5a22 19/32: Signal to noise ratio for each radius, Mohammad Akhlaghi, 2021/02/24
- [gnuastro-commits] master 846fc39 25/32: Radial profile script modifications, Mohammad Akhlaghi, 2021/02/24
- [gnuastro-commits] master 8e5ab9e 28/32: astscript-radial-profile: simplifying the script, Mohammad Akhlaghi, 2021/02/24