Astro::Catalog::IO::ASCII - base class for ASCII-based catalogues.


Astro-Catalog documentation  | view source Contained in the Astro-Catalog distribution.

Index


NAME

Top

Astro::Catalog::IO::ASCII - base class for ASCII-based catalogues.

SYNOPSIS

Top

  $cat = $ioclass->read_catalog( %args );

DESCRIPTION

Top

This class provides a wrapper for reading ASCII-based catalogues into Astro::Catalog objects. The method should, in general, only be called from the Astro::Catalog configure method.

METHODS

Top

read_catalog

Read the catalog.

  $cat = $ioclass->read_catalog( %args );

Takes a hash as argument with the list of keywords. Supported options are:

  Data => Contents of catalogue, either as a scalar variable,
          reference to array of lines or reference to glob (file handle).
          This key is used in preference to 'File' if both are present.

  File => File name for catalog on disk. Not used if 'Data' supplied.
          If a file is specified but is called 'default', the default file 
          for the class is used.

  ReadOpt => Reference to hash of options to be forwarded onto the
             format specific catalogue reader. See the IO documentation
             for details.

The options are case-insensitive.

REVISION

Top

  $Id: ASCII.pm,v 1.2 2005/08/05 03:36:17 timj Exp $

SEE ALSO

Top

Astro::Catalog

COPYRIGHT

Top

AUTHORS

Top

Brad Cavanagh <b.cavanagh@jach.hawaii.edu>


Astro-Catalog documentation  | view source Contained in the Astro-Catalog distribution.