<div dir="ltr"><div><div>Hi,<br><br></div><div>By default, NCL looks for this in $NCARG_ROOT/lib/ncarg/database/rangs, which is not necessarily the same as "/lib/ncarg/database/rangs"<br></div><div>You might check to see what the value of $NCARG_ROOT is, if any. One can always override the default location by setting the NCARG_RANGS environment variable. In your case:<br><br></div><div>export NCARG_RANGS=/lib/ncarg/database/rangs<br><br></div>There's a FAQ on this for further information<br><br><a href="http://ncl.ucar.edu/FAQ/#err_msgs_028" target="_blank">http://ncl.ucar.edu/FAQ/#err_<wbr>msgs_028</a><br><br></div><br></div><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Apr 13, 2018 at 7:23 AM, Juan Carlos Anduckia <span dir="ltr"><<a href="mailto:janducki@yahoo.com" target="_blank">janducki@yahoo.com</a>></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:Helvetica Neue,Helvetica,Arial,Lucida Grande,sans-serif;font-size:13px"><div id="m_8861114958868023650yiv7841807564"><div id="m_8861114958868023650yui_3_16_0_ym19_1_1523619203689_18258"><div id="m_8861114958868023650yui_3_16_0_ym19_1_1523619203689_18257" style="color:#000;background-color:#fff;font-family:Helvetica Neue,Helvetica,Arial,Lucida Grande,sans-serif;font-size:13px"><div id="m_8861114958868023650yiv7841807564yui_3_16_0_ym19_1_1523619203689_7638">Hello :</div><div id="m_8861114958868023650yiv7841807564yui_3_16_0_ym19_1_1523619203689_11375" dir="ltr">A very basic issue. I'm using NCL v 6.3.0 and I have the following problem running a WRF-precipitation script when using the High Resolution option via RANGS:</div><div id="m_8861114958868023650yiv7841807564yui_3_16_0_ym19_1_1523619203689_7784" dir="ltr"><br id="m_8861114958868023650yiv7841807564yui_3_16_0_ym19_1_1523619203689_7764">fatal:MapRGDHDrawMapList: MDRGOL/MDRGOF - ERROR OPENING RANGS/GSHHS CAT FILE<br id="m_8861114958868023650yiv7841807564yui_3_16_0_ym19_1_1523619203689_7765">fatal:PlotManagerPostDraw: error in plot post-draw<br id="m_8861114958868023650yiv7841807564yui_3_16_0_ym19_1_1523619203689_7766">fatal:_NhlPlotManagerDraw: PostDraw error</div><div id="m_8861114958868023650yiv7841807564yui_3_16_0_ym19_1_1523619203689_9072" dir="ltr"><br></div><div id="m_8861114958868023650yiv7841807564yui_3_16_0_ym19_1_1523619203689_9074" dir="ltr">I have seen this error reported in the list more than once but still wonder why the problem might be in my case.</div><div id="m_8861114958868023650yiv7841807564yui_3_16_0_ym19_1_1523619203689_8896" dir="ltr">My rangs files:</div><div id="m_8861114958868023650yiv7841807564yui_3_16_0_ym19_1_1523619203689_11442" dir="ltr"><br></div><div id="m_8861114958868023650yiv7841807564yui_3_16_0_ym19_1_1523619203689_8940" dir="ltr">$ ls -l /lib/ncarg/database/rangs/<br id="m_8861114958868023650yiv7841807564yui_3_16_0_ym19_1_1523619203689_8983">total 137648<br id="m_8861114958868023650yiv7841807564yui_3_16_0_ym19_1_1523619203689_8984">-rw-r--r--. 1 root root 89496428 May 13 1997 gshhs(0).rim<br id="m_8861114958868023650yiv7841807564yui_3_16_0_ym19_1_1523619203689_8985">-rw-r--r--. 1 root root 20775224 May 13 1997 gshhs(1).rim<br id="m_8861114958868023650yiv7841807564yui_3_16_0_ym19_1_1523619203689_8986">-rw-r--r--. 1 root root 5099196 May 13 1997 gshhs(2).rim<br id="m_8861114958868023650yiv7841807564yui_3_16_0_ym19_1_1523619203689_8987">-rw-r--r--. 1 root root 1109192 May 13 1997 gshhs(3).rim<br id="m_8861114958868023650yiv7841807564yui_3_16_0_ym19_1_1523619203689_8988">-rw-r--r--. 1 root root 170948 May 13 1997 gshhs(4).rim<br id="m_8861114958868023650yiv7841807564yui_3_16_0_ym19_1_1523619203689_8989">-rw-r--r--. 1 root root 259200 May 6 1997 rangs(0).cat<br id="m_8861114958868023650yiv7841807564yui_3_16_0_ym19_1_1523619203689_8990">-rw-r--r--. 1 root root 6518664 Feb 1 1999 rangs(0).cel<br id="m_8861114958868023650yiv7841807564yui_3_16_0_ym19_1_1523619203689_8991">-rw-r--r--. 1 root root 259200 May 6 1997 rangs(1).cat<br id="m_8861114958868023650yiv7841807564yui_3_16_0_ym19_1_1523619203689_8992">-rw-r--r--. 1 root root 5945492 Feb 1 1999 rangs(1).cel<br id="m_8861114958868023650yiv7841807564yui_3_16_0_ym19_1_1523619203689_8993">-rw-r--r--. 1 root root 259200 May 6 1997 rangs(2).cat<br id="m_8861114958868023650yiv7841807564yui_3_16_0_ym19_1_1523619203689_8994">-rw-r--r--. 1 root root 4062215 Feb 1 1999 rangs(2).cel<br id="m_8861114958868023650yiv7841807564yui_3_16_0_ym19_1_1523619203689_8995">-rw-r--r--. 1 root root 259200 May 5 1997 rangs(3).cat<br id="m_8861114958868023650yiv7841807564yui_3_16_0_ym19_1_1523619203689_8996">-rw-r--r--. 1 root root 3398642 Feb 1 1999 rangs(3).cel<br id="m_8861114958868023650yiv7841807564yui_3_16_0_ym19_1_1523619203689_8997">-rw-r--r--. 1 root root 259200 May 5 1997 rangs(4).cat<br id="m_8861114958868023650yiv7841807564yui_3_16_0_ym19_1_1523619203689_8998">-rw-r--r--. 1 root root 3045848 Jan 29 1999 rangs(4).cel</div><div id="m_8861114958868023650yiv7841807564yui_3_16_0_ym19_1_1523619203689_9083" dir="ltr"><br></div><div id="m_8861114958868023650yiv7841807564yui_3_16_0_ym19_1_1523619203689_9127" dir="ltr">The pertinent part of the script:</div><div id="m_8861114958868023650yiv7841807564yui_3_16_0_ym19_1_1523619203689_9125" dir="ltr"> wks = gsn_open_wks(type,"avgprec_<wbr>car")<br id="m_8861114958868023650yiv7841807564yui_3_16_0_ym19_1_1523619203689_9167"> res = True<br id="m_8861114958868023650yiv7841807564yui_3_16_0_ym19_1_1523619203689_9172"> res@Footer = False<br id="m_8861114958868023650yiv7841807564yui_3_16_0_ym19_1_1523619203689_9173"> pltres = True<br id="m_8861114958868023650yiv7841807564yui_3_16_0_ym19_1_1523619203689_9175"> mpres = True<br id="m_8861114958868023650yiv7841807564yui_3_16_0_ym19_1_1523619203689_9176"> mpres@mpGeophysicalLineColor <wbr> = "Black"<br id="m_8861114958868023650yiv7841807564yui_3_16_0_ym19_1_1523619203689_9177"> mpres@<wbr>mpGeophysicalLineThicknessF = 5<br id="m_8861114958868023650yiv7841807564yui_3_16_0_ym19_1_1523619203689_9178"> mpres@mpDataBaseVersion <wbr> = "HighRes"<br id="m_8861114958868023650yiv7841807564yui_3_16_0_ym19_1_1523619203689_9179"> mpres@mpGridLineColor <wbr> = "Black"<br id="m_8861114958868023650yiv7841807564yui_3_16_0_ym19_1_1523619203689_9182"> mpres@mpLimbLineColor <wbr> = "Black"<br id="m_8861114958868023650yiv7841807564yui_3_16_0_ym19_1_1523619203689_9183"> mpres@mpPerimLineColor <wbr> = "Black"<br id="m_8861114958868023650yiv7841807564yui_3_16_0_ym19_1_1523619203689_9184"> <br></div><div id="m_8861114958868023650yui_3_16_0_ym19_1_1523619203689_18896" dir="ltr"> ;Plotting options for Sea Level Pressure<br id="m_8861114958868023650yiv7841807564yui_3_16_0_ym19_1_1523619203689_9462"> opts_psl = res<br id="m_8861114958868023650yiv7841807564yui_3_16_0_ym19_1_1523619203689_9463"> opts_psl@ContourParameters = (/ 900., 1100., 2. /)<br id="m_8861114958868023650yiv7841807564yui_3_16_0_ym19_1_1523619203689_9464"> opts_psl@cnLineColor = "Blue"<br id="m_8861114958868023650yiv7841807564yui_3_16_0_ym19_1_1523619203689_9465"> opts_psl@cnInfoLabelOn = False<br id="m_8861114958868023650yiv7841807564yui_3_16_0_ym19_1_1523619203689_9466"> opts_psl@<wbr>cnLineLabelFontHeightF = 0.01<br id="m_8861114958868023650yiv7841807564yui_3_16_0_ym19_1_1523619203689_9467"> opts_psl@cnLineLabelPerimOn = False<br id="m_8861114958868023650yiv7841807564yui_3_16_0_ym19_1_1523619203689_9468"> opts_psl@<wbr>gsnContourLineThicknessesScale = 1.5<br id="m_8861114958868023650yiv7841807564yui_3_16_0_ym19_1_1523619203689_9469"> opts_psl@FieldTitle = "Presion a nivel del mar (hPa)"<br id="m_8861114958868023650yiv7841807564yui_3_16_0_ym19_1_1523619203689_9470"> contour_psl = wrf_contour(e1,wks,slp,opts_<wbr>psl)<br id="m_8861114958868023650yiv7841807564yui_3_16_0_ym19_1_1523619203689_9471"> delete(opts_psl)</div><div id="m_8861114958868023650yiv7841807564yui_3_16_0_ym19_1_1523619203689_11489" dir="ltr"> ;Plotting options for precipitation <br id="m_8861114958868023650yiv7841807564yui_3_16_0_ym19_1_1523619203689_9475"> opts_r = res<br id="m_8861114958868023650yiv7841807564yui_3_16_0_ym19_1_1523619203689_9476"> opts_r@UnitLabel = "mm" <br id="m_8861114958868023650yiv7841807564yui_3_16_0_ym19_1_1523619203689_9477"> opts_r@cnLevelSelectionMode = "ExplicitLevels"<br id="m_8861114958868023650yiv7841807564yui_3_16_0_ym19_1_1523619203689_9478"> opts_r@cnLevels = (/ 0.1, 0.2, 0.4, 0.8, 1.6, 3.2, 6.4, \<br id="m_8861114958868023650yiv7841807564yui_3_16_0_ym19_1_1523619203689_9479"> <wbr> 12.8, 25.6, 51.2, 102.4/)<br id="m_8861114958868023650yiv7841807564yui_3_16_0_ym19_1_1523619203689_9480"> opts_r@cnFillColors = (/"White","White","<wbr>DarkOliveGreen1", \<br id="m_8861114958868023650yiv7841807564yui_3_16_0_ym19_1_1523619203689_9481"> <wbr> "DarkOliveGreen3","Chartreuse"<wbr>, \<br id="m_8861114958868023650yiv7841807564yui_3_16_0_ym19_1_1523619203689_9482"> <wbr> "Chartreuse3","Green","<wbr>ForestGreen", \<br id="m_8861114958868023650yiv7841807564yui_3_16_0_ym19_1_1523619203689_9483"> <wbr> "Yellow","Orange","Red","<wbr>Violet"/)<br id="m_8861114958868023650yiv7841807564yui_3_16_0_ym19_1_1523619203689_9484"> opts_r@cnInfoLabelOn = False<br id="m_8861114958868023650yiv7841807564yui_3_16_0_ym19_1_1523619203689_9485"> opts_r@cnConstFLabelOn = False<br id="m_8861114958868023650yiv7841807564yui_3_16_0_ym19_1_1523619203689_9486"> opts_r@cnFillOn = True<br id="m_8861114958868023650yiv7841807564yui_3_16_0_ym19_1_1523619203689_9489"> ; Total Precipitation (color fill)<br id="m_8861114958868023650yiv7841807564yui_3_16_0_ym19_1_1523619203689_9490"> contour_tot = wrf_contour(e1,wks, rain_tot, opts_r)<br id="m_8861114958868023650yiv7841807564yui_3_16_0_ym19_1_1523619203689_9491"> ; Precipitation Tendencies</div><div id="m_8861114958868023650yiv7841807564yui_3_16_0_ym19_1_1523619203689_11119" dir="ltr"> opts_r@SubFieldTitle = "desde " + times_sav + " hasta " + times(it) <br id="m_8861114958868023650yiv7841807564yui_3_16_0_ym19_1_1523619203689_9495"> contour_tend = wrf_contour(e1,wks, rain_tot_tend,opts_r) ; total (color)<br id="m_8861114958868023650yiv7841807564yui_3_16_0_ym19_1_1523619203689_9496"> contour_res = wrf_contour(e1,wks,rain_exp_<wbr>tend,opts_r) ; exp (color)<br id="m_8861114958868023650yiv7841807564yui_3_16_0_ym19_1_1523619203689_9497"> opts_r@cnFillOn = False</div><div id="m_8861114958868023650yiv7841807564yui_3_16_0_ym19_1_1523619203689_9639" dir="ltr"> opts_r@cnLineColor = "Red4"<br id="m_8861114958868023650yiv7841807564yui_3_16_0_ym19_1_1523619203689_9499"> contour_prm = wrf_contour(e1,wks,rain_con_<wbr>tend,opts_r) ; con (red lines) <br></div><div id="m_8861114958868023650yiv7841807564yui_3_16_0_ym19_1_1523619203689_9635" dir="ltr"> delete(opts_r) <br></div><div id="m_8861114958868023650yiv7841807564yui_3_16_0_ym19_1_1523619203689_8617" dir="ltr"> ; MAKE PLOTS<br id="m_8861114958868023650yiv7841807564yui_3_16_0_ym19_1_1523619203689_9671"> ; Total Precipitation<br id="m_8861114958868023650yiv7841807564yui_3_16_0_ym19_1_1523619203689_9673"> ; plot = wrf_map_overlays(e1,wks,<wbr>contour_tot,pltres,mpres)<br id="m_8861114958868023650yiv7841807564yui_3_16_0_ym19_1_1523619203689_9675"> ; Total Precipitation Tendency + SLP <br id="m_8861114958868023650yiv7841807564yui_3_16_0_ym19_1_1523619203689_9676"> plot = wrf_map_overlays(e1,wks,(/<wbr>contour_tend,contour_psl/),<wbr>pltres,mpres)<br id="m_8861114958868023650yiv7841807564yui_3_16_0_ym19_1_1523619203689_9678"> <br id="m_8861114958868023650yiv7841807564yui_3_16_0_ym19_1_1523619203689_9680"></div><div id="m_8861114958868023650yiv7841807564yui_3_16_0_ym19_1_1523619203689_11515" dir="ltr">I enclose images of what I get using the option "MediumRes" versus the option "HighRes".</div><div id="m_8861114958868023650yiv7841807564yui_3_16_0_ym19_1_1523619203689_8619" dir="ltr">Besides, how do I get written in the color bar "0.2 0.4" instead of ".2 .4" ?</div><div id="m_8861114958868023650yiv7841807564yui_3_16_0_ym19_1_1523619203689_8670" dir="ltr"><br></div><div id="m_8861114958868023650yiv7841807564yui_3_16_0_ym19_1_1523619203689_8687" dir="ltr">Thank you, Juan<br></div><br id="m_8861114958868023650yiv7841807564yui_3_16_0_ym19_1_1523619203689_8424"><div id="m_8861114958868023650yiv7841807564yui_3_16_0_ym19_1_1523619203689_8296" dir="ltr"><br></div><div id="m_8861114958868023650yiv7841807564yui_3_16_0_ym19_1_1523619203689_8183" dir="ltr"><br></div><div id="m_8861114958868023650yiv7841807564yui_3_16_0_ym19_1_1523619203689_8176" dir="ltr"><br></div><div id="m_8861114958868023650yiv7841807564yui_3_16_0_ym19_1_1523619203689_7844" dir="ltr"><br id="m_8861114958868023650yiv7841807564yui_3_16_0_ym19_1_1523619203689_7767"><br></div></div></div></div></div></div><br>______________________________<wbr>_________________<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/<wbr>mailman/listinfo/ncl-talk</a><br>
<br></blockquote></div><br></div>