[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
20030620: MCIDAS BATCH files IF construct; next workshops; LDM-6
- Subject: 20030620: MCIDAS BATCH files IF construct; next workshops; LDM-6
- Date: Fri, 20 Jun 2003 12:41:13 -0600
>From: "Paul L. Sirvatka" <address@hidden>
>Organization: COD
>Keywords: 200306200346.h5K3kKLd003606
Paul,
re: upgrade to LDM-6
>Thanks for the info. I will have Dave upgrade as soon as he can.
Thanks.
>Here is the batch file that does not work...
>
>IMGDISP RTGINI/GE1KVIS 1 STA=%2 MAG=%3 SU=VIS
>FRMLABEL IMA=1 "GOES VISIBLE SATELLITE (DAY) (HHMM)
>MAP H 14 GRA=1 IMA=1
>BATCH 1 SATLABEL.BAT
>IF %4 == LALO GOTO MAPIT
>GOTO SAVEIT
>:MAPIT
>MAP LALO -5 LABEL=YES 5 5
>:SAVEIT
>FRMSAVE 1 /home/mcidas/mcimages/satellite/regional/%1-vis.gif
>Basically I am sending some arguments to the batch call and the 4th ( if
>it exists) is LALO...So it says
>
>SYNTAX error when it translates IF LALO == LALO GOT MAPIT
>
>I just want to create a series of images only the Canadian ones will map
>LALO.
>
>Any ideas why it is not working?
Change the IF line to:
IF "%4"=="LALO" GOTO MAPIT
The IF syntax is very picky:
- no spaces around the '=='
- string values must be sorrounded by shifted quotes, and %4 and LALO
are string values
Tom