TITLE

celestrak-availability - Check availability of specified Celestrak catalogs

SYNOPSIS

celestrak-availability stations
celestrak-availability --help
celestrak-availability --version

OPTIONS

--debug

This Boolean option causes debug output when it is asserted. The author makes no representation what this will be, and reserves the right to change or revoke it without notice.

The default is --no-debug.

--https

This Boolean option causes the queries to be done using https:. If not asserted, the queries use http:.

The default is --https, but you can negate this by specifying --no-https.

--help

This option displays the documentation for this script. The script then exits.

--version

This option displays the version of this script. The script then exits.

DETAILS

This Perl script takes prospective Celestrak catalog names on its command line. The output (to STDOUT) is a tab-separated report, one catalog per line, giving the catalog name, the word 'direct' if it can be direct-fetched, and the word 'spacetrack' if it can be used to fetch data from Space Track. If the catalog name is invalid, neither of these will appear.

The catalog name is the relevant portion of the URL used to fetch it, which is substituted into the URL as follows:

direct     => 'https://celestrak.org/NORAD/elements/%s.txt',
spacetrack => 'https://celestrak.org/SpaceTrack/query/%s.txt',

Only a HEAD request is done, and the Space Track web site is not accessed at all.

AUTHOR

Thomas R. Wyant, III wyant at cpan dot org

COPYRIGHT AND LICENSE

Copyright (C) 2021-2026 by Thomas R. Wyant, III

This program is free software; you can redistribute it and/or modify it under the same terms as Perl 5.10.0. For more details, see the full text of the licenses in the files LICENSE-Artistic and LICENSE-GPL.

This program is distributed in the hope that it will be useful, but without any warranty; without even the implied warranty of merchantability or fitness for a particular purpose.