[ncl-talk] correlation of EOF1 CRU precip to global wind

Mary Haley haley at ucar.edu
Sun May 24 11:08:03 MDT 2015


The error message is telling you exactly what the problem is:


*fatal:escorc: The last dimension of x must be equal to the last dimension
of y**fatal:["Execute.c":8578]:Execute: Error occurred at or near line 130
in file eof_1corre.ncl*

The error is indicating that "q" and "y" do not have the same size "time"
dimension. The escorc functions requires that the rightmost dimension (in
this case, "time") be the same size:

http://www.ncl.ucar.edu/Document/Functions/Built-in/escorc.shtml

It is hard to follow all the output in your email, but it looks like your
"wind" variable only has 1 time value, while your eof_ts variable has 59
time values.

--Mary



On Wed, May 20, 2015 at 5:22 AM, Nana kofi Appiah-badu <justappia at gmail.com>
wrote:

> Dear all,
>
> I am trying to create plots showing the correlation of the first principle
> component or EOF1 of CRU precipitation data against global wind.
> Below is the error message that shows up even though the wind data ranges
> from 1950 to 2008 as the eof1.
>
>
> Variable: cru
>
>
>  Type: double
>
>
>  Total Size: 22474752 bytes
>
>
>  2809344 values
>
>
>  Number of Dimensions: 3
>
>
>  Dimensions and sizes: [time | 708] x [lat | 62] x [lon | 64]
>
>
>  Coordinates:
>
>
>  time: [18277..39796]
>
>
>  lat: [-13.75..16.75]
>
>
>  lon: [22.25..53.75]
>
>
>  Number Of Attributes: 5
>
>
>  long_name : precipitation
>
>
>  units : mm
>
>
>  correlation_decay_distance : 450
>
>
>  _FillValue : 9.969209968386869e+36
>
>
>  missing_value : 9.969209968386869e+36
>
>
>
>
>
>
>  Variable: eof
>
>
>  Type: double
>
>
>  Total Size: 31744 bytes
>
>
>  3968 values
>
>
>  Number of Dimensions: 3
>
>
>  Dimensions and sizes: [evn | 1] x [lat | 62] x [lon | 64]
>
>
>  Coordinates:
>
>
>  evn: [1..1]
>
>
>  lat: [-13.75..16.75]
>
>
>  lon: [22.25..53.75]
>
>
>  Number Of Attributes: 7
>
>
>  eval_transpose : 6230.484509993911
>
>
>  eval : 299063.2564797077
>
>
>  pcvar : 14.66636
>
>
>  matrix : covariance
>
>
>  method : transpose
>
>
>  _FillValue : 9.969209968386869e+36
>
>
>  long_name : EOF: Wgt: MAM: precipitation
>
>
>
>
>  Variable: eof_ts
>
>
>  Type: double
>
>
>  Total Size: 472 bytes
>
>
>  59 values
>
>
>  Number of Dimensions: 2
>
>
>  Dimensions and sizes: [evn | 1] x [time | 59]
>
>
>  Coordinates:
>
>
>  evn: [1..1]
>
>
>  time: [18367..39552]
>
>
>  Number Of Attributes: 4
>
>
>  ts_mean : -2084.077490922034
>
>
>  matrix : covariance
>
>
>  _FillValue : 9.969209968386869e+36
>
>
>  long_name : EOF: Amplitude: Wgt: MAM: precipitation
>
>
>
>
>
>
>  Variable: eof_ts
>
>
>  Type: double
>
>
>  Total Size: 472 bytes
>
>
>  59 values
>
>
>  Number of Dimensions: 2
>
>
>  Dimensions and sizes: [evn | 1] x [time | 59]
>
>
>  Coordinates:
>
>
>  evn: [1..1]
>
>
>  time: [18367..39552]
>
>
>  Number Of Attributes: 4
>
>
>  ts_mean : -2084.077490922034
>
>
>  matrix : covariance
>
>
>  _FillValue : 9.969209968386869e+36
>
>
>  long_name : EOF: Amplitude: Wgt: MAM: precipitation
>
>
>  (0,0) -0.04852069658137
>
>
>  (0,1) -0.3879180575260303
>
>
>  (0,2) 0.04585888203417384
>
>
>  (0,3) 0.05641729826668909
>
>
>  (0,4) -0.02200494482216026
>
>
>  (0,5) 0.1119316922446675
>
>
>  (0,6) 0.1825698852992764
>
>
>  (0,7) -0.1925928776445882
>
>
>  (0,8) 0.06968356618451059
>
>
>  (0,9) 0.0308479567560801
>
>
>  (0,10) -0.103940740098142
>
>
>  (0,11) 0.1551340258708342
>
>
>  (0,12) -0.08744655143740696
>
>
>  (0,13) -0.2034646997379474
>
>
>  (0,14) -0.1521847801378498
>
>
>  (0,15) 0.2057134534551027
>
>
>  (0,16) -0.1008788967515174
>
>
>  (0,17) -0.1971886320472188
>
>
>  (0,18) -0.3211429386727306
>
>
>  (0,19) 0.1073164453977467
>
>
>  (0,20) -0.1951013093417651
>
>
>  (0,21) 0.02648073842849228
>
>
>  (0,22) 0.1106573360080075
>
>
>  (0,23) 0.2037197908402772
>
>
>  (0,24) 0.02323627246143649
>
>
>  (0,25) 0.09889282182036438
>
>
>  (0,26) 0.07305978740135215
>
>
>  (0,27) -0.08551409601726166
>
>
>  (0,28) -0.05832184723579974
>
>
>  (0,29) -0.04506572638246718
>
>
>  (0,30) 0.2026118551670683
>
>
>  (0,31) -0.3090735482314485
>
>
>  (0,32) -0.06001178831655742
>
>
>  (0,33) 0.1088135164842096
>
>
>  (0,34) 0.2502510312270005
>
>
>  (0,35) -0.1153089634339743
>
>
>  (0,36) -0.09251974383207252
>
>
>  (0,37) -0.09009794541281614
>
>
>  (0,38) -0.04652133783934691
>
>
>  (0,39) 0.03202400134394479
>
>
>  (0,40) -0.09640102054078314
>
>
>  (0,41) 0.1165107560944641
>
>
>  (0,42) 0.1598013795070942
>
>
>  (0,43) 0.1642265080642965
>
>
>  (0,44) 0.07787784687523368
>
>
>  (0,45) -0.01675428510872129
>
>
>  (0,46) -0.003662307269316205
>
>
>  (0,47) -0.05027029048194223
>
>
>  (0,48) -0.09943548003078122
>
>
>  (0,49) 0.121241557327342
>
>
>  (0,50) 0.2411262395839305
>
>
>  (0,51) 0.1610744235184807
>
>
>  (0,52) 0.06609552862825346
>
>
>  (0,53) -0.09035884865059286
>
>
>  (0,54) 0.02667727563641793
>
>
>  (0,55) 0.01166604426275131
>
>
>  (0,56) -0.008203700691609897
>
>
>  (0,57) 0.0280614455068301
>
>
>  (0,58) 0.01032669257789229
>
>
>
>
>  Variable: wind
>
>
>  Type: float
>
>
>  Total Size: 42048 bytes
>
>
>  10512 values
>
>
>  Number of Dimensions: 3
>
>
>  Dimensions and sizes: [time | 1] x [lat | 73] x [lon | 144]
>
>
>  Coordinates:
>
>
>  time: [-15766872..-15766872]
>
>
>  lat: [90..-90]
>
>
>  lon: [ 0..357.5]
>
>
>  Number Of Attributes: 15
>
>
>  long_name : u-wind
>
>
>  valid_range : ( -99999, 99999 )
>
>
>  actual_range : ( -10.4622, 377.2 )
>
>
>  units : m/s
>
>
>  add_offset : 0
>
>
>  scale_factor : 1
>
>
>  missing_value : -9.96921e+36
>
>
>  precision : 99
>
>
>  least_significant_digit : 99
>
>
>  var_desc : u-wind
>
>
>  dataset : CDC Derived NCEP Reanalysis Products
>
>
>  level_desc : 1000mb Pressure Level
>
>
>  statistic : Composite
>
>
>  parent_stat : Other
>
>
>  _FillValue : -9.96921e+36
>
>
>
>
>  Variable: eof_ts
>
>
>  Type: double
>
>
>  Total Size: 472 bytes
>
>
>  59 values
>
>
>  Number of Dimensions: 2
>
>
>  Dimensions and sizes: [evn | 1] x [time | 59]
>
>
>  Coordinates:
>
>
>  evn: [1..1]
>
>
>  time: [18367..39552]
>
>
>  Number Of Attributes: 4
>
>
>  ts_mean : -2084.077490922034
>
>
>  matrix : covariance
>
>
>  _FillValue : 9.969209968386869e+36
>
>
>  long_name : EOF: Amplitude: Wgt: MAM: precipitation
>
>
>
>
>
>
>  Variable: eof_ts
>
>
>  Type: double
>
>
>  Total Size: 472 bytes
>
>
>  59 values
>
>
>  Number of Dimensions: 2
>
>
>  Dimensions and sizes: [evn | 1] x [time | 59]
>
>
>  Coordinates:
>
>
>  evn: [1..1]
>
>
>  time: [18367..39552]
>
>
>  Number Of Attributes: 4
>
>
>  ts_mean : -2084.077490922034
>
>
>  matrix : covariance
>
>
>  _FillValue : 9.969209968386869e+36
>
>
>  long_name : EOF: Amplitude: Wgt: MAM: precipitation
>
>
>  (0,0) -0.04852069658137
>
>
>  (0,1) -0.3879180575260303
>
>
>  (0,2) 0.04585888203417384
>
>
>  (0,3) 0.05641729826668909
>
>
>  (0,4) -0.02200494482216026
>
>
>  (0,5) 0.1119316922446675
>
>
>  (0,6) 0.1825698852992764
>
>
>  (0,7) -0.1925928776445882
>
>
>  (0,8) 0.06968356618451059
>
>
>  (0,9) 0.0308479567560801
>
>
>  (0,10) -0.103940740098142
>
>
>  (0,11) 0.1551340258708342
>
>
>  (0,12) -0.08744655143740696
>
>
>  (0,13) -0.2034646997379474
>
>
>  (0,14) -0.1521847801378498
>
>
>  (0,15) 0.2057134534551027
>
>
>  (0,16) -0.1008788967515174
>
>
>  (0,17) -0.1971886320472188
>
>
>  (0,18) -0.3211429386727306
>
>
>  (0,19) 0.1073164453977467
>
>
>  (0,20) -0.1951013093417651
>
>
>  (0,21) 0.02648073842849228
>
>
>  (0,22) 0.1106573360080075
>
>
>  (0,23) 0.2037197908402772
>
>
>  (0,24) 0.02323627246143649
>
>
>  (0,25) 0.09889282182036438
>
>
>  (0,26) 0.07305978740135215
>
>
>  (0,27) -0.08551409601726166
>
>
>  (0,28) -0.05832184723579974
>
>
>  (0,29) -0.04506572638246718
>
>
>  (0,30) 0.2026118551670683
>
>
>  (0,31) -0.3090735482314485
>
>
>  (0,32) -0.06001178831655742
>
>
>  (0,33) 0.1088135164842096
>
>
>  (0,34) 0.2502510312270005
>
>
>  (0,35) -0.1153089634339743
>
>
>  (0,36) -0.09251974383207252
>
>
>  (0,37) -0.09009794541281614
>
>
>  (0,38) -0.04652133783934691
>
>
>  (0,39) 0.03202400134394479
>
>
>  (0,40) -0.09640102054078314
>
>
>  (0,41) 0.1165107560944641
>
>
>  (0,42) 0.1598013795070942
>
>
>  (0,43) 0.1642265080642965
>
>
>  (0,44) 0.07787784687523368
>
>
>  (0,45) -0.01675428510872129
>
>
>  (0,46) -0.003662307269316205
>
>
>  (0,47) -0.05027029048194223
>
>
>  (0,48) -0.09943548003078122
>
>
>  (0,49) 0.121241557327342
>
>
>  (0,50) 0.2411262395839305
>
>
>  (0,51) 0.1610744235184807
>
>
>  (0,52) 0.06609552862825346
>
>
>  (0,53) -0.09035884865059286
>
>
>  (0,54) 0.02667727563641793
>
>
>  (0,55) 0.01166604426275131
>
>
>  (0,56) -0.008203700691609897
>
>
>  (0,57) 0.0280614455068301
>
>
>  (0,58) 0.01032669257789229
>
>
>  *fatal:escorc: The last dimension of x must be equal to the last
> dimension of y*
>
>
>  *fatal:["Execute.c":8578]:Execute: Error occurred at or near line 130 in
> file eof_1corre.ncl*
>
>
>  The script is attached.
> I will be grateful if someone could go through for me in solving the error
> problem
>
> Thank you.
>
> Nana
>
> _______________________________________________
> ncl-talk mailing list
> List instructions, subscriber options, unsubscribe:
> http://mailman.ucar.edu/mailman/listinfo/ncl-talk
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20150524/6bbad007/attachment.html 


More information about the ncl-talk mailing list