<div dir="ltr"><div>Hi,<br><br>Its almost impossible to say with certainty, as we have no idea what line 199 corresponds to in your script fragment. However as a general comment, you have a do-loop and within that are explicitly making the same 10 plots on each iteration.  I can&#39;t recall offhand if one can re-assign a plot variable without first deleting its previous value.<br><br></div>Rick<br><br></div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Sep 9, 2014 at 1:42 AM, azizul haque <span dir="ltr">&lt;<a href="mailto:haque.azizul320@yahoo.com" target="_blank">haque.azizul320@yahoo.com</a>&gt;</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:times new roman,new york,times,serif;font-size:10pt"><div>Hi All,</div><div>I am plotting 10 plots from CMIP5(5/2). dat reading is fine and during visualization it shows following error message. </div><div>****<span style="font-family:Menlo;font-size:11px">fatal:[&quot;NclVar.c&quot;:1390]:Assignment type mismatch, right hand side can&#39;t be coerced to type of left hand side</span></div>
<div style="margin-top:0px;margin-bottom:0px;font-size:11px;font-family:Menlo">fatal:[&quot;Execute.c&quot;:8567]:Execute: Error occurred at or near line 199 in file cmipdaily5sa.ncl************</div><div style="margin-top:0px;margin-bottom:0px;font-size:11px;font-family:Menlo">You can find a parts of the script at the line 199</div><div style="margin-top:0px;margin-bottom:0px;font-size:11px;font-family:Menlo">;plotting procedure</div><div style="margin-top:0px;margin-bottom:0px;font-size:11px;font-family:Menlo"> plot = new(10,graphic)</div><div style="margin-top:0px;margin-bottom:0px;font-size:11px;font-family:Menlo">  do i=0,9</div><div style="margin-top:0px;margin-bottom:0px;font-size:11px;font-family:Menlo">      res1@gsnLeftString = &quot;HadGEM2-ES: Pr: (&quot;+pr0Dayavg@units+&quot;)&quot;</div><div style="margin-top:0px;margin-bottom:0px;font-size:11px;font-family:Menlo">      res1@gsnRightString = &quot;Daily Mean:(&quot;+pr0Dayavg@units+&quot;)&quot;</div><div style="margin-top:0px;margin-bottom:0px;font-size:11px;font-family:Menlo">      res1@gsnLeftStringFontHeightF = 0.010</div><div style="margin-top:0px;margin-bottom:0px;font-size:11px;font-family:Menlo">      res1@gsnRightStringFontHeightF = 0.010</div><div style="margin-top:0px;margin-bottom:0px;font-size:11px;font-family:Menlo">      plot(0) = gsn_csm_contour_map(wks,pr0Dayavg,res1)</div><div style="margin-top:0px;margin-bottom:0px;font-size:11px;font-family:Menlo;min-height:13px"><br></div><div style="margin-top:0px;margin-bottom:0px;font-size:11px;font-family:Menlo">      res1@gsnLeftString = &quot;CNRM-CM5: Pr: (&quot;+pr1Dayavg@units+&quot;)&quot;</div><div style="margin-top:0px;margin-bottom:0px;font-size:11px;font-family:Menlo">      res1@gsnRightString = &quot;Daily Mean:(&quot;+pr1Dayavg@units+&quot;)&quot;</div><div style="margin-top:0px;margin-bottom:0px;font-size:11px;font-family:Menlo">      ;res1@gsnLeftStringFontHeightF = 0.015</div><div style="margin-top:0px;margin-bottom:0px;font-size:11px;font-family:Menlo">      ;res1@gsnRightStringFontHeightF = 0.015</div><div style="margin-top:0px;margin-bottom:0px;font-size:11px;font-family:Menlo">      plot(1) = gsn_csm_contour_map(wks,pr1Dayavg,res1)</div><div style="margin-top:0px;margin-bottom:0px;font-size:11px;font-family:Menlo;min-height:13px"><br></div><div style="margin-top:0px;margin-bottom:0px;font-size:11px;font-family:Menlo">      res1@gsnLeftString = &quot;CESM1-BGC: Pr:
 (&quot;+pr2Dayavg@units+&quot;)&quot;</div><div style="margin-top:0px;margin-bottom:0px;font-size:11px;font-family:Menlo">      res1@gsnRightString = &quot;Daily Mean:(&quot;+pr2Dayavg@units+&quot;)&quot;</div><div style="margin-top:0px;margin-bottom:0px;font-size:11px;font-family:Menlo">      ;res1@gsnLeftStringFontHeightF = 0.015</div><div style="margin-top:0px;margin-bottom:0px;font-size:11px;font-family:Menlo">      ;res1@gsnRightStringFontHeightF = 0.015</div><div style="margin-top:0px;margin-bottom:0px;font-size:11px;font-family:Menlo">


















