[ncl-talk] warning:TextItemInitialize: Cannot set x, y, width, and height

Adam Phillips asphilli at ucar.edu
Fri Sep 5 09:47:38 MDT 2014


Hi Wenshan,
You are loading contributed.ncl before gsn_code.ncl and gsn_csm.ncl.
contributed.ncl should always get loaded after the gsn*.ncl scripts. Try
making that change and see if you continue to get the warning message.

And thanks for letting us know about the Earth System Grid downloading
error. I believe it is being looked into...
Adam


On Thu, Sep 4, 2014 at 4:08 PM, Wenshan Wang <wenshanw at uci.edu> wrote:

> *Hi NCL group and users~~~*
>
> *I get this warning recently with all my plots and have no idea what the
> cause is.*
>
> warning:TextItemInitialize: Cannot set x,y,width,and height when other
> text attributes have been specified also, proceding with other text
> attribute requests
>
> *Here is a simple script that can produce this msg:*
>
> ; Written by Wang Wenshan 2014-09-04 Thursday 14:37:05
> 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"
> ;*************************************************************
> ; warning:TextItemInitialize: Cannot set x,y,width,and height when other
> text attributes have been specified also, proceding with other text
> attribute requests
> ;************************************************************
> begin
> x = ispan(1,100,1)
> y = 0.1*x
>
> wks   = gsn_open_wks ("x11","xy")                ; open workstation
>
> res                  = True                     ; plot mods desired
> ;res at tiMainString     = "Basic XY plot"          ; add title
> ;res at gsnLeftString  = "left"
> res at gsnRightString = "right"
>
> plot  = gsn_csm_xy (wks,x,y,res) ; create plot
>
> print("done!")
> end
>
> *NCL version: 6.2.0*
> *System: Linux grele 3.13.0-34-generic #60-Ubuntu SMP Wed Aug 13 15:45:27
> UTC 2014 x86_64 x86_64 x86_64 GNU/Linux*
>
> *Thank you very much!*
>
> *BTW, there is a 404 Not Found Error when I tried to download NCL 6.2.1
> from earthsystemgrid.*
>
> 404 Not Found
>
> The following file was not found:
>
> ncl_ncarg-6.2.1.Linux_Debian6.0_i686_nodap_gcc445.tar.gz
> If this file was part of a Archive Storage request, the file might have
> been removed from our cache. Please consider resubmitting your Archive
> Storage request.
>
>
>
> Best,
> Wenshan
>
> ------------------------------------------------------------------------------
> Graduate Student Researcher
> Earth System Science
> University of California, Irvine
>
> _______________________________________________
> ncl-talk mailing list
> List instructions, subscriber options, unsubscribe:
> http://mailman.ucar.edu/mailman/listinfo/ncl-talk
>
>


-- 
Adam Phillips
Associate Scientist,  Climate and Global Dynamics Division, NCAR
www.cgd.ucar.edu/staff/asphilli/   303-497-1726

<http://www.cgd.ucar.edu/staff/asphilli>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20140905/b2e3e5f6/attachment.html 


More information about the ncl-talk mailing list