Opened 6 years ago

Closed 5 years ago

#64 closed defect (fixed)

Mixing triming and slicing in WCPS fails

Reported by: dmisev Owned by: dmisev
Priority: major Milestone:
Component: petascope Version:
Keywords: Cc: p.baumann@…, pcampalani
Complexity:

Description (last modified by dmisev)

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 Changed 6 years ago by dmisev

  • Component changed from java to petascope
  • Description modified (diff)

comment:2 Changed 5 years ago by dmisev

  • Cc pcampalani added; michael.owonibi@… removed
  • Resolution set to fixed
  • Status changed from new to closed

Fixed

Note: See TracTickets for help on using tickets.