<div dir="ltr">Replace<br><pre><span style="font-family:arial,helvetica,sans-serif"> wks = gsn_open_wks("png","marjani") ; open a ps file
gsn_define_colormap(wks,"<wbr>BlAqGrYeOrRe") ; choose colormap<br><br></span></pre><pre><span style="font-family:arial,helvetica,sans-serif">With, just <br> </span><br><span style="font-family:arial,helvetica,sans-serif"><span style="font-family:arial,helvetica,sans-serif">wks = gsn_open_wks("png","marjani") ; open a pn file</span><br><br></span></pre></div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Oct 25, 2017 at 12:23 PM, Dennis Shea <span dir="ltr"><<a href="mailto:shea@ucar.edu" target="_blank">shea@ucar.edu</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div>I think you should provide what you have done. <br><br></div><div>If you are learning NCL, please look at the excellent tutorial by DKRZ at:<br><br> <a href="http://www.ncl.ucar.edu/Document/Manuals/" target="_blank">http://www.ncl.ucar.edu/<wbr>Document/Manuals/</a><br><br></div><div>The User Guide has many examples. <br><br></div><div>To learn any language you must invest the time to learn<br></div><div><br></div><div><br></div><div>---<br></div><div>We do not have any tos file available. The following is an untested guess. ANy errors you must fix.<br></div><div><br>---<br></div><div> diri = "./" ; input directory<br></div><div> fili = "tso ...nc" ; your file<br></div><div> pthi = diri+fili<br></div><div> f = addfile( pthi, "r")<br><br></div><div> x = f->tos <wbr> ; (time,nlat,mlon)<br></div><div> lat2d = f->lat ; (nlat,mlon)<br></div><div> lon2d =f->lon<br><br> printVarSummary(x)<br><div> printMinMax(x, 0)<br></div> print("---")<div> printVarSummary(lat2d)<br></div><div> printMinMax(lat2d, 0)<br></div> print("---")<br><div> printVarSummary(lon2d)<br></div><div> printMinMax(lon2d, 0)<br></div> print("---")<br><span style="font-family:arial,helvetica,sans-serif"><br></span><pre><span style="font-family:arial,helvetica,sans-serif"> wks = gsn_open_wks("png","marjani") ; open a ps file
gsn_define_colormap(wks,"<wbr>BlAqGrYeOrRe") ; choose colormap
res = True
res@cnFillOn = True ; turn on color
res@cnFillMode = "RasterFill" ; turn on raster mode ... optional
res@cnLinesOn = False ; turn off contour lines<br> res@cnLineLabelsOn = False<br> res@cnFillPalette = </span><span style="font-family:arial,helvetica,sans-serif">"BlAqGrYeOrRe" ; your choice<br></span></pre><pre><span style="font-family:arial,helvetica,sans-serif"> x@lat2d = lat2d<br> x@lon2d = lon2d <br></span></pre><pre><span style="font-family:arial,helvetica,sans-serif"> nt = 0
plot = gsn_csm_contour_map_ce(wks,x(<wbr>nt,:,:),res)</span></pre></div></div><div class="gmail_extra"><br><div class="gmail_quote"><div><div class="h5">On Tue, Oct 24, 2017 at 11:37 PM, sjd.marjani <span dir="ltr"><<a href="mailto:sjd.marjani@ut.ac.ir" target="_blank">sjd.marjani@ut.ac.ir</a>></span> wrote:<br></div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div class="h5"><div style="font-size:10pt;font-family:Tahoma,Arial,Helvetica,sans-serif">
<p>Hello . I have problem with CMIP5 sea surface temperature(tos).</p>
<p>I dont know how to read it in ncl and how to plot it (the shape of data is not regular),</p>
<p>its more than 1week I'm working on it .</p>
<p>could YOU please help me ,send me an example script or something like this ???</p>
<p>thank you</p>
<p>best regaurd</p>
<p>Sajede,MS student </p>
<p><br></p>
<p><br></p>
</div>
<br></div></div><span class="">______________________________<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" rel="noreferrer" target="_blank">http://mailman.ucar.edu/mailma<wbr>n/listinfo/ncl-talk</a><br>
<br></span></blockquote></div><br></div>
</blockquote></div><br></div>