|
Astro::Catalog - A generic stellar catalogue object. |
Astro::Catalog - A generic stellar catalogue object.
$catalog = new Astro::Catalog( Stars => \@array ); $catalog = new Astro::Catalog( Cluster => $file_name );
Stores generic meta-data about an astronomical catalogue. Takes a hash with an array refernce as an arguement. The array should contain a list of Astro::Catalog::Star objects. Alternatively it takes a file name of an ARK Cluster format catalogue.
$Id: Catalog.pm,v 1.6 2002/03/31 21:39:48 aa Exp $
$catalog = new Astro::Catalog( Stars => \@array ); $catalog = new Astro::Catalog( Cluster => $file_name );
returns a reference to an Astro::Catalog object.
$status = $catalog->write_catalog( $file_name, \@mags, \@colour );
returns zero on sucess and non-zero if the write failed. Only magnitudes and colours passed in the array will be written to the file, e.g.
my @mags = ( 'R' ); my @colour = ( 'B-R', 'B-V' ); $status = $catalog->write_catalog( $file_name, \@mags, \@colour );
will write a catalogue with R, B-R and B-V.
$num = $catalog->sizeof();
Astro::Catalog object
$catalog->pushstar( $star );
returns the number of stars now in the Catalog object.
Astro::Catalog object
$star = $catalog->popstar();
the method deletes the star and returns the deleted Astro::Catalog::Star
object.
Astro::Catalog::Star objects
stored in the results object.
@stars = $catalog->stars();
Astro::Catalog::Star object at index $index
$star = $catalog->starbyindex( $index );
the first star is at index 0 (not 1). Returns undef if no arguements are provided.
$catalog->fieldcentre( RA => $ra,
Dec => $dec,
Radius => $radius );
$ra = $catalog->get_ra();
$dec = $catalog->get_dec();
$radius = $catalog->get_radius();
$catalog->configure( %options );
Takes a hash as argument with the list of keywords.
|
Astro::Catalog - A generic stellar catalogue object. |