ASTSCRIPT-SORT-BY-NIGHT(1)
π ASTSCRIPT-SORT-BY-NIGHT β the astscript-sort-by-night manual page, bestie edition π
okay so you're looking at the astscript-sort-by-night page from the User Commands section of the manual. it sorts your FITS files by night. yes really. it's giving astronomer-with-a-calendar energy and honestly? iconic. β¨
β¨ NAME β¨
astscript-sort-by-night β Sort input FITS files by night ποΈπ
π¦ SYNOPSIS π¦
astscript-sort-by-night [OPTION] FITS-files
π DESCRIPTION π
okay bestie, sit down, hydrate, because this is actually so cool. π
This script is part of GNU Astronomy Utilities 0.24. no cap.
So here's the vibe: this script will look into a HDU/extension for a header keyword in the given FITS files and interpret the value as a date. then it splits your inputs up into "night"s. what even counts as a "night"? that's the --hour option's whole job, and also β heads up, bestie β the FITS time may be recorded in UTC, not local time, so watch out!! π
Then it prints a list of all the input files along with these two columns: night number and file number in that night (sorted by time). obsessed.
With --link a symbolic link (one for each input) will be made, with names that include the night classifier. and with --copy, instead of a link, a copy of the inputs will be made. pick your fighter π«Ά
For more information, please run any of the following commands. in particular, the first one contains a very comprehensive explanation of this script's invocation: expected input(s), output(s), and a full description of all the options. (the way that first one carries the whole team fr fr π)
Inputs/Outputs and options:
$ info astscript-sort-by-night
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
πΈ astscript-sort-by-night options: πΈ
π Input:
-h,--hdu=STRβ HDU/extension of all input FITS files.-k,--key=STRβ Header keyword specifying date to use.-H,--hour=FLTβ Hour in next day to be included in night. β οΈ Be aware of time zones with this argument!! like, genuinely, watch those time zones, bestie.
π Output:
-l,--linkβ list of inputs with night and file number.-c,--copyβ Copy the files, don't make symbolic links.-p,--prefix=STRβ Prefix for outputs of--copyand--link.
π Operating mode:
-?,--helpβ Print this help list.--citeβ BibTeX citation for this program.-q,--quietβ Don't print any extra information in stdout.-V,--versionβ Print program version.--stdintimeoutβ Micro-seconds to wait for standard input (used for operations within this script).
Mandatory or optional arguments to long options are also mandatory or optional for any corresponding short options. (yes this is the rules, no I did not make them up π)
GNU Astronomy Utilities home page: http://www.gnu.org/software/gnuastro/
π REPORTING BUGS π
Report bugs to bug-gnuastro@gnu.org. please be nice, they're doing their best π«Ά
π 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. (read that again, bestie, no warranty, periodt π)
Written/developed by Mohammad Akhlaghi β main character energy, truly π
β SEE ALSO β
The full documentation for astscript-sort-by-night is maintained as a Texinfo manual. If the info and astscript-sort-by-night programs are properly installed at your site, the command
info astscript-sort-by-night
should give you access to the complete manual.
GNU Astronomy Utilities 0.24 π¦ November 2025 π that's the version and the date, bestie β mwah, go sort some nights, you got this πβ¨
π¦ 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