TABLE(1)
π TABLE(1) β the manual page, but make it make sense π
okay so bestie, you opened the man page for Table from section 1 (User Commands). it's part of GNU Astronomy Utilities 0.24 and honestly? it eats. let's get into it π«Ά
β¨ NAME β¨
Table β read and write ASCII and FITS tables π¦
β¨ SYNOPSIS β¨
asttable [OPTION...] ASTRdata
β¨ DESCRIPTION β¨
so Table is one of the programs in GNU Astronomy Utilities 0.24. what does it do? three iconic things: view information, select columns, and convert tables. that's it, that's the vibe π
the inputs and outputs can be any of these:
- plain text (with white-space or comma as delimiters)
- FITS ascii tables
- FITS binary tables
and the output columns? you can pick them:
- by number (counting from 1)
- by name
- or with regular expressions
for the regex route, you enclose the value you hand to the --column (-c) option in slashes ('\', as in '-c\^mag\'). lowkey the slash thing trips people up, so clock it now.
want the selected columns printed right there on the command line? then just don't specify an output file. no output file, no problem, straight to stdout β¨
π want more info? run these
if you need more, run any of these commands. and fr fr, the second one is the one with the very comprehensive explanation of how Table gets invoked: expected input(s), output(s), and a full description of all the options.
all options and their values:
$ asttable -P
inputs/outputs and options:
$ info asttable
full section in the manual/book:
$ info Table
full Gnuastro manual/book:
$ info gnuastro
and if the manual is not giving you the answer you need, you can get direct help from experienced Gnuastro users and developers. more info:
$ info help-gnuastro
β¨ OPTIONS β¨
Table options, babes. buckle up, there's a lot and they're all important π
πΈ Input πΈ
-b,--noblank=STR[,STR]β removes rows that have a blank in the columns you name. bye blank rows π-c,--column=STRβ column number (counting from 1) or a search string. your main character option.-C,--catcolumns=STRβ the columns to use in--catcolumnfile.-E,--noblankend=STR[,STR]β same energy as--noblank, but at the end (e.g., after arith.).-h,--hdu=STR/INTβ extension name or number of the input data.--inpolygon=STR,STRβ the coordinate columns that are inside--polygon.-I,--ignorecaseβ ignore case when matching/searching columns. case? never heard of her.-L,--catcolumnfile=FITS/TXTβ file(s) to be concatenated by column.--outpolygon=STR,STRβ the coordinate columns that are outside--polygon.-R,--catrowfile=FITS/TXTβ file(s) to be concatenated by row.--searchin=STRβ select column(s) by:'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 the 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 the output if it already exists.-f,--txtf32format=STRβ text output float32 format:'fixed'or'exp'.--info-num-colsβ only print the input table's number of columns.--info-num-rowsβ only print the input table's number of rows.-i,--informationβ only print the input table's information.-K,--keepinputdirβ keep the input directory for automatic output.--outfitsnocommitβ no Git commit in the 0-th HDU of the output FITS.--outfitsnoconfigβ no metadata in the 0-th HDU of the output FITS.--outfitsnodateβ no'DATE'in the 0-th HDU of the output FITS.--outfitsnoversionsβ no versions in the 0-th HDU of the 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 format:'fits-ascii','fits-binary','txt'.--wcslinearmatrix=STRβ WCS linear matrix of the output ('pc'or'cd').-Y,--txteasyβ short for'-Afixed -B6 -ffixed -p3'. one letter, so much power β¨
πΈ Precedence (default: column operations first) πΈ
--rowfirstβ apply row-based operations first.
πΈ Columns in output πΈ
--catcolumnrawnameβ don't touch the column names of--catcolumnfile.--fromvector=STR,INT[,INT]β extract column(s) from a vector column.-k,--keepvectfinβ keep the 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 the table (it must only contain vector cols).
πΈ Rows in output πΈ
-d,--descendingβ sort in descending order: largest first.--envseedβ use theGSL_RNG_SEEDenvironment variable for'--rowrandom'.-e,--equal=STR,FLT[,...]β column, and the values to keep in the output.-H,--head=INTβ only return the given number of top rows.-n,--notequal=STR,FLT[,...]β column, and the values to remove from the 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 the range to limit the output.-s,--sort=STR/INTβ column name or number for sorting.-t,--tail=INTβ only return the 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 the 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.
π¨ little note bestie: mandatory or optional arguments to long options are also mandatory or optional for any corresponding short options. so like, don't think the short one is free of strings. it is not. π
GNU Astronomy Utilities home page: http://www.gnu.org/software/gnuastro/
β¨ REPORTING BUGS β¨
found a bug? report bugs to bug-gnuastro@gnu.org. they want to know, fr fr π
β¨ COPYRIGHT β¨
Copyright Β© 2015-2025 Free Software Foundation, Inc. License GPLv3+: GNU General public license version 3 or later.
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law. β οΈ
Written/developed by Mohammad Akhlaghi π
β¨ SEE ALSO β¨
the full documentation for Table is maintained as a Texinfo manual. if the info and Table programs are properly installed at your site, this command:
info Table
should give you access to the complete manual. iykyk πβ¨
and that's the whole page, bestie π«Ά this was GNU Astronomy Utilities version 0.24, dated November 2025, and it's TABLE(1). slay, go sort some tables πππ¦
π¦ where this page comes from
- epel 10: gnuastro 0.24-1.el10_3 Β· GPL-3.0-or-later AND FSFAP AND GFDL-1.3-or-later
- epel 9: gnuastro 0.24-1.el9 Β· GPL-3.0-or-later AND FSFAP AND GFDL-1.3-or-later
- nixos 26.05: gnuastro 0.24
- nixpkgs unstable: gnuastro 0.24
- ubuntu resolute: gnuastro 0.24-1 Β· GPL-3.0-or-later
- ubuntu stonking: gnuastro 0.24-1 Β· GPL-3.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms