• Home
  • History
  • Annotate
Name Date Size #Lines LOC

..03-May-2022-

LICENSES/H10-Nov-2021-384299

eg/H10-Nov-2021-2,7811,272

inc/H10-Nov-2021-1,964845

lib/Astro/Coord/H10-Nov-2021-18,1729,052

script/H10-Nov-2021-5,9552,658

t/H10-Nov-2021-13,86711,498

tools/H10-Nov-2021-209108

xt/author/H10-Nov-2021-1,4461,146

Build.PLH A D10-Nov-20213.1 KiB12394

CONTRIBUTINGH A D10-Nov-20211.5 KiB2824

ChangesH A D10-Nov-202181.2 KiB2,4521,632

MANIFESTH A D10-Nov-20211.6 KiB8988

META.jsonH A D10-Nov-20212.9 KiB114113

META.ymlH A D10-Nov-20211.7 KiB7675

Makefile.PLH A D10-Nov-20214.7 KiB183143

READMEH A D10-Nov-20212.6 KiB7655

README.MacOSH A D10-Nov-20213 KiB8771

README

1Astro-satpass is Copyright (C) 2005-2021 by Thomas R. Wyant, III
2
3DESCRIPTION
4
5This package contains classes needed to predict satellite visibility,
6and a demonstration application (satpass) that makes use of these
7classes. The classes themselves are:
8
9Astro::Coord::ECI - superclass (coordinate transforms)
10Astro::Coord::ECI::Moon - Predict location of the Moon.
11Astro::Coord::ECI::Star - Predict location of a star.
12Astro::Coord::ECI::Sun - Predict location of the Sun.
13Astro::Coord::ECI::TLE - Predict location of a satellite.
14Astro::Coord::ECI::TLE::Set - Aggregation of TLEs, with ability
15    to use the correct TLE depending on time.
16Astro::Coord::ECI::Utils - Constants and utility subroutines.
17
18The following has been moved to its own package:
19
20Astro::Coord::ECI::TLE::Iridium - Subclass of TLE, with the ability
21    to predict flares.
22
23INSTALLATION
24
25Most Perl users will want to install using their favorite of 'cpan',
26'cpanm', or 'cpanp'. For any of these, installing Astro::Coord::ECI gets
27you everything. ActivePerl users who use ActiveState's 'ppi' should
28install Astro-satpass.
29
30If for some reason neither of these works for you, you can download the
31distribution and expand it using something like
32
33    tar -xzf Astro-satpass-9.999.tar.gz
34
35Users of MSWin32 (and perhaps other operating systems) may need to
36convert the line endings in the expanded files from Unix to their native
37system before proceeding.
38
39Then, issue one of the following two incantations:
40
41    perl Makefile.PL
42    make
43    make test
44    sudo make install
45
46or
47
48    perl Build.PL
49    ./Build
50    ./Build test
51    sudo ./Build install
52
53You should substitute the appropriate program name for 'make', eg nmake
54(typically) under MSWin32, or mms or mmk under VMS. See
55ftp://ftp.microsoft.com/Softlib/MSLFILES/nmake15.exe for a copy of
56nmake for MSWin32 if you need it.
57
58Unix users may want to use 'su' rather than 'sudo' for the install.
59Non-unix users may need to be logged in to an administrative or
60otherwise privileged accout, and turn on privileges (if applicable) for
61the install.
62
63Of course, since it's pure Perl, you can just expand the kit and drop
64the .pm files into the Astro/Coord/ECI directory (creating it if
65necessary) in the appropriate place in your @INC directories.
66
67LICENSING INFORMATION
68
69This package is free software; you can redistribute it and/or modify it
70under the same terms as Perl 5.10.0. For more details, see the full text
71of the licenses in the directory LICENSES.
72
73This program is distributed in the hope that it will be useful, but
74without any warranty; without even the implied warranty of
75merchantability or fitness for a particular purpose.
76

README.MacOS

1This README covers MacPerl and Mac OS classic. If you are running
2Darwin (i.e. Mac OS X) this information does not apply.
3
4There are some extra steps necessary to use this module with
5MacPerl, mostly because of the difficulty of installing extra
6modules. But you CAN get there if you have a copy of Stuffit
7Expander.
8
9What you need to do is to obtain and expand the following
10distributions from CPAN:
11
12Astro-satpass
13Astro-SpaceTrack
14DateManip
15IO-String
16
17Once you have expanded the required kits, you need to convert
18them from Unix line terminations to Mac line terminations. This
19is not bad, just tedious. You need to make a MacPerl droplet out
20of the following Perl script:
21
22foreach (@ARGV) {
23    my $fn = $_;
24    print "Reading $fn\n";
25    open (IN, "<$fn") or die <<eod;
26Error - Failed to open input file $fn
27        $!
28eod
29    my @data;
30    while (<IN>) {push @data, split ('\r', $_)}
31    close IN;
32    print "Writing $fn\n";
33    open (OUT, ">$fn") or die <<eod;
34Error - Failed to open output file $fn
35        $!
36eod
37    foreach (@data) {print OUT "$_\n"}
38    close OUT;
39    }
40
41
42Then go through the expanded directories and delete any files except
43the contents of the 'bin' folder, and files that end in '.pm'. Drop the
44.pm files onto your droplet. It will save the converted file over the
45original.
46
47Once you have done this, open folder 'MacPerl f' (or wherever
48your MacPerl is). Find the site_perl folder and open it. Create
49folders 'Astro', 'Date', and 'IO'. In folder 'Astro', create
50folder 'Coord'. Drag SpaceTrack.pm and the SpaceTrack folder
51with it into the 'Astro' folder. Drag ECI.pm and the ECI folder
52with it into the 'Coord' folder. Drag Manip.pm into the 'Date'
53folder. Drag String.pm into the 'IO' folder.
54
55Now find the satpass script in the bin folder of the
56Astro-satpass distribution. Run it through your droplet, and
57save the output to some convenient location. Then, open the
58script in MacPerl. MacPerl will complain about it being too
59big to edit, and invite you to save it. Save it as an
60executable. Then launch it.
61
62The initialization file goes wherever you put your executable.
63You should put into the initialization file at least the
64statement
65
66set tz your_time_zone_setting
67
68Unfortunately what you need for the time zone setting is not
69well-defined. You can try the Date::Manip docs. I live on
70the east coast of the U.S., and EST5EDT works for me.
71
72Caveats:
73
74Date::Manip is a heavyweight but useful module. Unfortunately,
75it also assumes that time 0 is January 1, 1970. But MacPerl's
76time 0 is January 1, 1904. Rather than try to get this patched,
77I have simply had the satpass script add a fudge factor. This
78implementation will break if Date::Manip ever gets wise to
79"non-standard" epochs. Be aware of this should you decide to
80use Date::Manip for other purposes.
81
82The satpass script's 'help' function doesn't work under MacPerl.
83This is because it tries to parse the POD out of the script, but
84when MacPerl converts the script to an executable, the POD gets
85lost. You can find the docs by hunting up the package at
86https://metacpan.org/release/Astro-satpass
87