-
Notifications
You must be signed in to change notification settings - Fork 39
Description
The documentation is very clear on how to read data from files on the disk in a variety of formats, however, it's very unclear how to read data from a numpy array in memory. It looks like the readers.numpy
reader is what I'm looking for, but the docs seem to imply that this reader is still accessing a file on the disk, from a .npy
file. Ideally, I would like to do something like this:
arr = np.array([x1,y1,z1], [x2,y2,z2], [x3,y3,z3]) # really any numpy array shape/dimensions will do.
p = pdal.Pipeline(json, arr)
It looks like from the source that it is possible to include a numpy array as an argument to the Pipeline class, but can't figure out what it wants (i.e., shape, dimensions, etc.) exactly, or if this is the intended usage.
Ultimately, I'm trying to add PDAL to an existing data pipeline, written in Python, that pulls data from a variety of sources and it would be prohibitively expensive to keep saving data to the disk, just to read it back into PDAL.
I'm still new to PDAL so please forgive any ignorance. Thanks very much for your continued development!