[ncl-talk] two data sources and different dimensions
Wickramage Chathurika
wickramagechathurika at rocketmail.com
Sat Jun 23 08:39:02 MDT 2018
Hello,
I am trying to do a correlation between SST and Monsoon Index. Here, I have used two different data sources. Wind from NCEP/NCER and THETA from ECCO2. Now, I have a dimension problem. Please, anyone help me to overcome this problem. Here, I have attached the script.
This is what I have gotten after running the script:
Copyright (C) 1995-2017 - All Rights Reserved
University Corporation for Atmospheric Research
NCAR Command Language Version 6.4.0
The use of this software is governed by a License Agreement.
See http://www.ncl.ucar.edu/ for more details.
Variable: f
Type: file
File path: /mnt/e/data/wind/NCEP2_U_month.nc
Number of global attributes: 2
Number of dimensions: 5
Number of variables: 7
Variable: vn
Type: string
Total Size: 56 bytes
7 values
Number of Dimensions: 1
Dimensions and sizes: [7]
Coordinates:
(0) LON17_49
(1) LAT33_53
(2) LEV
(3) LEV_bnds
(4) TIME
(5) TIME_bnds
(6) UWND
Variable: U200
Type: float
Total Size: 263088 bytes
65772 values
Number of Dimensions: 3
Dimensions and sizes: [TIME | 252] x [LAT33_53 | 9] x [LON17_49 | 29]
Coordinates:
TIME: [727199..734839]
LAT33_53: [ 0.. 20]
LON17_49: [ 40.. 110]
Number Of Attributes: 5
LEV : 200
missing_value : 32766
_FillValue : 32766
long_name : monthly u-wind on pressure levels
history : From uwnd
Variable: U2
Type: float
Total Size: 21924 bytes
5481 values
Number of Dimensions: 3
Dimensions and sizes: [TIME | 21] x [LAT33_53 | 9] x [LON17_49 | 29]
Coordinates:
TIME: [727381..734686]
LAT33_53: [ 0.. 20]
LON17_49: [ 40.. 110]
Number Of Attributes: 6
_FillValue : 32766
LEV : 200
long_name : JJA: monthly u-wind on pressure levels
history : From uwnd
missing_value : 32766
NMO : 6
Variable: U
Type: float
Total Size: 84 bytes
21 values
Number of Dimensions: 1
Dimensions and sizes: [TIME | 21]
Coordinates:
TIME: [727381..734686]
Number Of Attributes: 1
_FillValue : 32766
Variable: U
Type: float
Total Size: 84 bytes
21 values
Number of Dimensions: 1
Dimensions and sizes: [TIME | 21]
Coordinates:
TIME: [727381..734686]
Number Of Attributes: 1
_FillValue : 32766
(0) -16.91958
(1) -18.22805
(2) -19.30416
(3) -18.4297
(4) -17.14309
(5) -15.83012
(6) -18.74567
(7) -18.89442
(8) -18.58584
(9) -18.27925
(10) -17.42387
(11) -17.56035
(12) -17.99417
(13) -17.80516
(14) -16.8338
(15) -16.60852
(16) -17.11924
(17) -14.14442
(18) -15.73562
(19) -15.06862
(20) -16.1129
Variable: U2mean
Type: float
Total Size: 4 bytes
1 values
Number of Dimensions: 1
Dimensions and sizes: [1]
Coordinates:
Number Of Attributes: 1
_FillValue : 32766
(0) -17.2746
Variable: ms
Type: float
Total Size: 1044 bytes
261 values
Number of Dimensions: 2
Dimensions and sizes: [LAT33_53 | 9] x [LON17_49 | 29]
Coordinates:
LAT33_53: [ 0.. 20]
LON17_49: [ 40.. 110]
Number Of Attributes: 1
_FillValue : 32766
Variable: U2anomW
Type: float
Total Size: 1044 bytes
261 values
Number of Dimensions: 2
Dimensions and sizes: [LAT33_53 | 9] x [LON17_49 | 29]
Coordinates:
LAT33_53: [ 0.. 20]
LON17_49: [ 40.. 110]
Number Of Attributes: 1
_FillValue : 32766
Variable: mo
Type: float
Total Size: 1044 bytes
261 values
Number of Dimensions: 2
Dimensions and sizes: [LAT33_53 | 9] x [LON17_49 | 29]
Coordinates:
LAT33_53: [ 0.. 20]
LON17_49: [ 40.. 110]
Number Of Attributes: 1
_FillValue : 32766
Variable: U2anomE
Type: float
Total Size: 1044 bytes
261 values
Number of Dimensions: 2
Dimensions and sizes: [LAT33_53 | 9] x [LON17_49 | 29]
Coordinates:
LAT33_53: [ 0.. 20]
LON17_49: [ 40.. 110]
Number Of Attributes: 1
_FillValue : 32766
Variable: U850
Type: float
Total Size: 263088 bytes
65772 values
Number of Dimensions: 3
Dimensions and sizes: [TIME | 252] x [LAT33_53 | 9] x [LON17_49 | 29]
Coordinates:
TIME: [727199..734839]
LAT33_53: [ 0.. 20]
LON17_49: [ 40.. 110]
Number Of Attributes: 5
LEV : 850
missing_value : 32766
_FillValue : 32766
long_name : monthly u-wind on pressure levels
history : From uwnd
Variable: U85
Type: float
Total Size: 21924 bytes
5481 values
Number of Dimensions: 3
Dimensions and sizes: [TIME | 21] x [LAT33_53 | 9] x [LON17_49 | 29]
Coordinates:
TIME: [727381..734686]
LAT33_53: [ 0.. 20]
LON17_49: [ 40.. 110]
Number Of Attributes: 6
_FillValue : 32766
LEV : 850
long_name : JJA: monthly u-wind on pressure levels
history : From uwnd
missing_value : 32766
NMO : 6
Variable: U8
Type: float
Total Size: 84 bytes
21 values
Number of Dimensions: 1
Dimensions and sizes: [TIME | 21]
Coordinates:
TIME: [727381..734686]
Number Of Attributes: 1
_FillValue : 32766
Variable: U8
Type: float
Total Size: 84 bytes
21 values
Number of Dimensions: 1
Dimensions and sizes: [TIME | 21]
Coordinates:
TIME: [727381..734686]
Number Of Attributes: 1
_FillValue : 32766
(0) 6.863894
(1) 7.134047
(2) 7.796678
(3) 6.643957
(4) 6.481505
(5) 6.937508
(6) 6.731084
(7) 7.31549
(8) 7.316243
(9) 7.819257
(10) 7.499321
(11) 6.71245
(12) 7.628197
(13) 7.621263
(14) 7.574966
(15) 6.609858
(16) 6.701594
(17) 6.118185
(18) 5.960688
(19) 6.432846
(20) 6.951684
Variable: U85mean
Type: float
Total Size: 4 bytes
1 values
Number of Dimensions: 1
Dimensions and sizes: [1]
Coordinates:
Number Of Attributes: 1
_FillValue : 32766
(0) 6.992891
Variable: m85s
Type: float
Total Size: 1044 bytes
261 values
Number of Dimensions: 2
Dimensions and sizes: [LAT33_53 | 9] x [LON17_49 | 29]
Coordinates:
LAT33_53: [ 0.. 20]
LON17_49: [ 40.. 110]
Number Of Attributes: 1
_FillValue : 32766
Variable: U85anomW
Type: float
Total Size: 1044 bytes
261 values
Number of Dimensions: 2
Dimensions and sizes: [LAT33_53 | 9] x [LON17_49 | 29]
Coordinates:
LAT33_53: [ 0.. 20]
LON17_49: [ 40.. 110]
Number Of Attributes: 1
_FillValue : 32766
Variable: m85o
Type: float
Total Size: 1044 bytes
261 values
Number of Dimensions: 2
Dimensions and sizes: [LAT33_53 | 9] x [LON17_49 | 29]
Coordinates:
LAT33_53: [ 0.. 20]
LON17_49: [ 40.. 110]
Number Of Attributes: 1
_FillValue : 32766
Variable: U85anomE
Type: float
Total Size: 1044 bytes
261 values
Number of Dimensions: 2
Dimensions and sizes: [LAT33_53 | 9] x [LON17_49 | 29]
Coordinates:
LAT33_53: [ 0.. 20]
LON17_49: [ 40.. 110]
Number Of Attributes: 1
_FillValue : 32766
Variable: MW
Type: float
Total Size: 1044 bytes
261 values
Number of Dimensions: 2
Dimensions and sizes: [LAT33_53 | 9] x [LON17_49 | 29]
Coordinates:
LAT33_53: [ 0.. 20]
LON17_49: [ 40.. 110]
Number Of Attributes: 1
_FillValue : 32766
Variable: ME
Type: float
Total Size: 1044 bytes
261 values
Number of Dimensions: 2
Dimensions and sizes: [LAT33_53 | 9] x [LON17_49 | 29]
Coordinates:
LAT33_53: [ 0.. 20]
LON17_49: [ 40.. 110]
Number Of Attributes: 1
_FillValue : 32766
Variable: f
Type: list <concat | fifo>
Total items: 252
Variable: sst
Type: float
Total Size: 225792000 bytes
56448000 values
Number of Dimensions: 4
Dimensions and sizes: [TIME | 252] x [DEPTH_T | 10] x [LATITUDE_T | 80] x [LONGITUDE_T | 280]
Coordinates:
TIME: [ 1..252]
DEPTH_T: [ 5..95.095]
LATITUDE_T: [0.125..19.875]
LONGITUDE_T: [40.125..109.875]
Number Of Attributes: 4
units : deg C
long_name : Potential Temperature
FillValue : -9.9999998e+22
missing_value : -9.9999998e+22
warning:New: Could not coerce missing value parameter into appropriate type, using default
Variable: uMon
Type: float
Total Size: 18816000 bytes
4704000 values
Number of Dimensions: 4
Dimensions and sizes: [TIME | 21] x [DEPTH_T | 10] x [LATITUDE_T | 80] x [LONGITUDE_T | 280]
Coordinates:
TIME: [ 7..247]
DEPTH_T: [ 5..95.095]
LATITUDE_T: [0.125..19.875]
LONGITUDE_T: [40.125..109.875]
Number Of Attributes: 7
_FillValue : 9.96921e+36
units : deg C
long_name : JJA: Potential Temperature
FillValue : -9.9999998e+22
missing_value_original : -9.9999998e+22
missing_value : -1e+23
NMO : 6
Variable: jja
Type: float
Total Size: 896000 bytes
224000 values
Number of Dimensions: 3
Dimensions and sizes: [DEPTH_T | 10] x [LATITUDE_T | 80] x [LONGITUDE_T | 280]
Coordinates:
DEPTH_T: [ 5..95.095]
LATITUDE_T: [0.125..19.875]
LONGITUDE_T: [40.125..109.875]
Number Of Attributes: 1
_FillValue : 9.96921e+36
warning:New: Could not coerce missing value parameter into appropriate type, using default
Variable: jjau
Type: float
Total Size: 18816000 bytes
4704000 values
Number of Dimensions: 4
Dimensions and sizes: [TIME | 21] x [DEPTH_T | 10] x [LATITUDE_T | 80] x [LONGITUDE_T | 280]
Coordinates:
TIME: [ 7..247]
DEPTH_T: [ 5..95.095]
LATITUDE_T: [0.125..19.875]
LONGITUDE_T: [40.125..109.875]
Number Of Attributes: 7
_FillValue : 9.96921e+36
units : deg C
long_name : JJA: Potential Temperature
FillValue : -9.9999998e+22
missing_value_original : -9.9999998e+22
missing_value : -1e+23
NMO : 6
Variable: s
Type: float
Total Size: 896000 bytes
224000 values
Number of Dimensions: 3
Dimensions and sizes: [DEPTH_T | 10] x [LATITUDE_T | 80] x [LONGITUDE_T | 280]
Coordinates:
DEPTH_T: [ 5..95.095]
LATITUDE_T: [0.125..19.875]
LONGITUDE_T: [40.125..109.875]
Number Of Attributes: 1
_FillValue : 9.96921e+36
Variable: o
Type: float
Total Size: 896000 bytes
224000 values
Number of Dimensions: 3
Dimensions and sizes: [DEPTH_T | 10] x [LATITUDE_T | 80] x [LONGITUDE_T | 280]
Coordinates:
DEPTH_T: [ 5..95.095]
LATITUDE_T: [0.125..19.875]
LONGITUDE_T: [40.125..109.875]
Number Of Attributes: 1
_FillValue : 9.96921e+36
Variable: anom_uw
Type: float
Total Size: 896000 bytes
224000 values
Number of Dimensions: 3
Dimensions and sizes: [DEPTH_T | 10] x [LATITUDE_T | 80] x [LONGITUDE_T | 280]
Coordinates:
DEPTH_T: [ 5..95.095]
LATITUDE_T: [0.125..19.875]
LONGITUDE_T: [40.125..109.875]
Number Of Attributes: 1
_FillValue : 9.96921e+36
Variable: anom_uw
Type: float
Total Size: 896000 bytes
224000 values
Number of Dimensions: 3
Dimensions and sizes: [DEPTH_T | 10] x [LATITUDE_T | 80] x [LONGITUDE_T | 280]
Coordinates:
DEPTH_T: [ 5..95.095]
LATITUDE_T: [0.125..19.875]
LONGITUDE_T: [40.125..109.875]
Number Of Attributes: 1
_FillValue : 9.96921e+36
(0) min=-3.10168 max=2.52215
(0) min=-1.30231 max=1.56698
(0) min=-17.1575 max=14.4158
(0) min=-16.4967 max=14.585
fatal:escorc: The last dimension of x must be equal to the last dimension of y
fatal:["Execute.c":8640]:Execute: Error occurred at or near line 189 in file MI_SST.ncl
fatal:Variable (cr) is undefined
fatal:["Execute.c":8640]:Execute: Error occurred at or near line 190 in file MI_SST.ncl
Kind regards,
Chathu
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20180623/7d307f32/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: MI_SST.ncl
Type: application/octet-stream
Size: 3168 bytes
Desc: not available
URL: <http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20180623/7d307f32/attachment.obj>
More information about the ncl-talk
mailing list