One thing I lack now is a representation for where Aldebaran is.

I tried writing a script that used the example in Star.pm. In it, it required me to turn right ascension into radians, and after the script pooped out, I realized that all I needed to start making comparisons was its fixed value in radians.

$ ./7.astro.pl ./7.astro.pl Name Right Ascension Declination Mars 1.18463017264379 0.407948808088123 Moon 1.51448031651065 0.422740932680421 Aldeb 1.20392811802569 0.288139315093836 Time is Sun Mar 21 00:39:59 2021 Julian day is 2459294.7777662 $ pt 7.astro.pl $ cat 7.astro.pl <-I do this to be correct and use STDOUT to list reli +ably
#!/usr/bin/perl use Time::Piece; use Astro::Coord::ECI::Utils 'deg2rad'; use Astro::Coords; use Log::Log4perl; my $file = '/home/hogan/Documents/hogan/logs/3.log4perl.txt'; # unlink $file or warn "Could not unlink $file: $!"; my $log_conf4 = "/home/hogan/Documents/hogan/logs/conf_files/3.conf"; Log::Log4perl::init($log_conf4); #info my $logger = Log::Log4perl->get_logger(); $logger->info("$0"); $logger->info("Name\tRight Ascension\t\tDeclination"); for my $name (qw/Mars Moon/) { my $planet2 = Astro::Coords->new( planet => $name ); $planet2->datetime( Time::Piece->new ); my $ra = $planet2->ra( format => q/rad/ ); my $dec = $planet2->dec( format => q/rad/ ); $logger->info("$name\t$ra\t$dec"); } my $aldeb_ra_degrees = 68.98; my $aldeb_ra_radians = deg2rad($aldeb_ra_degrees); my $aldeb_declination_degrees = 16.509166666667; my $aldeb_dec_radians = deg2rad($aldeb_declination_degrees); $logger->info("Aldeb\t$aldeb_ra_radians\t$aldeb_dec_radians "); my $t = localtime; my $jd = $t->julian_day; $logger->info("Time is $t"); $logger->info("Julian day is $jd"); __END__

So, the data is bunching together well, but I'm not completely sure how I'd go about figuring out when something crosses between. For me, it's a tantalizing triangle.

I would think that we should think of these creatures as two-vectors of radians. Then my question now is this: if these are 3 traveling 2-vectors (one is stationary for this script), how do I write a function to calculate betweenness? It seems clear to me that I would need to invoke a telescope method.

I also wonder if everyone in the world could have had a chance to see this (less light pollution)?


In reply to Re: Deciding when the moon passed between aldebaran and mars by Aldebaran
in thread Deciding when the moon passed between aldebaran and mars by Aldebaran

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.