<br><font size=2 face="sans-serif">Arlindo,</font><br><font size=2 face="sans-serif">I'm not yet familiar with how to build
from sources, but I appreciate your mentioning that option.</font><br><br><font size=2 face="sans-serif">Regarding the usage syntax, did you
mean shp_polyf instead of shp_polyg? Otherwise, what is "polyg"
supposed to do? Also, in their present state (on current version I'm using),
both shp_polyf and shp_lines require either 1 or 3 arguments. If I try
two args as in your example, I get the GrADS error "invalid number
of arguments; need 1 or 3 but got 2". If this error is valid, then
the user will need to know the following for proper use:</font><br><br><font size=2 face="sans-serif">Arg1 Shapefile
name such as "admin98"</font><br><font size=2 face="sans-serif">Arg2 Presumably
some object identifier, such as the "8" you mentioned. Also,
how to determine the range of acceptable object identifiers. Right now,
even with admin98, how do I know which sub-polygon 8, 100, 2603, etc. applies
to? For now, I'll just assume they correspond to the order listed in the
.dbf component of the shapefile.</font><br><font size=2 face="sans-serif">Arg3 What
is its purpose? How do I identify the sutable range of Arg3?</font><br><br><font size=2 face="sans-serif">I'll look forward to your fix of that
"silly little bug"! Thanks for your response, and keep up the
great work!</font><br><br><font size=2 face="sans-serif">Stephen McMillan</font><br><br><br><table width=100%><tr valign=top><td width=40%><font size=1 face="sans-serif"><b>Arlindo da Silva <dasilva@ALUM.MIT.EDU></b></font><br><font size=1 face="sans-serif">Sent by: GRADSUSR@LIST.CINECA.IT</font><p><font size=1 face="sans-serif">07/23/2008 08:12 PM</font><table border><tr valign=top><td bgcolor=white><div align=center><font size=1 face="sans-serif">Please respond to<br>GRADSUSR@LIST.CINECA.IT</font></div></table><br><td width=59%><table width=100%><tr valign=top><td><div align=right><font size=1 face="sans-serif">To</font></div><td><font size=1 face="sans-serif">GRADSUSR@LIST.CINECA.IT</font><tr valign=top><td><div align=right><font size=1 face="sans-serif">cc</font></div><td><tr valign=top><td><div align=right><font size=1 face="sans-serif">Subject</font></div><td><font size=1 face="sans-serif">Re: Using Shape Files in GrADS</font></table><br><table><tr valign=top><td><td></table><br></table><br><br><tt><font size=2>On Tue, Jul 22, 2008 at 12:54 PM, Stephen R McMillan<br><smcmillan@planalytics.com> wrote:<br>><br>> This is a re-send of inquiry sent yesterday. Perhaps no one in user<br>> community has actually used the shape file feature. If so, then
this is<br>> intended for the person who contributed this function to v1.9.0-rc1
for<br>> Windows. All I need is an EXAMPLE or two of the correct syntax
when an<br>> "object" is involved, any additional required command arguments,
and any<br>> pre-requisite commands.<br>><br>> I had done a search of the user archives regarding shape files, but
found<br>> only my previous relevant questions and partial responses.<br>><br></font></tt><br><tt><font size=2>I just found a silly bug that was preventing the shp_polyf
feature<br>from working. I am reconstructing my Win32 build environment and I<br>will post a revised shape.dll as soon as I can. I believe Graziano has<br>fixed the issue with line thickness, etc. The fixed sources have been<br>checked in at the OpenGrADS CVS repository if you rather buid from<br>sources.<br></font></tt><br><tt><font size=2>The syntax should be something like:<br></font></tt><br><tt><font size=2>ga-> shp_polyg admin98 8<br></font></tt><br><tt><font size=2>to plot object number "8"; In this particular
case, the admin98.shp<br>file as 2,604 shapes (objects), so you can enter a number from 0 to<br>2,603 (it is 0-based as in C). Each shape (object) corresponds to a<br>single small polygon, although some objects may not be plotted at all<br>(it must be closed for it to be filled).<br></font></tt><br><tt><font size=2>Arlindo<br></font></tt><br><br><br><br><br><br><br><br><tt><font size=2>> Thanks--<br>> Stephen McMillan<br>><br>><br>> Stephen R. McMillan/Planalytics<br>><br>> 07/21/2008 02:05 PM<br>><br>> To<br>> GRADSUSR@LIST.CINECA.IT<br>> cc<br>> Subject<br>> Using Shape Files in GrADS<br>><br>><br>><br>> I am able to display shape file polygons in GrADS. However, I would
like to<br>> be able to color-fill the component polygons according to a value,
say,<br>> temperature. Is this possible? If so, please share how to do it.<br>><br>> I can draw all the lines with the 'shp_lines....' command, and an<br>> overall/inclusive filled polygon with the 'shp_polyf...' command,
specifying<br>> a single color with the 'set line...' command. However, I want to
be able to<br>> control individual shape poly fills within the inclusive boundaries,
such as<br>> states/provinces, of the shape file. I am currently experimenting
with the<br>> "admin98" set. The associated .dbf file contains 14 columns/fields
of<br>> geographical data, including what appear to be unique identifiers
(US20,<br>> USA-KAN, etc.).<br>><br>> The command line output indicates the following syntax, with 1 to
3<br>> arguments:<br>> Usage: shp_polyf shapefile [object]<br>><br>> How do I specify the object? Is the object the 2nd argument? What
is the 3rd<br>> argument, and how do I specify it?<br>><br>> The idea is that my script would read a text file as input, where
individual<br>> shapes (such as state/province boundaries) are associated with temperature<br>> or some other variable.<br>><br>> I am using GrADS v1.9.0-rc1 (installed from OpenGrADS), on a Windows
XP<br>> platform.<br>><br>> Any help on this would be appreciated.<br>><br>> Stephen McMillan<br>><br>><br>> ***************************************************<br>> The information contained in this e-mail message is intended only
for the<br>> use of the recipient(s) named above and may contain information that
is<br>> privileged, confidential, and/or proprietary. If you are not the intended<br>> recipient, you may not review, copy or distribute this message. If
you have<br>> received this communication in error, please notify the sender immediately<br>> by e-mail, and delete the original message.<br>> ***************************************************<br>><br></font></tt><br><br><br><tt><font size=2>--<br>Arlindo da Silva<br>dasilva@alum.mit.edu</font></tt><br><br><BR>
<BR>
***************************************************<BR>
The information contained in this e-mail message is intended only for the use of the recipient(s) named above and may contain information that is privileged, confidential, and/or proprietary. If you are not the intended recipient, you may not review, copy or distribute this message. If you have received this communication in error, please notify the sender immediately by e-mail, and delete the original message.<BR>
***************************************************<BR>