Opened 8 years ago

Closed 8 years ago

#1337 closed defect (fixed)

WCPS 1.5_Error with negative values in array constant

Reported by: Bang Pham Huu Owned by: Bang Pham Huu
Priority: major Milestone: 9.3
Component: petascope Version: development
Keywords: Cc: Dimitar Misev, Vlad Merticariu
Complexity: Medium

Description

WCPS query

for c in (rgb) return encode(
(unsigned char)
coverage filteredImage 
over $px x(10:240),$py y(10:230)
values condense +
over $kx x(-1:1),$ky y(-1:1)
using(
coverage kernel 
over $x x (-1:1),$y y(-1:1)
value list < 1; 1; 1; 0; 0; 0; -1; -1; -1 >)
[x($kx),y($ky)]*(c[i($px+$kx),j($py+$ky)]).red, "png", "nodata=0")

does not work if has negative numbers

< 1; 1; 1; 0; 0; 0; -1; -1; -1 >

Change History (1)

comment:1 by Bang Pham Huu, 8 years ago

Resolution: fixed
Status: newclosed

this ticket is fixed in patch ticket 1188, the problem is in parser the real number definition in lexer is needed to add "-", close here.

Note: See TracTickets for help on using tickets.