[ncl-talk] (Error:conform) Weighting observations before applying EOF

Lyndon Mark Olaguera olagueralyndonmark429 at gmail.com
Fri Feb 10 00:01:01 MST 2017


Dear fellow NCL users,

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 (
http://www.ncl.ucar.edu/Document/Functions/Contributed/eofunc_Wrap.shtml),
the values should be weighted first.  Attached is the script that I am
using.

Here is the link to the data:

[Link to the anomalies] https://drive.google.com/file/d/
0B9faET7Bc2o8eHZKSi1qX3JLeFU/view?usp=sharing

[Link to the raw data] https://drive.google.com/file/d/
0B9faET7Bc2o8RjhGM2E1Ni1MTVU/view?usp=sharing

I encountered the following errors:

*fatal:conform: the dimensions sizes of the second argument do not match
those indicated by the third argument*

This part of the code is the problem.

  rad    = 4.*atan(1.)/180.
  clat   = f->lat
  clat   = sqrt( cos(rad*clat) )
;************************************************
;Weight all observation
;************************************************
  pw     = y
 * pw     = y*conform(y, clat, 1)*

  xw     = pw({lat|latS:latN},{lon|lonL:lonR},time|:)

  eof    = eofunc_Wrap(xw,neof, False)
  eof_ts = eofunc_ts_Wrap(xw,eof,False)


Also, I would like to plot a similar figure attached to this mail. The
attached figure is Amplitude of the PC's (y axis) versus the days (x) axis
averaged from 1979-1992.

Any suggestion on how can I do this correctly?
I'll appreciate any help.


Sincerely,

Lyndon
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20170210/820719e2/attachment.html 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: EOF_mjoclivar.ncl
Type: application/octet-stream
Size: 7125 bytes
Desc: not available
Url : http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20170210/820719e2/attachment.obj 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Screenshot from 2017-02-10 15-50-00.png
Type: image/png
Size: 16181 bytes
Desc: not available
Url : http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20170210/820719e2/attachment.png 


More information about the ncl-talk mailing list