Astro-Coords
view release on metacpan or search on metacpan
lib/Astro/Coords/Elements.pm view on Meta::CPAN
my ($ra, $dec, $dist, $j) = Astro::PAL::palPlante($self->_mjd_tt, $long, $lat, $jform,
$el{EPOCH}, $el{ORBINC}, $el{ANODE}, $el{PERIH},
$el{AORQ}, $el{E}, $el{AORL}, $el{DM} );
croak "Error determining apparent RA/Dec for target ".
(defined $self->name ? $self->name : '' )
."[status=$j]" if $j != 0;
# Convert to angle object
$ra_app = new Astro::Coords::Angle::Hour($ra, units => 'rad', range => '2PI');
$dec_app = new Astro::Coords::Angle($dec, units => 'rad');
# Store in cache
$self->_cache_write( "RA_APP" => $ra_app, "DEC_APP" => $dec_app );
}
return( $ra_app, $dec_app );
}
=item B<rv>
Radial velocity of the planet relative to the Earth geocentre.
=cut
sub rv {
croak "Not yet implemented element radial velocities";
}
=item B<vdefn>
Velocity definition. Always 'RADIO'.
=cut
sub vdefn {
return 'RADIO';
}
=item B<vframe>
Velocity reference frame. Always 'GEO'.
=cut
sub vframe {
return 'GEO';
}
=item B<apply_offset>
Overrided method to warn if C<Astro::Coords::apply_offset> is
called on this subclass.
=cut
sub apply_offset {
my $self = shift;
warn "apply_offset: applying offset to orbital elements position for a specific time.\n";
return $self->SUPER::apply_offset(@_);
}
=back
=head1 NOTES
Usually called via C<Astro::Coords>.
=head1 LINKS
Useful sources of orbital elements can be found at
http://ssd.jpl.nasa.gov and http://cfa-www.harvard.edu/iau/Ephemerides/
=head1 REQUIREMENTS
C<Astro::PAL> is used for all internal astrometric calculations.
=head1 AUTHOR
Tim Jenness E<lt>tjenness@cpan.orgE<gt>
=head1 COPYRIGHT
Copyright (C) 2001-2005 Particle Physics and Astronomy Research Council.
All Rights Reserved.
This program is free software; you can redistribute it and/or modify it under
the terms of the GNU General Public License as published by the Free Software
Foundation; either version 3 of the License, or (at your option) any later
version.
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. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with
this program; if not, write to the Free Software Foundation, Inc., 59 Temple
Place,Suite 330, Boston, MA 02111-1307, USA
=cut
1;
( run in 2.320 seconds using v1.01-cache-2.11-cpan-5a3173703d6 )