[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[gnuastro-commits] master 715537b: Book: inclusiveness of --range in Tab
From: |
Mohammad Akhlaghi |
Subject: |
[gnuastro-commits] master 715537b: Book: inclusiveness of --range in Table is now described |
Date: |
Thu, 15 Aug 2019 16:30:56 -0400 (EDT) |
branch: master
commit 715537b7705cd32a7c5083bbb78963c51a593897
Author: Mohammad Akhlaghi <address@hidden>
Commit: Mohammad Akhlaghi <address@hidden>
Book: inclusiveness of --range in Table is now described
Until now, I had forgot to write the inclusiveness of the values given to
the `--range' operator to the Table program. With this commit, it is
explicitly mentioned.
Also, some extra cosmetic spaces in the two calls to `gal_arithmetic' have
been removed, to be more clear. They were useful in the initial
implementation of this function when the third condition's elements would
also align, but that doesn't align any more, so these spaces were
redundant and just confusing.
---
bin/table/table.c | 4 ++--
doc/gnuastro.texi | 8 +++++---
2 files changed, 7 insertions(+), 5 deletions(-)
diff --git a/bin/table/table.c b/bin/table/table.c
index 6051c38..4c3d163 100644
--- a/bin/table/table.c
+++ b/bin/table/table.c
@@ -113,8 +113,8 @@ table_range(struct tableparams *p)
/* Find all the bad elements (smaller than the minimum, larger than
the maximum or blank) so we can flag them. */
- ltmin=gal_arithmetic(GAL_ARITHMETIC_OP_LT, 1, numok, ref, min);
- gemax=gal_arithmetic(GAL_ARITHMETIC_OP_GE, 1, numok, ref, max);
+ ltmin=gal_arithmetic(GAL_ARITHMETIC_OP_LT, 1, numok, ref, min);
+ gemax=gal_arithmetic(GAL_ARITHMETIC_OP_GE, 1, numok, ref, max);
blmask = ( gal_blank_present(ref, 1)
? gal_arithmetic(GAL_ARITHMETIC_OP_ISBLANK, 1, 0, ref)
: NULL );
diff --git a/doc/gnuastro.texi b/doc/gnuastro.texi
index b4fc529..d9bb8bd 100644
--- a/doc/gnuastro.texi
+++ b/doc/gnuastro.texi
@@ -12013,9 +12013,11 @@ aren't included.
@item -r STR,FLT:FLT
@itemx --range=STR,FLT:FLT
Only print the output rows that have a value within the given range in the
-@code{STR} column (can be a name or counter). For example with
-@code{--range=sn,5:20} the output's columns will only contain rows that
-have a value between 5 and 20 in the @code{sn} column (not case-sensitive).
+@code{STR} column (can be a name or counter). Note that the range is only
+inclusive in the lower-limit. For example with @code{--range=sn,5:20} the
+output's columns will only contain rows that have a value in the @code{sn}
+column (not case-sensitive) that is greater or equal to 5, and less than
+20.
This option can be called multiple times (different ranges for different
columns) in one run of the Table program. This is very useful for selecting
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [gnuastro-commits] master 715537b: Book: inclusiveness of --range in Table is now described,
Mohammad Akhlaghi <=