<div dir="ltr">David,<div><br></div><div>I was able to duplicate what you did, but my GrADS version (2.0.1.oga.1) is a bit different. However, I have no suggestions on why they do not match the "correct" sample in your linked image, expect perhaps the original shapefile was not rendered properly.</div><div><br></div><div>Steve Mc</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Apr 24, 2015 at 4:24 PM, David Mocko <span dir="ltr"><<a href="mailto:David.Mocko@nasa.gov" target="_blank">David.Mocko@nasa.gov</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><br>
Hello,<br>
<br>
I'm trying to draw the U.S. Drought Monitor on 27 Jan 2004,<br>
but I can't quite replicate this map using GrADS:<br>
<a href="http://droughtmonitor.unl.edu/data/pngs/20040127/20040127_conus_trd.png" target="_blank">http://droughtmonitor.unl.edu/data/pngs/20040127/20040127_conus_trd.png</a><br>
<br>
I am using this shapefile available in the USDM archive:<br>
<a href="http://droughtmonitor.unl.edu/data/shapefiles_m/USDM_20040127_M.zip" target="_blank">http://droughtmonitor.unl.edu/data/shapefiles_m/USDM_20040127_M.zip</a><br>
<br>
What happens is that, depending on which order I draw the<br>
individual polygons, some colors are overwritten by later<br>
polygons that I draw.<br>
<br>
If I draw the "yellow" drought category first, then the<br>
yellow/light orange drought categories in Colorado are<br>
overwritten with dark orange (grads_yellow-first.png).<br>
<br>
If I draw the "red" drought category first, then the<br>
light red/dark orange drought categories in Minnesota<br>
are overwritten with light orange (grads_red-first.png).<br>
<br>
I am attaching sample figures, as well as the GrADS scripts<br>
that produce dthem. Below, I list the result of "q shp" on<br>
this shapefile, and my GrADS configuration.<br>
<br>
Any help would be welcome,<br>
<br>
David<br>
<br>
---------<br>
ga-> q shp USDM_20040127.shp<br>
<br>
Shapefile Type=Polygon #Shapes=5 XBounds=-157.306:-88.7898 YBounds=19.1511:65.0444<br>
0: Polygon parts=32 vertices=4022 XBounds=-157.306:-88.7898 YBounds=19.1511:65.0444 ZBounds=0:0 MBounds=0:0<br>
1: Polygon parts=8 vertices=2145 XBounds=-121.284:-89.1468 YBounds=29.3411:49.3846 ZBounds=0:0 MBounds=0:0<br>
2: Polygon parts=8 vertices=2057 XBounds=-120.725:-89.7628 YBounds=30.1637:48.8752 ZBounds=0:0 MBounds=0:0<br>
3: Polygon parts=8 vertices=1545 XBounds=-119.669:-91.0982 YBounds=30.9017:48.4509 ZBounds=0:0 MBounds=0:0<br>
4: Polygon parts=5 vertices=409 XBounds=-114.85:-102.183 YBounds=31.3319:47.3992 ZBounds=0:0 MBounds=0:0<br>
<br>
---------<br>
ga-> q config<br>
Config: v2.1.a2.oga.2 little-endian readline grib2 netcdf hdf4-sds hdf5 opendap-grids,stn athena geotiff shapefile cairo<br>
Grid Analysis and Display System (GrADS) Version 2.1.a2.oga.2<br>
Copyright (c) 1988-2013 by the Institute for Global Environment and Society (IGES)<br>
This program is distributed WITHOUT ANY WARRANTY<br>
See file COPYRIGHT for more information.<br>
<br>
Built Wed Nov 12 22:59:49 EST 2014 for x86_64-unknown-linux-gnu<br>
<br>
This version of GrADS has been configured with the following options:<br>
o Built on a LITTLE ENDIAN machine<br>
o Athena Widget GUI ENABLED<br>
o Command line editing ENABLED<br>
<a href="http://tiswww.case.edu/php/chet/readline/rltop.html" target="_blank">http://tiswww.case.edu/php/chet/readline/rltop.html</a><br>
o GRIB2 interface ENABLED<br>
<a href="http://www.ijg.org" target="_blank">http://www.ijg.org</a><br>
<a href="http://www.ece.uvic.ca/~mdadams/jasper" target="_blank">http://www.ece.uvic.ca/~mdadams/jasper</a><br>
<a href="http://www.nco.ncep.noaa.gov/pmb/codes/GRIB2" target="_blank">http://www.nco.ncep.noaa.gov/pmb/codes/GRIB2</a><br>
g2clib-1.4.0<br>
o NetCDF interface ENABLED<br>
<a href="http://www.unidata.ucar.edu/software/netcdf" target="_blank">http://www.unidata.ucar.edu/software/netcdf</a><br>
netcdf 4.3.2 of May 1 2014 23:24:51 $<br>
o OPeNDAP gridded data interface ENABLED<br>
o OPeNDAP station data interface ENABLED<br>
<a href="http://iges.org/grads/gadoc/supplibs.html" target="_blank">http://iges.org/grads/gadoc/supplibs.html</a><br>
libgadap 2.0.oga.1<br>
o HDF4 and HDF5 interfaces ENABLED<br>
<a href="http://hdfgroup.org" target="_blank">http://hdfgroup.org</a><br>
HDF 4.2r5<br>
HDF5 1.8.12<br>
o GeoTIFF and KML/TIFF output ENABLED<br>
<a href="http://www.libtiff.org" target="_blank">http://www.libtiff.org</a><br>
<a href="http://geotiff.osgeo.org" target="_blank">http://geotiff.osgeo.org</a><br>
o KML contour output ENABLED<br>
o Shapefile interface ENABLED<br>
<a href="http://shapelib.maptools.org" target="_blank">http://shapelib.maptools.org</a><br>
o Cairo graphics interface ENABLED<br>
<a href="http://cairographics.org" target="_blank">http://cairographics.org</a><br>
<a href="http://cgit.freedesktop.org/pixman" target="_blank">http://cgit.freedesktop.org/pixman</a><br>
<a href="http://www.freetype.org/index2.html" target="_blank">http://www.freetype.org/index2.html</a><br>
<a href="http://www.freedesktop.org/wiki/Software/fontconfig" target="_blank">http://www.freedesktop.org/wiki/Software/fontconfig</a><br>
Cairo 1.12.16<br>
Pixman 0.28.0<br>
Freetype 2.3.8<br>
Fontconfig 2.11.1<span class="HOEnZb"><font color="#888888"><br>
<br>
<br>
-- <br>
--------------------------------------------------------------------------<br>
David M. Mocko, Building 33, Room G108 <a href="mailto:David.Mocko@nasa.gov" target="_blank">David.Mocko@nasa.gov</a><br>
NASA Goddard Space Flight Center Voice: <a href="tel:%28301%29-614-6222" value="+13016146222" target="_blank">(301)-614-6222</a><br>
Code 610.1, Greenbelt MD 20771 Fax: <a href="tel:%28301%29-614-6246" value="+13016146246" target="_blank">(301)-614-6246</a><br>
SAIC (Science Applications International Corporation)<br>
with the Global Modeling and Assimilation Office<br>
and the Hydrological Sciences Laboratory<br>
<a href="http://neptune.gsfc.nasa.gov/hsb/personnel/?dmocko" target="_blank">http://neptune.gsfc.nasa.gov/hsb/personnel/?dmocko</a><br>
--------------------------------------------------------------------------<br>
<br>
</font></span><br>_______________________________________________<br>
gradsusr mailing list<br>
<a href="mailto:gradsusr@gradsusr.org">gradsusr@gradsusr.org</a><br>
<a href="http://gradsusr.org/mailman/listinfo/gradsusr" target="_blank">http://gradsusr.org/mailman/listinfo/gradsusr</a><br>
<br></blockquote></div><br></div>