<html><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class="">Hi Adriana,<div class=""><br class=""></div><div class="">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 class=""><br class=""></div><div class="">Could you attach the netCDF file from the example that you’re using? (MAM_GEOS_1anee.cam.h0.2000-12-07-00000.nc)</div><div class=""><br class=""></div><div class="">Toni</div><div class=""><br class=""></div><div class=""><div class="">
<div dir="auto" style="caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0); letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none; word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class=""><div dir="auto" style="caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0); letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none; word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class=""><div dir="auto" style="caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0); letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none; word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class=""><div dir="auto" style="caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0); letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none; word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class=""><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; -webkit-text-stroke-width: 0px; word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class=""><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; -webkit-text-stroke-width: 0px;"><font face="Calibri" class=""><br class=""></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; -webkit-text-stroke-width: 0px;"><font face="Calibri" class=""><b class="">Toni Klemm, Ph.D.<br class=""></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; -webkit-text-stroke-width: 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; -webkit-text-stroke-width: 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; -webkit-text-stroke-width: 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; -webkit-text-stroke-width: 0px;"><font face="Calibri" class="">Contributor to the <a href="http://www.eccforum.org" class="">Early Career Climate Forum</a><br class=""><a href="http://www.toni-klemm.de" class="">www.toni-klemm.de</a> | <a href="http://twitter.com/toniklemm" class="">@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; -webkit-text-stroke-width: 0px;"><font face="Calibri" class=""><br class=""></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; -webkit-text-stroke-width: 0px;"><font face="Calibri" class=""><br class=""></font></div></div></div><br class="Apple-interchange-newline"></div><br class="Apple-interchange-newline"></div><br class="Apple-interchange-newline"></div><br class="Apple-interchange-newline"><br class="Apple-interchange-newline">
</div>
<div><br class=""><blockquote type="cite" class=""><div class="">On Aug 21, 2018, at 10:01 AM, <a href="mailto:adriana.bossolasco@cnrs-orleans.fr" class="">adriana.bossolasco@cnrs-orleans.fr</a> wrote:</div><br class="Apple-interchange-newline"><div class=""><div class="">Hi all<br class=""><br class="">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 class="">Here is the script (have my file but is exactly the same that newcolor_1.ncl)<br class=""><br class="">;************************************************<br class="">; zonal_2.ncl<br class="">;<br class="">; Concepts illustrated:<br class="">;   - Drawing a zonal means plot<br class="">;   - Using dim_avg_Wrap to calculate a zonal average<br class="">;************************************************<br class="">;load "/usr/lib/ncarg/nclscripts/csm/gsn_code.ncl"<br class="">;load "/usr/lib/ncarg/nclscripts/csm/gsn_csm.ncl"<br class="">;load "/usr/lib/ncarg/nclscripts/csm/contributed.ncl"<br class="">;************************************************<br class="">begin<br class="">;************************************************<br class="">; variable and file handling<br class="">;************************************************<br class="">;---read in zonal winds<br class="">  a = addfile("MAM_GEOS_1anee.cam.h0.2000-12-07-00000.nc","r")<br class="">  u = a->U(0,,:,:)                                ; July zonal winds<br class=""><br class="">  wks  = gsn_open_wks("png","newcolor")  ; send graphics to PNG file<br class=""><br class="">  res                 = True<br class="">  res@gsnMaximize     = True       ; maximize in frame<br class="">  res@cnLinesOn       = False<br class="">  res@cnFillOn        = True<br class="">  res@cnFillPalette   = "BlueYellowRed"   ; change the color palette<br class=""><br class="">  res@mpFillDrawOrder = "PostDraw" ; Make sure land fill is drawn<br class="">                                   ; on top of filled contours<br class=""><br class="">  res@tiMainString    = "NCL version 6.1.x will give you gray land"<br class=""><br class="">  plot = gsn_csm_contour_map(wks,u,res)<br class="">end<br class=""><br class="">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 class="">I attached the maps<br class=""><br class="">Thank you<br class="">-- <br class="">Adriana Bossolasco<br class="">LPC2E UMR 7328 (CNRS, Université d'Orléans)<br class="">3A avenue de la Recherche Scientifique<br class="">45071 Orléans Cedex 2 - FRANCE<br class="">Tel  +33 (0)2 38 25 52 85<br class=""><a href="mailto:adriana.bossolasco@cnrs-orleans.fr" class="">e-mail: adriana.bossolasco@cnrs-orleans.fr</a><span id="cid:73F621BF-A026-47C1-8969-74AED639C47C"><newcolor.png></span>_______________________________________________<br class="">ncl-talk mailing list<br class="">ncl-talk@ucar.edu<br class="">List instructions, subscriber options, unsubscribe:<br class="">http://mailman.ucar.edu/mailman/listinfo/ncl-talk<br class=""></div></div></blockquote></div><br class=""></div></body></html>