<div dir="ltr">zYou are using:<br><div><br>trmm_glb({lat|-49.875:49.875},lon|:) = trmm({latitude|-49.875:49.875},longitude|:)<br><br></div><div>The left hand side (lhs) variable has dimension names 'lat' & 'lon'<br></div><div>The right hand side (rhs) variable has dimension names "latitude' & 'longitude.<br></div><div>NCL's dimension numbering starts at 0 .. the dimension numbers are 0,1<br></div><div><br><br></div><div>NCL's behavior is to transfer meta data from the rhs variable to the rhs variable. Here, it will overwrite the lhs variable with the dimension names of the rhs variable.<br><br></div><div>Hence, the **warning** messages<br><br>warning:VarVarWrite: Dimension names for dimension number (0) don't<br>
match, assigning name of rhs dimension to lhs and overwriting<br>
coordinate variable<br><br>warning:VarVarWrite: Dimension names for dimension number (1) don't<br>
match, assigning name of rhs dimension to lhs and overwriting<br>
coordinate variable<br><br></div><div>So dimension number 0 ('lat' ... 'latitude') and dimension number 1 ('lon','longitude') "don't match"<br><br></div><div>The message also tells you the solution. Use (/ .../) .. this tells NCL to transfer just the values and no meta data.<br><br>trmm_glb({lat|-49.875:49.875},lon|:) = (/ trmm({latitude|-49.875:49.875},longitude|:) /)<br><br><br></div><div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Fri, May 29, 2015 at 9:50 AM, Laura Fowler <span dir="ltr"><<a href="mailto:laura@ucar.edu" target="_blank">laura@ucar.edu</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi:<br>
<br>
I have data that are limited between -49.875S and 49.875N. A<br>
printVarSummary of the data gives me the following:<br>
<br>
Variable: trmm<br>
Type: float<br>
Total Size: 2304000 bytes<br>
576000 values<br>
Number of Dimensions: 2<br>
Dimensions and sizes: [latitude | 400] x [longitude | 1440]<br>
Coordinates:<br>
latitude: [-49.875..49.875]<br>
longitude: [0.125..359.875]<br>
<br>
<br>
I want to fill a global array between -89.875S and 89.875N using the<br>
limited array. A printSummary of the global data gives me the<br>
following:<br>
<br>
Variable: trmm_glb<br>
Type: float<br>
Total Size: 4147200 bytes<br>
1036800 values<br>
Number of Dimensions: 2<br>
Dimensions and sizes: [lat | 720] x [lon | 1440]<br>
Coordinates:<br>
lat: [-89.875..89.875]<br>
lon: [0.125..359.875]<br>
<br>
<br>
When I try to fill the trmm_glb data using the trmm data using the line below:<br>
trmm_glb({lat|-49.875:49.875},lon|:) =<br>
trmm({latitude|-49.875:49.875},longitude|:)<br>
<br>
<br>
I get the following error message:<br>
warning:VarVarWrite: Dimension names for dimension number (0) don't<br>
match, assigning name of rhs dimension to lhs and overwriting<br>
coordinate variable, use "(/../)" if this change is not desired<br>
<br>
warning:VarVarWrite: Dimension names for dimension number (1) don't<br>
match, assigning name of rhs dimension to lhs and overwriting<br>
coordinate variable, use "(/../)" if this change is not desired<br>
<br>
warning:["Execute.c":8575]:Execute: Error occurred at or near line 62<br>
in file regrid.to_0.50deg.ncl<br>
<br>
<br>
Can somebody help me resolve this issue. Is there a typo that I do not<br>
see in the line above? Many thanks for your help.<br>
<br>
Thanks,<br>
Laura<br>
<br>
<br>
<br>
<br>
--<br>
!-------------------------------------------------------------------------------------------------------------<br>
Laura D. Fowler<br>
Mesoscale and Microscale Meteorology Division (MMM)<br>
National Center for Atmospheric Research<br>
P.O. Box 3000, Boulder CO 80307-3000<br>
<br>
e-mail: <a href="mailto:laura@ucar.edu">laura@ucar.edu</a><br>
phone: <a href="tel:303-497-1628" value="+13034971628">303-497-1628</a><br>
<br>
!-------------------------------------------------------------------------------------------------------------<br>
_______________________________________________<br>
ncl-talk mailing list<br>
<a href="mailto:ncl-talk@ucar.edu">ncl-talk@ucar.edu</a><br>
List instructions, subscriber options, unsubscribe:<br>
<a href="http://mailman.ucar.edu/mailman/listinfo/ncl-talk" target="_blank">http://mailman.ucar.edu/mailman/listinfo/ncl-talk</a><br>
</blockquote></div><br></div>