|
Astro::STSDAS::Table::Simple - simple interface to STSDAS format tables |
Astro::STSDAS::Table::Simple - simple interface to STSDAS format tables
use Astro::STSDAS::Table::Simple qw( read_table );
$data = read_table( $file, { Input => 'Binary',
Output => 'RowHash' } );
Astro::STSDAS::Table::Simple provides a very simple interface to STSDAS format tables.
$data = read_table( $file, \%options );
This slurps an entire table into memory. The options hash is used to indicate what type of input table it is (either binary or text) and how to structure the output. Options are specified as keys in the hash. For example:
$data = read_table( $file, { Input => 'Binary',
Output => 'RowHash' } );
Binary or Text. Currently
only Binary is supported.
For example, to access the value of column time in row 3,
$data->[2]{time}
$data->[3][9]
For example, to access the value of column time in row 3,
$data->{time}[2]
$data->[9][3]
In all cases, vector elements are returned as references to arrays containing the vectors.
This software is released under the GNU General Public License. You may find a copy at
http://www.fsf.org/copyleft/gpl.html
Diab Jerius ( djerius@cpan.org )
|
Astro::STSDAS::Table::Simple - simple interface to STSDAS format tables |