This archive contains answers to questions sent to Unidata support through mid-2025. Note that the archive is no longer being updated. We provide the archive for reference; many of the answers presented here remain technically correct, even if somewhat outdated. For the most up-to-date information on the use of NSF Unidata software and data services, please consult the Software Documentation first.
Clint, I have an updated shape.tar.gz file in http://www.unidata.ucar.edu/packages/gempak/contrib/shape.tar.gz Don't know if it will have any more luch, but I did revamp some of the code. The main thing to look at is the NDEX_SIZE definition for the ndex[] array which is currently set to 600 parts of the message. If this is a problem, the will write out a message. See the README file inside. I removed the -g flag. That is the default format. Chiz >From: Clint Rowe <address@hidden> >Organization: UCAR/Unidata >Keywords: 200203181934.g2IJYMa22374 >Chiz, > >I grabbed a shapefile of time zone boundaries from USGS >(http://www.nationalatlas.gov/timeznm.html) and am trying to convert >it to gempak format. I grabbed your readshape.tar.gz to start the >process, but can't get beyond it core dumping. Since I'm not a C >programmer, I'm not sure how to go about figuring this one out. I'm >guessing that it's exceeding an array boundary (the usual culprit) >and the number of values (141524) seems rather large for a simple >boundary. > > >purga% ../software/readshape -g timeznp020.shp timeznp020.dbf > ../timezone.da > t >Segmentation Fault (core dumped) >purga% !head >head ../timezone.dat >141524 54.766 71.398 -168.126 -129.991 71.177 -156.017 > 71.179 -156.012 71.183 -156.000 71.186 -155.990 71.189 -155.982 > 71.191 -155.969 71.193 -155.961 71.197 -155.957 71.202 -155.956 > 71.207 -155.953 71.214 -155.950 71.219 -155.940 71.222 -155.931 > 71.222 -155.926 71.221 -155.922 71.218 -155.919 71.211 -155.911 > 71.207 -155.906 71.203 -155.897 71.200 -155.893 71.199 -155.890 > 71.198 -155.893 71.198 -155.903 71.195 -155.907 71.191 -155.902 > 71.188 -155.898 71.187 -155.894 71.186 -155.886 71.185 -155.880 > 71.186 -155.876 71.187 -155.876 71.188 -155.875 71.192 -155.874 > 71.193 -155.877 71.195 -155.881 71.196 -155.879 71.196 -155.874 >purga% > >Any pointers? >Clint > >==================================================================== >Clinton M. Rowe >Associate Professor >Meteorology/Climatology Program phone:(402)472-1946 >Department of Geosciences fax:(402)472-4917 >University of Nebraska-Lincoln address@hidden > >