[gradsusr] Drawing Shape Files
Stephen McMillan
smcmillan at planalytics.com
Wed Aug 17 17:29:47 EDT 2016
Andrew,
I did exactly as you did, and the Alaska county lines drew. However, that
may be because my shapefile is in my SupportData.
Did you remember to unzip the shapefile before drawing? Also, I'm not sure
why you did the 'set shp...' command. That one is used for creating, not
drawing, a shapefile. Perhaps your action overwrote the shapefile you
downloaded and thus you may be drawing temperature contours, not county
lines.
Try it again without the 'set shp' and instead use something like the
following before the draw shp command:
set line 1 (you may need to use 0 or a different color if your map
background is reversed)
set shpopts -1
draw shp...
Stephen
On Wed, Aug 17, 2016 at 4:10 PM, Andrew Revering <andy at f5data.com> wrote:
> Thanks for the link Stephen.
> I tried the file but still doesn't draw. On the same map I used Admin98
> and it drew the Yukon Territory no problem. I also tried putting these
> shape files into the same path as admin98 but no luck.
>
> open gfs003.ctl
> Scanning description file: gfs003.ctl
> Data file gfs003.grib is open as file 1
> LON set to 0 360
> LAT set to -90 90
> LEV set to 1 1
> Time values set: 2016:8:17:9 2016:8:17:9
> E set to 1 1
>
> ga-> set lon -179.8 -127.2
> LON set to -179.8 -127.2
> ga-> set lat 50.9 73.9
> LAT set to 50.9 73.9
>
> ga-> set shp cb_2015_us_county_500k.shp
> Shapefile output file name root: cb_2015_us_county_500k.shp
> Shapefile output type: line
> Shapefile format string is %12.6f
> ga-> d tmp2m
> Contouring: 264 to 291 interval 3
>
> ga-> draw shp admin98
> ga-> draw shp cb_2015_us_county_500k.shp
> ga-> printim test.png
> Created PNG file test.png
>
> result: http://f5data.net/test.png
>
>
>
>
>> > ----------------------------------------------------------------------
>>
>> Date: Tue, 16 Aug 2016 16:37:48 -0400
>> From: Stephen McMillan <smcmillan at planalytics.com>
>> Subject: Re: [gradsusr] Drawing Shape Files
>> To: GrADS Users Forum <gradsusr at gradsusr.org>
>> Message-ID:
>> <CA+exxN2i=SEHQXjQbhYPmRmR_pPwbRzMLZDJrA+Pm-UvKuXnMg at mail.
>> gmail.com>
>> Content-Type: text/plain; charset="utf-8"
>>
>> Hi Andrew,
>>
>> There are quite a number of sources for shapefiles, including US counties.
>> Here's one that might be useful:
>>
>> https://www.census.gov/geo/maps-data/data/cbf/cbf_counties.html
>>
>> Above link has three different resolutions. Just download and unzip to
>> wherever you keep your shapefiles. I tried the "500k" resolution and it
>> includes Alaska counties, so maybe it will suit your needs. Be sure to
>> read the data description on the web page for appropriateness and any
>> limitations.
>>
>> Good luck--
>> Stephen Mc
>>
>
> _______________________________________________
> gradsusr mailing list
> gradsusr at gradsusr.org
> http://gradsusr.org/mailman/listinfo/gradsusr
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://gradsusr.org/pipermail/gradsusr/attachments/20160817/9d8a0cd8/attachment.html
More information about the gradsusr
mailing list