Astro:...polated(3pm)
π Astro::Coords::Interpolated β the perl man page, but make it a group chat π
okay so this is Astro::Coords::Interpolated, straight out of the User Contributed Perl Documentation corner of your man pages. buckle up bestie, we're doing astronomy π«
π NAME π
Astro::Coords::Interpolated β specify astronomical coordinates using two reference positions. that's it. that's the name. iconic of it honestly π«Ά
β¨ SYNOPSIS β¨
$c = new Astro::Coords::Interpolated( ra1 => '05:22:56',
dec1 => '-26:20:44.4',
mjd1 => 52440.5,
ra2 => '05:23:56',
dec2 => '-26:20:50.4',
mjd2 => 52441.5,);
like, that's literally the whole vibe check right there π
π DESCRIPTION π
so this class is the one Astro::Coords calls in when it needs to handle coordinates for moving sources β and it does that by taking two coordinates at two epochs and interpolating between them. no cap, that's the entire personality π
π¦ METHODS π¦
π Constructor
newβ instantiate a whole new object using the options you handed it. main character energy from the very first line β¨
$c = new Astro::Coords::Interpolated( ra1 => '05:22:56',
dec1 => '-26:20:44.4',
mjd1 => 52440.5,
ra2 => '05:23:56',
dec2 => '-26:20:50.4',
mjd2 => 52441.5,
units =>
);
it returns undef on error (π rude but fair). the positions are assumed to be apparent RA/Dec for the telescope location. units are optional β go check "Astro::Coords::Equatorial" for the deets π§
πΈ Accessor Methods
ra1β apparent Right Ascension of the first reference position π
$ra = $c->ra1( %opts );
see "NOTES" in Astro::Coords for the details on the supported format specifiers and the default calling convention. iykyk π«
dec1β apparent declination of the first reference position.
$dec = $c->dec1( format => "sexagesimal" );
again, "NOTES" in Astro::Coords has the format specifier lore and the default calling convention π
mjd1β the time (MJD) when the first reference position was actually valid. clock it β°ra2β apparent Right Ascension of the second reference position.
$ra = $c->ra2( format => 'rad' );
"NOTES" in Astro::Coords, format specifiers, default calling convention, you know the drill π
dec2β apparent declination of the second reference position.
$dec = $c->dec2( format => "sexagesimal" );
yes bestie, "NOTES" in Astro::Coords again β format specifiers + default calling convention πΈ
mjd2β the time (MJD) when the second reference position was valid. β³
π₯ General Methods
arrayβ hands you back an 11 element array where the first element is the string"INTERP"and the next ten elements areundef.
this method returns a standardised set of elements across all types of coordinates β consistency queen π
heads up: the original design didn't contain this type of coordinate specification, so the array returned can not yet include it. it needs more work to integrate into the other coordinate systems. it's giving "work in progress" and honestly same π
typeβ returns the generic type associated with the coordinate system. for this class the answer is always"INTERP"π
this is used to aid construction of summary tables when you're mixing coordinates together.
apparently it could be done using isa relationships. noting that for the record π
stringifyβ the Stringify overload. just returns the type. lowkey minimal, highkey efficient β¨summaryβ returns a one line summary of the coordinates. in the future it'll accept arguments to control the output (future queen behaviour tbh π)
$summary = $c->summary();
apparentβ returns the apparent RA and Dec (as two"Astro::Coords::Angle"objects) for the current coordinates and time π¦
($ra,$dec) = $c->apparent();
the apparent RA/Dec comes from linear interpolation off the reference positions. and if the time you asked for lies outside the reference times? the position gets extrapolated. extrapolation era, we love to see it π
apply_offsetβ the overrided method that just warns you if"Astro::Coords::apply_offset"gets called on this subclass. it's not mad, it's just disappointed π
β NOTES β
usually you don't call this directly β it gets called via "Astro::Coords". this is the coordinate style SCUBA uses for non-sidereal sources instead of messing with orbital elements π
apparent RA/Decs suitable for this class can be obtained from http://ssd.jpl.nasa.gov/ β go get your coordinates bestie πβ¨
π§ SEE ALSO π§
Astro::Coords::Elements
π REQUIREMENTS π
does not use any external PAL routines. zero external dependencies, we stay unbothered π
π AUTHOR π
Tim Jenness <tjenness@cpan.org> β legend behaviour π«Ά
π COPYRIGHT π
Copyright (C) 2012 Science and Technology Facilities Council. 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
fr fr read the license, it's literally right there π
and that's the page!! this lil man page is living under perl v5.42.2 and dated 2026-02-15 β so when you cite it in your essay, that's the version and date to credit ππ slay, go interpolate some coordinates β¨π¦
π¦ where this page comes from
- alpine 3.24: perl-astro-coords-doc 0.23-r1 Β· GPL-3.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms