[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[McIDAS #AOE-843254]: problem with DEV=T
- Subject: [McIDAS #AOE-843254]: problem with DEV=T
- Date: Wed, 05 May 2010 14:59:04 -0600
Hi Owen,
re:
> Thanks Tom, the batch file is attached.
Thanks, this is useful since it allows me to see all of the things
you are trying to do.
re:
> Most of the file is used to make NAM model cross sections of winds at
> the California coast. The problem arises in just the last few lines of
> the file where I use the GRDINFO command.
OK.
re:
> to call the file use:
> BATCH 125 126 127 128 NAM_PROFILES_12UTC.BAT
> the numbers are just the julian days for today and the next 3 days.
>
> Let me know what you find!
My best guess is that there are one or more spaces being included
in the parameters passed in the invocation of the .sh script, and
they, in turn, are being included as part of the file name specified
in the DEV=T specifications.
Consider the invocation sequence:
.sh script:
mcenv -f 1@800x1000<<EOF
redirect.k REST CALNEX.NAM
batch.k $1 $2 $3 $4 $5 CONTINUE=YES
exit
EOF
BATCH file:
GRDINFO RTGRIDS/NAM LIST DAY=%1 TIME=12 FDAY=%1 FTIME=18 GRIB=211 X X X LAT=40
42 LON=123 125 PARAM=U V Z LEV=1000 950 900 850 800 750 700 650 600 550 500 450
400 350 300 250 200 150 100 NUM=ALL DEV=T THD_%1_12_%1_18.GEO
If any/all of the "$1", "$2", "$3", "$4" parameters included spaces, then the
output file name
specified in the DEV=T keyword would be invalid. You could quickly
prove/refute my guess by
writing out the values of the pieces before running the batch.k invocation.
For instance, add
the following lines to your .sh script:
...
cd $CNEX_NAM_TMPDIR
echo ">$1< >$2< >$3< >$4<"
echo THD_$1_12_$1_18.GEO
echo THD_$1_12_$2_00.GEO
echo THD_$1_12_$2_18.GEO
echo THD_$1_12_$3_00.GEO
echo THD_$1_12_$3_18.GEO
echo THD_$1_12_$4_00.GEO
mcenv -f 1@800x1000<<EOF
# redirect.k REST CALNEX.NAM
batch.k $1 $2 $3 $4 $5 CONTINUE=YES
exit
EOF
Check the log file after making the modifications and trying an invocation.
Do the names of the files look valid?
Cheers,
Tom
--
****************************************************************************
Unidata User Support UCAR Unidata Program
(303) 497-8642 P.O. Box 3000
address@hidden Boulder, CO 80307
----------------------------------------------------------------------------
Unidata HomePage http://www.unidata.ucar.edu
****************************************************************************
Ticket Details
===================
Ticket ID: AOE-843254
Department: Support McIDAS
Priority: Normal
Status: Closed