</div><div style="margin-top:0px;margin-bottom:0px;font-size:11px;font-family:Menlo">      plot(2) = gsn_csm_contour_map(wks,pr2Dayavg,res1)</div><div style="margin-top:0px;margin-bottom:0px;font-size:11px;font-family:Menlo">res1@gsnLeftString = &quot;NorESM1-M: Pr: (&quot;+pr3Dayavg@units+&quot;)&quot;</div><div style="margin-top:0px;margin-bottom:0px;font-size:11px;font-family:Menlo">      res1@gsnRightString = &quot;Daily Mean:(&quot;+pr3Dayavg@units+&quot;)&quot;</div><div style="margin-top:0px;margin-bottom:0px;font-size:11px;font-family:Menlo">      plot(3) = gsn_csm_contour_map(wks,pr3Dayavg,res1)</div><div style="margin-top:0px;margin-bottom:0px;font-size:11px;font-family:Menlo;min-height:13px"><br></div><div style="margin-top:0px;margin-bottom:0px;font-size:11px;font-family:Menlo">      res1@gsnLeftString
 = &quot;GFDL-ESM2M: Pr: (&quot;+pr4Dayavg@units+&quot;)&quot;</div><div style="margin-top:0px;margin-bottom:0px;font-size:11px;font-family:Menlo">      res1@gsnRightString = &quot;Daily Mean:(&quot;+pr4Dayavg@units+&quot;)&quot;</div><div style="margin-top:0px;margin-bottom:0px;font-size:11px;font-family:Menlo">      plot(4) = gsn_csm_contour_map(wks,pr4Dayavg,res1)</div><div style="margin-top:0px;margin-bottom:0px;font-size:11px;font-family:Menlo;min-height:13px"><br></div><div style="margin-top:0px;margin-bottom:0px;font-size:11px;font-family:Menlo">      res1@gsnLeftString = &quot;GFDL-ESM2G: Pr: (&quot;+pr5Dayavg@units+&quot;)&quot;</div><div style="margin-top:0px;margin-bottom:0px;font-size:11px;font-family:Menlo">      res1@gsnRightString = &quot;Daily Mean:(&quot;+pr5Dayavg@units+&quot;)&quot;</div><div style="margin-top:0px;margin-bottom:0px;font-size:11px;font-family:Menlo">      plot(5) = gsn_csm_contour_map(wks,pr5Dayavg,res1)</div><div style="margin-top:0px;margin-bottom:0px;font-size:11px;font-family:Menlo;min-height:13px"><br></div><div style="margin-top:0px;margin-bottom:0px;font-size:11px;font-family:Menlo">      res1@gsnLeftString = &quot;MIROC-ESM: Pr: (&quot;+pr6Dayavg@units+&quot;)&quot;</div><div style="margin-top:0px;margin-bottom:0px;font-size:11px;font-family:Menlo">      res1@gsnRightString = &quot;Daily Mean:(&quot;+pr6Dayavg@units+&quot;)&quot;</div><div style="margin-top:0px;margin-bottom:0px;font-size:11px;font-family:Menlo">      plot(6) = gsn_csm_contour_map(wks,pr6Dayavg,res1)</div><div style="margin-top:0px;margin-bottom:0px;font-size:11px;font-family:Menlo;min-height:13px"><br></div><div style="margin-top:0px;margin-bottom:0px;font-size:11px;font-family:Menlo">      res1@gsnLeftString = &quot;MPI-ESM1-LR: Pr: (&quot;+pr7Dayavg@units+&quot;)&quot;</div><div style="margin-top:0px;margin-bottom:0px;font-size:11px;font-family:Menlo">      res1@gsnRightString = &quot;Daily Mean:(&quot;+pr7Dayavg@units+&quot;)&quot;</div><div style="margin-top:0px;margin-bottom:0px;font-size:11px;font-family:Menlo">      plot(7) = gsn_csm_contour_map(wks,pr7Dayavg,res1)</div><div style="margin-top:0px;margin-bottom:0px;font-size:11px;font-family:Menlo;min-height:13px"><br></div><div style="margin-top:0px;margin-bottom:0px;font-size:11px;font-family:Menlo">      res1@gsnLeftString = &quot;bcc-csm1-1-m: Pr: (&quot;+pr8Dayavg@units+&quot;)&quot;</div><div style="margin-top:0px;margin-bottom:0px;font-size:11px;font-family:Menlo">      res1@gsnRightString = &quot;Daily
 Mean:(&quot;+pr8Dayavg@units+&quot;)&quot;</div><div style="margin-top:0px;margin-bottom:0px;font-size:11px;font-family:Menlo">





















