| line | stmt | bran | cond | sub | pod | time | code | 
| 1 |  |  |  |  |  |  | package Astro::Montenbruck::Time::Sidereal; | 
| 2 | 1 |  |  | 1 |  | 167421 | use strict; | 
|  | 1 |  |  |  |  | 6 |  | 
|  | 1 |  |  |  |  | 30 |  | 
| 3 | 1 |  |  | 1 |  | 6 | use warnings; | 
|  | 1 |  |  |  |  | 2 |  | 
|  | 1 |  |  |  |  | 26 |  | 
| 4 |  |  |  |  |  |  |  | 
| 5 | 1 |  |  | 1 |  | 541 | use Readonly; | 
|  | 1 |  |  |  |  | 3790 |  | 
|  | 1 |  |  |  |  | 55 |  | 
| 6 | 1 |  |  | 1 |  | 7 | use Exporter qw/import/; | 
|  | 1 |  |  |  |  | 3 |  | 
|  | 1 |  |  |  |  | 29 |  | 
| 7 | 1 |  |  | 1 |  | 435 | use Astro::Montenbruck::MathUtils qw/reduce_deg/; | 
|  | 1 |  |  |  |  | 3 |  | 
|  | 1 |  |  |  |  | 73 |  | 
| 8 | 1 |  |  | 1 |  | 510 | use Astro::Montenbruck::Time qw/jd_cent/; | 
|  | 1 |  |  |  |  | 2 |  | 
|  | 1 |  |  |  |  | 68 |  | 
| 9 | 1 |  |  | 1 |  | 442 | use Astro::Montenbruck::NutEqu qw/deltas obliquity/; | 
|  | 1 |  |  |  |  | 3 |  | 
|  | 1 |  |  |  |  | 180 |  | 
| 10 |  |  |  |  |  |  |  | 
| 11 |  |  |  |  |  |  | our @EXPORT = qw/ramc/; | 
| 12 |  |  |  |  |  |  |  | 
| 13 |  |  |  |  |  |  | our $VERSION = 0.01; | 
| 14 |  |  |  |  |  |  |  | 
| 15 |  |  |  |  |  |  |  | 
| 16 |  |  |  |  |  |  | Readonly::Scalar our $SOLAR_TO_SIDEREAL => 1.002737909350795; | 
| 17 |  |  |  |  |  |  | # Difference in between Sidereal and Solar hour (the former is shorter) | 
| 18 |  |  |  |  |  |  |  | 
| 19 |  |  |  |  |  |  | sub ramc { | 
| 20 | 1 |  |  | 1 | 1 | 120 | my ( $jd, $lambda ) = @_; | 
| 21 | 1 |  |  |  |  | 6 | my $t = jd_cent($jd); | 
| 22 |  |  |  |  |  |  |  | 
| 23 | 1 |  |  |  |  | 5 | my ($dpsi) = deltas($t); | 
| 24 |  |  |  |  |  |  |  | 
| 25 |  |  |  |  |  |  | # Correction for apparent S.T. | 
| 26 | 1 |  |  |  |  | 8 | my $corr = $dpsi * cos( obliquity($t) ) / 3600; | 
| 27 |  |  |  |  |  |  |  | 
| 28 |  |  |  |  |  |  | # Mean Local S.T. | 
| 29 | 1 |  |  |  |  | 9 | my $result = | 
| 30 |  |  |  |  |  |  | 280.46061837 + 360.98564736629 * ( $jd - 2451545 ) + | 
| 31 |  |  |  |  |  |  | 0.000387933 * $t * $t - | 
| 32 |  |  |  |  |  |  | $t**3 / 38710000 + | 
| 33 |  |  |  |  |  |  | $corr; | 
| 34 |  |  |  |  |  |  |  | 
| 35 | 1 |  |  |  |  | 2 | $result -= $lambda; | 
| 36 | 1 |  |  |  |  | 6 | reduce_deg($result); | 
| 37 |  |  |  |  |  |  | } | 
| 38 |  |  |  |  |  |  |  | 
| 39 |  |  |  |  |  |  | 1; | 
| 40 |  |  |  |  |  |  | __END__ | 
| 41 |  |  |  |  |  |  |  | 
| 42 |  |  |  |  |  |  | =pod | 
| 43 |  |  |  |  |  |  |  | 
| 44 |  |  |  |  |  |  | =encoding UTF-8 | 
| 45 |  |  |  |  |  |  |  | 
| 46 |  |  |  |  |  |  | =head1 NAME | 
| 47 |  |  |  |  |  |  |  | 
| 48 |  |  |  |  |  |  | Astro::Montenbruck::Time::Sidereal - Sidereal time related calculations. | 
| 49 |  |  |  |  |  |  |  | 
| 50 |  |  |  |  |  |  | =head1 VERSION | 
| 51 |  |  |  |  |  |  |  | 
| 52 |  |  |  |  |  |  | Version 0.01 | 
| 53 |  |  |  |  |  |  |  | 
| 54 |  |  |  |  |  |  |  | 
| 55 |  |  |  |  |  |  | =head1 DESCRIPTION | 
| 56 |  |  |  |  |  |  |  | 
| 57 |  |  |  |  |  |  | Sidereal time related calculations. | 
| 58 |  |  |  |  |  |  |  | 
| 59 |  |  |  |  |  |  | =head1 EXPORT | 
| 60 |  |  |  |  |  |  |  | 
| 61 |  |  |  |  |  |  | =over | 
| 62 |  |  |  |  |  |  |  | 
| 63 |  |  |  |  |  |  | =item * L</ramc($jd, $lambda)> | 
| 64 |  |  |  |  |  |  |  | 
| 65 |  |  |  |  |  |  | =back | 
| 66 |  |  |  |  |  |  |  | 
| 67 |  |  |  |  |  |  | =head1 SUBROUTINES/METHODS | 
| 68 |  |  |  |  |  |  |  | 
| 69 |  |  |  |  |  |  | =head2 ramc($jd, $lambda) | 
| 70 |  |  |  |  |  |  |  | 
| 71 |  |  |  |  |  |  | Right Ascension of the Meridian | 
| 72 |  |  |  |  |  |  |  | 
| 73 |  |  |  |  |  |  | =head3 Arguments | 
| 74 |  |  |  |  |  |  |  | 
| 75 |  |  |  |  |  |  | =over | 
| 76 |  |  |  |  |  |  |  | 
| 77 |  |  |  |  |  |  | =item * B<$jd> â Standard Julian Date. | 
| 78 |  |  |  |  |  |  |  | 
| 79 |  |  |  |  |  |  | =item * B<$lambda> â geographic longitude in degrees, negative for East | 
| 80 |  |  |  |  |  |  |  | 
| 81 |  |  |  |  |  |  | =back | 
| 82 |  |  |  |  |  |  |  | 
| 83 |  |  |  |  |  |  | =head3 Returns | 
| 84 |  |  |  |  |  |  |  | 
| 85 |  |  |  |  |  |  | Right Ascension of Meridian, arc-degrees | 
| 86 |  |  |  |  |  |  |  | 
| 87 |  |  |  |  |  |  | =cut |