<div dir="ltr"><div><div><div>Hi Sara,<br><br></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 &quot;/usr/share/ncarg&quot;?   What is reported when you type:<br><br></div>    which ncl<br><br>?<br><br></div>Rick<br></div><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Oct 12, 2015 at 2:40 AM, Sara Jackson <span dir="ltr">&lt;<a href="mailto:sjackson615@btinternet.com" target="_blank">sjackson615@btinternet.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><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></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></div><div dir="ltr">I am trying to run the following ncl script:</div><div dir="ltr"><br></div><div dir="ltr"><font color="#808080" size="2"><i>; load functions and procedures<br>load &quot;$NCARG_ROOT/nclscripts/csm/gsn_code.ncl&quot;<br>load &quot;$NCARG_ROOT/nclscripts/wrf/WRFUserARW.ncl&quot;<br><br>begin<br><br>; WRF ARW input file (NOTE, your wrfout file does not need the .nc, <br>; but NCL needs it so make sure to add it in the line below)<br><br>a = addfile(&quot;../wrfout_d01_2013-12-01_00:00:<a href="http://00.nc" target="_blank">00.nc</a>&quot;,&quot;r&quot;) <br><br>; Output on screen (type=&quot;x11&quot;). Output will be called &quot;plt_Surface1&quot; <br>type = &quot;x11&quot;<br>wks = gsn_open_wks(type,&quot;plt_Surface1&quot;) <br><br>; Set basic resources<br>res = True <br>res@MainTitle = &quot;REAL-TIME WRF&quot;               ; Give plot a main title <br>res@Footer = False                                 ; Set Footers off<br>pltres = True                                       ; Plotting resources <br>mpres = True                                       ; Map resources<br><br>;--------------------------------------------------------------- <br>times = wrf_user_getvar(a,&quot;times&quot;,-1)                ; get all times in the file<br>ntimes = dimsizes(times)                       ; number of times in the file <br>it = 0                                       ; only interested in first time <br>res@TimeLabel = times(it)                       ; keep some time information <br>   <br>;---------------------------------------------------------------<br><br>; Get variables<br><br>slp = wrf_user_getvar(a,&quot;slp&quot;,it)                  ;Get slp<br>   wrf_smooth_2d( slp, 3 )                         ; Smooth slp<br><br>t2 = wrf_user_getvar(a,&quot;T2&quot;,it)                    ; Get T2 (deg K)<br>   tc2 = t2-273.16                                    ; Convert to deg C <br>   tc2@units = &quot;C&quot;<br><br>u10 = wrf_user_getvar(a,&quot;U10&quot;,it)                  ; Get U10 <br>v10 = wrf_user_getvar(a,&quot;V10&quot;,it)                  ; Get V10 <br>   u10@units = &quot;m/s&quot; <br>   v10@units = &quot;m/s&quot;<br><br>;---------------------------------------------------------------<br><br>; Plotting options for T<br>opts = res                       ; Add basic resources <br>opts@cnFillOn = True                               ; Shaded plot <br>opts@ContourParameters = (/ -20., 90., 5./)          ; Contour intervals <br>opts@gsnSpreadColorEnd = -3 <br>contour_tc = wrf_contour(a,wks,tc2,opts)           ; Create plot <br>delete(opts) <br><br>; Plotting options for SLP <br>opts = res                       ; Add basic resources <br>opts@cnLineColor = &quot;Blue&quot;                          ; Set line color <br>opts@cnHighLabelsOn = True                         ; Set labels <br>opts@cnLowLabelsOn = True<br>opts@ContourParameters = (/ 900.,1100.,4./)       ; Contour intervals <br>contour_psl = wrf_contour(a,wks,slp,opts)          ; Create plot <br>delete(opts)<br> <br><br>; Plotting options for Wind Vectors<br>opts = res                       ; Add basic resources <br>opts@FieldTitle = &quot;Winds&quot;                        ; Overwrite the field title <br>opts@NumVectors = 47                             ; Density of wind barbs <br>vector = wrf_vector(a,wks,u10,v10,opts)            ; Create plot <br>delete(opts)<br><br> <br><br>; MAKE PLOTS <br>plot = wrf_map_overlays(a,wks,  \ <br>      (/contour_tc,contour_psl,vector/),pltres,mpres)<br>  <br>;---------------------------------------------------------------<br><br> <br><br></i></font><div dir="ltr"><font color="#808080" size="2"><i>end</i></font></div><div dir="ltr"><br></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> University Corporation for Atmospheric Research<br> NCAR Command Language Version 6.1.2<br> The use of this software is governed by a License Agreement.<br> See <a href="http://www.ncl.ucar.edu/" target="_blank">http://www.ncl.ucar.edu/</a> for more details.<br>warning:TextItem:libncarg Error:PLCHHQ/PCFOPN - ERROR OPENING PWRITX DATA FILE /usr/share/ncarg/database/PlotcharData<br> warning:TextItem:libncarg Error:PLCHHQ/PCFOPN - ERROR OPENING PWRITX DATA FILE /usr/share/ncarg/database/PlotcharData<br> 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></i></font></div><div dir="ltr"><font color="#808080" size="2">........ (repeated a lot of times!) ......<br></font></div><div dir="ltr"><font color="#808080" size="2"><br></font></div><div dir="ltr"><font color="#808080" size="2"> <i>fatal:MapV41DHInitialize: dynamic memory allocation error:[errno=12]<br> fatal:MapV41DHInitialize: error initializing map outline records<br> fatal:MapSetTrans: error initializing map: MAPINT - UNCLEARED PRIOR ERROR<br> warning:[&quot;SetValues.c&quot;:474]:SetValuesChild never occurred on plt_Surface1_map.PlotManager: Error in mapPlotClass<br> warning:tmXBBorderOn is not a valid resource in plt_Surface1_map at this time<br> fatal:ContourPlotDraw: CPLBDR/CPPKLP/CPSTLS/PLCHHQ/PCFOPN - ERROR OPENING PWRITX DATA FILE /usr/share/ncarg/database/PlotcharData<br> fatal:ContourPlotDraw: draw error<br> warning:WorkstationDeactivate: workstation not active or not opened<br> warning:MapV41DHDrawMapList:libncarg Error:MPSETI - UNCLEARED PRIOR ERROR<br> warning:MapV41DHDrawMapList:libncarg Error:MPSETI - UNCLEARED PRIOR ERROR<br> warning:MapPlotPostDraw:libncarg Error:MPSETI - UNCLEARED PRIOR ERROR<br> warning:TextItemDraw:libncarg Error:PLCHHQ/PCFOPN - ERROR OPENING PWRITX DATA FILE /usr/share/ncarg/database/PlotcharData<br> warning:TextItemDraw:libncarg Error:PLCHHQ/PCFOPN - ERROR OPENING PWRITX DATA FILE /usr/share/ncarg/database/PlotcharData<br> warning:TextItem:libncarg Error:PLCHHQ/PCFOPN - ERROR OPENING PWRITX DATA FILE /usr/share/ncarg/database/PlotcharData<br> warning:TextItemDraw:libncarg Error:PLCHHQ/PCFOPN - ERROR OPENING PWRITX DATA FILE /usr/share/ncarg/database/PlotcharData<br></i></font></div><div dir="ltr"><font color="#808080" size="2"><br></font></div><div dir="ltr"><font color="#808080" size="2"><br></font></div><div dir="ltr"><font color="#808080" size="2">.....etc .....</font></div><div dir="ltr"><br></div><div dir="ltr">Many thanks,</div><div dir="ltr">Sara Jackson</div></div>  <br><div><br><br></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 &lt;<a href="mailto:sjackson615@btinternet.com" target="_blank">sjackson615@btinternet.com</a>&gt; wrote:<br> </font> </div>  <br><br> <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></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></div><div dir="ltr">I am trying to run the following ncl script:</div><div dir="ltr"><br></div><div dir="ltr"><font color="#808080" size="2"><i>; load functions and procedures<br>load &quot;$NCARG_ROOT/nclscripts/csm/gsn_code.ncl&quot;<br>load &quot;$NCARG_ROOT/nclscripts/wrf/WRFUserARW.ncl&quot;<br><br>begin<br><br>; WRF ARW input file (NOTE, your wrfout file does not need the .nc, <br>; but NCL needs it so make sure to add it in the line below)<br><br>a = addfile(&quot;../wrfout_d01_2013-12-01_00:00:<a href="http://00.nc" target="_blank">00.nc</a>&quot;,&quot;r&quot;) <br><br>; Output on screen (type=&quot;x11&quot;). Output will be called &quot;plt_Surface1&quot; <br>type = &quot;x11&quot;<br>wks = gsn_open_wks(type,&quot;plt_Surface1&quot;) <br><br>; Set basic resources<br>res = True <br>res@MainTitle = &quot;REAL-TIME WRF&quot;               ; Give plot a main title <br>res@Footer = False                                 ; Set Footers off<br>pltres = True                                       ; Plotting resources <br>mpres = True                                       ; Map resources<br><br>;--------------------------------------------------------------- <br>times = wrf_user_getvar(a,&quot;times&quot;,-1)                ; get all times in the file<br>ntimes = dimsizes(times)                       ; number of times in the file <br>it = 0                                       ; only interested in first time <br>res@TimeLabel = times(it)                       ; keep some time information <br>   <br>;---------------------------------------------------------------<br><br>; Get variables<br><br>slp = wrf_user_getvar(a,&quot;slp&quot;,it)                  ;Get slp<br>   wrf_smooth_2d( slp, 3 )                         ; Smooth slp<br><br>t2 = wrf_user_getvar(a,&quot;T2&quot;,it)                    ; Get T2 (deg K)<br>   tc2 = t2-273.16                                    ; Convert to deg C <br>   tc2@units = &quot;C&quot;<br><br>u10 = wrf_user_getvar(a,&quot;U10&quot;,it)                  ; Get U10 <br>v10 = wrf_user_getvar(a,&quot;V10&quot;,it)                  ; Get V10 <br>   u10@units = &quot;m/s&quot; <br>   v10@units = &quot;m/s&quot;<br><br>;---------------------------------------------------------------<br><br>; Plotting options for T<br>opts = res                       ; Add basic resources <br>opts@cnFillOn = True                               ; Shaded plot <br>opts@ContourParameters = (/ -20., 90., 5./)          ; Contour intervals <br>opts@gsnSpreadColorEnd = -3 <br>contour_tc = wrf_contour(a,wks,tc2,opts)           ; Create plot <br>delete(opts) <br><br>; Plotting options for SLP <br>opts = res                       ; Add basic resources <br>opts@cnLineColor = &quot;Blue&quot;                          ; Set line color <br>opts@cnHighLabelsOn = True                         ; Set labels <br>opts@cnLowLabelsOn = True<br>opts@ContourParameters = (/ 900.,1100.,4./)       ; Contour intervals <br>contour_psl = wrf_contour(a,wks,slp,opts)          ; Create plot <br>delete(opts)<br> <br><br>; Plotting options for Wind Vectors<br>opts = res                       ; Add basic resources <br>opts@FieldTitle = &quot;Winds&quot;                        ; Overwrite the field title <br>opts@NumVectors = 47                             ; Density of wind barbs <br>vector = wrf_vector(a,wks,u10,v10,opts)            ; Create plot <br>delete(opts)<br><br> <br><br>; MAKE PLOTS <br>plot = wrf_map_overlays(a,wks,  \ <br>      (/contour_tc,contour_psl,vector/),pltres,mpres)<br>  <br>;---------------------------------------------------------------<br><br> <br><br></i></font><div dir="ltr"><font color="#808080" size="2"><i>end</i></font></div><div dir="ltr"><br></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> University Corporation for Atmospheric Research<br> NCAR Command Language Version 6.1.2<br> The use of this software is governed by a License Agreement.<br> See <a href="http://www.ncl.ucar.edu/" target="_blank">http://www.ncl.ucar.edu/</a> for more details.<br>warning:TextItem:libncarg Error:PLCHHQ/PCFOPN - ERROR OPENING PWRITX DATA FILE /usr/share/ncarg/database/PlotcharData<br> warning:TextItem:libncarg Error:PLCHHQ/PCFOPN - ERROR OPENING PWRITX DATA FILE /usr/share/ncarg/database/PlotcharData<br> 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></i></font></div><div dir="ltr"><font color="#808080" size="2">........ (repeated a lot of times!) ......<br></font></div><div dir="ltr"><font color="#808080" size="2"><br></font></div><div dir="ltr"><font color="#808080" size="2"> <i>fatal:MapV41DHInitialize: dynamic memory allocation error:[errno=12]<br> fatal:MapV41DHInitialize: error initializing map outline records<br> fatal:MapSetTrans: error initializing map: MAPINT - UNCLEARED PRIOR ERROR<br> warning:[&quot;SetValues.c&quot;:474]:SetValuesChild never occurred on plt_Surface1_map.PlotManager: Error in mapPlotClass<br> warning:tmXBBorderOn is not a valid resource in plt_Surface1_map at this time<br> fatal:ContourPlotDraw: CPLBDR/CPPKLP/CPSTLS/PLCHHQ/PCFOPN - ERROR OPENING PWRITX DATA FILE /usr/share/ncarg/database/PlotcharData<br> fatal:ContourPlotDraw: draw error<br> warning:WorkstationDeactivate: workstation not active or not opened<br> warning:MapV41DHDrawMapList:libncarg Error:MPSETI - UNCLEARED PRIOR ERROR<br> warning:MapV41DHDrawMapList:libncarg Error:MPSETI - UNCLEARED PRIOR ERROR<br> warning:MapPlotPostDraw:libncarg Error:MPSETI - UNCLEARED PRIOR ERROR<br> warning:TextItemDraw:libncarg Error:PLCHHQ/PCFOPN - ERROR OPENING PWRITX DATA FILE /usr/share/ncarg/database/PlotcharData<br> warning:TextItemDraw:libncarg Error:PLCHHQ/PCFOPN - ERROR OPENING PWRITX DATA FILE /usr/share/ncarg/database/PlotcharData<br> warning:TextItem:libncarg Error:PLCHHQ/PCFOPN - ERROR OPENING PWRITX DATA FILE /usr/share/ncarg/database/PlotcharData<br> warning:TextItemDraw:libncarg Error:PLCHHQ/PCFOPN - ERROR OPENING PWRITX DATA FILE /usr/share/ncarg/database/PlotcharData<br></i></font></div><div dir="ltr"><font color="#808080" size="2"><br></font></div><div dir="ltr"><font color="#808080" size="2"><br></font></div><div dir="ltr"><font color="#808080" size="2">.....etc .....</font></div><div dir="ltr"><br></div><div dir="ltr">Many thanks,</div><div dir="ltr">Sara Jackson<br></div></div></div></div></div></div></div></div><br><br></div>  </div> </div>  </div></div></div><br>_______________________________________________<br>
ncl-talk mailing list<br>
<a href="mailto:ncl-talk@ucar.edu">ncl-talk@ucar.edu</a><br>
List instructions, subscriber options, unsubscribe:<br>
<a href="http://mailman.ucar.edu/mailman/listinfo/ncl-talk" rel="noreferrer" target="_blank">http://mailman.ucar.edu/mailman/listinfo/ncl-talk</a><br>
<br></blockquote></div><br></div>