QUERY(1)

πŸ“¦
version 0.24 Β· 5 versions
, in epel 10, epel 9, nixos 26.05, nixpkgs unstable, ubuntu resolute, ubuntu stonking

✨ query(1) ✨ β€” bestie's guide to the remote data server slayer πŸ’…

okay so. hi. you opened the manual page for query from the User Commands crew and honestly? you're about to eat. let's get into it 🫢


πŸ’– NAME πŸ’–

query β€” query remote data servers and download πŸ›°οΈβœ¨


🌸 SYNOPSIS 🌸

astquery [OPTION...] DATABASE

like. that's the whole vibe. a program name, some options, and a DATABASE. iconic.


πŸ¦‹ DESCRIPTION πŸ¦‹

so query is part of GNU Astronomy Utilities 0.24 πŸ’« and ngl, query is just a place holder β€” a minimal little set of files and functions that a program in Gnuastro needs to exist. no cap. it's there so you can learn from it or use it as a template to build your own new programs. it's giving starter pack energy πŸŽ€

want more info? bestie, run any of these. the second one is the real one, it explains the entire invocation of query β€” what inputs it expects, what outputs it makes, and every single option, full description:

all the options and their values:

$ astquery -P

inputs/outputs and options:

$ info astquery

full section in the manual/book:

$ info query

full Gnuastro manual/book:

$ info gnuastro

and if the manual is simply not answering your question (rude of it), you can get direct help from experienced Gnuastro users and developers. for that, run:

$ info help-gnuastro

πŸ‘‘ query options πŸ‘‘

πŸ“ Input πŸ“

  • --ccol=STR,STR β€” coordinate (RA, Dec) column names in the dataset. two strings, comma, no thoughts πŸ’…
  • -h, --hdu=STR/INT β€” extension name or number of the input data.
  • -L, --limitinfo=STR β€” only retrieve dataset info. that has this string in it.
  • -Q, --query=STR β€” the raw query, as a simple string. straight up. no filter.
  • -v, --overlapwith=FITS β€” set the query region to overlap with this image.

✨ Output ✨

  • --dry-run β€” only print the download command, don't actually run it. window shopping πŸ›οΈ
  • -D, --dontdelete β€” don't delete the output if it already exists.
  • -i, --information β€” print database or dataset information.
  • -k, --keeprawdownload β€” don't delete the raw downloaded file.
  • -K, --keepinputdir β€” keep the input directory for the 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.
  • --tableformat=STR β€” table fmt: 'fits-ascii', 'fits-binary', 'txt'.
  • --wcslinearmatrix=STR β€” WCS linear matrix of the output ('pc' or 'cd').

🧚 Generate query internally (not compatible with --query) 🧚

heads up bestie: this whole little family is not compatible with --query. pick a lane πŸ’€
  • -b, --noblank=STR[,STR] β€” no rows with a blank value in the given column(s).
  • -c, --column=STR β€” column names to download from the catalog.
  • -C, --center=FLT,FLT β€” center coords. to select by region in the sky.
  • -g, --range=STR,FLT:FLT β€” range of selected targets in the given column.
  • -H, --head=INT β€” only download the given number of top rows.
  • -r, --radius=FLT β€” radius around --center to select targets.
  • --sort=STR[,STR] β€” sort based on the values of the given columns.
  • -s, --dataset=STR β€” name of the dataset in the database.
  • -w, --width=FLT[,FLT] β€” width of the box around --center to select targets.

🌈 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 in config files.
  • --lastconfig β€” do not parse any more configuration files.
  • --onlyversion=STR β€” only run if the program version is STR.
  • -P, --printparams β€” print the parameter values to be used and abort.
  • -q, --quiet β€” only report errors, remain quiet about the 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. fr fr, it's a package deal.

GNU Astronomy Utilities home page: http://www.gnu.org/software/gnuastro/ 🌐


😭 REPORTING BUGS 😭

found a bug? report it to bug-gnuastro@gnu.org. they wanna know, bestie 🫢


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. like, none. zero. the software is out here raw-dogging reality πŸ™ˆ

Written/developed by Mohammad Akhlaghi πŸ‘‘


πŸ”₯ SEE ALSO πŸ”₯

the full documentation for query is maintained as a Texinfo manual. if the info and query programs are properly installed at your site, this command

info query

should give you access to the complete manual. iykyk πŸ“–βœ¨


and that's the whole page, babe πŸŽ€ this was GNU Astronomy Utilities 0.24, dated November 2025 β€” go forth and query your little heart out πŸ’–πŸ¦‹πŸ’…

πŸ“¦ where this page comes from