Opened 6 years ago

Closed 6 years ago

#1717 closed defect (invalid)

RasdaPy_avg_cells() doesn't work on multiband collection

Reported by: Bang Pham Huu Owned by:
Priority: major Milestone: 9.6
Component: rasdapy Version: development
Keywords: Cc: Dimitar Misev, bbell
Complexity: Medium

Description (last modified by Bang Pham Huu)

test_rgb is a 3 bands 2D collection imported via RasdaPy. However, it cannot calculate the average for 1 specific band or multiband.

For 1 band, it throws exception.
rasql -q 'select avg_cells(c.0) from test_rgb as c' --out string
rasql: rasdaman query tool v1.0, rasdaman v9.5.0-beta1-g83e5ca18.
opening database RASBASE at localhost:7001...ok
Executing retrieval query...rasdaman error 368: Execution error 368 in line 1, column 19, near token .: Cell base type for induced dot operation must be complex.
aborting transaction...ok


For all bands, server killed
rasql -q 'select avg_cells(c) from test_rgb as c' --out string
rasql: rasdaman query tool v1.0, rasdaman v9.5.0-beta1-g83e5ca18.
opening database RASBASE at localhost:7001...ok
Executing retrieval query...[ERROR] - Client failed with error:Endpoint read failed
rasdaman error 0: The client failed to contact the server.
aborting transaction...[ERROR] - The client failed to connect to rasserver.

Change History (5)

comment:1 by Bang Pham Huu, 6 years ago

Resolution: invalid
Status: newclosed

The collection is imported via RasdaPy, but with coverage imported via WCST_Import, it works normally

rasql -q 'select avg_cells(c.0) from test_rgb1 as c' --out string
rasql: rasdaman query tool v1.0, rasdaman v9.5.0-beta1-g83e5ca18.
opening database RASBASE at localhost:7001...ok
Executing retrieval query...ok
Query result collection has 1 element(s):
  Result element 1: 94.55513756062186
rasql done.

[rasdaman@localhost queries]$ rasql -q 'select avg_cells(c) from test_rgb1 as c' --out string
rasql: rasdaman query tool v1.0, rasdaman v9.5.0-beta1-g83e5ca18.
opening database RASBASE at localhost:7001...ok
Executing retrieval query...ok
Query result collection has 1 element(s):
  Result element 1: { 111.4637572674419, 176.9971511627907, 194.7132703488372 }

rasql done.

comment:2 by Bang Pham Huu, 6 years ago

Component: rasqlrasdapy
Description: modified (diff)
Priority: criticalmajor
Summary: Rasql_avg_cells() doesn't work on multiband collectionRasdaPy_avg_cells() doesn't work on multiband collection

comment:3 by Bang Pham Huu, 6 years ago

Resolution: invalid
Status: closedreopened

comment:4 by Bang Pham Huu, 6 years ago

Owner: bbell removed
Status: reopenedassigned

comment:5 by Bang Pham Huu, 6 years ago

Resolution: invalid
Status: assignedclosed

the problem comes from http://rasdaman.org/ticket/1719

Note: See TracTickets for help on using tickets.