View Full Version : Import data from numpy into lianja
hmischel@diligentsystems.com
2018-01-04, 14:05
Hi Barry,
I have two large numpy arrays that I need to bring into a local lianja table to query the data.
The matrix shapea are both(481, 536, 3)
Thanks
Herb
barrymavin
2018-01-04, 14:10
Hi Herb
See my suggestion below.
barrymavin
2018-01-04, 14:14
Hi Herb,
You could process the 3D array and create a table as described in the doc.
https://www.lianja.com/doc/index.php/Working_with_data_in_Python
barrymavin
2018-01-04, 15:19
Thinking more about this it may be better just to create a table with key/value pairs and create the key as a character field to represent the numpy array index as:
key = strzero(x) + strzero(y) + strzero(z)
where x,y,z represent the array indices.
then the value is the array element value.
It is then relatively easy to lookup a key/value pair.
hmischel@diligentsystems.com
2018-01-04, 19:14
Hi Barry,
Thanks! I will try that.
Herb