This archive contains answers to questions sent to Unidata support through mid-2025. Note that the archive is no longer being updated. We provide the archive for reference; many of the answers presented here remain technically correct, even if somewhat outdated. For the most up-to-date information on the use of NSF Unidata software and data services, please consult the Software Documentation first.
>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