asttable1
Read and write ascii and fits tables
Usage
asttable [OPTION ...]
ASTRdata
Overview
Table is part of GNU Astronomy Utilities 0.23. Table can be used to view the information, select columns, or convert tables. The inputs and outputs can be plain text (with white-space or comma as delimiters), FITS ascii, or FITS binary tables. The output columns can either be selected by number (counting from 1), name or using regular expressions. For regular expressions, enclose the value to the '--column' ('-c') option in slashes ('\', as in '-c\^mag\'). To print the selected columns on the command-line, don't specify an output file.
For more information, please run any of the following commands. In particular the second contains a very comprehensive explanation of Table's invocation: expected input(s), output(s), and a full description of all the options.
All options and their values:
|
$ asttable |
|---|---|
Inputs/Outputs and options:
|
$ info asttable |
Full section in manual/book:
|
$ info Table |
Full Gnuastro manual/book:
|
$ info gnuastro |
If you couldn't find your answer in the manual, you can get direct help from experienced Gnuastro users and developers. For more information, please run:
-
$ info help-gnuastro
Table options:
-
Input:
-
-b, --noblank=STR[,STR] -
Remove rows with blank in given columns.
-
-c, --column=STR -
Column number (counting from 1) or search string.
-
-C, --catcolumns=STR -
Columns to use in
--catcolumnfile.
-E, --noblankend=STR[,STR] Sim. to --noblank, at end (e.g., after arith.).
-
-h, --hdu=STR/INT -
Extension name or number of input data.
-
--inpolygon=STR,STR -
Coord. columns that are inside '--polygon'.
-
-I, --ignorecase -
Ignore case in matching/searching columns.
-
-L, --catcolumnfile=FITS/TXT -
File(s) to be concatenated by column.
-
--outpolygon=STR,STR -
Coord. columns that are outside '--polygon'.
-
-R, --catrowfile=FITS/TXT -
File(s) to be concatenated by row.
-
--searchin=STR -
Select column(s): 'name', 'unit', 'comment'.
-
--stdintimeout=INT -
Micro-seconds to wait for standard input.
-u, --catcolumnhdu=STR/INT HDU/Extension(s) in catcolumnfile.
-
-w, --wcsfile=FITS -
File with WCS if conversion is requested.
-
-W, --wcshdu=STR -
HDU in file with WCS for conversion.
-
-X, --catrowhdu=STR/INT -
HDU/Extension(s) in
--catrowfile.
-
Output:
-
-A, --txtf64format=STR -
Text output float64 format: 'fixed' or 'exp'.
-
-B, --txtf64precision=INT -
Text output float64 precision.
-
-D, --dontdelete -
Don't delete output if it exists.
-
-f, --txtf32format=STR -
Text output float32 format: 'fixed' or 'exp'.
-
--info-num-cols -
Only print input table's number of columns.
-
--info-num-rows -
Only print input table's number of rows.
-
-i, --information -
Only print input table's information.
-
-K, --keepinputdir -
Keep input directory for automatic output.
-
--outfitsnocommit -
No Git commit in 0-th HDU of output FITS.
-
--outfitsnoconfig -
No metadata in 0-th HDU of output FITS.
-
--outfitsnodate -
No 'DATE' in 0-th HDU of output FITS.
-
--outfitsnoversions -
No versions in 0-th HDU of output FITS.
-
-o, --output=STR -
Output file name.
-
-O, --colinfoinstdout -
Column info/metadata when printing to stdout.
-
-p, --txtf32precision=INT -
Text output float32 precision.
-
--tableformat=STR -
Table fmt: 'fits-ascii', 'fits-binary', 'txt'.
-
--wcslinearmatrix=STR -
WCS linear matrix of output ('pc' or 'cd').
-
-Y, --txteasy -
Short for '-Afixed
-B6-ffixed-p3'.
-
Precedence (default: column operations first)
-
--rowfirst -
Apply row-based operations first.
-
Columns in output:
-
--catcolumnrawname -
Don't touch column names of
--catcolumnfile.
-
--fromvector=STR,INT[,INT] -
Extract column(s) from a vector column.
-
-k, --keepvectfin -
Keep inputs of '--tovector' & '--fromvector'.
-m, --colmetadata=ID,S,S,S Column metadata (S=STR: Name, Unit, Comments).
-
--tovector=STR,STR[,STR] -
Merge column(s) into a vector column.
-
--transpose -
Transpose table (must only contain vector cols).
-
Rows in output:
-
-d, --descending -
Sort in descending order: largets first.
-
--envseed -
Use GSL_RNG_SEED env. for '--rowrandom'.
-
-e, --equal=STR,FLT[,...] -
Column, values to keep in output.
-
-H, --head=INT -
Only return given number of top rows.
-
-n, --notequal=STR,FLT[,...] -
Column, values to remove from output.
-
--polygon=FLT,FLT[:...] -
Polygon vertices, also a DS9 region file.
-
--rowrandom=INT -
Number of rows to select randomly.
-
--rowrange=INT,INT -
Only rows in this row-counter range.
-
-r, --range=STR,FLT:FLT -
Column, and range to limit output.
-
-s, --sort=STR/INT -
Column name or number for sorting.
-
-t, --tail=INT -
Only return given number of bottom rows.
-
Operating modes:
-
-?, --help -
give this help list
-
--checkconfig -
List all config files and variables read.
-
--cite -
BibTeX citation for this program.
-
--config=STR -
Read configuration file STR immediately.
-
--config-prefix=STR -
Custom prefix of option names config files.
-
--lastconfig -
Do not parse any more configuration files.
-
--log -
Information about output(s) in a log file.
-
--minmapsize=INT -
Min. bytes to avoid RAM automatically.
-
-N, --numthreads=INT -
Number of CPU threads to use.
-
--onlyversion=STR -
Only run if the program version is STR.
-
-P, --printparams -
Print parameter values to be used and abort.
-
--quietmmap -
Don't print mmap'd file's name and size.
-
-q, --quiet -
Only report errors, remain quiet about steps.
-
-S, --setdirconf -
Set default values for this directory and abort.
-
--usage -
give a short usage message
-
-U, --setusrconf -
Set default values for this user and abort.
-
-V, --version -
print program version
Mandatory or optional arguments to long options are also mandatory or optional for any corresponding short options.
GNU Astronomy Utilities home page: http://www.gnu.org/software/gnuastro/
Releases
5 releases since Debian 9 (Stretch); the text changed 4 times.
--catcolumnfile since Debian 11 (Bullseye);
--catcolumnrawname since Debian 11 (Bullseye);
--catcolumns since Debian 11 (Bullseye);
--catrowfile since Debian 12 (Bookworm);
--catrowhdu since Debian 12 (Bookworm);
--checkconfig since Debian 11 (Bullseye);
--colinfoinstdout since Debian 10 (Buster);
--config since Debian 10 (Buster);
--config-prefix since Debian 13 (Trixie);
--descending since Debian 11 (Bullseye);
--envseed since Debian 12 (Bookworm);
--equal since Debian 11 (Bullseye);
--fromvector since Debian 13 (Trixie);
--head since Debian 11 (Bullseye);
--info-num-cols since Debian 13 (Trixie);
--info-num-rows since Debian 13 (Trixie);
--inpolygon since Debian 11 (Bullseye);
--keepvectfin since Debian 13 (Trixie);
--lastconfig since Debian 10 (Buster);
--log since Debian 10 (Buster);
--minmapsize since Debian 10 (Buster);
--noblank since Debian 11 (Bullseye);
--notequal since Debian 11 (Bullseye);
--outfitsnocommit since Debian 13 (Trixie);
--outfitsnoconfig since Debian 13 (Trixie);
--outfitsnodate since Debian 13 (Trixie);
--outfitsnoversions since Debian 13 (Trixie);
--outpolygon since Debian 11 (Bullseye);
--polygon since Debian 11 (Bullseye);
--quietmmap since Debian 11 (Bullseye);
--range since Debian 11 (Bullseye);
--rowfirst since Debian 13 (Trixie);
--rowrandom since Debian 12 (Bookworm);
--rowrange since Debian 12 (Bookworm);
--searchin since Debian 10 (Buster);
--sort since Debian 11 (Bullseye);
--stdintimeout since Debian 10 (Buster);
--tableformat since Debian 10 (Buster);
--tail since Debian 11 (Bullseye);
--tovector since Debian 13 (Trixie);
--transpose since Debian 13 (Trixie);
--txteasy since Debian 13 (Trixie);
--txtf32format since Debian 12 (Bookworm);
--txtf32precision since Debian 12 (Bookworm);
--txtf64format since Debian 12 (Bookworm);
--txtf64precision since Debian 12 (Bookworm);
--wcsfile since Debian 11 (Bullseye);
--wcshdu since Debian 11 (Bullseye);
--wcslinearmatrix since Debian 12 (Bookworm);
-A since Debian 13 (Trixie);
-B since Debian 12 (Bookworm);
-C since Debian 11 (Bullseye);
-H since Debian 11 (Bullseye);
-L since Debian 11 (Bullseye);
-O since Debian 11 (Bullseye);
-R since Debian 12 (Bookworm);
-W since Debian 11 (Bullseye);
-X since Debian 12 (Bookworm);
-Y since Debian 13 (Trixie);
-b since Debian 11 (Bullseye);
-d since Debian 11 (Bullseye);
-e since Debian 11 (Bullseye);
-f since Debian 12 (Bookworm);
-k since Debian 13 (Trixie);
-n since Debian 11 (Bullseye);
-p since Debian 12 (Bookworm);
-r since Debian 11 (Bullseye);
-s since Debian 10 (Buster);
-t since Debian 11 (Bullseye);
-w since Debian 11 (Bullseye).
--colmetadata until Debian 12 (Bookworm);
--doubleprecision until Debian 9 (Stretch);
--doublewidth until Debian 9 (Stretch);
--feg until Debian 9 (Stretch);
--fitstabletype until Debian 9 (Stretch);
--floatprecision until Debian 9 (Stretch);
--floatwidth until Debian 9 (Stretch);
--lintwidth until Debian 9 (Stretch);
--nolog until Debian 9 (Stretch);
--onlydirconf until Debian 9 (Stretch);
--sintwidth until Debian 9 (Stretch);
--strwidth until Debian 9 (Stretch);
-m until Debian 12 (Bookworm).