[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[gnuastro-commits] master a5a7c45 048/125: Correction in Gnuastro text t
From: |
Mohammad Akhlaghi |
Subject: |
[gnuastro-commits] master a5a7c45 048/125: Correction in Gnuastro text table format |
Date: |
Sun, 23 Apr 2017 22:36:34 -0400 (EDT) |
branch: master
commit a5a7c4588a80e0f7fef2290ee8eb39d8c0da1c29
Author: Mohammad Akhlaghi <address@hidden>
Commit: Mohammad Akhlaghi <address@hidden>
Correction in Gnuastro text table format
The `# Column N:' format was mistakenly written as `# Comment N:' format in
some cases! This was corrected, along with some further corrections in the
text.
---
doc/gnuastro.texi | 46 +++++++++++++++++++++++++++-------------------
1 file changed, 27 insertions(+), 19 deletions(-)
diff --git a/doc/gnuastro.texi b/doc/gnuastro.texi
index 06da407..f5a5a15 100644
--- a/doc/gnuastro.texi
+++ b/doc/gnuastro.texi
@@ -5194,28 +5194,36 @@ for guiding the program reading the text table on how
to read/interpret
it. When the first non-white character in a line is @key{#}, or there are
no non-white characters in it, then the line will be ignored. In the former
case, the line is interpretted as a @emph{comment}. If the comment line
-starts with @code{# Comment N:}, then it is assumed to contain information
-about column @code{N} (counting from 1). A full readable comment by
-Gnuastro's programs/libraries line is in this format, which was primarily
-defined for ease of reading by eye:
+starts with @code{# Column N:}, then it is assumed to contain information
+about column @code{N} (counting from 1). Comment lines that don't start
+with this pattern are ignored and you can use them to include any further
+information you want to store with the table in the text file. A column
+information comment is assumed to have the following format (which was
+primarily defined for ease of reading by eye):
@example
-# Comment N: NAME [UNIT, TYPE, BLANK] COMMENT
+# Column N: NAME [UNIT, TYPE, BLANK] COMMENT
@end example
address@hidden NaN
Any sequence of characters between address@hidden:}' and address@hidden' will
be
interpretted as the column name (so it can contain anything except the
address@hidden character). Anything between the address@hidden' and the end of
the line
-is defined as a comment. Within the brackets, anything before the first
address@hidden,}' is the units (physical units, for example km/s, or erg/s),
address@hidden' character). Anything between the address@hidden' and the end of
the
+line is defined as a comment. Within the brackets, anything before the
+first address@hidden,}' is the units (physical units, for example km/s, or
erg/s),
anything before the second address@hidden,}' is the short type identifier (see
-below), and the rest of the characters within the brackets are interpretted
-as the blank value for that column (see @ref{Blank pixels}). The leading
-and ending white space characters will be stripped from all of these
-strings. For example in this line:
+below), finally, any non-white characters after the second address@hidden,}'
within
+the brackets are interpretted as the blank value for that column (see
address@hidden pixels}). Note that blank values will be stored in the same type
+as the column, not as address@hidden floating point types, the
address@hidden, or @code{inf} strings (both not case-sensitive) refer to IEEE
+NaN (not a number) and infinity values respectively and will be stored as a
+floating point, so they are acceptable.}. The leading and ending white
+space characters will be stripped from all of these strings. For example in
+this line:
@example
-# Comment 5: column name [km/s, f,-99] Redshift as speed
+# Column 5: column name [km/s, f,-99] Redshift as speed
@end example
The @code{NAME} field will be address@hidden name}', or @code{TYPE} will be
@@ -5229,8 +5237,8 @@ mandatory and the column information doesn't have to be
in order. Also, you
don't have to specify information for all columns. Those without
information will be interpretted with the default settings (like the case
above: all types are double, with no name, units, or comments). So these
-lines are all acceptable (the first one with nothing but the column number
-is redundant!):
+lines are all acceptable (the first one, with nothing but the column number
+is redundant):
@example
# Column 5:
@@ -5274,10 +5282,10 @@ end of the line), then reading of the string will stop,
even if the
@code{N} characters are not complete yet. See @file{tests/table/table.txt}
for one example.
-So the only time you have to pay attention to the positioning of the
-columns is when you have a string column immediately before a column. If
-the next column's characters, are closer than @code{N} characters, they
-will be considered part of the string.
+So the only time you have to pay attention to the positioning of the string
+column is not the last column. If the next column's characters, are closer
+than @code{N} characters to the start of the string column in that
+line/row, they will be considered part of the string column.
The only limitation in this format is that trailing and leading white space
characters will be removed from the columns that are read. So if trailing
- [gnuastro-commits] master e0e8679 017/125: Removed `anyblank' from datastructure, several new operators, (continued)
- [gnuastro-commits] master e0e8679 017/125: Removed `anyblank' from datastructure, several new operators, Mohammad Akhlaghi, 2017/04/23
- [gnuastro-commits] master 6d68470 033/125: Column info format for writing ASCII tables, Mohammad Akhlaghi, 2017/04/23
- [gnuastro-commits] master 0fd75fe 040/125: With no columns, Table program will print all columns, Mohammad Akhlaghi, 2017/04/23
- [gnuastro-commits] master 8090e6d 038/125: Corrections to FITS table reading, Mohammad Akhlaghi, 2017/04/23
- [gnuastro-commits] master 1156793 035/125: ASCII table information fully ready for selection, Mohammad Akhlaghi, 2017/04/23
- [gnuastro-commits] master 3c7773f 037/125: Table library prints ASCII columns with blanks, Mohammad Akhlaghi, 2017/04/23
- [gnuastro-commits] master 1dca684 047/125: Minor corrections to Gnuastro plain text table format, Mohammad Akhlaghi, 2017/04/23
- [gnuastro-commits] master 620146e 028/125: Library function for writing columns to txt file, Mohammad Akhlaghi, 2017/04/23
- [gnuastro-commits] master 9ec7556 039/125: Table's output file type set common sense, Mohammad Akhlaghi, 2017/04/23
- [gnuastro-commits] master de80e97 046/125: Further explanations on Gnuastro's plain text tables, Mohammad Akhlaghi, 2017/04/23
- [gnuastro-commits] master a5a7c45 048/125: Correction in Gnuastro text table format,
Mohammad Akhlaghi <=
- [gnuastro-commits] master 7b33afa 043/125: FITS ascii and binary table I/O done with tests, Mohammad Akhlaghi, 2017/04/23
- [gnuastro-commits] master beeb995 055/125: Corrected options added for make check, Mohammad Akhlaghi, 2017/04/23
- [gnuastro-commits] master 0a1036f 025/125: Data structure with name, units, comments and status, Mohammad Akhlaghi, 2017/04/23
- [gnuastro-commits] master e5373e0 034/125: Column info read from comments in ASCII tables, Mohammad Akhlaghi, 2017/04/23
- [gnuastro-commits] master e8ddf69 058/125: Option description correction in mkprof, Mohammad Akhlaghi, 2017/04/23
- [gnuastro-commits] master 9bb47f3 051/125: New elements for argp_option for new option management, Mohammad Akhlaghi, 2017/04/23
- [gnuastro-commits] master 185cafa 045/125: Output type for binary arithmetic corrected, Mohammad Akhlaghi, 2017/04/23
- [gnuastro-commits] master c59d66c 064/125: tmpfs-config-make now has the programs that can be built, Mohammad Akhlaghi, 2017/04/23
- [gnuastro-commits] master 23a541a 056/125: Single correction of string keyword values in FITS tables, Mohammad Akhlaghi, 2017/04/23
- [gnuastro-commits] master 4c28d13 042/125: Problem in reading blank FITS ASCII table fixed, Mohammad Akhlaghi, 2017/04/23