http://qs1969.pair.com?node_id=11145063


in reply to Re: PDL encore
in thread PDL encore

Setting "bad" values to 0 is mathematically valid for this situation. A more PDL-ish approach however is to use "bad values"; doing $pdl->badvalue(999) would achieve the aim here.