On Tue, Jun 22, 2010 at 5:05 PM, David Mertens <[email protected]> wrote:
> 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
Thanks. I looked through that, although not in great detail. What I
was suggesting was a comparison (benefits and drawbacks) of the
various IO modules when pitted against each other. I realize, that may
or may not be useful to most though. Maybe someday I will be in a
position to write something like that.
>
>>
>> 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.
Understood. However, I was not mixing the commands. It is my
writefraw() that is spitting out all those errors (and, I think,
writeflex() was also doing that.
>
> 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.
I think you may be correct. I think Chris Marshall also hinted as
something like that... he used the latest git version and didn't get
any errors. I have whatever version got installed with the stable
2.4.6 package.
Will try to upgrade to the latest git snapshot and check.
Thanks.
>
> David
>
> --
> Sent via my carrier pigeon.
>
--
Puneet Kishor http://www.punkish.org
Carbon Model http://carbonmodel.org
Charter Member, Open Source Geospatial Foundation http://www.osgeo.org
Science Commons Fellow, http://sciencecommons.org/about/whoweare/kishor
Nelson Institute, UW-Madison http://www.nelson.wisc.edu
-----------------------------------------------------------------------
Assertions are politics; backing up assertions with evidence is science
=======================================================================
_______________________________________________
Perldl mailing list
[email protected]
http://mailman.jach.hawaii.edu/mailman/listinfo/perldl