[ncl-talk] Error in NCL sample script: Undefined identifier (regline_stats)

Rick Brownrigg brownrig at ucar.edu
Mon Oct 23 07:30:36 MDT 2017


Hi,

Yes, Barry is correct, the docs on this function do explicitly state the
function was introduced in v6.2.0:

http://ncl.ucar.edu/Document/Functions/Contributed/regline_stats.shtml

The current version of NCL is v6.4.0   BTW: as of somewhere in the version
chain (6.3.0 perhaps?), its no longer necessary to explicitly load the core
libraries -- they are loaded automatically.

Rick



On Mon, Oct 23, 2017 at 12:37 AM, Barry Lynn <barry.h.lynn at gmail.com> wrote:

> Hi:
>
> I assume that you need to update your NCL to a more recent version.
>
> If you want me to be sure, please tell me where to download the input file
> and I will try it on my computer.
>
> Barry
>
> On Mon, Oct 23, 2017 at 9:19 AM, Angela Wyss <angela.wyss at monash.edu>
> wrote:
>
>> Hello everybody,
>>
>> I’m trying to run a sample regression script from the NCL pace (
>> https://www.ncl.ucar.edu/Applications/Scripts/regress_3.ncl) I’m using
>> the assigned data (air.sig995.mon.mean.nc).
>> I have the 6.1.2 version of NCL and I loaded the following commands:
>> 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"
>> load "$NCARG_ROOT/lib/ncarg/nclscripts/csm/shea_util.ncl”
>>
>> The script works fine until the line where it’s supposed to perform the
>> linear regression:  rc = regline_stats(year, xavg).
>> Here I get the error message:* "fatal:Undefined identifier:
>> (regline_stats) is undefined, can't continue”*
>>
>> Does anyone have an idea how I can run the* regline_stats *command? It
>> does’t seem to be loaded. Since I'm using a NCL sample script I'm assuming
>> it has nothing do with the code itself.
>>
>>
>> Cheers,
>> Angie
>>
>>
>> _______________________________________________
>> ncl-talk mailing list
>> ncl-talk at ucar.edu
>> List instructions, subscriber options, unsubscribe:
>> http://mailman.ucar.edu/mailman/listinfo/ncl-talk
>>
>>
>
>
> --
> Barry H. Lynn, Ph.D
> Senior Lecturer,
> The Institute of the Earth Science,
> The Hebrew University of Jerusalem,
> Givat Ram, Jerusalem 91904, Israel
> Tel: 972 547 231 170
> Fax: (972)-25662581
>
> C.E.O, Weather It Is, LTD
> Weather and Climate Focus
> http://weather-it-is.com
> Jerusalem, Israel
> Local: 02 930 9525
> Cell: 054 7 231 170
> Int-IS: x972 2 930 9525
> US 914 432 3108 <(914)%20432-3108>
>
> _______________________________________________
> ncl-talk mailing list
> ncl-talk at ucar.edu
> List instructions, subscriber options, unsubscribe:
> http://mailman.ucar.edu/mailman/listinfo/ncl-talk
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20171023/16482a82/attachment.html>


More information about the ncl-talk mailing list