Astro:...polated(3pm)

πŸ“¦ version 0.23, in alpine 3.24

🌟 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 are undef.

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 (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