Re: warning:VarVarWrite: Dimension names for dimension number (0) don't match

From: Adam Phillips <asphilli_at_nyahnyahspammersnyahnyah>
Date: Tue Nov 26 2013 - 10:26:32 MST

Hi Yi-Chih,
You simply need to change this:
xx(ny,:,:)= xy(0,:,:)
to this:
xx(ny,:,:)= (/ xy(0,:,:) /)

That is what the error message is saying to do:
"use "(/../)" if this change is not desired"

The (/ .. /) syntax tells NCL to not copy any of the meta-data
information (dimension names, attributes, etc) from the right hand side
of the equal sign to the left hand side.

Hope that helps. If you have any further questions please respond to
ncl-talk..
Adam

On 11/26/2013 01:16 AM, Yi-Chih Huang wrote:
> Hello,
>
> I got the following warning message from "xx(ny,:,:)= xy(0,:,:)"
> in a do loop. This condition is different from those in ncl-talk. I
> wonder how to avoid such a warning?
>
> warning:VarVarWrite: Dimension names for dimension number (0) don't
> match, assigning name of rhs dimension to lhs and overwriting
> coordinate variable, use "(/../)" if this change is not desired
> warning:["Execute.c":8128]:Execute: Error occurred at or near line 49
> in file stdgsnClr.ncl
>
> Thanks much,
>
> Yi-Chih
>
> ####
> do ny= 0,nyr-1
> ....
> xy = season_from_month (xs, 6, 9, "JJAS")
> xx(ny,:,:)= xy(0,:,:)
> printVarSummary(xy)
> printVarSummary(xx)
> end do
>
> #####
> Variable: xy
> Type: float
> Total Size: 126324 bytes
> 31581 values
> Number of Dimensions: 3
> Dimensions and sizes: [time | 1] x [lat | 121] x [lon | 261]
> Coordinates:
> time: [40007..40007]
> lat: [-30..30]
> lon: [30..160]
> Number Of Attributes: 17
> season : JJAS
> DataFreq : Monthly
> center : US National Weather Service - NCEP (WMC)
> production_status : Operational products
> long_name : JJAS Means: V-component of wind
> units : m s-1
> grid_type : Latitude/longitude
> parameter_discipline_and_category : Meteorological products, Momentum
> parameter_template_discipline_category_number : ( 8, 0, 2, 3 )
> level_type : Isobaric surface (Pa)
> type_of_statistical_processing : Average of N uninitialized
> analyses, starting at reference time.
> statistical_process_duration : not applicable (intervals of 6
> hours)
> number_in_average : <ARRAY of 444 elements>
> forecast_time : 0
> forecast_time_units : hours
> level : 850
> _FillValue : 1e+20
>
> Variable: xx
> Type: float
> Total Size: 3916044 bytes
> 979011 values
> Number of Dimensions: 3
> Dimensions and sizes: [time | 31] x [lat | 121] x [lon | 261]
> Coordinates:
> time: [9.969209968386869e+36..40007]
> lat: [-30..30]
> lon: [30..160]
> Number Of Attributes: 17
> level : 850
> forecast_time_units : hours
> forecast_time : 0
> number_in_average : <ARRAY of 444 elements>
> statistical_process_duration : not applicable (intervals of 6
> hours)
> type_of_statistical_processing : Average of N uninitialized
> analyses, starting at reference time.
> level_type : Isobaric surface (Pa)
> parameter_template_discipline_category_number : ( 8, 0, 2, 3 )
> parameter_discipline_and_category : Meteorological products, Momentum
> grid_type : Latitude/longitude
> units : m s-1
> long_name : JJAS Means: V-component of wind
> production_status : Operational products
> center : US National Weather Service - NCEP (WMC)
> DataFreq : Monthly
> season : JJAS
> _FillValue : 1e+20
>
>
>
> _______________________________________________
> ncl-talk mailing list
> List instructions, subscriber options, unsubscribe:
> http://mailman.ucar.edu/mailman/listinfo/ncl-talk

-- 
______________________________________________________________
Adam Phillips                                asphilli@ucar.edu
NCAR/Climate and Global Dynamics Division       (303) 497-1726
P.O. Box 3000				
Boulder, CO 80307-3000    http://www.cgd.ucar.edu/cas/asphilli

_______________________________________________
ncl-talk mailing list
List instructions, subscriber options, unsubscribe:
http://mailman.ucar.edu/mailman/listinfo/ncl-talk
Received on Tue Nov 26 10:26:40 2013

This archive was generated by hypermail 2.1.8 : Wed Dec 04 2013 - 20:42:38 MST