Changes between Initial Version and Version 1 of Ticket #1676


Ignore:
Timestamp:
Jan 11, 2018, 5:18:26 PM (6 years ago)
Author:
Bang Pham Huu
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #1676 – Description

    initial v1  
    1 Executing a query like `select encode(mr2, "png") from mr2` results in a 3D array with size 22623 (number of cells).
     1Executing a query with RasdaPy like `select encode(mr2, "png") from mr2` results in a 3D array with size 22623 (number of cells).
    22
    33This is wrong, the output from rasql is a 1D array with size 22624.
    44
    55I'm not sure why the array is 3D at all (some hard-coded solution); the size bug is likely because rasdapy takes the upper bound from the sdom [0:22623] and doesn't add 1 to it when calculating the size.
     6
     7
     8the output of a 2D collection [0:2, 0:2] with 3 bands is returned as 3D array numpy ndarray from this query
     9
     10
     11{{{
     12rasql_query='select c from test_rasdapy_rgb as c'
     13data = ConfigManager.execute_read(rasql_query)
     14print data.to_array()
     15
     16
     17[[[[1 1 1]
     18   [1 1 1]
     19   [1 1 1]]
     20
     21  [[1 1 1]
     22   [1 1 1]
     23   [1 1 1]]
     24
     25  [[1 1 1]
     26   [1 1 1]
     27   [1 1 1]]]]
     28
     29}}}