Re: Shapefile Example Not Working

From: Mary Haley <haley_at_nyahnyahspammersnyahnyah>
Date: Tue Apr 20 2010 - 08:18:24 MDT

My apologies, I didn't read the error closely enough! I think you
may have
a version of NCL that was built without shapefile support. I'm not
sure I understand
this, though, because I thought all the 5.1.1. precompiled Linux
binaries had
shapefile support built in.

Do you know if you are running a version of NCL that was compiled
from source
code? If so, it's possible that shapefile support was turned off.

I'll keep quiet now, because I just read an email that says Rick will
try to
help you. :-)

--Mary

On Apr 20, 2010, at 7:36 AM, Mary Haley wrote:

> Hi Brad,
>
> When you downloaded the "st_str.tar.gz" file, did you gunzip and
> untar the file first:
>
> gunzip sa_str.tar.gz
> tar -xf sa_str.tar
>
> Once you do this, you will see the following files:
>
> sa.readme sa_str.prj sa_str.shp.xml
> sa_str.dbf sa_str.shp sa_str.shx
>
> and you should now be able to run that example.
>
> --Mary
>
>
> On Apr 19, 2010, at 5:15 PM, Illston, Bradley G. wrote:
>
>> Greetings,
>>
>> I have been trying to get shapefiles to load into NCL and have been
>> unsuccessful. I decided to just try and duplicate on of the
>> examples you have on the website.
>>
>> http://www.ncl.ucar.edu/Applications/Scripts/shapefiles_3.ncl
>>
>> I am using that script unaltered and I have downloaded/gunzip/
>> untarred the shapefile data from the given website. When I run the
>> script, I get the following output:
>>
>> Copyright (C) 1995-2009 - All Rights Reserved
>> University Corporation for Atmospheric Research
>> NCAR Command Language Version 5.1.1
>> The use of this software is governed by a License Agreement.
>> See http://www.ncl.ucar.edu/ for more details.
>> fatal:An internal error has occurred. The file format requested
>> does not appear to be supported, could not open (sa_str.shp)
>> fatal:Either file (f) isn't defined or variable (segments) is not a
>> variable in the file
>> fatal:Execute: Error occurred at or near line 37 in file
>> ncl_Shapefile.ncl
>>
>> As you can see, I am running NCL v5.1.1, which chould support
>> shapefiles. I am running the following system:
>>
>> "Linux {server name} 2.6.9-34.ELsmp #1 SMP Fri Feb 24 16:56:28 EST
>> 2006 x86_64 x86_64 x86_64 GNU/Linux"
>>
>> Can you provide any guidance on how to open a basic shapefile and
>> overlay that onto my plotted data?
>>
>> Thanks,
>> Brad Illston
>> _______________________________________________
>> ncl-talk mailing list
>> List instructions, subscriber options, unsubscribe:
>> http://mailman.ucar.edu/mailman/listinfo/ncl-talk
>
> _______________________________________________
> ncl-talk mailing list
> List instructions, subscriber options, unsubscribe:
> http://mailman.ucar.edu/mailman/listinfo/ncl-talk

_______________________________________________
ncl-talk mailing list
List instructions, subscriber options, unsubscribe:
http://mailman.ucar.edu/mailman/listinfo/ncl-talk
Received on Tue Apr 20 08:21:05 2010

This archive was generated by hypermail 2.1.8 : Fri Apr 23 2010 - 14:40:07 MDT