Robert: I do this sort of thing fairly often. Insead of
$a->where($a < 10 and $a > 2), try: $a->where( ($a < 10) * ($a > 2) ); --Doug On Fri, 18 May 2007, K?reEdvardsen wrote:
Hi Robert, I'm not sure, but I think I ran into the same problem some time ago and I think it will work if you slice your piddle like: $dsigma->slice("(0),:") < 10 (or whatever dims they are) instead of just: $dsigma<10 Hope this helps, Kare On Fri, 2007-05-18 at 10:57 +0200, Robert Cumming wrote:Hi, I've been happily using where (for conditional plotting) since I was pointed to it here some time ago. Now I've run into a problem. This works for me: points ($y->where($dsigma<10),$sigma->where($dsigma<10)); but this doesn't: points ($y->where($dsigma<10 and $v>100),$sigma->where($dsigma<10 and $v>100)); The error message is 'multielement piddle in conditional expression at x.pl line xxx'. $v is a piddle with the same dimensions as $y and $dsigma. Does where just not allow more than one condition, or is there something else going on here?
_______________________________________________ Perldl mailing list [email protected] http://mailman.jach.hawaii.edu/mailman/listinfo/perldl