</div><div style="margin-top:0px;margin-bottom:0px;font-size:11px;font-family:Menlo">      plot(8) = gsn_csm_contour_map(wks,pr8Dayavg,res1)</div><div style="margin-top:0px;margin-bottom:0px;font-size:11px;font-family:Menlo">      </div><div style="margin-top:0px;margin-bottom:0px;font-size:11px;font-family:Menlo">      res1@gsnLeftString = &quot;GPCP: Pr: (&quot;+pr9Dayavg@units+&quot;)&quot;</div><div style="margin-top:0px;margin-bottom:0px;font-size:11px;font-family:Menlo">      res1@gsnRightString = &quot;Daily Mean:(&quot;+pr9Dayavg@units+&quot;)&quot;</div><div style="margin-top:0px;margin-bottom:0px;font-size:11px;font-family:Menlo">      plot(9) = gsn_csm_contour_map(wks,pr9Dayavg,res1)</div><div style="margin-top:0px;margin-bottom:0px;font-size:11px;font-family:Menlo">


</div><div style="margin-top:0px;margin-bottom:0px;font-size:11px;font-family:Menlo">    end do</div><div style="margin-top:0px;margin-bottom:0px;font-size:11px;font-family:Menlo"><br></div><div style="margin-top:0px;margin-bottom:0px;font-size:11px;font-family:Menlo;color:rgb(0,0,0);background-color:transparent;font-style:normal">Your suggestion are highly appreciated.</div><div style="margin-top:0px;margin-bottom:0px;font-size:11px;font-family:Menlo;color:rgb(0,0,0);background-color:transparent;font-style:normal">Regards</div><span class="HOEnZb"><font color="#888888"><div style="margin-top:0px;margin-bottom:0px;font-size:11px;font-family:Menlo;color:rgb(0,0,0);background-color:transparent;font-style:normal">azizul</div><div><br></div><div><br></div></font></span></div></div><br>_______________________________________________<br>
ncl-talk mailing list<br>
List instructions, subscriber options, unsubscribe:<br>
<a href="http://mailman.ucar.edu/mailman/listinfo/ncl-talk" target="_blank">http://mailman.ucar.edu/mailman/listinfo/ncl-talk</a><br>
<br></blockquote></div><br></div>