<div dir="ltr"><div class="gmail_default" style="font-size:small">Dear Sajede,</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">Without being able to see your data or run your script, it's almost impossible to debug your code.</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">You have several hard-coded index values which we have no way of knowing if they are correct.</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">For example, how were index values 1211, 1559, 1583, and 1643 chosen below? </div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default"><div class="gmail_default"><font face="monospace, monospace">SST2 = SST(1211:1559:12,:,:)</font></div><div class="gmail_default"><font face="monospace, monospace">meanClimatology=dim_avg_n_Wrap(SST2,0) ;mean of DECEMBER in period of 1950_1979</font></div><div class="gmail_default"><font face="monospace, monospace"><br></font></div><div class="gmail_default"><font face="monospace, monospace">exel=SST(1583,:,:) ;extreme elnino 1981</font></div><div class="gmail_default"><font face="monospace, monospace">anomexel=exel - meanClimatology</font></div><div class="gmail_default"><font face="monospace, monospace">;........................................................................................</font></div><div class="gmail_default"><font face="monospace, monospace">el=SST(1583,:,:) ;elnino1982</font></div><div class="gmail_default"><font face="monospace, monospace">anomel=el - meanClimatology</font></div><div class="gmail_default"><font face="monospace, monospace">;....................................................................................</font></div><div class="gmail_default"><font face="monospace, monospace">exla=SST(1643,:,:)</font></div></div><div class="gmail_extra"><br></div><div class="gmail_extra"><div class="gmail_default" style="font-size:small">Did you debug your code to make sure these values are correct? That is, did you use print and printVarSummary to examine the variables and make sure you have the correct time indexes?</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">It is much cleaner and safer to use functions like "cd_calendar", and "ind" to calculate and select index values for the desired time range. </div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">For some cd_calendar/ind examples, see:</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">panel_33.ncl:</div><div class="gmail_default" style="font-size:small"><a href="http://www.ncl.ucar.edu/Applications/panel.shtml#ex33">http://www.ncl.ucar.edu/Applications/panel.shtml#ex33</a><br></div><div class="gmail_default"><br></div><div class="gmail_default">indices_nino_1.ncl:</div><div class="gmail_default"><a href="http://www.ncl.ucar.edu/Applications/indices.shtml">http://www.ncl.ucar.edu/Applications/indices.shtml</a><br></div><div class="gmail_default"><br></div><div class="gmail_default" style="font-size:small">If you continue to have problems, it would help if you explain what the code is doing and what these values represent. Also, it helps if you describe why you think the plot is wrong.</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">Thanks,</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">--Mary</div><br><div class="gmail_quote">On Mon, Jan 1, 2018 at 2:07 PM, sjd.marjani via ncl-talk <span dir="ltr"><<a href="mailto:ncl-talk@ucar.edu" target="_blank">ncl-talk@ucar.edu</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div style="font-size:10pt;font-family:Tahoma,Arial,Helvetica,sans-serif">
<p>Hi and HAPPY new YEAR .</p>
<p>my name is Sajede</p>
<p><br></p>
<p>I send you my script in Word Document</p>
<p>in that ,i highlightet 2 parts </p>
<p>=> part1 is "YELLOW" which contains my problem</p>
<p>=>part2 is "GREEN" which has no problem in ploting</p>
<p>and also i send you the related plots in png format</p>
<p>******************************<wbr>********************</p>
<p>my problem is why the PART.png has PHASE differences?</p>
<p>Thank YOU in advance</p>
<p>best regard</p>
<p> Sajede</p>
</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></div>