Hi Michael,
From my current experiments it seems like the update process is not working correctly for you, my question would be if you get an output at all.
This looks a lot like what I got, when I started learning how tu use Terje's scripts.
But to start with the vegetation file.
Update process means, the scripts should place in every line of vegetation file additional information on vegetation histogram for that point.
So for every line in vegetasjon_facit file it should produce output such as:
638856,494118,Y,27.5,72.5,0.0,0.0
638860,494290,DG,8.3,18.2,20.7,52.8
638918,494222,DG,15.7,39.2,32.9,12.2
638934,494260,Y,76.4,16.8,6.8,0.0
638958,494406,W,15.9,33.6,7.3,43.2
If your file does not change, then update fails and it will fail every time, because it still is not proper. That is what a switch you mentioned does - checks if the line has histogram data or not.
My current knowledge leads me to two possible options.
1) points are in different projection than LIDAR data, so they all fall outside the processed area (script takes tile by tile, than checks if any vegetation points are within the tile - if so tile is processed and output histogram recorded for this point. If a point does not fit into any tile it gets written back to vegetation file unchanged)
And this is highly probable! I just looked back at the output you pasted just before posting my reply and it says:
Total area: (5698250,2108750)-(5710500,2117000)
but the second coordinate of vegetation points is VERY far from those bounds
595682,14050702,YS
You should check this first!
2) your scrips do not work properly at some point as it was with me. Major reason beeing 2>nul redirects in every call to LAStools , making all those call from PERL to fail WITHOUT A WARNING (warning went all to nul as instructed), unless I added additional printouts and checks after the calls. Funny thing is, it does not work and does not tell you this because of redirection, but if redirection is removed it still won't tell you it fails, because then it works...
I hope Terje won't mind, but you might want to try a code I slightly modified and that works for me (it has some changes that might work worse than Terje's so be warned, but also has all my comments written to help me understand how they work you might find usefull. Some might be emotional I'm not sure if I removed all I vented my frustration thru :) )
https://1drv.ms/f/s!AksqIAYZ-BENkCfE8FNrYn6UYvmmBut if you want to try make a copy of vegetation first!
I added an extra function, that check every line before writing it back and if it has no histogram data, just drops it (with a warning)