Astro::SIMBAD::Result::Object - A individual astronomical object


NAME

Astro::SIMBAD::Result::Object - A individual astronomical object


SYNOPSIS

  $object = new Astro::SIMBAD::Result::Object( Name   => $object_name,
                                               Type   => $object_type,
                                               Long   => $long_type,
                                               Frame => \@coord_frame,
                                               RA     => $ra,
                                               Dec    => $declination,
                                               Spec   => $spectral_type,
                                               URL    => $url );


DESCRIPTION

Stores meta-data about an individual astronomical object in the Astro::SIMBAD::Result object returned by an Astro::SIMBAD::Query object.


REVISION

$Id: Object.pm,v 1.2 2001/11/28 01:06:10 aa Exp $


METHODS

Constructor

new
Create a new instance from a hash of options
  $paper = new Astro::SIMBAD::Result::Object(  );

returns a reference to an SIMBAD astronomical object.

Accessor Methods

name
Return (or set) the name of the object
   $name = $object->name();
   $object->name( $name );

type
Return (or set) the (short) type of the object
   $type = $object->type();
   $object->type( $type );

long
Return (or set) the (long) type of the object
   $long_type = $object->long();
   $object->long( $long_type );

frame
Return (or set) the system the R.A. and DEC stored in the object are defined in, e.g. Co-ordinate Frame FK5, Epoch 1950 and Equinox 2000
   @system = $object->system();
   $object->system( \@system );

where @system would be [ ``FK5'', 1950.0, 2000.0 ]. If called in a scalar context will return a string of the form ``FK5 1950/2000'' to

ra
Return (or set) the R.A. of the object
   $ra = $object->ra();
   $object->ra( $ra );

dec
Return (or set) the Declination of the object
   $dec = $object->dec();
   $object->dec( $dec );

spec
Return (or set) the Spectral Type of the object
   $spec_type = $object->spec();
   $object->spec( $spec_type );

url
Return (or set) the followup URL for the object where more information can be found via SIMBAD, including pointers to reduced data.
   $url = $object->url();
   $object->url( $url );

General Methods

configure
Configures the object from multiple pieces of information.
  $object->configure( %options );

Takes a hash as argument with the following keywords:


COPYRIGHT

Copyright (C) 2001 University of Exeter. All Rights Reserved.

This program was written as part of the eSTAR project and is free software; you can redistribute it and/or modify it under the terms of the GNU Public License.


AUTHORS

Alasdair Allan <aa@astro.ex.ac.uk>,

 Astro::SIMBAD::Result::Object - A individual astronomical object