Re: suppressing non-fatal warning messages

From: Saji Njarackalazhikam Hameed <saji_at_nyahnyahspammersnyahnyah>
Date: Tue, 31 Jul 2007 09:02:57 +0900

Hi Dennis,

Thanks. I understand this point. What I am trying to do in
a lazy way is to change the name of the co-ordinate dimensions
to fit our conventions. So I know what is happening and doing
it intentionally...perhaps I should spend some time and do it
properly (which I should figure out)...

saji

* Dennis Shea <shea_at_ucar.edu> [2007-07-30 08:38:22 -0600]:

> 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

-- 
Saji N. Hameed
APEC Climate Center          				+82 51 668 7470
National Pension Corporation Busan Building 12F         
Yeonsan 2-dong, Yeonje-gu, BUSAN 611705			saji_at_apcc21.net
KOREA
_______________________________________________
ncl-talk mailing list
ncl-talk_at_ucar.edu
http://mailman.ucar.edu/mailman/listinfo/ncl-talk
Received on Mon Jul 30 2007 - 18:02:57 MDT

This archive was generated by hypermail 2.2.0 : Wed Aug 01 2007 - 08:50:33 MDT