|
Astro::Catalog::Star - A generic star object in a stellar catalogue. |
Astro::Catalog::Star - A generic star object in a stellar catalogue.
$star = new Astro::Catalog::Star( ID => $id,
RA => $ra,
Dec => $dec,
Magnitudes => \%magnitudes,
MagErr => \%mag_errors,
Colours => \%colours,
ColErr => \%colour_errors,
Quality => $quality_flag,
Field => $field,
GSC => $in_gsc,
Distance => $distance_to_centre,
PosAngle => $position_angle,
X => $x_pixel_coord,
Y => $y_pixel_coord );
Stores generic meta-data about an individual stellar object from a catalogue.
If the catalogue has a field center the Distance and Position Angle properties should be used to store the direction to the field center, e.g. a star from the USNO-A2 catalogue retrieived from the ESO/ST-ECF Archive will have these properties.
$Id: Star.pm,v 1.6 2002/03/29 17:40:17 aa Exp $
$star = new Astro::Catalog::Star( ID => $id,
RA => $ra,
Dec => $dec,
Magnitudes => \%magnitudes,
MagErr => \%mag_errors,
Colours => \%colours,
ColErr => \%colour_errors,
Quality => $quality_flag,
Field => $field,
GSC => $in_gsc,
Distance => $distance_to_centre,
PosAngle => $position_angle,
X => $x_pixel_coord,
Y => $y_pixel_coord );
returns a reference to an Astro::Catalog::Star object.
$id = $star->id(); $star->id( $id );
$ra = $star->ra(); $star->ra( $ra );
$dec = $dss->dec(); $dss->dec( $dec );
where $dec should be a string of the form ``+-HH MM SS.SS'', e.g. +43 35 09.5 or -40 25 67.89
my %mags = ( B => '16.5', V => '15.4', R => '14.3' );
$star->magnitudes( \%mags );
additional calls to magnitudes() will append, not replace, additional
magnitude values, magnitudes for filters already existing will be over-written.
my %mag_errors = ( B => '0.3', V => '0.1', R => '0.4' );
$star->magerr( \%mag_errors );
additional calls to magerr() will append, not replace, additional error values,
errors for filters already existing will be over-written.
my %cols = ( 'B-V' => '0.5', 'B-R' => '0.4' );
$star->colours( \%cols );
additional calls to colours() will append, not replace, colour values,
altough for colours which already have defined values, these values will
be over-written.
my %col_errors = ( 'B-V' => '0.02', 'B-R' => '0.05' );
$star->colerr( \%col_errors );
additional calls to colerr() will append, not replace, colour error values,
altough for errors which already have defined values, these values will
be over-written.
@filters = $star->what_filters(); $num = $star->what_filters();
if called in a scalar context it will return the number of filters which have defined magnitudes in the object.
@colours = $star->what_colours(); $num = $star->what_colours();
if called in a scalar context it will return the number of colours which have defined values in the object.
$colour = $star->get_colour( 'B-V' );
$col_errors = $star->get_colourerr( 'B-V' );
$field = $star->field(); $star->field( '0080' );
$gsc = $star->gsc(); $star->gsc( 'TRUE' );
the flag is TRUE if the object is known to be in the Guide Star Catalogue, and FALSE otherwise.
$distance = $star->distance(); $star->distance( '0.009' );
e.g. for the USNO-A2 catalogue.
$position_angle = $star->posangle(); $star->posangle( '50.761' );
e.g. for the USNO-A2 catalogue.
$x = $star->x(); $star->id( $x );
$y = $star->y(); $star->id( $y );
$star->configure( %options );
Takes a hash as argument with the list of keywords.
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.
Alasdair Allan <aa@astro.ex.ac.uk>,
|
Astro::Catalog::Star - A generic star object in a stellar catalogue. |