On Tue, Jun 22, 2010 at 4:20 PM, P Kishor <[email protected]> wrote:
> PDL is fast, very fast. A quick benchmark for writing some realistic > data size using FastRaw (btw, a short document delving into the pluses > and minuses of the different IO modules would be really cool -- right > now I have tried IO::Storable, IO::FlexRaw and IO::FastRaw; some of > you have also suggested FITS and IO::DiskCache. I am sure there are > other modules as well) -- > I think you're looking for the PDL::IO doc. It's in the current CPAN developer's release, but probably not part of the current 'standard' release. Either way, the docs are online here: http://pdl.perl.org/?docs=IO&title=PDL::IO > punk...@lucknow ~/Data/carbonmodel/$perl pdl.pl > store_pdl took 33 wallclock secs ( 0.35 usr + 1.01 sys = 1.36 CPU) > store_bin took 208 wallclock secs (37.26 usr + 53.49 sys = 90.75 CPU) > But, I also continue to get the following errors from my short little > program (Perl 5.12.1, PDL 2.4.6) -- > I am fairly certain that you are mixing FlexRaw and FastRaw command syntaxes. You either meant something like this: $hdr = writeflex('pdl.dat', $img); writeflexhdr('pdl.dat', $hdr); or you meant something like this: writefraw($img, 'pdl.dat'); Notice that the fastraw routine does not return a header. You can set $hdr to the return value, but it will simply be undefined. What's more, when I used the writefraw command, I was unable to reproduce your error. It may have been something that's been fixed in the latest git (and developer's snapshot), but I can't say for sure. David -- Sent via my carrier pigeon.
_______________________________________________ Perldl mailing list [email protected] http://mailman.jach.hawaii.edu/mailman/listinfo/perldl
