<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="yiv8670983238yui_3_16_0_1_1444637967569_2356" class="">Hi there,</div><div id="yiv8670983238yui_3_16_0_1_1444637511201_3418" class=""><br id="yui_3_16_0_1_1444639130820_3288" class=""></div><div dir="ltr" id="yiv8670983238yui_3_16_0_1_1444637511201_3419" class="">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" id="yiv8670983238yui_3_16_0_1_1444637511201_3419" class=""><br id="yui_3_16_0_1_1444639130820_3292" class=""></div><div dir="ltr" id="yiv8670983238yui_3_16_0_1_1444637511201_3419" class="">I am trying to run the following ncl script:</div><div dir="ltr" id="yiv8670983238yui_3_16_0_1_1444637511201_3419" class=""><br id="yui_3_16_0_1_1444639130820_3296" class=""></div><div dir="ltr" id="yiv8670983238yui_3_16_0_1_1444637511201_3419" class=""><font id="yiv8670983238yui_3_16_0_1_1444637967569_3141" size="2" color="#808080" class=""><i id="yiv8670983238yui_3_16_0_1_1444637967569_2550" class="">; load functions and procedures<br class="" id="yiv8670983238yui_3_16_0_1_1444637967569_2367">load "$NCARG_ROOT/nclscripts/csm/gsn_code.ncl"<br class="" id="yiv8670983238yui_3_16_0_1_1444637967569_2369">load "$NCARG_ROOT/nclscripts/wrf/WRFUserARW.ncl"<br class="" id="yiv8670983238yui_3_16_0_1_1444637967569_2371"><br class="" id="yiv8670983238yui_3_16_0_1_1444637967569_2373">begin<br class="" id="yiv8670983238yui_3_16_0_1_1444637967569_2375"><br class="" id="yiv8670983238yui_3_16_0_1_1444637967569_2377">; WRF ARW input file (NOTE, your wrfout file does not need the .nc, <br class="" id="yiv8670983238yui_3_16_0_1_1444637967569_2379">; but NCL needs it so make sure to add it in the line below)<br class="" id="yiv8670983238yui_3_16_0_1_1444637967569_2381"><br class="" id="yiv8670983238yui_3_16_0_1_1444637967569_2383">a = addfile("../wrfout_d01_2013-12-01_00:00:00.nc","r") <br class="" id="yiv8670983238yui_3_16_0_1_1444637967569_2385"><br class="" id="yiv8670983238yui_3_16_0_1_1444637967569_2387">; Output on screen (type="x11"). Output will be called "plt_Surface1" <br class="" id="yiv8670983238yui_3_16_0_1_1444637967569_2389">type = "x11"<br class="" id="yiv8670983238yui_3_16_0_1_1444637967569_2391">wks = gsn_open_wks(type,"plt_Surface1") <br class="" id="yiv8670983238yui_3_16_0_1_1444637967569_2393"><br class="" id="yiv8670983238yui_3_16_0_1_1444637967569_2395">; Set basic resources<br class="" id="yiv8670983238yui_3_16_0_1_1444637967569_2397">res = True <br class="" id="yiv8670983238yui_3_16_0_1_1444637967569_2399">res@MainTitle = "REAL-TIME WRF" ; Give plot a main title <br class="" id="yiv8670983238yui_3_16_0_1_1444637967569_2401">res@Footer = False ; Set Footers off<br class="" id="yiv8670983238yui_3_16_0_1_1444637967569_2403">pltres = True ; Plotting resources <br class="" id="yiv8670983238yui_3_16_0_1_1444637967569_2405">mpres = True ; Map resources<br class="" id="yiv8670983238yui_3_16_0_1_1444637967569_2407"><br class="" id="yiv8670983238yui_3_16_0_1_1444637967569_2409">;--------------------------------------------------------------- <br class="" id="yiv8670983238yui_3_16_0_1_1444637967569_2411">times = wrf_user_getvar(a,"times",-1) ; get all times in the file<br class="" id="yiv8670983238yui_3_16_0_1_1444637967569_2413">ntimes = dimsizes(times) ; number of times in the file <br class="" id="yiv8670983238yui_3_16_0_1_1444637967569_2415">it = 0 ; only interested in first time <br class="" id="yiv8670983238yui_3_16_0_1_1444637967569_2417">res@TimeLabel = times(it) ; keep some time information <br class="" id="yiv8670983238yui_3_16_0_1_1444637967569_2419"> <br class="" id="yiv8670983238yui_3_16_0_1_1444637967569_2421">;---------------------------------------------------------------<br class="" id="yiv8670983238yui_3_16_0_1_1444637967569_2423"><br class="" id="yiv8670983238yui_3_16_0_1_1444637967569_2425">; Get variables<br class="" id="yiv8670983238yui_3_16_0_1_1444637967569_2427"><br class="" id="yiv8670983238yui_3_16_0_1_1444637967569_2429">slp = wrf_user_getvar(a,"slp",it) ;Get slp<br class="" id="yiv8670983238yui_3_16_0_1_1444637967569_2431"> wrf_smooth_2d( slp, 3 ) ; Smooth slp<br class="" id="yiv8670983238yui_3_16_0_1_1444637967569_2433"><br class="" id="yiv8670983238yui_3_16_0_1_1444637967569_2435">t2 = wrf_user_getvar(a,"T2",it) ; Get T2 (deg K)<br class="" id="yiv8670983238yui_3_16_0_1_1444637967569_2437"> tc2 = t2-273.16 ; Convert to deg C <br class="" id="yiv8670983238yui_3_16_0_1_1444637967569_2439"> tc2@units = "C"<br class="" id="yiv8670983238yui_3_16_0_1_1444637967569_2441"><br class="" id="yiv8670983238yui_3_16_0_1_1444637967569_2443">u10 = wrf_user_getvar(a,"U10",it) ; Get U10 <br class="" id="yiv8670983238yui_3_16_0_1_1444637967569_2445">v10 = wrf_user_getvar(a,"V10",it) ; Get V10 <br class="" id="yiv8670983238yui_3_16_0_1_1444637967569_2447"> u10@units = "m/s" <br class="" id="yiv8670983238yui_3_16_0_1_1444637967569_2449"> v10@units = "m/s"<br class="" id="yiv8670983238yui_3_16_0_1_1444637967569_2451"><br class="" id="yiv8670983238yui_3_16_0_1_1444637967569_2453">;---------------------------------------------------------------<br class="" id="yiv8670983238yui_3_16_0_1_1444637967569_2455"><br class="" id="yiv8670983238yui_3_16_0_1_1444637967569_2457">; Plotting options for T<br class="" id="yiv8670983238yui_3_16_0_1_1444637967569_2459">opts = res ; Add basic resources <br class="" id="yiv8670983238yui_3_16_0_1_1444637967569_2461">opts@cnFillOn = True ; Shaded plot <br class="" id="yiv8670983238yui_3_16_0_1_1444637967569_2463">opts@ContourParameters = (/ -20., 90., 5./) ; Contour intervals <br class="" id="yiv8670983238yui_3_16_0_1_1444637967569_2465">opts@gsnSpreadColorEnd = -3 <br class="" id="yiv8670983238yui_3_16_0_1_1444637967569_2467">contour_tc = wrf_contour(a,wks,tc2,opts) ; Create plot <br class="" id="yiv8670983238yui_3_16_0_1_1444637967569_2469">delete(opts) <br class="" id="yiv8670983238yui_3_16_0_1_1444637967569_2471"><br class="" id="yiv8670983238yui_3_16_0_1_1444637967569_2473">; Plotting options for SLP <br class="" id="yiv8670983238yui_3_16_0_1_1444637967569_2475">opts = res ; Add basic resources <br class="" id="yiv8670983238yui_3_16_0_1_1444637967569_2477">opts@cnLineColor = "Blue" ; Set line color <br class="" id="yiv8670983238yui_3_16_0_1_1444637967569_2479">opts@cnHighLabelsOn = True ; Set labels <br class="" id="yiv8670983238yui_3_16_0_1_1444637967569_2481">opts@cnLowLabelsOn = True<br class="" id="yiv8670983238yui_3_16_0_1_1444637967569_2483">opts@ContourParameters = (/ 900.,1100.,4./) ; Contour intervals <br class="" id="yiv8670983238yui_3_16_0_1_1444637967569_2485">contour_psl = wrf_contour(a,wks,slp,opts) ; Create plot <br class="" id="yiv8670983238yui_3_16_0_1_1444637967569_2487">delete(opts)<br class="" id="yiv8670983238yui_3_16_0_1_1444637967569_2489"> <br class="" id="yiv8670983238yui_3_16_0_1_1444637967569_2491"><br class="" id="yiv8670983238yui_3_16_0_1_1444637967569_2493">; Plotting options for Wind Vectors<br class="" id="yiv8670983238yui_3_16_0_1_1444637967569_2495">opts = res ; Add basic resources <br class="" id="yiv8670983238yui_3_16_0_1_1444637967569_2497">opts@FieldTitle = "Winds" ; Overwrite the field title <br class="" id="yiv8670983238yui_3_16_0_1_1444637967569_2499">opts@NumVectors = 47 ; Density of wind barbs <br class="" id="yiv8670983238yui_3_16_0_1_1444637967569_2501">vector = wrf_vector(a,wks,u10,v10,opts) ; Create plot <br class="" id="yiv8670983238yui_3_16_0_1_1444637967569_2503">delete(opts)<br class="" id="yiv8670983238yui_3_16_0_1_1444637967569_2505"><br class="" id="yiv8670983238yui_3_16_0_1_1444637967569_2507"> <br class="" id="yiv8670983238yui_3_16_0_1_1444637967569_2509"><br class="" id="yiv8670983238yui_3_16_0_1_1444637967569_2511">; MAKE PLOTS <br class="" id="yiv8670983238yui_3_16_0_1_1444637967569_2513">plot = wrf_map_overlays(a,wks, \ <br class="" id="yiv8670983238yui_3_16_0_1_1444637967569_2515"> (/contour_tc,contour_psl,vector/),pltres,mpres)<br class="" id="yiv8670983238yui_3_16_0_1_1444637967569_2517"> <br class="" id="yiv8670983238yui_3_16_0_1_1444637967569_2519">;---------------------------------------------------------------<br class="" id="yiv8670983238yui_3_16_0_1_1444637967569_2521"><br class="" id="yiv8670983238yui_3_16_0_1_1444637967569_2523"> <br class="" id="yiv8670983238yui_3_16_0_1_1444637967569_2525"><br class="" id="yiv8670983238yui_3_16_0_1_1444637967569_2527"></i></font><div id="yiv8670983238yui_3_16_0_1_1444637967569_2533" dir="ltr" class=""><font size="2" color="#808080" id="yui_3_16_0_1_1444639130820_3383" class=""><i id="yui_3_16_0_1_1444639130820_3385" class="">end</i></font></div><div id="yiv8670983238yui_3_16_0_1_1444637967569_2571" dir="ltr" class=""><br id="yui_3_16_0_1_1444639130820_3388" class=""></div><div id="yiv8670983238yui_3_16_0_1_1444637967569_2572" dir="ltr" class="">But then I get the following error:</div><div id="yiv8670983238yui_3_16_0_1_1444637967569_2665" dir="ltr" class=""><font id="yiv8670983238yui_3_16_0_1_1444637967569_3125" size="2" color="#808080" class=""><i id="yiv8670983238yui_3_16_0_1_1444637967569_2706" class="">Copyright (C) 1995-2013 - All Rights Reserved<br class="" id="yiv8670983238yui_3_16_0_1_1444637967569_2669"> University Corporation for Atmospheric Research<br class="" id="yiv8670983238yui_3_16_0_1_1444637967569_2671"> NCAR Command Language Version 6.1.2<br class="" id="yiv8670983238yui_3_16_0_1_1444637967569_2673"> The use of this software is governed by a License Agreement.<br class="" id="yiv8670983238yui_3_16_0_1_1444637967569_2675"> See http://www.ncl.ucar.edu/ for more details.<br class="" id="yiv8670983238yui_3_16_0_1_1444637967569_2677">warning:TextItem:libncarg Error:PLCHHQ/PCFOPN - ERROR OPENING PWRITX DATA FILE /usr/share/ncarg/database/PlotcharData<br class="" id="yiv8670983238yui_3_16_0_1_1444637967569_2679"> warning:TextItem:libncarg Error:PLCHHQ/PCFOPN - ERROR OPENING PWRITX DATA FILE /usr/share/ncarg/database/PlotcharData<br class="" id="yiv8670983238yui_3_16_0_1_1444637967569_2681"> warning:TextItem:libncarg Error:PLCHHQ/PCFOPN - ERROR OPENING PWRITX DATA FILE /usr/share/ncarg/database/PlotcharData</i></font></div><div id="yiv8670983238yui_3_16_0_1_1444637967569_2773" dir="ltr" class=""><font size="2" color="#808080" id="yui_3_16_0_1_1444639130820_3402" class=""><i id="yiv8670983238yui_3_16_0_1_1444637967569_2706" class=""><br id="yui_3_16_0_1_1444639130820_3405" class=""></i></font></div><div id="yiv8670983238yui_3_16_0_1_1444637967569_2757" dir="ltr" class=""><font size="2" color="#808080" id="yui_3_16_0_1_1444639130820_3408" class="">........ (repeated a lot of times!) ......<br id="yui_3_16_0_1_1444639130820_3410" class=""></font></div><div id="yiv8670983238yui_3_16_0_1_1444637967569_2666" dir="ltr" class=""><font size="2" color="#808080" id="yui_3_16_0_1_1444639130820_3413" class=""><br id="yui_3_16_0_1_1444639130820_3415" class=""></font></div><div id="yiv8670983238yui_3_16_0_1_1444637967569_2775" dir="ltr" class=""><font id="yiv8670983238yui_3_16_0_1_1444637967569_3115" size="2" color="#808080" class=""> <i id="yiv8670983238yui_3_16_0_1_1444637967569_2756" class="">fatal:MapV41DHInitialize: dynamic memory allocation error:[errno=12]<br class="" id="yiv8670983238yui_3_16_0_1_1444637967569_2743"> fatal:MapV41DHInitialize: error initializing map outline records<br class="" id="yiv8670983238yui_3_16_0_1_1444637967569_2745"> fatal:MapSetTrans: error initializing map: MAPINT - UNCLEARED PRIOR ERROR<br class="" id="yiv8670983238yui_3_16_0_1_1444637967569_2747"> warning:["SetValues.c":474]:SetValuesChild never occurred on plt_Surface1_map.PlotManager: Error in mapPlotClass<br class="" id="yiv8670983238yui_3_16_0_1_1444637967569_2749"> warning:tmXBBorderOn is not a valid resource in plt_Surface1_map at this time<br class="" id="yiv8670983238yui_3_16_0_1_1444637967569_2751"> fatal:ContourPlotDraw: CPLBDR/CPPKLP/CPSTLS/PLCHHQ/PCFOPN - ERROR OPENING PWRITX DATA FILE /usr/share/ncarg/database/PlotcharData<br class="" id="yiv8670983238yui_3_16_0_1_1444637967569_2816"> fatal:ContourPlotDraw: draw error<br class="" id="yiv8670983238yui_3_16_0_1_1444637967569_2818"> warning:WorkstationDeactivate: workstation not active or not opened<br class="" id="yiv8670983238yui_3_16_0_1_1444637967569_2820"> warning:MapV41DHDrawMapList:libncarg Error:MPSETI - UNCLEARED PRIOR ERROR<br class="" id="yiv8670983238yui_3_16_0_1_1444637967569_2822"> warning:MapV41DHDrawMapList:libncarg Error:MPSETI - UNCLEARED PRIOR ERROR<br class="" id="yiv8670983238yui_3_16_0_1_1444637967569_2824"> warning:MapPlotPostDraw:libncarg Error:MPSETI - UNCLEARED PRIOR ERROR<br class="" id="yiv8670983238yui_3_16_0_1_1444637967569_2826"> warning:TextItemDraw:libncarg Error:PLCHHQ/PCFOPN - ERROR OPENING PWRITX DATA FILE /usr/share/ncarg/database/PlotcharData<br class="" id="yiv8670983238yui_3_16_0_1_1444637967569_2828"> warning:TextItemDraw:libncarg Error:PLCHHQ/PCFOPN - ERROR OPENING PWRITX DATA FILE /usr/share/ncarg/database/PlotcharData<br class="" id="yiv8670983238yui_3_16_0_1_1444637967569_2830"> warning:TextItem:libncarg Error:PLCHHQ/PCFOPN - ERROR OPENING PWRITX DATA FILE /usr/share/ncarg/database/PlotcharData<br class="" id="yiv8670983238yui_3_16_0_1_1444637967569_2832"> warning:TextItemDraw:libncarg Error:PLCHHQ/PCFOPN - ERROR OPENING PWRITX DATA FILE /usr/share/ncarg/database/PlotcharData<br id="yui_3_16_0_1_1444639130820_3434" class=""></i></font></div><div id="yiv8670983238yui_3_16_0_1_1444637967569_2777" dir="ltr" class=""><font size="2" color="#808080" id="yui_3_16_0_1_1444639130820_3437" class=""><br id="yui_3_16_0_1_1444639130820_3439" class=""></font></div><div id="yiv8670983238yui_3_16_0_1_1444637967569_2868" dir="ltr" class=""><font size="2" color="#808080" id="yui_3_16_0_1_1444639130820_3442" class=""><br id="yui_3_16_0_1_1444639130820_3444" class=""></font></div><div id="yiv8670983238yui_3_16_0_1_1444637967569_2847" dir="ltr" class=""><font size="2" color="#808080" id="yui_3_16_0_1_1444639130820_3265" class="">.....etc .....</font></div><div id="yiv8670983238yui_3_16_0_1_1444637967569_2869" dir="ltr" class=""><br id="yui_3_16_0_1_1444639130820_3449" class=""></div><div id="yiv8670983238yui_3_16_0_1_1444637967569_2870" dir="ltr" class="">Many thanks,</div><div id="yiv8670983238yui_3_16_0_1_1444637967569_2886" dir="ltr" class="">Sara Jackson</div></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 Monday, 12 October 2015, 16:26, Sara Jackson <sjackson615@btinternet.com> wrote:<br> </font> </div> <br><br> <div class="y_msg_container"><div id="yiv8670983238"><div><div style="color:#000;background-color:#fff;font-family:HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, Sans-Serif;font-size:16px;"><div id="yiv8670983238"><div id="yiv8670983238yui_3_16_0_1_1444637967569_2301"><div id="yiv8670983238yui_3_16_0_1_1444637967569_2300" style="color:#000;background-color:#fff;font-family:HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, Sans-Serif;font-size:16px;"><div id="yiv8670983238yui_3_16_0_1_1444637967569_2356">Hi there,</div><div id="yiv8670983238yui_3_16_0_1_1444637511201_3418"><br></div><div dir="ltr" id="yiv8670983238yui_3_16_0_1_1444637511201_3419">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" id="yiv8670983238yui_3_16_0_1_1444637511201_3419"><br></div><div dir="ltr" id="yiv8670983238yui_3_16_0_1_1444637511201_3419">I am trying to run the following ncl script:</div><div dir="ltr" id="yiv8670983238yui_3_16_0_1_1444637511201_3419"><br></div><div dir="ltr" id="yiv8670983238yui_3_16_0_1_1444637511201_3419"><font id="yiv8670983238yui_3_16_0_1_1444637967569_3141" size="2" color="#808080"><i id="yiv8670983238yui_3_16_0_1_1444637967569_2550">; load functions and procedures<br class="yiv8670983238" id="yiv8670983238yui_3_16_0_1_1444637967569_2367">load "$NCARG_ROOT/nclscripts/csm/gsn_code.ncl"<br class="yiv8670983238" id="yiv8670983238yui_3_16_0_1_1444637967569_2369">load "$NCARG_ROOT/nclscripts/wrf/WRFUserARW.ncl"<br class="yiv8670983238" id="yiv8670983238yui_3_16_0_1_1444637967569_2371"><br class="yiv8670983238" id="yiv8670983238yui_3_16_0_1_1444637967569_2373">begin<br class="yiv8670983238" id="yiv8670983238yui_3_16_0_1_1444637967569_2375"><br class="yiv8670983238" id="yiv8670983238yui_3_16_0_1_1444637967569_2377">; WRF ARW input file (NOTE, your wrfout file does not need the .nc, <br class="yiv8670983238" id="yiv8670983238yui_3_16_0_1_1444637967569_2379">; but NCL needs it so make sure to add it in the line below)<br class="yiv8670983238" id="yiv8670983238yui_3_16_0_1_1444637967569_2381"><br class="yiv8670983238" id="yiv8670983238yui_3_16_0_1_1444637967569_2383">a = addfile("../wrfout_d01_2013-12-01_00:00:00.nc","r") <br class="yiv8670983238" id="yiv8670983238yui_3_16_0_1_1444637967569_2385"><br class="yiv8670983238" id="yiv8670983238yui_3_16_0_1_1444637967569_2387">; Output on screen (type="x11"). Output will be called "plt_Surface1" <br class="yiv8670983238" id="yiv8670983238yui_3_16_0_1_1444637967569_2389">type = "x11"<br class="yiv8670983238" id="yiv8670983238yui_3_16_0_1_1444637967569_2391">wks = gsn_open_wks(type,"plt_Surface1") <br class="yiv8670983238" id="yiv8670983238yui_3_16_0_1_1444637967569_2393"><br class="yiv8670983238" id="yiv8670983238yui_3_16_0_1_1444637967569_2395">; Set basic resources<br class="yiv8670983238" id="yiv8670983238yui_3_16_0_1_1444637967569_2397">res = True <br class="yiv8670983238" id="yiv8670983238yui_3_16_0_1_1444637967569_2399">res@MainTitle = "REAL-TIME WRF" ; Give plot a main title <br class="yiv8670983238" id="yiv8670983238yui_3_16_0_1_1444637967569_2401">res@Footer = False ; Set Footers off<br class="yiv8670983238" id="yiv8670983238yui_3_16_0_1_1444637967569_2403">pltres = True ; Plotting resources <br class="yiv8670983238" id="yiv8670983238yui_3_16_0_1_1444637967569_2405">mpres = True ; Map resources<br class="yiv8670983238" id="yiv8670983238yui_3_16_0_1_1444637967569_2407"><br class="yiv8670983238" id="yiv8670983238yui_3_16_0_1_1444637967569_2409">;--------------------------------------------------------------- <br class="yiv8670983238" id="yiv8670983238yui_3_16_0_1_1444637967569_2411">times = wrf_user_getvar(a,"times",-1) ; get all times in the file<br class="yiv8670983238" id="yiv8670983238yui_3_16_0_1_1444637967569_2413">ntimes = dimsizes(times) ; number of times in the file <br class="yiv8670983238" id="yiv8670983238yui_3_16_0_1_1444637967569_2415">it = 0 ; only interested in first time <br class="yiv8670983238" id="yiv8670983238yui_3_16_0_1_1444637967569_2417">res@TimeLabel = times(it) ; keep some time information <br class="yiv8670983238" id="yiv8670983238yui_3_16_0_1_1444637967569_2419"> <br class="yiv8670983238" id="yiv8670983238yui_3_16_0_1_1444637967569_2421">;---------------------------------------------------------------<br class="yiv8670983238" id="yiv8670983238yui_3_16_0_1_1444637967569_2423"><br class="yiv8670983238" id="yiv8670983238yui_3_16_0_1_1444637967569_2425">; Get variables<br class="yiv8670983238" id="yiv8670983238yui_3_16_0_1_1444637967569_2427"><br class="yiv8670983238" id="yiv8670983238yui_3_16_0_1_1444637967569_2429">slp = wrf_user_getvar(a,"slp",it) ;Get slp<br class="yiv8670983238" id="yiv8670983238yui_3_16_0_1_1444637967569_2431"> wrf_smooth_2d( slp, 3 ) ; Smooth slp<br class="yiv8670983238" id="yiv8670983238yui_3_16_0_1_1444637967569_2433"><br class="yiv8670983238" id="yiv8670983238yui_3_16_0_1_1444637967569_2435">t2 = wrf_user_getvar(a,"T2",it) ; Get T2 (deg K)<br class="yiv8670983238" id="yiv8670983238yui_3_16_0_1_1444637967569_2437"> tc2 = t2-273.16 ; Convert to deg C <br class="yiv8670983238" id="yiv8670983238yui_3_16_0_1_1444637967569_2439"> tc2@units = "C"<br class="yiv8670983238" id="yiv8670983238yui_3_16_0_1_1444637967569_2441"><br class="yiv8670983238" id="yiv8670983238yui_3_16_0_1_1444637967569_2443">u10 = wrf_user_getvar(a,"U10",it) ; Get U10 <br class="yiv8670983238" id="yiv8670983238yui_3_16_0_1_1444637967569_2445">v10 = wrf_user_getvar(a,"V10",it) ; Get V10 <br class="yiv8670983238" id="yiv8670983238yui_3_16_0_1_1444637967569_2447"> u10@units = "m/s" <br class="yiv8670983238" id="yiv8670983238yui_3_16_0_1_1444637967569_2449"> v10@units = "m/s"<br class="yiv8670983238" id="yiv8670983238yui_3_16_0_1_1444637967569_2451"><br class="yiv8670983238" id="yiv8670983238yui_3_16_0_1_1444637967569_2453">;---------------------------------------------------------------<br class="yiv8670983238" id="yiv8670983238yui_3_16_0_1_1444637967569_2455"><br class="yiv8670983238" id="yiv8670983238yui_3_16_0_1_1444637967569_2457">; Plotting options for T<br class="yiv8670983238" id="yiv8670983238yui_3_16_0_1_1444637967569_2459">opts = res ; Add basic resources <br class="yiv8670983238" id="yiv8670983238yui_3_16_0_1_1444637967569_2461">opts@cnFillOn = True ; Shaded plot <br class="yiv8670983238" id="yiv8670983238yui_3_16_0_1_1444637967569_2463">opts@ContourParameters = (/ -20., 90., 5./) ; Contour intervals <br class="yiv8670983238" id="yiv8670983238yui_3_16_0_1_1444637967569_2465">opts@gsnSpreadColorEnd = -3 <br class="yiv8670983238" id="yiv8670983238yui_3_16_0_1_1444637967569_2467">contour_tc = wrf_contour(a,wks,tc2,opts) ; Create plot <br class="yiv8670983238" id="yiv8670983238yui_3_16_0_1_1444637967569_2469">delete(opts) <br class="yiv8670983238" id="yiv8670983238yui_3_16_0_1_1444637967569_2471"><br class="yiv8670983238" id="yiv8670983238yui_3_16_0_1_1444637967569_2473">; Plotting options for SLP <br class="yiv8670983238" id="yiv8670983238yui_3_16_0_1_1444637967569_2475">opts = res ; Add basic resources <br class="yiv8670983238" id="yiv8670983238yui_3_16_0_1_1444637967569_2477">opts@cnLineColor = "Blue" ; Set line color <br class="yiv8670983238" id="yiv8670983238yui_3_16_0_1_1444637967569_2479">opts@cnHighLabelsOn = True ; Set labels <br class="yiv8670983238" id="yiv8670983238yui_3_16_0_1_1444637967569_2481">opts@cnLowLabelsOn = True<br class="yiv8670983238" id="yiv8670983238yui_3_16_0_1_1444637967569_2483">opts@ContourParameters = (/ 900.,1100.,4./) ; Contour intervals <br class="yiv8670983238" id="yiv8670983238yui_3_16_0_1_1444637967569_2485">contour_psl = wrf_contour(a,wks,slp,opts) ; Create plot <br class="yiv8670983238" id="yiv8670983238yui_3_16_0_1_1444637967569_2487">delete(opts)<br class="yiv8670983238" id="yiv8670983238yui_3_16_0_1_1444637967569_2489"> <br class="yiv8670983238" id="yiv8670983238yui_3_16_0_1_1444637967569_2491"><br class="yiv8670983238" id="yiv8670983238yui_3_16_0_1_1444637967569_2493">; Plotting options for Wind Vectors<br class="yiv8670983238" id="yiv8670983238yui_3_16_0_1_1444637967569_2495">opts = res ; Add basic resources <br class="yiv8670983238" id="yiv8670983238yui_3_16_0_1_1444637967569_2497">opts@FieldTitle = "Winds" ; Overwrite the field title <br class="yiv8670983238" id="yiv8670983238yui_3_16_0_1_1444637967569_2499">opts@NumVectors = 47 ; Density of wind barbs <br class="yiv8670983238" id="yiv8670983238yui_3_16_0_1_1444637967569_2501">vector = wrf_vector(a,wks,u10,v10,opts) ; Create plot <br class="yiv8670983238" id="yiv8670983238yui_3_16_0_1_1444637967569_2503">delete(opts)<br class="yiv8670983238" id="yiv8670983238yui_3_16_0_1_1444637967569_2505"><br class="yiv8670983238" id="yiv8670983238yui_3_16_0_1_1444637967569_2507"> <br class="yiv8670983238" id="yiv8670983238yui_3_16_0_1_1444637967569_2509"><br class="yiv8670983238" id="yiv8670983238yui_3_16_0_1_1444637967569_2511">; MAKE PLOTS <br class="yiv8670983238" id="yiv8670983238yui_3_16_0_1_1444637967569_2513">plot = wrf_map_overlays(a,wks, \ <br class="yiv8670983238" id="yiv8670983238yui_3_16_0_1_1444637967569_2515"> (/contour_tc,contour_psl,vector/),pltres,mpres)<br class="yiv8670983238" id="yiv8670983238yui_3_16_0_1_1444637967569_2517"> <br class="yiv8670983238" id="yiv8670983238yui_3_16_0_1_1444637967569_2519">;---------------------------------------------------------------<br class="yiv8670983238" id="yiv8670983238yui_3_16_0_1_1444637967569_2521"><br class="yiv8670983238" id="yiv8670983238yui_3_16_0_1_1444637967569_2523"> <br class="yiv8670983238" id="yiv8670983238yui_3_16_0_1_1444637967569_2525"><br class="yiv8670983238" id="yiv8670983238yui_3_16_0_1_1444637967569_2527"></i></font><div id="yiv8670983238yui_3_16_0_1_1444637967569_2533" dir="ltr"><font size="2" color="#808080"><i>end</i></font></div><div id="yiv8670983238yui_3_16_0_1_1444637967569_2571" dir="ltr"><br></div><div id="yiv8670983238yui_3_16_0_1_1444637967569_2572" dir="ltr">But then I get the following error:</div><div id="yiv8670983238yui_3_16_0_1_1444637967569_2665" dir="ltr"><font id="yiv8670983238yui_3_16_0_1_1444637967569_3125" size="2" color="#808080"><i id="yiv8670983238yui_3_16_0_1_1444637967569_2706">Copyright (C) 1995-2013 - All Rights Reserved<br class="yiv8670983238" id="yiv8670983238yui_3_16_0_1_1444637967569_2669"> University Corporation for Atmospheric Research<br class="yiv8670983238" id="yiv8670983238yui_3_16_0_1_1444637967569_2671"> NCAR Command Language Version 6.1.2<br class="yiv8670983238" id="yiv8670983238yui_3_16_0_1_1444637967569_2673"> The use of this software is governed by a License Agreement.<br class="yiv8670983238" id="yiv8670983238yui_3_16_0_1_1444637967569_2675"> See http://www.ncl.ucar.edu/ for more details.<br class="yiv8670983238" id="yiv8670983238yui_3_16_0_1_1444637967569_2677">warning:TextItem:libncarg Error:PLCHHQ/PCFOPN - ERROR OPENING PWRITX DATA FILE /usr/share/ncarg/database/PlotcharData<br class="yiv8670983238" id="yiv8670983238yui_3_16_0_1_1444637967569_2679"> warning:TextItem:libncarg Error:PLCHHQ/PCFOPN - ERROR OPENING PWRITX DATA FILE /usr/share/ncarg/database/PlotcharData<br class="yiv8670983238" id="yiv8670983238yui_3_16_0_1_1444637967569_2681"> warning:TextItem:libncarg Error:PLCHHQ/PCFOPN - ERROR OPENING PWRITX DATA FILE /usr/share/ncarg/database/PlotcharData</i></font></div><div id="yiv8670983238yui_3_16_0_1_1444637967569_2773" dir="ltr"><font size="2" color="#808080"><i id="yiv8670983238yui_3_16_0_1_1444637967569_2706"><br></i></font></div><div id="yiv8670983238yui_3_16_0_1_1444637967569_2757" dir="ltr"><font size="2" color="#808080">........ (repeated a lot of times!) ......<br></font></div><div id="yiv8670983238yui_3_16_0_1_1444637967569_2666" dir="ltr"><font size="2" color="#808080"><br></font></div><div id="yiv8670983238yui_3_16_0_1_1444637967569_2775" dir="ltr"><font id="yiv8670983238yui_3_16_0_1_1444637967569_3115" size="2" color="#808080"> <i id="yiv8670983238yui_3_16_0_1_1444637967569_2756">fatal:MapV41DHInitialize: dynamic memory allocation error:[errno=12]<br class="yiv8670983238" id="yiv8670983238yui_3_16_0_1_1444637967569_2743"> fatal:MapV41DHInitialize: error initializing map outline records<br class="yiv8670983238" id="yiv8670983238yui_3_16_0_1_1444637967569_2745"> fatal:MapSetTrans: error initializing map: MAPINT - UNCLEARED PRIOR ERROR<br class="yiv8670983238" id="yiv8670983238yui_3_16_0_1_1444637967569_2747"> warning:["SetValues.c":474]:SetValuesChild never occurred on plt_Surface1_map.PlotManager: Error in mapPlotClass<br class="yiv8670983238" id="yiv8670983238yui_3_16_0_1_1444637967569_2749"> warning:tmXBBorderOn is not a valid resource in plt_Surface1_map at this time<br class="yiv8670983238" id="yiv8670983238yui_3_16_0_1_1444637967569_2751"> fatal:ContourPlotDraw: CPLBDR/CPPKLP/CPSTLS/PLCHHQ/PCFOPN - ERROR OPENING PWRITX DATA FILE /usr/share/ncarg/database/PlotcharData<br class="yiv8670983238" id="yiv8670983238yui_3_16_0_1_1444637967569_2816"> fatal:ContourPlotDraw: draw error<br class="yiv8670983238" id="yiv8670983238yui_3_16_0_1_1444637967569_2818"> warning:WorkstationDeactivate: workstation not active or not opened<br class="yiv8670983238" id="yiv8670983238yui_3_16_0_1_1444637967569_2820"> warning:MapV41DHDrawMapList:libncarg Error:MPSETI - UNCLEARED PRIOR ERROR<br class="yiv8670983238" id="yiv8670983238yui_3_16_0_1_1444637967569_2822"> warning:MapV41DHDrawMapList:libncarg Error:MPSETI - UNCLEARED PRIOR ERROR<br class="yiv8670983238" id="yiv8670983238yui_3_16_0_1_1444637967569_2824"> warning:MapPlotPostDraw:libncarg Error:MPSETI - UNCLEARED PRIOR ERROR<br class="yiv8670983238" id="yiv8670983238yui_3_16_0_1_1444637967569_2826"> warning:TextItemDraw:libncarg Error:PLCHHQ/PCFOPN - ERROR OPENING PWRITX DATA FILE /usr/share/ncarg/database/PlotcharData<br class="yiv8670983238" id="yiv8670983238yui_3_16_0_1_1444637967569_2828"> warning:TextItemDraw:libncarg Error:PLCHHQ/PCFOPN - ERROR OPENING PWRITX DATA FILE /usr/share/ncarg/database/PlotcharData<br class="yiv8670983238" id="yiv8670983238yui_3_16_0_1_1444637967569_2830"> warning:TextItem:libncarg Error:PLCHHQ/PCFOPN - ERROR OPENING PWRITX DATA FILE /usr/share/ncarg/database/PlotcharData<br class="yiv8670983238" id="yiv8670983238yui_3_16_0_1_1444637967569_2832"> warning:TextItemDraw:libncarg Error:PLCHHQ/PCFOPN - ERROR OPENING PWRITX DATA FILE /usr/share/ncarg/database/PlotcharData<br></i></font></div><div id="yiv8670983238yui_3_16_0_1_1444637967569_2777" dir="ltr"><font size="2" color="#808080"><br></font></div><div id="yiv8670983238yui_3_16_0_1_1444637967569_2868" dir="ltr"><font size="2" color="#808080"><br></font></div><div id="yiv8670983238yui_3_16_0_1_1444637967569_2847" dir="ltr"><font size="2" color="#808080">.....etc .....</font></div><div id="yiv8670983238yui_3_16_0_1_1444637967569_2869" dir="ltr"><br></div><div id="yiv8670983238yui_3_16_0_1_1444637967569_2870" dir="ltr">Many thanks,</div><div id="yiv8670983238yui_3_16_0_1_1444637967569_2886" dir="ltr">Sara Jackson<br></div></div></div></div></div></div></div></div><br><br></div> </div> </div> </div></div></body></html>