Saji Njarackalazhikam Hameed wrote:
> Hi Dennis,
>
> this is not very terribly important...thanks for replying..
> the message is:
>
> ;----------------
> warning:VarVarWrite: Dimension names for dimension number (1) don't match, assigning name of rhs dimension to lhs and overwriting coordinate variable, use "(/../)" if this change is not desired
> warning:VarVarWrite: Dimension names for dimension number (2) don't match, assigning name of rhs dimension to lhs and overwriting coordinate variable, use "(/../)" if this change is not desired
>
>
Hi Saji
If "y" already exist and has named dimensions
y(time,LAT,LON)
and "x" is
x(time,lat,lon)
the
y = x
will result in the above error message.
====
ncl 0> y = random_uniform( -1,1, (/2,3,4/) )
ncl 1> x = random_uniform( -1,1, (/2,3,4/) )
ncl 4> y!0 = "time"
ncl 5> x!0 = "time"
ncl 6> x!1 = "lat"
ncl 7> y!1 = "LAT"
ncl 8> y!2 = "LON"
ncl 9> x!2 = "lon"
ncl 10> y = x
warning:VarVarWrite: Dimension names for dimension number (1) don't
match, assigning name of rhs dimension to lhs, use "(/../)" if this
change is not desired
warning:VarVarWrite: Dimension names for dimension number (2) don't
match, assigning name of rhs dimension to lhs, use "(/../)" if this
change is not desired
warning:Execute: Error occurred at or near line 10
ncl 11> printVarSummary(y)
Variable: y
Type: float
Total Size: 96 bytes
24 values
Number of Dimensions: 3
Dimensions and sizes: [time | 2] x [lat | 3] x [lon | 4] <=== Note
it has the dim names of "x"
Coordinates:
========================================================
To avoid the message
y = (/ x /)
The will result in "y" retaining its original named dimensions.
D
_______________________________________________
ncl-talk mailing list
ncl-talk_at_ucar.edu
http://mailman.ucar.edu/mailman/listinfo/ncl-talk
Received on Mon Jul 30 2007 - 08:38:22 MDT
This archive was generated by hypermail 2.2.0 : Wed Aug 01 2007 - 08:50:33 MDT