Re: Problems with EOF application example

From: Rick Brownrigg <brownrig_at_nyahnyahspammersnyahnyah>
Date: Tue Aug 10 2010 - 14:04:35 MDT

Hi,

For whatever reason, the variable "slp" in the file is named in lower
case, whereas the script has it in upper case; NCL is case-
sensitive. Changing the line in the script
        
        slp = f->SLP

to

        slp = f->slp

should fix the problem. We'll likely fix the script on the web site.

Rick

On Aug 10, 2010, at 12:40 PM, Gabriel Silvério wrote:

> I had some problems in executing the example script of EOFs
> available on the webpage (http://www.ncl.ucar.edu/Applications/eof.shtml
> ). I downloaded the dataset SLP.1979_2003.nc also from the webpage.
> NCL is returning the following error:
>
> "fatal:Either file (f) isn't defined or variable (SLP) is not a
> variable in the file"
>
> Although there is no error in the 'addfile' line, I still checked
> and the file was defined correctly. I also checked the dataset to
> see if the name of the variable (SLP) was incorrect, but it wasn't.
> I'm having the same problem with several other scripts.
>
> Thank you _______________________________________________
> 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 Aug 10 14:04:41 2010

This archive was generated by hypermail 2.1.8 : Fri Aug 13 2010 - 15:05:05 MDT