Results 1 to 5 of 5

Thread: Import data from numpy into lianja

  1. #1

    Import data from numpy into lianja

    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

  2. #2
    Lianja Development Team barrymavin's Avatar
    Join Date
    Feb 2012
    Location
    UK, USA, Thailand
    Posts
    7,165
    Blog Entries
    22
    Hi Herb

    See my suggestion below.
    Last edited by barrymavin; 2018-01-04 at 15:36.
    Principal developer of Lianja, Recital and other products

    Follow me on:

    Twitter: http://twitter.com/lianjaInc
    Facebook: http://www.facebook.com/LianjaInc
    LinkedIn: http://www.linkedin.com/in/barrymavin

  3. #3
    Lianja Development Team barrymavin's Avatar
    Join Date
    Feb 2012
    Location
    UK, USA, Thailand
    Posts
    7,165
    Blog Entries
    22
    Hi Herb,

    You could process the 3D array and create a table as described in the doc.
    https://www.lianja.com/doc/index.php...data_in_Python
    Principal developer of Lianja, Recital and other products

    Follow me on:

    Twitter: http://twitter.com/lianjaInc
    Facebook: http://www.facebook.com/LianjaInc
    LinkedIn: http://www.linkedin.com/in/barrymavin

  4. #4
    Lianja Development Team barrymavin's Avatar
    Join Date
    Feb 2012
    Location
    UK, USA, Thailand
    Posts
    7,165
    Blog Entries
    22
    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.
    Principal developer of Lianja, Recital and other products

    Follow me on:

    Twitter: http://twitter.com/lianjaInc
    Facebook: http://www.facebook.com/LianjaInc
    LinkedIn: http://www.linkedin.com/in/barrymavin

  5. #5
    Hi Barry,

    Thanks! I will try that.

    Herb

Bookmarks

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Journey into the Cloud
Join us