On 2/15/2011 11:08 AM, Arturo Narros González wrote:
>
> I try to read some data using a reader function as:
> sub lector{my $e = rcols "$_[0]",8,{LINES=>"3:-2"};return $e;}
> I tested and it works.
> so I tried to used with rcube as:
>
> perl -MPDL -e '$PDL::IO::Misc::colsep ="\t";sub lector{my $e = rcols 
> "$_[0]",8,{LINES=>"3:-2"};return $e;} $m= rcube  \&lector, glob("*.conf");'
>
> but I get the next message:
>
> PDL: Dimensions must be positive
> Caught at file -e, line 1, pkg main
>
> I try to see examples with a reader function but I can not find,
> Could anyone help me ?

I haven't used the rcube routine myself but
a look at the code suggests that it only
works for reading multiple 2-D images into
a 3-D resulting data volume.

If you set $PDL::verbose = 1 you'll get some
diagnostic output from the rcube() call.  Of
course, you can just use rcols() to read in
each data set from your files and place them
in a larger data array yourself.  rcube() is
just some shorthand for that.

Cheers,
Chris

_______________________________________________
Perldl mailing list
[email protected]
http://mailman.jach.hawaii.edu/mailman/listinfo/perldl

Reply via email to