Thanks for your help. I have tried it. The correct order should be
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/roms/ROMS_utils.ncl"
load "$NCARG_ROOT/lib/ncarg/nclscripts/csm/contributed.ncl"
not what you said. But still thank you for your reminding.
2013-09-05
朱学明
发件人:Adam Phillips <asphilli@ucar.edu>
发送时间:2013-09-05 03:40
主题:Re: [ncl-talk] contributed.ncl 's error
收件人:"朱学明"<557xiaozhu@163.com>
抄送:"ncl-talk@ucar.edu USERS"<ncl-talk@ucar.edu>
There is a specific order that those scripts should be loaded in. Try loading your scripts in this order:
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/roms/ROMS_utils.ncl"
If that does not fix the issue please let ncl-talk know.
Adam
On 9/4/13 1:28 PM, 朱学明 wrote:
Hi all,
Once I load the contributed.ncl with the following line,
;----------------------------------------------------------------------
load "$NCARG_ROOT/lib/ncarg/nclscripts/csm/contributed.ncl"
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/roms/ROMS_utils.ncl"
I get some error message as follow,
fatal:syntax error: line 92 in file $NCARG_ROOT/lib/ncarg/nclscripts/csm/contributed.ncl before or near size_array
function size_array
------------------^
fatal:Function identifier is defined
fatal:syntax error: line 100 in file $NCARG_ROOT/lib/ncarg/nclscripts/csm/contributed.ncl before or near isatt_LongName
function isatt_LongName
----------------------^
fatal:Function identifier is defined
fatal:syntax error: line 101 in file $NCARG_ROOT/lib/ncarg/nclscripts/csm/contributed.ncl before or near local
local
----^
fatal:error in statement
fatal:syntax error: line 121 in file $NCARG_ROOT/lib/ncarg/nclscripts/csm/contributed.ncl before or near getLongName
function getLongName
-------------------^
fatal:Function identifier is defined
fatal:syntax error: line 154 in file $NCARG_ROOT/lib/ncarg/nclscripts/csm/contributed.ncl before or near namDimCheck
function namDimCheck
-------------------^
fatal:Function identifier is defined
fatal:syntax error: line 155 in file $NCARG_ROOT/lib/ncarg/nclscripts/csm/contributed.ncl before or near local
local
----^
fatal:error in statement
fatal:syntax error: line 177 in file $NCARG_ROOT/lib/ncarg/nclscripts/csm/contributed.ncl before or near copy_VarCoords
procedure copy_VarCoords
-----------------------^
fatal:error in statement
fatal:syntax error: line 178 in file $NCARG_ROOT/lib/ncarg/nclscripts/csm/contributed.ncl before or near local
local
----^
fatal:error in statement
fatal:syntax error: line 214 in file $NCARG_ROOT/lib/ncarg/nclscripts/csm/contributed.ncl before or near copy_VarCoords_1
procedure copy_VarCoords_1
-------------------------^
fatal:error in statement
fatal:syntax error: line 215 in file $NCARG_ROOT/lib/ncarg/nclscripts/csm/contributed.ncl before or near local
local
----^
fatal:error in statement
fatal:syntax error: line 247 in file $NCARG_ROOT/lib/ncarg/nclscripts/csm/contributed.ncl before or near copy_VarCoords_2
........................
What's wrong with it? I just want to use the function flt2string. What should I do? Thanks.
2013-09-05
朱学明
_______________________________________________
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 Wed Sep 4 13:44:53 2013
This archive was generated by hypermail 2.1.8 : Mon Sep 16 2013 - 13:43:52 MDT