[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[gnuastro-commits] master 337e46d 18/32: The half-light radii
From: |
Mohammad Akhlaghi |
Subject: |
[gnuastro-commits] master 337e46d 18/32: The half-light radii |
Date: |
Wed, 24 Feb 2021 22:36:18 -0500 (EST) |
branch: master
commit 337e46d2cca6c26a55e7e6db1f097a5c8525030f
Author: Zahra Sharbaf <zahra.sharbaf2@gmail.com>
Commit: Zahra Sharbaf <zahra.sharbaf2@gmail.com>
The half-light radii
With this commit, the half-light radius has been calculated. Half-light
radius Re encloses half of the total light emitted by an object.
---
bin/script/radial-profile.in | 8 ++++++++
1 file changed, 8 insertions(+)
diff --git a/bin/script/radial-profile.in b/bin/script/radial-profile.in
index 4d49c2f..1ab9210 100644
--- a/bin/script/radial-profile.in
+++ b/bin/script/radial-profile.in
@@ -448,6 +448,14 @@ asttable $bprofile \
cat $aprofile | asttable -o$output
+# Calculate the Half-Light Radii
+#
+# The half-light or 'effective' radius as the radius within which half of
+# the object's luminosity is contained.
+halfoflight=$(asttable $output | awk '{if(max<$2){max=$2}}END{print max/2}')
+radius=$(asttable $output \
+ | awk '{if('$(echo $halfoflight)'<=$2){line=$1;light=$2}}END{print
line}')
+echo "Half-Light-Radii: $radius pixels from the center of the object"
# Remove temporal files
- [gnuastro-commits] master 4294506 32/32: astscript-radial-profile: polished the script and book, (continued)
- [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, 2021/02/24
- [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 <=
- [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