<div dir="ltr"><div class="gmail_quote"><br><div dir="ltr"><div class="gmail_extra"><div class="gmail_quote"><span class="">On Mon, Jun 22, 2015 at 3:20 AM, Luca Delucchi <span dir="ltr"><<a href="mailto:lucadeluge@gmail.com" target="_blank">lucadeluge@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi devs,<br>
<br>
I'm trying to calculate CHM using filters.programmable but I have some<br>
problems with points close to the DTM border and so I'm not able to<br>
update the Z value for these points.<br>
<br>
My idea is to use  filters.predicate to remove these point outside the<br>
DTM and later run the filters.programmable, but I don't know<br>
concatenate the two filter, it seems each filter neeeds a Reader tag<br>
and I don't know how to tell to second filter to read the output of<br>
the first.<br></blockquote><div><br></div></span><div>Filters can feed one another:</div><div><br></div><div><?xml version="1.0"?></div><div><Pipeline version="1.0"></div><div><Writer type="writers.las")</div><div>  <Option name="filename">out.las</Option></div><div>  <Filter type="filters.programmable"></div><div>  <Option name="source"></div><div>import numpy as np</div><div>def myfunc(ins,outs)</div><div>  val = ins['Y']</div><div>  outs['Y'] = val * 1.05</div><div>  return True</div><div>  </Option></div><div>  <Filter type="filters.crop></div><div>    <Option name="bounds"></div><div>        ([1,1.1],[2,2.2])</div><div>    </Option></div><div>    <Reader name="readers.las"</div><div>      <Option="filename">in.las</Option></div><div>    </Reader></div><div>  </Filter></div><div>  </Filter></div><div></Writer></div><div></Pipeline></div><div> </div><div>(Not tested)</div><div><br></div><div>We're working on getting more examples written and posted in the documentation.  Write back if you have questions.</div><span class="HOEnZb"><font color="#888888"><div><br></div></font></span></div></div></div></div>-- <br><div class="gmail_signature">Andrew Bell<br><a href="mailto:andrew.bell.ia@gmail.com" target="_blank">andrew.bell.ia@gmail.com</a></div>
</div>