On 8/30/2010 7:00 PM, P Kishor wrote: > On Mon, Aug 30, 2010 at 2:39 PM, P Kishor<[email protected]> wrote: >> This is driving me nuts... >> >> print "Info for lut : " . $lu->info . "\n"; >> print "Info for year: " . $yr->info . "\n"; >> $ypdl->wpic("model_output/$file", {LUT => $lut}); >> >> prints... >> >> >> Info for lut : PDL: Byte D [3,256] >> Info for year: PDL: Byte D [252,189] >> PDL::index: invalid index -2147483648 (valid range 0..255) at >> /usr/local/lib/perl5/site_perl/5.12.1/darwin-2level/PDL/ImageRGB.pm >> line 147.
First, the piddle you are writing as an image is not the piddle you are listing information about. It is not possible for a byte value to be -2147483648. I suggest writing a small test script and trace it under the debugger to see what is going on. Maybe something is not what you think it is. --Chris >> As far as I can see, $yr has nothing funky in it. I used Craig's >> bigstring method to print out the bighonkingpdl, and it is mostly a >> bunch of zeroes. _______________________________________________ Perldl mailing list [email protected] http://mailman.jach.hawaii.edu/mailman/listinfo/perldl
