Subject: | issue with PDL::IO::HDF::SD |
Date: | Tue, 19 Jan 2010 12:09:47 +0100 |
To: | bug-PDL_IO_HDF [...] rt.cpan.org |
From: | Fabrice Ducos <fabrice.ducos [...] univ-lille1.fr> |
Hello,
first of all thanks for all this work on the PDL package, what you do is
really great.
I work in a french University on atmospheric research and i'm developing
a prototype to read and process satellite data stored in HDF4. I
intended to use the PDL::IO::HDF package from CPAN to do this but
somehow something is going wrong : i use some parts of the package with
success, letting me think that it was installed correctly, but
invariably it fails on the call to a specific routine :
Here is a sample of code that fails :
######################################################################"
#!/usr/bin/env perl
use PDL; # version 2.4.3 (got from Synaptic), then 2.4.6 (from CPAN)
use PDL::IO::HDF::SD;
my $hdf_file = "some_file.hdf";
my $dataset = 'some_existing_dataset';
my $hdf = PDL::IO::HDF::SD->new($hdf_file);
my @datasets = sort $hdf->SDgetvariablename(); # this passes
my @attrNames = sort $hdf->getattributenames($dataset); # this fails
######################################################################"
Here is what i get on my system (Linux loapc-info3 2.6.24-25-generic #1
SMP Tue Oct 20 07:31:10 UTC 2009 i686 GNU/Linux, Ubuntu Hardy Heron) :
Can't locate auto/PDL/IO/HDF/SD/getattribut.al in @INC (@INC
contains: /etc/perl /usr/local/lib/perl/5.8.8 /usr/local/share/perl/5.8.8 /usr/lib/perl5 /usr/share/perl5 /usr/lib/perl/5.8 /usr/share/perl/5.8 /usr/local/lib/site_perl .) at ./getattribute.pl line 11
Whatever i do (i've tried to build it from the Synaptic tool, then
directly from the sources with Makefile.PL), the file getattribut.al is
nowhere to be found in my PDL arborescence. I'm not sure whether it is a
bug, but I wonder why it won't get built on my system.
Thank you very much for your assistance.
F. Ducos