<div dir="ltr"><div><div><div><div><div>[0] <br>If you are just learning NCL, I suggest you look at the <b>User Manual </b>at:<br> <a href="http://www.ncl.ucar.edu/Document/Manuals/"><b>http://www.ncl.ucar.edu/Document/Manuals/</b></a><br> <br></div><div>[1]<br></div>As noted by Toni,<br><br>u = U(0,,:,:)<br><br>is not correct. In fact, it should have generated a <b>fatal </b>subscript<b> </b>syntax error.<br></div><div>Note: although "fatal", NCL will continue. In fact, it will still try to create the plot. Since it did not have valid data, NCL generated a background and a default color lable bar. That is what you attached. <br></div><div><br>[2]<br></div>Your following resource setting needs some clarification:<br><br> res@tiMainString = "NCL version 6.1.x will give you gray land"<br><br></div>For historical reasons, NCL's default graphic mode is black-and-white (B/W). This is true of *all* NCL versions. Not just 6.1.x. <br></div><div>When, 'gsn_csm_contour_map' is used, the default background is continental outlines with light gray used to fill land areas. See:<br><br> <a href="http://www.ncl.ucar.edu/Applications/cylineq.shtml" target="_blank"><b>http://www.ncl.ucar.edu/<wbr>Applications/cylineq.shtml</b></a><br></div><div> Examples 1 and 2<br></div><div><br></div>Color is turned on via:<br></div> res@cnFillOn = True ; make color graphic<br><div><div><div><br><div><div>When color is activated, (a) the background map including the light gray land fil is generated; then, (b) the color contour are drawn over that background. The light gray land fill is overwritten (no big deal). The following resource setting tells the 'gsn_csm_contour_map' do the colr contours and then force the gray land fill last. [There are some reasons for doing that.]<br><br> res@mpFillDrawOrder = "PostDraw" ; Make sure land fill is drawn<br>
; on top of filled contours<br><br>[3] <br></div><div>If you want you can ftp a sample file to:<br><br></div><div> ftp <a href="http://ftp.cgd.ucar.edu">ftp.cgd.ucar.edu</a><br></div><div> anonymous<br></div><div> your_email<br></div><div> cd incoming<br></div><div> put MAM_GEOS_1anee.cam.h0.2000-<wbr><a href="http://12-07-00000.nc">12-07-00000.nc</a><br></div><div> quit<br></div><div><div><br></div></div></div></div></div></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Aug 21, 2018 at 9:45 AM, Toni Klemm <span dir="ltr"><<a href="mailto:toni-klemm@tamu.edu" target="_blank">toni-klemm@tamu.edu</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style="word-wrap:break-word;line-break:after-white-space">Hi Adriana,<div><br></div><div>I noticed there are two commas in the command to extract the sind vectors: u = a->U(0,,:,:) Could that be the problem?</div><div><br></div><div>Could you attach the netCDF file from the example that you’re using? (<a href="http://MAM_GEOS_1anee.cam.h0.2000-12-07-00000.nc" target="_blank">MAM_GEOS_1anee.cam.h0.2000-<wbr>12-07-00000.nc</a>)</div><div><br></div><div>Toni</div><div><br></div><div><div>
<div dir="auto" style="color:rgb(0,0,0);letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;text-decoration:none;word-wrap:break-word;line-break:after-white-space"><div dir="auto" style="color:rgb(0,0,0);letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;text-decoration:none;word-wrap:break-word;line-break:after-white-space"><div dir="auto" style="color:rgb(0,0,0);letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;text-decoration:none;word-wrap:break-word;line-break:after-white-space"><div dir="auto" style="color:rgb(0,0,0);letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;text-decoration:none;word-wrap:break-word;line-break:after-white-space"><div dir="auto" style="color:rgb(0,0,0);letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;word-wrap:break-word;line-break:after-white-space"><div style="color:rgb(0,0,0);font-variant-caps:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px"><font face="Calibri"><br></font></div><div style="color:rgb(0,0,0);font-variant-caps:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px"><font face="Calibri"><b>Toni Klemm, Ph.D.<br></b>Postdoctoral Research Associate</font></div><div style="color:rgb(0,0,0);font-variant-caps:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px">Department of Ecosystem Science and Management</div><div style="color:rgb(0,0,0);font-variant-caps:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px">College of Agriculture and Life Sciences</div><div style="color:rgb(0,0,0);font-variant-caps:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px">Texas A&M University, College Station, TX</div><div style="color:rgb(0,0,0);font-variant-caps:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px"><font face="Calibri">Contributor to the <a href="http://www.eccforum.org" target="_blank">Early Career Climate Forum</a><br><a href="http://www.toni-klemm.de" target="_blank">www.toni-klemm.de</a> | <a href="http://twitter.com/toniklemm" target="_blank">@toniklemm</a></font></div><div style="color:rgb(0,0,0);font-variant-caps:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px"><font face="Calibri"><br></font></div><div style="color:rgb(0,0,0);font-variant-caps:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px"><font face="Calibri"><br></font></div></div></div><br class="m_7492316260535398674Apple-interchange-newline"></div><br class="m_7492316260535398674Apple-interchange-newline"></div><br class="m_7492316260535398674Apple-interchange-newline"></div><br class="m_7492316260535398674Apple-interchange-newline"><br class="m_7492316260535398674Apple-interchange-newline">
</div>
<div><br><blockquote type="cite"><div><div class="h5"><div>On Aug 21, 2018, at 10:01 AM, <a href="mailto:adriana.bossolasco@cnrs-orleans.fr" target="_blank">adriana.bossolasco@cnrs-<wbr>orleans.fr</a> wrote:</div><br class="m_7492316260535398674Apple-interchange-newline"></div></div><div><div><div><div class="h5">Hi all<br><br>I have a problem with ncl when I try to plot a contour graphic. I thought it was a mistake I was making, but then when I try with a example very simple still appears blank. And ncl does not tell me any error.<br>Here is the script (have my file but is exactly the same that newcolor_1.ncl)<br><br>;*****************************<wbr>*******************<br>; zonal_2.ncl<br>;<br>; Concepts illustrated:<br>; - Drawing a zonal means plot<br>; - Using dim_avg_Wrap to calculate a zonal average<br>;*****************************<wbr>*******************<br>;load "/usr/lib/ncarg/nclscripts/<wbr>csm/gsn_code.ncl"<br>;load "/usr/lib/ncarg/nclscripts/<wbr>csm/gsn_csm.ncl"<br>;load "/usr/lib/ncarg/nclscripts/<wbr>csm/contributed.ncl"<br>;*****************************<wbr>*******************<br>begin<br>;*****************************<wbr>*******************<br>; variable and file handling<br>;*****************************<wbr>*******************<br>;---read in zonal winds<br> a = addfile("<a href="http://MAM_GEOS_1anee.cam.h0.2000-12-07-00000.nc" target="_blank">MAM_GEOS_1anee.cam.<wbr>h0.2000-12-07-00000.nc</a>","r")<br> u = a->U(0,,:,:) <wbr> ; July zonal winds<br><br> wks = gsn_open_wks("png","newcolor") ; send graphics to PNG file<br><br> res = True<br> res@gsnMaximize = True ; maximize in frame<br> res@cnLinesOn = False<br> res@cnFillOn = True<br> res@cnFillPalette = "BlueYellowRed" ; change the color palette<br><br> res@mpFillDrawOrder = "PostDraw" ; Make sure land fill is drawn<br> <wbr> ; on top of filled contours<br><br> res@tiMainString = "NCL version 6.1.x will give you gray land"<br><br> plot = gsn_csm_contour_map(wks,u,res)<br>end<br><br>I obtained a map without color fill, I was looking in some previous talk but nothing works. Can Anyone help me on this? thanks<br>I attached the maps<br><br>Thank you<br>-- <br>Adriana Bossolasco<br>LPC2E UMR 7328 (CNRS, Université d'Orléans)<br>3A avenue de la Recherche Scientifique<br>45071 Orléans Cedex 2 - FRANCE<br>Tel +33 (0)2 38 25 52 85<br></div></div><a href="mailto:adriana.bossolasco@cnrs-orleans.fr" target="_blank">e-mail: adriana.bossolasco@cnrs-<wbr>orleans.fr</a><span id="m_7492316260535398674cid:73F621BF-A026-47C1-8969-74AED639C47C"><newcolor.png></span>______<wbr>______________________________<wbr>___________<br>ncl-talk mailing list<br><a href="mailto:ncl-talk@ucar.edu" target="_blank">ncl-talk@ucar.edu</a><br>List instructions, subscriber options, unsubscribe:<br><a href="http://mailman.ucar.edu/mailman/listinfo/ncl-talk" target="_blank">http://mailman.ucar.edu/<wbr>mailman/listinfo/ncl-talk</a><br></div></div></blockquote></div><br></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>