[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[McIDAS #BAF-214238]: Couple of Questions
- Subject: [McIDAS #BAF-214238]: Couple of Questions
- Date: Sun, 02 Dec 2012 08:19:58 -0700
Hi Rod,
re:
> My CODE for the batch file with the commands of county=all state=MS AL
> GA and map the image didnt produce county map of the region of
> interest? Maybe I am doing something wrong?
Yes, I thin so. See below...
re:
> I want it to show in all
> three frames but somehow the first IMGCOPY command for the first frame
> didnt work.
IMGCOPY not working is a separate issue from MAP not working.
re:
> REM
> REM First, erase everyting in frame 1
> REM
>
> ERASE F 1 3
re:
> IMGCOPY G13/IR27APR11 LOC/AREAS.3003 TIME=20:25 LAT=30:00 86:30
> SIZE=320 320 PRO=MERC RES=6 STATE=MS AL GA COUNTY=ALL MCOL=8 MAP
> FILE=OUTVHPOL MCOL=1
Assuming that this is a single command line, the problem is that you are mixing
IMGCOPY and MAP commands in the same command line. From what I see, your code
should consist of three command lines:
IMGCOPY G13/IR27APR11 LOC/AREAS.3003 TIME=20:25 LAT=30:00 86:30 SIZE=320 320
PRO=MERC RES=6
MAP STATE=MS AL GA COUNTY=ALL MCOL=8
MAP FILE=OUTVHPOL MCOL=1
re:
> IMGDISP LOC/AREAS.3003 1 LAT=30:00 86:30 EU=IMAGE STATE=MS AL GA
> COUNTY=ALL MCOL=8 MAP FILE=OUTVHPOL MCOL=1
Again, you are mixing IMGDISP and MAP commands. What you are apparently trying
to do can be written in two ways, one of which is preferred in scripts:
Preferred way:
IMGDISP LOC/AREAS.3003 1 LAT=30:00 86:30 EU=IMAGE
MAP STATE=MS AL GA COUNTY=ALL MCOL=8
MAP FILE=OUTVHPOL MCOL=1
Another way which is fine but has a "gotcha":
IMGDISP LOC/AREAS.3003 1 LAT=30:00 86:30 EU=IMAGE REFRESH='MAP STATE=MS AL GA
COUNTY=ALL MCOL=8;MAP FILE=OUTVHPOL MCOL=1'
The "gotcha" is that the commands specified in the REFRESH= keyword are
executed after the image is displayed (which is what is desired) but
asynchronously (meaning that they run while new lines in the BATCH
file are being executed. The way to prevent unintended consequences in
this case is to include a WAIT after the IMGDISP:
IMGDISP LOC/AREAS.3003 1 LAT=30:00 86:30 EU=IMAGE REFRESH='MAP STATE=MS AL GA
COUNTY=ALL MCOL=8;MAP FILE=OUTVHPOL MCOL=1'
WAIT 2
'WAIT 2' will wait for 2 seconds; this should be enough time to allow the
commands
specified in the REFRESH= keyword to be run and finish before the next line
in the BATCH file is executed. I much prefer the first way I illustrated above
which is to include each command on a separate line:
IMGDISP LOC/AREAS.3003 1 LAT=30:00 86:30 EU=IMAGE
MAP STATE=MS AL GA COUNTY=ALL MCOL=8
MAP FILE=OUTVHPOL MCOL=1
> IMGCOPY LOC/AREAS.3003 LOC/AREAS.3103 SIZE=SAME
> IMGREMAP G13/ERAD27APR11 LOC/AREAS.3103 TIME=20:25
> IMGLIST LOC/AREAS.3003 FORM=ALL
> IMGCHA LOC/AREAS.3103 SS=180 STYPE=VISR
re:
> IMGDISP LOC/AREAS.3103 2 LAT=30:00 86:30 EU=CLW3 SF=YES MAP LALO -2
> INT=5 5 COUNTY=ALL STATE=MS AL GA MCOL=8 MAP FILE=OUTVHPOL MCOL=1
Again, this is mixing three commands in the same command line and will
not do what you want. Rewrite it as three separate lines:
IMGDISP LOC/AREAS.3103 2 LAT=30:00 86:30 EU=CLW3 SF=YES
MAP LALO -2 INT=5 5 COUNTY=ALL STATE=MS AL GA MCOL=8
MAP FILE=OUTVHPOL MCOL=1
> IMGFILT LOC/AREAS.3003 LOC/AREAS.3103 LOC/AREAS.3203 FILTER=DIS 0 255 185 255 > 0
re:
> IMGDISP LOC/AREAS.3103 3 LAT=30:00 86:30 EU=CLW3 SF=YES MAP LALO -2
> INT=5 5 COUNTY=ALL STATE=MS AL GA MCOL=8 MAP FILE=OUTVHPOL MCOL=1
This has the same problem as the IMGDISP commands above. Rewrite it as
three separate lines:
IMGDISP LOC/AREAS.3103 3 LAT=30:00 86:30 EU=CLW3 SF=YES
MAP LALO -2 INT=5 5 COUNTY=ALL STATE=MS AL GA MCOL=8
MAP FILE=OUTVHPOL MCOL=1
> IMGPROBE STAT BOX OUTLINE=YES MODE=N LATLON=34.664021 88.13850 PLACE=ULEFT
> EXCLUDE=0 1-184
re:
> Also as seen on the attachment I set the upper left of the box to take
> the statistics of the particular supercell. However is there any way
> to expand the box? Is there an Upper RIGHT or Lower LEFT Lower RIGHT
> preset command on IMGPROBE because I dont see it.
No, there is not.
re:
> I have the values
> of where the lat/longitude of where the box can be set, I just want to
> know if it can be done?
The IMGPROBE command accepts a SIZE= keyword where you can express the
size of the BOX you want values from. You will have to play with
the LATLON= keyword positioning and SIZE= keyword size to get the coverage
you want.
re:
> Also when it took the statistics, the latitude
> and longitude were approximate to the lat/lon value I put it in, is
> there a way I can fix this or I have to just take the approximate?
The lat/lon values returned by IMGPROBE are the actual lat/lon values
of the pixels. This can not be changed.
re:
> Thanks!
No worries.
re:
> Sorry about that. I hope you made it safely back from your trip to Africa.
Yup, I got back to Boulder Friday afternoon. It was a successful trip even
if it was kinda manic :-)
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: BAF-214238
Department: Support McIDAS
Priority: Normal
Status: Closed