How to get .asc Lidar data into Houdini?

   2388   3   0
User Avatar
Member
94 posts
Joined: Nov. 2017
Offline
Well, not very much to add to the question. Seems to be a standard format for DEM lidar scans. THe lidar import doesn't seem to recognize it, so I wonder how it's done.

Cheers
Tom
User Avatar
Member
94 posts
Joined: Nov. 2017
Offline
node = hou.pwd()
geo = node.geometry()

# Add code to modify contents of geo.
# Use drop down menu to select examples.

import hou

data =
cellSize = 25

path = “P:/mountain/PNOA_MDT25_ETRS89_HU30_0182_LID.asc”

f = open(path, ‘r’)
line = f.readlines()
f.close

x = 0
z = 0

for each in line:
split = each.split(“ ”)

for each in split:
pt = geo.createPoint()
pt.setPosition(hou.Vector3(x*cellSize, float(each), z*cellSize))
x += 1

x = 0
z += 1




Wrote my own importer for the python node. Hope it helps somebody else. The .asc format is pretty simple.

There seems to be a solution with numpy, but it didn't work for me.

Cheers!

P.S.: The formating unfortunately doesn't display. : ( But the indents are still there when editing the post. : /
Edited by Tom Mangold - March 30, 2020 06:32:36
User Avatar
Member
238 posts
Joined: Nov. 2013
Offline
there is an cli tool set for lidar, there is also one to binaryfy ascii data.
which could be fired up via tops and give you some speed ups on huge data sets.
I did that recently on nearly 1 TB of lidar data. works like a charm
http://www.sekowfx.com [www.sekowfx.com]
User Avatar
Member
94 posts
Joined: Nov. 2017
Offline
CLI toolset? Doesn't ring a bell. Could you give me a hint?
  • Quick Links