An open API service indexing awesome lists of open source software.

https://github.com/pdlporters/pdl-sampledata

Easy access to data used in the PDL examples and the PDL::Book
https://github.com/pdlporters/pdl-sampledata

Last synced: about 1 month ago
JSON representation

Easy access to data used in the PDL examples and the PDL::Book

Awesome Lists containing this project

README

          

=head1 NAME

PDL::SampleData - Easy access to data used in the L examples and the L.

=head1 SYNOPSIS

use PDL::ShareDir ':all';
my $file = get_file('m51.fits');
my $pdl = get_pdl('m51.fits');

=head1 DESCRIPTION

C allows easy access to the data needed to follow along with the examples and the L.

=head1 FUNCTIONS

Nothing is exported by default. Any of the following functions may be explicitly imported, or import them all with the tag C<:all>.

=head2 get_file( filename )

Takes the name (with extension) of the file requested. On success it returns the absolute path to the file requested. On failure a warning is issued and C is returned.

=head2 get_pdl( filename )

Takes the name (with extension) of the file requested. On success it returns the data as a L object. On failure a warning is issued and a C is returned.

=head2 sample_files()

Takes no arguments, returns the sample data files that are available by using C.

=head1 SEE ALSO

=over 4

=item *

L

=item *

L

=back

=head1 SOURCE REPOSITORY

L

=head1 AUTHOR

Joel Berger, Ejoel.a.berger@gmail.comE

=head1 COPYRIGHT AND LICENSE

Copyright (C) 2012 by Joel Berger

This library is free software; you can redistribute it and/or modify
it under the same terms as Perl itself.