COSMICCALCULATOR(1)

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

πŸ’« COSMICCALCULATOR(1) β€” User Commands πŸ’«

okay bestie, buckle up, this is CosmicCalculator, one of the little legends from GNU Astronomy Utilities 0.24, and she's here to do your cosmological calculations for you. no cap.


✨ NAME ✨

CosmicCalculator β€” estimate cosmological values πŸ¦‹


✨ SYNOPSIS ✨

astcosmiccal [OPTION...]

✨ DESCRIPTION ✨

so like, CosmicCalculator is part of GNU Astronomy Utilities 0.24 πŸ’– and she does cosmological calculations. periodt.

here's the tea on how she behaves:

  • if no redshift is specified, she will only print the main input parameters.
  • if only a redshift is given, she will print a table of all the calculations.
  • if any of the single row calculations are requested, only their values will be printed, with a single space between each one. no frills, just numbers.

for more info, pls run any of these commands. and like, the second one is the main character here β€” it contains a very comprehensive explanation of CosmicCalculator's invocation: expected input(s), output(s), and a full description of all the options. iykyk πŸ‘‘

All options and their values:

$ astcosmiccal -P

Inputs/Outputs and options:

$ info astcosmiccal

Full section in manual/book:

$ info CosmicCalculator

Full Gnuastro manual/book:

$ info gnuastro

and if you couldn't find your answer in the manual, you can get direct help from experienced Gnuastro users and developers. for more info, pls run:

$ info help-gnuastro

CosmicCalculator options πŸ‘‡


✨ OPTIONS ✨

🌸 Input:

  • -H, --H0=FLT β€” current expansion rate (Hubble constant). πŸ’«
  • -l, --olambda=FLT β€” current cosmological cst. dens. per crit. dens.
  • -m, --omatter=FLT β€” current matter density per critical density.
  • -O, --obsline=STR,FLT β€” redshift from line and observed wavelength. πŸ”­
  • -r, --oradiation=FLT β€” current radiation density per critical density.
  • -y, --velocity=FLT β€” velocity of interest in km/s. πŸƒβ€β™€οΈ
  • -z, --redshift=FLT β€” redshift of interest.

🌈 Basic cosmology calculations

  • -a, --absmagconv β€” conversion to absolute magnitude (no unit).
  • -A, --angulardiamdist β€” angular diameter distance (Mpc).
  • -b, --lookbacktime β€” look back time to z (Ga: Giga Annum). ⏳
  • -c, --criticaldensity β€” critical density at z (g/cm^3).
  • -C, --criticaldensitynow β€” critical density now (g/cm^3).
  • -d, --properdistance β€” proper distance to z (Mpc). πŸ“
  • -e, --usedredshift β€” used redshift in this run.
  • -g, --age β€” age of universe at z (Ga: Giga Annum).
  • -G, --agenow β€” age of universe now (Ga: Giga Annum).
  • -L, --luminositydist β€” luminosity distance to z (Mpc). ✨
  • -s, --arcsectandist β€” tangential dist. for 1arcsec at z (physical kpc).
  • -u, --distancemodulus β€” distance modulus at z (no units).
  • -v, --volume β€” comoving volume (4pi str) to z (Mpc^3). 🫧
  • -Y, --usedvelocity β€” used velocity (in km/s) for this run.

🧚 Spectral lines

  • -i, --lineatz=STR/FLT β€” wavelength of line (name or wavelength) at z.
  • --lineunit=STR β€” unit ('angstrom', 'nm', 'microm' or 'm').
  • --listlines β€” list pre-defined lines at rest frame.
  • --listlinesatz β€” list pre-defined lines at the given redshift.

πŸ‘‘ 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.
  • --minmapsize=INT β€” min. bytes to avoid RAM automatically.
  • --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.
  • -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

okay important note bestie: 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/


πŸ› REPORTING BUGS πŸ›

found a bug? not cute. report it to bug-gnuastro@gnu.org πŸ™ˆ


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 CosmicCalculator is maintained as a Texinfo manual. if the info and CosmicCalculator programs are properly installed at your site, the command

info CosmicCalculator

should give you access to the complete manual. πŸŽ€


and that's the whole vibe, bestie πŸ¦‹ this was GNU Astronomy Utilities 0.24, dated November 2025 β€” slay, go compute some universe stuff πŸ’–βœ¨

πŸ“¦ where this page comes from