<div dir="ltr"><div class="gmail_default" style="font-size:small">Hi Lyndon,</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">I think the problem is simply that &quot;conform&quot; is not being used correctly.  The error is giving you a hint as to what the problem is:</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small"><b style="font-size:12.8px">fatal:conform: the dimensions sizes of the second argument do not match those indicated by the third argument</b><br></div><div class="gmail_default" style="font-size:small"><b style="font-size:12.8px"><br></b></div><div class="gmail_default" style="font-size:small">The way conform works is that the first argument represents an array that you want to conform a smaller array (the second argument) to. The third argument must be a list of dimension indexes where the dimensions of the small array match the larger array. </div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">For example, if you have a 3D array (arr3d) of size 10 x 20 x 30, and a 1D array (arr1d) of size 20 that you want to expand to the size of arr3d, then the dimension index you need to use is 1 (dimension numbering starts at 0):</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">  arr1d_expand = conform(arr3d,arr1d,1)</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">Or, if you have a 2D array of size 10 x 30 then the dimension indexes would be (/0,2/):</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">arr2d_expand = conform(arr3d,arr2d,(/0,2/))</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">In your case, you are trying to copy a 1D array of latitudes to a larger array, and using &quot;1&quot; as your dimension index. However, y is dimensioned lat x lon x time, so you should be using &quot;0&quot; as the dimension index:</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">   pw     = y*conform(y, clat, 0)<br></div><div class="gmail_default" style="font-size:small"><b style="font-size:12.8px"><br></b></div><div class="gmail_default" style="font-size:small">As for your second question, if you are asking how to create an XY plot with multiple curves, then see our XY plotting page:</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default"><a href="http://www.ncl.ucar.edu/Applications/xy.shtml">http://www.ncl.ucar.edu/Applications/xy.shtml</a><br></div><div class="gmail_default"><br></div><div class="gmail_default">To get &quot;nice&quot; time labels on the X axis, you can use the &quot;time_axis_labels&quot; function. See:</div><div class="gmail_default"><br></div><div class="gmail_default"><a href="http://www.ncl.ucar.edu/Applications/time_labels.shtml">http://www.ncl.ucar.edu/Applications/time_labels.shtml</a><br></div><div class="gmail_default"><br></div><div class="gmail_default">--Mary</div><div class="gmail_default"><br></div><div class="gmail_default"><br></div><div class="gmail_default" style="font-size:small"><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Feb 10, 2017 at 2:01 AM, Lyndon Mark Olaguera <span dir="ltr">&lt;<a href="mailto:olagueralyndonmark429@gmail.com" target="_blank">olagueralyndonmark429@gmail.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 dir="ltr">Dear fellow NCL users,<div><br></div><div>I am trying to perform an EOF analysis on daily olr anomalies. I tried to extract the values of eof_ts but they are very large (-100 to 100). Based from the documentation (<a href="http://www.ncl.ucar.edu/Document/Functions/Contributed/eofunc_Wrap.shtml" target="_blank">http://www.ncl.ucar.edu/<wbr>Document/Functions/<wbr>Contributed/eofunc_Wrap.shtml</a>)<wbr>, the values should be weighted first.  Attached is the script that I am using.</div><div><br></div><div>Here is the link to the data:</div><div><br></div><div>[Link to the anomalies] <a href="https://drive.google.com/file/d/0B9faET7Bc2o8eHZKSi1qX3JLeFU/view?usp=sharing" target="_blank">https://drive.google.com/file/<wbr>d/0B9faET7Bc2o8eHZKSi1qX3JLeFU<wbr>/view?usp=sharing</a><br></div><div><br></div><div>[Link to the raw data] <a href="https://drive.google.com/file/d/0B9faET7Bc2o8RjhGM2E1Ni1MTVU/view?usp=sharing" target="_blank">https://drive.google.com<wbr>/file/d/0B9faET7Bc2o8RjhGM2E1N<wbr>i1MTVU/view?usp=sharing</a></div><div><br></div><div>I encountered the following errors:</div><div><br></div><div><b>fatal:conform: the dimensions sizes of the second argument do not match those indicated by the third argument</b><br></div><div><b><br></b></div><div>This part of the code is the problem.</div><div><br></div><div><div>  rad    = 4.*atan(1.)/180.</div><div>  clat   = f-&gt;lat</div><div>  clat   = sqrt( cos(rad*clat) )</div><div>;*****************************<wbr>*******************</div><div>;Weight all observation</div><div>;*****************************<wbr>*******************</div><div>  pw     = y</div><div> <b> pw     = y*conform(y, clat, 1)</b></div><div>  </div><div>  xw     = pw({lat|latS:latN},{lon|lonL:l<wbr>onR},time|:)</div><div><br></div><div>  eof    = eofunc_Wrap(xw,neof, False)</div><div>  eof_ts = eofunc_ts_Wrap(xw,eof,False)</div></div><div><br></div><div><br></div><div>Also, I would like to plot a similar figure attached to this mail. The attached figure is Amplitude of the PC&#39;s (y axis) versus the days (x) axis averaged from 1979-1992.</div><div><br></div><div>Any suggestion on how can I do this correctly?</div><div>I&#39;ll appreciate any help.</div><div><br></div><div><br></div><div>Sincerely,</div><div><br></div><div>Lyndon </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>