PDL::SampleData - Easy access to data used in the PDL examples and the PDL::Book.
use PDL::ShareDir ':all';
my $file = get_file('m51.fits');
my $pdl = get_pdl('m51.fits');
PDL::SampleData
allows easy access to the data needed to follow along with the examples and the PDL::Book.
Nothing is exported by default. Any of the following functions may be explicitly imported, or import them all with the tag :all
.
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 undef
is returned.
Takes the name (with extension) of the file requested. On success it returns the data as a PDL object. On failure a warning is issued and a undef
is returned.
Takes no arguments, returns the sample data files that are available by using get_*
.
http://github.com/PDLPorters/PDL-SampleData
Joel Berger, <[email protected]>
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.