<html><head></head><body><div style="color:#000; background-color:#fff; font-family:HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, Sans-Serif;font-size:16px"><div id="yui_3_16_0_1_1444700718226_3198"><span>Hi Rick,</span></div><div id="yui_3_16_0_1_1444700718226_3198"><span><br></span></div><div id="yui_3_16_0_1_1444700718226_3198"><span id="yui_3_16_0_1_1444700718226_3278">Yes, $NCARG_ROOT is /usr/local/ncarg. When I type which ncl I get /usr/bin/ncl.</span></div><div id="yui_3_16_0_1_1444700718226_3198"><span><br></span></div><div id="yui_3_16_0_1_1444700718226_3198"><span id="yui_3_16_0_1_1444700718226_3336">Thank you for your help, I am new to using NCL!</span></div><div id="yui_3_16_0_1_1444700718226_3198"><span>Sara</span></div> <br><div class="qtdSeparateBR"><br><br></div><div class="yahoo_quoted" style="display: block;"> <div style="font-family: HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, Sans-Serif; font-size: 16px;"> <div style="font-family: HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, Sans-Serif; font-size: 16px;"> <div dir="ltr"> <font size="2" face="Arial"> On Tuesday, 13 October 2015, 0:02, Rick Brownrigg <brownrig@ucar.edu> wrote:<br> </font> </div> <br><br> <div class="y_msg_container"><div id="yiv7295767507"><div><div dir="ltr"><div><div><div>Hi Sara,<br clear="none"><br clear="none"></div>It looks like NCL is not finding its supporting files, namely the font files and possibly the map database. From the errors, it looks like you have NCARG_ROOT set to "/usr/share/ncarg"? What is reported when you type:<br clear="none"><br clear="none"></div> which ncl<br clear="none"><br clear="none">?<br clear="none"><br clear="none"></div>Rick<br clear="none"></div><div class="yiv7295767507gmail_extra"><br clear="none"><div class="yiv7295767507gmail_quote">On Mon, Oct 12, 2015 at 2:40 AM, Sara Jackson <span dir="ltr"><<a rel="nofollow" shape="rect" ymailto="mailto:sjackson615@btinternet.com" target="_blank" href="mailto:sjackson615@btinternet.com">sjackson615@btinternet.com</a>></span> wrote:<br clear="none"><blockquote class="yiv7295767507gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><div class="yiv7295767507yqt6985463471" id="yiv7295767507yqt49374"><div><div style="color:#000;background-color:#fff;font-family:HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, Sans-Serif;font-size:16px;"><div>Hi there,</div><div><br clear="none"></div><div dir="ltr">I was hoping for some help with a PlotcharData error. I am using ncl version 6.1.2 and gcc version (Ubuntu 4.8.4-2ubuntu1~14.04) 4.8.4. </div><div dir="ltr"><br clear="none"></div><div dir="ltr">I am trying to run the following ncl script:</div><div dir="ltr"><br clear="none"></div><div dir="ltr"><font color="#808080" size="2"><i>; load functions and procedures<br clear="none">load "$NCARG_ROOT/nclscripts/csm/gsn_code.ncl"<br clear="none">load "$NCARG_ROOT/nclscripts/wrf/WRFUserARW.ncl"<br clear="none"><br clear="none">begin<br clear="none"><br clear="none">; WRF ARW input file (NOTE, your wrfout file does not need the .nc, <br clear="none">; but NCL needs it so make sure to add it in the line below)<br clear="none"><br clear="none">a = addfile("../wrfout_d01_2013-12-01_00:00:<a rel="nofollow" shape="rect" target="_blank" href="http://00.nc/">00.nc</a>","r") <br clear="none"><br clear="none">; Output on screen (type="x11"). Output will be called "plt_Surface1" <br clear="none">type = "x11"<br clear="none">wks = gsn_open_wks(type,"plt_Surface1") <br clear="none"><br clear="none">; Set basic resources<br clear="none">res = True <br clear="none">res@MainTitle = "REAL-TIME WRF" ; Give plot a main title <br clear="none">res@Footer = False ; Set Footers off<br clear="none">pltres = True ; Plotting resources <br clear="none">mpres = True ; Map resources<br clear="none"><br clear="none">;--------------------------------------------------------------- <br clear="none">times = wrf_user_getvar(a,"times",-1) ; get all times in the file<br clear="none">ntimes = dimsizes(times) ; number of times in the file <br clear="none">it = 0 ; only interested in first time <br clear="none">res@TimeLabel = times(it) ; keep some time information <br clear="none"> <br clear="none">;---------------------------------------------------------------<br clear="none"><br clear="none">; Get variables<br clear="none"><br clear="none">slp = wrf_user_getvar(a,"slp",it) ;Get slp<br clear="none"> wrf_smooth_2d( slp, 3 ) ; Smooth slp<br clear="none"><br clear="none">t2 = wrf_user_getvar(a,"T2",it) ; Get T2 (deg K)<br clear="none"> tc2 = t2-273.16 ; Convert to deg C <br clear="none"> tc2@units = "C"<br clear="none"><br clear="none">u10 = wrf_user_getvar(a,"U10",it) ; Get U10 <br clear="none">v10 = wrf_user_getvar(a,"V10",it) ; Get V10 <br clear="none"> u10@units = "m/s" <br clear="none"> v10@units = "m/s"<br clear="none"><br clear="none">;---------------------------------------------------------------<br clear="none"><br clear="none">; Plotting options for T<br clear="none">opts = res ; Add basic resources <br clear="none">opts@cnFillOn = True ; Shaded plot <br clear="none">opts@ContourParameters = (/ -20., 90., 5./) ; Contour intervals <br clear="none">opts@gsnSpreadColorEnd = -3 <br clear="none">contour_tc = wrf_contour(a,wks,tc2,opts) ; Create plot <br clear="none">delete(opts) <br clear="none"><br clear="none">; Plotting options for SLP <br clear="none">opts = res ; Add basic resources <br clear="none">opts@cnLineColor = "Blue" ; Set line color <br clear="none">opts@cnHighLabelsOn = True ; Set labels <br clear="none">opts@cnLowLabelsOn = True<br clear="none">opts@ContourParameters = (/ 900.,1100.,4./) ; Contour intervals <br clear="none">contour_psl = wrf_contour(a,wks,slp,opts) ; Create plot <br clear="none">delete(opts)<br clear="none"> <br clear="none"><br clear="none">; Plotting options for Wind Vectors<br clear="none">opts = res ; Add basic resources <br clear="none">opts@FieldTitle = "Winds" ; Overwrite the field title <br clear="none">opts@NumVectors = 47 ; Density of wind barbs <br clear="none">vector = wrf_vector(a,wks,u10,v10,opts) ; Create plot <br clear="none">delete(opts)<br clear="none"><br clear="none"> <br clear="none"><br clear="none">; MAKE PLOTS <br clear="none">plot = wrf_map_overlays(a,wks, \ <br clear="none"> (/contour_tc,contour_psl,vector/),pltres,mpres)<br clear="none"> <br clear="none">;---------------------------------------------------------------<br clear="none"><br clear="none"> <br clear="none"><br clear="none"></i></font><div dir="ltr"><font color="#808080" size="2"><i>end</i></font></div><div dir="ltr"><br clear="none"></div><div dir="ltr">But then I get the following error:</div><div dir="ltr"><font color="#808080" size="2"><i>Copyright (C) 1995-2013 - All Rights Reserved<br clear="none"> University Corporation for Atmospheric Research<br clear="none"> NCAR Command Language Version 6.1.2<br clear="none"> The use of this software is governed by a License Agreement.<br clear="none"> See <a rel="nofollow" shape="rect" target="_blank" href="http://www.ncl.ucar.edu/">http://www.ncl.ucar.edu/</a> for more details.<br clear="none">warning:TextItem:libncarg Error:PLCHHQ/PCFOPN - ERROR OPENING PWRITX DATA FILE /usr/share/ncarg/database/PlotcharData<br clear="none"> warning:TextItem:libncarg Error:PLCHHQ/PCFOPN - ERROR OPENING PWRITX DATA FILE /usr/share/ncarg/database/PlotcharData<br clear="none"> warning:TextItem:libncarg Error:PLCHHQ/PCFOPN - ERROR OPENING PWRITX DATA FILE /usr/share/ncarg/database/PlotcharData</i></font></div><div dir="ltr"><font color="#808080" size="2"><i><br clear="none"></i></font></div><div dir="ltr"><font color="#808080" size="2">........ (repeated a lot of times!) ......<br clear="none"></font></div><div dir="ltr"><font color="#808080" size="2"><br clear="none"></font></div><div dir="ltr"><font color="#808080" size="2"> <i>fatal:MapV41DHInitialize: dynamic memory allocation error:[errno=12]<br clear="none"> fatal:MapV41DHInitialize: error initializing map outline records<br clear="none"> fatal:MapSetTrans: error initializing map: MAPINT - UNCLEARED PRIOR ERROR<br clear="none"> warning:["SetValues.c":474]:SetValuesChild never occurred on plt_Surface1_map.PlotManager: Error in mapPlotClass<br clear="none"> warning:tmXBBorderOn is not a valid resource in plt_Surface1_map at this time<br clear="none"> fatal:ContourPlotDraw: CPLBDR/CPPKLP/CPSTLS/PLCHHQ/PCFOPN - ERROR OPENING PWRITX DATA FILE /usr/share/ncarg/database/PlotcharData<br clear="none"> fatal:ContourPlotDraw: draw error<br clear="none"> warning:WorkstationDeactivate: workstation not active or not opened<br clear="none"> warning:MapV41DHDrawMapList:libncarg Error:MPSETI - UNCLEARED PRIOR ERROR<br clear="none"> warning:MapV41DHDrawMapList:libncarg Error:MPSETI - UNCLEARED PRIOR ERROR<br clear="none"> warning:MapPlotPostDraw:libncarg Error:MPSETI - UNCLEARED PRIOR ERROR<br clear="none"> warning:TextItemDraw:libncarg Error:PLCHHQ/PCFOPN - ERROR OPENING PWRITX DATA FILE /usr/share/ncarg/database/PlotcharData<br clear="none"> warning:TextItemDraw:libncarg Error:PLCHHQ/PCFOPN - ERROR OPENING PWRITX DATA FILE /usr/share/ncarg/database/PlotcharData<br clear="none"> warning:TextItem:libncarg Error:PLCHHQ/PCFOPN - ERROR OPENING PWRITX DATA FILE /usr/share/ncarg/database/PlotcharData<br clear="none"> warning:TextItemDraw:libncarg Error:PLCHHQ/PCFOPN - ERROR OPENING PWRITX DATA FILE /usr/share/ncarg/database/PlotcharData<br clear="none"></i></font></div><div dir="ltr"><font color="#808080" size="2"><br clear="none"></font></div><div dir="ltr"><font color="#808080" size="2"><br clear="none"></font></div><div dir="ltr"><font color="#808080" size="2">.....etc .....</font></div><div dir="ltr"><br clear="none"></div><div dir="ltr">Many thanks,</div><div dir="ltr">Sara Jackson</div></div> <br clear="none"><div><br clear="none"><br clear="none"></div><div style="display:block;"> <div style="font-family:HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, Sans-Serif;font-size:16px;"> <div style="font-family:HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, Sans-Serif;font-size:16px;"> <div dir="ltr"> <font face="Arial" size="2"> On Monday, 12 October 2015, 16:26, Sara Jackson <<a rel="nofollow" shape="rect" ymailto="mailto:sjackson615@btinternet.com" target="_blank" href="mailto:sjackson615@btinternet.com">sjackson615@btinternet.com</a>> wrote:<br clear="none"> </font> </div> <br clear="none"><br clear="none"> <div><div><div><div style="color:#000;background-color:#fff;font-family:HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, Sans-Serif;font-size:16px;"><div><div><div style="color:#000;background-color:#fff;font-family:HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, Sans-Serif;font-size:16px;"><div>Hi there,</div><div><br clear="none"></div><div dir="ltr">I was hoping for some help with a PlotcharData error. I am using ncl version 6.1.2 and gcc version (Ubuntu 4.8.4-2ubuntu1~14.04) 4.8.4. </div><div dir="ltr"><br clear="none"></div><div dir="ltr">I am trying to run the following ncl script:</div><div dir="ltr"><br clear="none"></div><div dir="ltr"><font color="#808080" size="2"><i>; load functions and procedures<br clear="none">load "$NCARG_ROOT/nclscripts/csm/gsn_code.ncl"<br clear="none">load "$NCARG_ROOT/nclscripts/wrf/WRFUserARW.ncl"<br clear="none"><br clear="none">begin<br clear="none"><br clear="none">; WRF ARW input file (NOTE, your wrfout file does not need the .nc, <br clear="none">; but NCL needs it so make sure to add it in the line below)<br clear="none"><br clear="none">a = addfile("../wrfout_d01_2013-12-01_00:00:<a rel="nofollow" shape="rect" target="_blank" href="http://00.nc/">00.nc</a>","r") <br clear="none"><br clear="none">; Output on screen (type="x11"). Output will be called "plt_Surface1" <br clear="none">type = "x11"<br clear="none">wks = gsn_open_wks(type,"plt_Surface1") <br clear="none"><br clear="none">; Set basic resources<br clear="none">res = True <br clear="none">res@MainTitle = "REAL-TIME WRF" ; Give plot a main title <br clear="none">res@Footer = False ; Set Footers off<br clear="none">pltres = True ; Plotting resources <br clear="none">mpres = True ; Map resources<br clear="none"><br clear="none">;--------------------------------------------------------------- <br clear="none">times = wrf_user_getvar(a,"times",-1) ; get all times in the file<br clear="none">ntimes = dimsizes(times) ; number of times in the file <br clear="none">it = 0 ; only interested in first time <br clear="none">res@TimeLabel = times(it) ; keep some time information <br clear="none"> <br clear="none">;---------------------------------------------------------------<br clear="none"><br clear="none">; Get variables<br clear="none"><br clear="none">slp = wrf_user_getvar(a,"slp",it) ;Get slp<br clear="none"> wrf_smooth_2d( slp, 3 ) ; Smooth slp<br clear="none"><br clear="none">t2 = wrf_user_getvar(a,"T2",it) ; Get T2 (deg K)<br clear="none"> tc2 = t2-273.16 ; Convert to deg C <br clear="none"> tc2@units = "C"<br clear="none"><br clear="none">u10 = wrf_user_getvar(a,"U10",it) ; Get U10 <br clear="none">v10 = wrf_user_getvar(a,"V10",it) ; Get V10 <br clear="none"> u10@units = "m/s" <br clear="none"> v10@units = "m/s"<br clear="none"><br clear="none">;---------------------------------------------------------------<br clear="none"><br clear="none">; Plotting options for T<br clear="none">opts = res ; Add basic resources <br clear="none">opts@cnFillOn = True ; Shaded plot <br clear="none">opts@ContourParameters = (/ -20., 90., 5./) ; Contour intervals <br clear="none">opts@gsnSpreadColorEnd = -3 <br clear="none">contour_tc = wrf_contour(a,wks,tc2,opts) ; Create plot <br clear="none">delete(opts) <br clear="none"><br clear="none">; Plotting options for SLP <br clear="none">opts = res ; Add basic resources <br clear="none">opts@cnLineColor = "Blue" ; Set line color <br clear="none">opts@cnHighLabelsOn = True ; Set labels <br clear="none">opts@cnLowLabelsOn = True<br clear="none">opts@ContourParameters = (/ 900.,1100.,4./) ; Contour intervals <br clear="none">contour_psl = wrf_contour(a,wks,slp,opts) ; Create plot <br clear="none">delete(opts)<br clear="none"> <br clear="none"><br clear="none">; Plotting options for Wind Vectors<br clear="none">opts = res ; Add basic resources <br clear="none">opts@FieldTitle = "Winds" ; Overwrite the field title <br clear="none">opts@NumVectors = 47 ; Density of wind barbs <br clear="none">vector = wrf_vector(a,wks,u10,v10,opts) ; Create plot <br clear="none">delete(opts)<br clear="none"><br clear="none"> <br clear="none"><br clear="none">; MAKE PLOTS <br clear="none">plot = wrf_map_overlays(a,wks, \ <br clear="none"> (/contour_tc,contour_psl,vector/),pltres,mpres)<br clear="none"> <br clear="none">;---------------------------------------------------------------<br clear="none"><br clear="none"> <br clear="none"><br clear="none"></i></font><div dir="ltr"><font color="#808080" size="2"><i>end</i></font></div><div dir="ltr"><br clear="none"></div><div dir="ltr">But then I get the following error:</div><div dir="ltr"><font color="#808080" size="2"><i>Copyright (C) 1995-2013 - All Rights Reserved<br clear="none"> University Corporation for Atmospheric Research<br clear="none"> NCAR Command Language Version 6.1.2<br clear="none"> The use of this software is governed by a License Agreement.<br clear="none"> See <a rel="nofollow" shape="rect" target="_blank" href="http://www.ncl.ucar.edu/">http://www.ncl.ucar.edu/</a> for more details.<br clear="none">warning:TextItem:libncarg Error:PLCHHQ/PCFOPN - ERROR OPENING PWRITX DATA FILE /usr/share/ncarg/database/PlotcharData<br clear="none"> warning:TextItem:libncarg Error:PLCHHQ/PCFOPN - ERROR OPENING PWRITX DATA FILE /usr/share/ncarg/database/PlotcharData<br clear="none"> warning:TextItem:libncarg Error:PLCHHQ/PCFOPN - ERROR OPENING PWRITX DATA FILE /usr/share/ncarg/database/PlotcharData</i></font></div><div dir="ltr"><font color="#808080" size="2"><i><br clear="none"></i></font></div><div dir="ltr"><font color="#808080" size="2">........ (repeated a lot of times!) ......<br clear="none"></font></div><div dir="ltr"><font color="#808080" size="2"><br clear="none"></font></div><div dir="ltr"><font color="#808080" size="2"> <i>fatal:MapV41DHInitialize: dynamic memory allocation error:[errno=12]<br clear="none"> fatal:MapV41DHInitialize: error initializing map outline records<br clear="none"> fatal:MapSetTrans: error initializing map: MAPINT - UNCLEARED PRIOR ERROR<br clear="none"> warning:["SetValues.c":474]:SetValuesChild never occurred on plt_Surface1_map.PlotManager: Error in mapPlotClass<br clear="none"> warning:tmXBBorderOn is not a valid resource in plt_Surface1_map at this time<br clear="none"> fatal:ContourPlotDraw: CPLBDR/CPPKLP/CPSTLS/PLCHHQ/PCFOPN - ERROR OPENING PWRITX DATA FILE /usr/share/ncarg/database/PlotcharData<br clear="none"> fatal:ContourPlotDraw: draw error<br clear="none"> warning:WorkstationDeactivate: workstation not active or not opened<br clear="none"> warning:MapV41DHDrawMapList:libncarg Error:MPSETI - UNCLEARED PRIOR ERROR<br clear="none"> warning:MapV41DHDrawMapList:libncarg Error:MPSETI - UNCLEARED PRIOR ERROR<br clear="none"> warning:MapPlotPostDraw:libncarg Error:MPSETI - UNCLEARED PRIOR ERROR<br clear="none"> warning:TextItemDraw:libncarg Error:PLCHHQ/PCFOPN - ERROR OPENING PWRITX DATA FILE /usr/share/ncarg/database/PlotcharData<br clear="none"> warning:TextItemDraw:libncarg Error:PLCHHQ/PCFOPN - ERROR OPENING PWRITX DATA FILE /usr/share/ncarg/database/PlotcharData<br clear="none"> warning:TextItem:libncarg Error:PLCHHQ/PCFOPN - ERROR OPENING PWRITX DATA FILE /usr/share/ncarg/database/PlotcharData<br clear="none"> warning:TextItemDraw:libncarg Error:PLCHHQ/PCFOPN - ERROR OPENING PWRITX DATA FILE /usr/share/ncarg/database/PlotcharData<br clear="none"></i></font></div><div dir="ltr"><font color="#808080" size="2"><br clear="none"></font></div><div dir="ltr"><font color="#808080" size="2"><br clear="none"></font></div><div dir="ltr"><font color="#808080" size="2">.....etc .....</font></div><div dir="ltr"><br clear="none"></div><div dir="ltr">Many thanks,</div><div dir="ltr">Sara Jackson<br clear="none"></div></div></div></div></div></div></div></div><br clear="none"><br clear="none"></div> </div> </div> </div></div></div></div><br clear="none">_______________________________________________<br clear="none">
ncl-talk mailing list<br clear="none">
<a rel="nofollow" shape="rect" ymailto="mailto:ncl-talk@ucar.edu" target="_blank" href="mailto:ncl-talk@ucar.edu">ncl-talk@ucar.edu</a><br clear="none">
List instructions, subscriber options, unsubscribe:<br clear="none">
<a rel="nofollow" shape="rect" target="_blank" href="http://mailman.ucar.edu/mailman/listinfo/ncl-talk">http://mailman.ucar.edu/mailman/listinfo/ncl-talk</a><br clear="none">
<br clear="none"></blockquote></div><br clear="none"></div></div></div><br><br></div> </div> </div> </div></div></body></html>