Opened 13 years ago

Last modified 12 years ago

#64 closed defect

Mixing triming and slicing in WCPS fails — at Initial Version

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

Description

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

Note: See TracTickets for help on using tickets.