++ed by:
HAMMER TYLDUM

2 PAUSE users

Tom Wyant
and 1 contributors

TITLE

convert_tle - Convert TLE data to/from JSON

SYNOPSIS

 convert_tle data.tle
 convert_tle -help
 convert_tle -version

OPTIONS

-help

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

-json

This option requires the output to be in JSON format. -nojson restores the default.

-tle

This option requires the output to be in TLE format. -notle restores the default.

-version

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

DETAILS

This Perl script reads TLE data, and converts it from JSON to TLE format, or vice versa. The JSON data is similar to (read: 'uses the same keys as') the data provided by the Space Track REST interface. Input is from files named on the command line, or from standard in. Output is to standard out.

By default, JSON is converted to TLE, and TLE to JSON. Input that begins with '{' or '[{' is assumed to be JSON; anything else is assumed to be TLE.

You can force output to be TLE or JSON using the -tle or -json options. If both are specified, the rightmost takes precedence. Negating either option (as -notle or -nojson) has the effect of restoring the default.

AUTHOR

Thomas R. Wyant, III wyant at cpan dot org

COPYRIGHT AND LICENSE

Copyright (C) 2012-2017 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 directory LICENSES.

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.