Re: eofunc_varimax_Wrap undefined

From: Mary Haley <haley_at_nyahnyahspammersnyahnyah>
Date: Wed, 17 May 2006 09:57:05 -0600 (MDT)

Hi all,

We have been in contact with Jenny offline about this question, but I
wanted to mention a couple of things here.

First, if you are getting an undefined reference to a function, chances
are that you are running an older version of NCL that doesn't have this
function. Consider upgrading your version of NCL to see if this
fixes the problem.

Secondly, if you are using a "xxx_Wrap" function, then you must load
the "contributed.ncl" script as follows, usually right after you load
the "gsn_code.ncl" and "gsn_csm.ncl" scripts:

load "$NCARG_ROOT/lib/ncarg/nclscripts/csm/gsn_code.ncl"
load "$NCARG_ROOT/lib/ncarg/nclscripts/csm/gsn_csm.ncl"
load "$NCARG_ROOT/lib/ncarg/nclscripts/csm/contributed.ncl"

It's best if you have these load statements at the top of your
NCL script, before any other code.

--Mary

On Tue, 16 May 2006, Jenny Brandefelt wrote:

> Hi!
>
> I am trying to use the function eofunc_varimax_Wrap to determine
> rotated EOFs, but I get:
>
>> ncl rotated_eofs.ncl
> Copyright (C) 1995-2004 - All Rights Reserved
> University Corporation for Atmospheric Research
> NCAR Command Language Version 4.2.0.a032
> The use of this software is governed by a License Agreement.
> See http://ngwww.ucar.edu/ncl/ for more details.
> fatal:Undefined identifier: (eofunc_varimax_Wrap) is undefined, can't
> continue
> fatal:Execute: Error occurred at or near line 37 in file rotated_eofs.ncl
>
>
> I have loaded contributed.ncl and using eofunc_varimax gives no error
> messages. Has anyone encountered this before? Maybe I am just doing
> some silly mistake?
>
> I would be most grateful for any suggestions,
> Jenny
>
>
> My script rotated_eofs.ncl.:
>
> ; ==============================================================
> ; Calculate rotated EOFs of the Geopotential height at approx 200 hPa
> ; north of 20N.
> ; ==============================================================
> load "$NCARG_ROOT/lib/ncarg/nclscripts/csm/contributed.ncl"
>
> begin
> ; ==============================================================
> ; Parameters
> ; ==============================================================
> neof = 7 ; number of EOFs
> optEOF = False
> optETS = False
>
> ; ==============================================================
> ; Open the file: Z
> ; ==============================================================
> f = addfile ("Z3.nc", "r")
> SLP = f->Z3(time|:,lev|:,lat|:,lon|:)
>
> ; -----------------------------------------------------------------
> ; reorder (lat,lon,time) the input data
> ; -----------------------------------------------------------------
> x = SLP({lev|192:192},{lat|:},{lon|:},time|:)
>
> ;------------------------------------------------------------
> ; Determine EOFs
> ;------------------------------------------------------------
> eof = eofunc_Wrap(x, neof, optEOF)
> eof_ts = eofunc_ts_Wrap (x, eof, optETS)
>
> ;------------------------------------------------------------
> ; Determine rotated EOFs
> ;------------------------------------------------------------
> eof_rot0 = eofunc_varimax (eof,False)
> eof_rot = eofunc_varimax_Wrap (eof,False)
>
> end
>
>
>
>
>
>
>
>
>
>
> --
> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> Jenny Brandefelt, http://www.misu.su.se/~jenny
> Department of Meteorology, Stockholm University
> phone: +46-8-164337, fax: +46-8-157185
>
> _______________________________________________
> ncl-talk mailing list
> ncl-talk_at_ucar.edu
> http://mailman.ucar.edu/mailman/listinfo/ncl-talk
>
_______________________________________________
ncl-talk mailing list
ncl-talk_at_ucar.edu
http://mailman.ucar.edu/mailman/listinfo/ncl-talk
Received on Wed May 17 2006 - 09:57:05 MDT

This archive was generated by hypermail 2.2.0 : Wed May 17 2006 - 09:58:00 MDT