[Thread Prev][Thread Next][Index]

[ferret_users] Problem IF statement



Hello,
 
I have a problem with my ferret-script. It includes a REPEAT and IF statement, although I think the fault is in the IF part. 
 
The following code has been set up:
 
REPEAT/i=1:362 \
( REPEAT/j=1:292 \
  ( IF SST[X=i, Y=j, L=1] EQ 0 \
      THEN \
        LET SST[X=i, Y=j, L=1] = 1/0 \
    ENDIF \
  ) \
)
 
Which gives the following output in:
!-> REPEAT: I=1
!-> REPEAT: J=1
 **ERROR: command syntax: SST[X=i,Y=j,L=1]
IF SST[X=i,Y=j,L=1] EQ 0     THEN   LET SST[X=i,Y=j,L=1] = 1/0   ENDIF
Command file, command group, or REPEAT execurtion aborted.
 
Does anyone have an idea why the IF does not recognise SST[X=1,Y=1,L=1] ?
 
Thank you!
 

[Thread Prev][Thread Next][Index]

Contact Us
Dept of Commerce / NOAA / OAR / PMEL / TMAP

Privacy Policy | Disclaimer | Accessibility Statement