<div dir="ltr">Sorry, I had a typo. It should have been "value" instead of "assignment":<div><blockquote style="box-sizing:border-box;margin:0px 0px 16px;padding:0px 1em;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Helvetica,Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji";font-size:14px"><div class="gmail-snippet-clipboard-content gmail-position-relative" style="box-sizing:border-box;margin-top:0px;margin-bottom:0px"><pre style="box-sizing:border-box;font-family:ui-monospace,SFMono-Regular,"SF Mono",Menlo,Consolas,"Liberation Mono",monospace;font-size:11.9px;margin-bottom:16px;margin-top:0px;border-radius:6px;line-height:1.45;overflow:auto;padding:16px"><div style="font-family:Arial,Helvetica,sans-serif;font-size:small;white-space:normal"><p class="MsoNormal"><span style="color:rgb(54,95,145)"><br class="gmail-Apple-interchange-newline">[</span><u></u><u></u></p><p class="MsoNormal"><span style="color:rgb(54,95,145)">    {</span><u></u><u></u></p><p class="MsoNormal"><span style="color:rgb(54,95,145)">        "type":"readers.las",</span><u></u><u></u></p><p class="MsoNormal"><span style="color:rgb(54,95,145)">        "filename":"input.las"</span><u></u><u></u></p><p class="MsoNormal"><span style="color:rgb(54,95,145)">    },</span><u></u><u></u></p><p class="MsoNormal"><span style="color:rgb(54,95,145)">    {</span><u></u><u></u></p><p class="MsoNormal"><span style="color:rgb(54,95,145)">        "type":"filters.assign",</span><u></u><u></u></p><p class="MsoNormal"><span style="color:rgb(54,95,145)">        "value":"IntnstySqRt = Intensity / 256"                                   </span><u></u><u></u></p><p class="MsoNormal"><span style="color:rgb(54,95,145)">    },</span><u></u><u></u></p><p class="MsoNormal">    ...<u></u><u></u></p></div><p class="MsoNormal" style="font-family:Arial,Helvetica,sans-serif;font-size:small;white-space:normal"><u></u> </p></pre></div></blockquote></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Tue, Aug 17, 2021 at 9:35 PM Peter Lim <<a href="mailto:peter.lim@gpslands.com">peter.lim@gpslands.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div lang="EN-SG"><div class="gmail-m_-7539712431470674049WordSection1"><p class="MsoNormal"><span style="font-size:11pt;font-family:Calibri,sans-serif;color:rgb(54,95,145)">Hi Andrew,<u></u><u></u></span></p><p class="MsoNormal"><span style="font-size:11pt;font-family:Calibri,sans-serif;color:rgb(54,95,145)"><u></u> <u></u></span></p><p class="MsoNormal"><span style="font-size:11pt;font-family:Calibri,sans-serif;color:rgb(54,95,145)">I’ve tried what you have suggested:<u></u><u></u></span></p><p class="MsoNormal"><span style="color:rgb(54,95,145)">[</span><u></u><u></u></p><p class="MsoNormal"><span style="color:rgb(54,95,145)">    {</span><u></u><u></u></p><p class="MsoNormal"><span style="color:rgb(54,95,145)">        "type":"readers.las",</span><u></u><u></u></p><p class="MsoNormal"><span style="color:rgb(54,95,145)">        "filename":"input.las"</span><u></u><u></u></p><p class="MsoNormal"><span style="color:rgb(54,95,145)">    },</span><u></u><u></u></p><p class="MsoNormal"><span style="color:rgb(54,95,145)">    {</span><u></u><u></u></p><p class="MsoNormal"><span style="color:rgb(54,95,145)">        "type":"filters.assign",</span><u></u><u></u></p><p class="MsoNormal"><span style="color:rgb(54,95,145)">        "assignment":"IntnstySqRt = Intensity / 256"                                   <u></u><u></u></span></p><p class="MsoNormal"><span style="color:rgb(54,95,145)">    },</span><u></u><u></u></p><p class="MsoNormal"><span style="color:rgb(54,95,145)">    {</span><u></u><u></u></p><p class="MsoNormal"><span style="color:rgb(54,95,145)">        "type":"writers.gdal",</span><u></u><u></u></p><p class="MsoNormal"><span style="color:rgb(54,95,145)">        "resolution": 0.05,</span><u></u><u></u></p><p class="MsoNormal"><span style="color:rgb(54,95,145)">        "data_type":"uint8",</span><u></u><u></u></p><p class="MsoNormal"><span style="color:rgb(54,95,145)">        "output_type":"mean",</span><u></u><u></u></p><p class="MsoNormal"><span style="color:rgb(54,95,145)">         "dimension":"IntnstySqRt",</span><u></u><u></u></p><p class="MsoNormal"><span style="color:rgb(54,95,145)">        "gdalopts":"COMPRESS=JPEG,PHOTOMETRIC=YCBCR,BLOCKXSIZE=4096,BLOCKYSIZE=4096,GDAL_CACHEMAX=8000,NUM_THREADS=ALL_CPUS,TILED=YES",                </span><u></u><u></u></p><p class="MsoNormal"><span style="color:rgb(54,95,145)">        "bounds":"([19370,20527],[39571,40865])", </span><u></u><u></u></p><p class="MsoNormal"><span style="color:rgb(54,95,145)">        "filename":"output.tif"</span><u></u><u></u></p><p class="MsoNormal"><span style="color:rgb(54,95,145)">    }                          </span><u></u><u></u></p><p class="MsoNormal"><span style="color:rgb(54,95,145)">]<u></u><u></u></span></p><p class="MsoNormal"><span style="font-size:11pt;font-family:Calibri,sans-serif;color:rgb(54,95,145)">But is giving same error:<br>PDAL: filters.assign: Invalid value for argument 'assignment'.<u></u><u></u></span></p><p class="MsoNormal"><span style="font-size:11pt;font-family:Calibri,sans-serif;color:rgb(54,95,145)">Please advise.<u></u><u></u></span></p><p class="MsoNormal"><span style="font-size:11pt;font-family:Calibri,sans-serif;color:rgb(54,95,145)"><u></u> <u></u></span></p><p class="MsoNormal"><span style="font-size:11pt;font-family:Calibri,sans-serif;color:rgb(54,95,145)">Thank you.<u></u><u></u></span></p><p class="MsoNormal"><span style="font-size:11pt;font-family:Calibri,sans-serif;color:rgb(54,95,145)"><u></u> <u></u></span></p><p class="MsoNormal"><span style="font-size:11pt;font-family:Calibri,sans-serif;color:rgb(54,95,145)">Best Regards,<u></u><u></u></span></p><p class="MsoNormal"><span style="font-size:11pt;font-family:Calibri,sans-serif;color:rgb(54,95,145)"><u></u> <u></u></span></p><p class="MsoNormal"><span style="font-size:11pt;font-family:Calibri,sans-serif;color:rgb(54,95,145)">Peter Lim<u></u><u></u></span></p><p class="MsoNormal"><i><span style="font-size:11pt;font-family:Calibri,sans-serif;color:rgb(54,95,145)">GPS Lands (S) Pte Ltd</span></i><i><span style="font-size:11pt;font-family:Calibri,sans-serif;color:rgb(54,95,145)"><u></u><u></u></span></i></p><p class="MsoNormal"><span style="font-size:11pt;font-family:Calibri,sans-serif;color:rgb(31,73,125)"><u></u> <u></u></span></p><div style="border-right:none;border-bottom:none;border-left:none;border-top:1pt solid rgb(181,196,223);padding:3pt 0cm 0cm"><p class="MsoNormal"><b><span lang="EN-US" style="font-size:10pt;font-family:Tahoma,sans-serif">From:</span></b><span lang="EN-US" style="font-size:10pt;font-family:Tahoma,sans-serif"> Andrew Bell [mailto:<a href="mailto:andrew.bell.ia@gmail.com" target="_blank">andrew.bell.ia@gmail.com</a>] <br><b>Sent:</b> Tuesday, 17 August 2021 7:14 pm<br><b>To:</b> Peter Lim<br><b>Cc:</b> pdal<br><b>Subject:</b> Re: [pdal] filters.assign<u></u><u></u></span></p></div><p class="MsoNormal"><u></u> <u></u></p><div><p class="MsoNormal">You're mixing syntax for the older "assignment" option with that of the newer "value" option.<u></u><u></u></p><div><p class="MsoNormal"><u></u> <u></u></p></div><div><p class="MsoNormal">Try this:<u></u><u></u></p></div><div><p class="MsoNormal"><u></u> <u></u></p></div><div><p class="MsoNormal"><span style="color:rgb(54,95,145)">[</span><u></u><u></u></p><p class="MsoNormal"><span style="color:rgb(54,95,145)">    {</span><u></u><u></u></p><p class="MsoNormal"><span style="color:rgb(54,95,145)">        "type":"readers.las",</span><u></u><u></u></p><p class="MsoNormal"><span style="color:rgb(54,95,145)">        "filename":"input.las"</span><u></u><u></u></p><p class="MsoNormal"><span style="color:rgb(54,95,145)">    },</span><u></u><u></u></p><p class="MsoNormal"><span style="color:rgb(54,95,145)">    {</span><u></u><u></u></p><p class="MsoNormal"><span style="color:rgb(54,95,145)">        "type":"filters.assign",</span><u></u><u></u></p><p class="MsoNormal"><span style="color:rgb(54,95,145)">        "assignment":"IntnstySqRt = Intensity / 256"                                   </span><u></u><u></u></p><p class="MsoNormal"><span style="color:rgb(54,95,145)">    },</span><u></u><u></u></p><p class="MsoNormal">    ...<u></u><u></u></p></div></div><p class="MsoNormal"><u></u> <u></u></p><div><div><p class="MsoNormal">On Tue, Aug 17, 2021 at 6:09 AM Peter Lim <<a href="mailto:peter.lim@gpslands.com" target="_blank">peter.lim@gpslands.com</a>> wrote:<u></u><u></u></p></div><blockquote style="border-top:none;border-right:none;border-bottom:none;border-left:1pt solid rgb(204,204,204);padding:0cm 0cm 0cm 6pt;margin-left:4.8pt;margin-right:0cm"><div><div><p class="MsoNormal"><span style="color:rgb(31,73,125)">Hi,</span><u></u><u></u></p><p class="MsoNormal"><span style="color:rgb(31,73,125)"> </span><u></u><u></u></p><p class="MsoNormal"><span style="color:rgb(54,95,145)">I’m trying to generate a GeoTiff image from a LAS file using the sq. root of Intensity dimension and the pipeline as follows:</span><u></u><u></u></p><p class="MsoNormal"><span style="color:rgb(54,95,145)"> </span><u></u><u></u></p><p class="MsoNormal"><span style="color:rgb(54,95,145)">[</span><u></u><u></u></p><p class="MsoNormal"><span style="color:rgb(54,95,145)">    {</span><u></u><u></u></p><p class="MsoNormal"><span style="color:rgb(54,95,145)">        "type":"readers.las",</span><u></u><u></u></p><p class="MsoNormal"><span style="color:rgb(54,95,145)">        "filename":"input.las"</span><u></u><u></u></p><p class="MsoNormal"><span style="color:rgb(54,95,145)">    },</span><u></u><u></u></p><p class="MsoNormal"><span style="color:rgb(54,95,145)">    {</span><u></u><u></u></p><p class="MsoNormal"><span style="color:rgb(54,95,145)">         "type": "filters.ferry",</span><u></u><u></u></p><p class="MsoNormal"><span style="color:rgb(54,95,145)">         "dimensions":"Intensity=>IntnstySqRt"</span><u></u><u></u></p><p class="MsoNormal"><span style="color:rgb(54,95,145)">    },                                                         </span><u></u><u></u></p><p class="MsoNormal"><span style="color:rgb(54,95,145)">    {</span><u></u><u></u></p><p class="MsoNormal"><span style="color:rgb(54,95,145)">        "type":"filters.assign",</span><u></u><u></u></p><p class="MsoNormal"><span style="color:rgb(54,95,145)">        "assignment":"IntnstySqRt[:] = IntnstySqRt / 256"                                    </span><u></u><u></u></p><p class="MsoNormal"><span style="color:rgb(54,95,145)">    },</span><u></u><u></u></p><p class="MsoNormal"><span style="color:rgb(54,95,145)">    {</span><u></u><u></u></p><p class="MsoNormal"><span style="color:rgb(54,95,145)">        "type":"writers.gdal",</span><u></u><u></u></p><p class="MsoNormal"><span style="color:rgb(54,95,145)">        "resolution": 0.05,</span><u></u><u></u></p><p class="MsoNormal"><span style="color:rgb(54,95,145)">        "data_type":"uint8",</span><u></u><u></u></p><p class="MsoNormal"><span style="color:rgb(54,95,145)">        "output_type":"mean",</span><u></u><u></u></p><p class="MsoNormal"><span style="color:rgb(54,95,145)">         "dimension":"IntnstySqRt",</span><u></u><u></u></p><p class="MsoNormal"><span style="color:rgb(54,95,145)">        "gdalopts":"COMPRESS=JPEG,PHOTOMETRIC=YCBCR,BLOCKXSIZE=4096,BLOCKYSIZE=4096,GDAL_CACHEMAX=8000,NUM_THREADS=ALL_CPUS,TILED=YES",                </span><u></u><u></u></p><p class="MsoNormal"><span style="color:rgb(54,95,145)">        "bounds":"([19370,20527],[39571,40865])", </span><u></u><u></u></p><p class="MsoNormal"><span style="color:rgb(54,95,145)">        "filename":"output.tif"</span><u></u><u></u></p><p class="MsoNormal"><span style="color:rgb(54,95,145)">    }                          </span><u></u><u></u></p><p class="MsoNormal"><span style="color:rgb(54,95,145)">]</span><u></u><u></u></p><p class="MsoNormal"><span style="color:rgb(54,95,145)"> </span><u></u><u></u></p><p class="MsoNormal"><span style="color:rgb(54,95,145)">However, error occurred:</span><u></u><u></u></p><p class="MsoNormal"><span style="color:rgb(54,95,145)">PDAL: filters.assign: Invalid value for argument 'assignment'.</span><u></u><u></u></p><p class="MsoNormal"><span style="color:rgb(54,95,145)"> </span><u></u><u></u></p><p class="MsoNormal"><span style="color:rgb(54,95,145)">Is it the correct use of filters.ferry and filters. assign…</span><u></u><u></u></p><p class="MsoNormal"><span style="color:rgb(54,95,145)"> </span><u></u><u></u></p><p class="MsoNormal"><span style="color:rgb(54,95,145)">Please advise.</span><u></u><u></u></p><p class="MsoNormal"> <u></u><u></u></p><p class="MsoNormal"><span style="color:rgb(54,95,145)"> </span><u></u><u></u></p><p class="MsoNormal"><span style="color:rgb(54,95,145)">Thank you.</span><u></u><u></u></p><p class="MsoNormal"><span style="color:rgb(54,95,145)"> </span><u></u><u></u></p><p class="MsoNormal"><span style="color:rgb(54,95,145)">Best Regards,</span><u></u><u></u></p><p class="MsoNormal"><span style="color:rgb(54,95,145)"> </span><u></u><u></u></p><p class="MsoNormal"><span style="color:rgb(54,95,145)">Peter Lim</span><u></u><u></u></p><p class="MsoNormal"><i><span style="color:rgb(54,95,145)">GPS Lands (S) Pte Ltd</span></i><u></u><u></u></p><p class="MsoNormal"> <u></u><u></u></p></div><div id="gmail-m_-7539712431470674049gmail-m_1008237852334678820DAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9FDF2"><p class="MsoNormal"><u></u> <u></u></p><table border="1" cellpadding="0" style="border-right:none;border-bottom:none;border-left:none;border-top:1pt solid rgb(211,212,222)"><tbody><tr><td width="55" style="width:41.25pt;border:none;padding:9.75pt 0.75pt 0.75pt"><p class="MsoNormal"><a href="https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=emailclient" target="_blank"><span style="text-decoration:none"><img border="0" width="46" height="29" id="gmail-m_-7539712431470674049_x0000_i1035" src="https://ipmcdn.avast.com/images/icons/icon-envelope-tick-round-orange-animated-no-repeat-v1.gif"></span></a><u></u><u></u></p></td><td width="470" style="width:352.5pt;border:none;padding:9pt 0.75pt 0.75pt"><p class="MsoNormal" style="line-height:13.5pt"><span style="font-size:10pt;font-family:Arial,sans-serif;color:rgb(65,66,78)">Virus-free. <a href="https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=emailclient" target="_blank"><span style="color:rgb(68,83,234)">www.avast.com</span></a> <u></u><u></u></span></p></td></tr></tbody></table></div></div><p class="MsoNormal">_______________________________________________<br>pdal mailing list<br><a href="mailto:pdal@lists.osgeo.org" target="_blank">pdal@lists.osgeo.org</a><br><a href="https://lists.osgeo.org/mailman/listinfo/pdal" target="_blank">https://lists.osgeo.org/mailman/listinfo/pdal</a><u></u><u></u></p></blockquote></div><p class="MsoNormal"><br clear="all"><u></u><u></u></p><div><p class="MsoNormal"><u></u> <u></u></p></div><p class="MsoNormal">-- <u></u><u></u></p><div><p class="MsoNormal">Andrew Bell<br><a href="mailto:andrew.bell.ia@gmail.com" target="_blank">andrew.bell.ia@gmail.com</a><u></u><u></u></p></div></div></div></blockquote></div><br clear="all"><div><br></div>-- <br><div dir="ltr" class="gmail_signature">Andrew Bell<br><a href="mailto:andrew.bell.ia@gmail.com" target="_blank">andrew.bell.ia@gmail.com</a></div>