Opened 13 years ago

Closed 12 years ago

#64 closed defect (fixed)

Mixing triming and slicing in WCPS fails

Reported by: Dimitar Misev Owned by: Dimitar Misev
Priority: major Milestone:
Component: petascope Version:
Keywords: Cc: p.baumann@…, Piero Campalani
Complexity: Medium

Description (last modified by Dimitar Misev)

The query below fails with error from the parser

line 3:10 mismatched input '[' expecting COMMA

for    c in ( NDVI_AMAZON )
return
encode( c[t(5),x(0:20),y(0:20)] , "png" )

a quick fix is to separate the slicing and triming like this:

for c in ( NDVI_AMAZON )
return
encode ( (c[x(0:20),y(0:20)])[t(0)] , "png" ) 

Change History (2)

comment:1 by Dimitar Misev, 13 years ago

Component: javapetascope
Description: modified (diff)

comment:2 by Dimitar Misev, 12 years ago

Cc: Piero Campalani added; michael.owonibi@… removed
Resolution: fixed
Status: newclosed

Fixed

Note: See TracTickets for help on using tickets.