Trevor Carey-Smith wrote:
Apologies for the mailbox clutter, but I've answered my own question...

$PDL::undefval = -999;

is the easy solution!!!

Can $PDL::undefval be set to BAD somehow??

You can do it in a two-step process:

 - create the piddle with $PDL::undefval set to -999
 - use $pdl->setvaltobad($PDL::undefval) to say use -999 as the bad value

For the last step you can either say

  $new = $old->setvaltobad($PDL::undefval);

and so create a copy of the original piddle, or work "inplace"

  $old->inplace->setvaltobad($PDL::undefval);

HTH,
Doug



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

Reply via email to