Opened 13 years ago

Last modified 12 years ago

#64 closed defect

Mixing triming and slicing in WCPS fails — at Version 1

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 (1)

comment:1 by Dimitar Misev, 13 years ago

Component: javapetascope
Description: modified (diff)
Note: See TracTickets for help on using tickets.