[ncl-talk] matching latitude and longitude

Dennis Shea shea at ucar.edu
Fri May 29 11:02:02 MDT 2015


oops

I wrote:

NCL's behavior is to transfer meta data from the rhs variable to the rhs
variable.

it should be

NCL's behavior is to transfer meta data from the rhs variable to the lhs
variable.

On Fri, May 29, 2015 at 10:50 AM, Dennis Shea <shea at ucar.edu> wrote:

> zYou are using:
>
> trmm_glb({lat|-49.875:49.875},lon|:) =
> trmm({latitude|-49.875:49.875},longitude|:)
>
> The left hand side (lhs) variable has dimension names 'lat' & 'lon'
> The right hand side (rhs) variable has dimension names "latitude' &
> 'longitude.
> NCL's dimension numbering starts at 0 .. the dimension numbers are 0,1
>
>
> 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.
>
> Hence, the **warning** messages
>
> warning:VarVarWrite: Dimension names for dimension number (0) don't
> match, assigning name of rhs dimension to lhs and overwriting
> coordinate variable
>
> warning:VarVarWrite: Dimension names for dimension number (1) don't
> match, assigning name of rhs dimension to lhs and overwriting
> coordinate variable
>
> So dimension number 0 ('lat' ... 'latitude')  and dimension number 1
> ('lon','longitude') "don't match"
>
> The message also tells you the solution. Use (/ .../) .. this tells NCL to
> transfer just the values and no meta data.
>
> trmm_glb({lat|-49.875:49.875},lon|:) = (/
> trmm({latitude|-49.875:49.875},longitude|:) /)
>
>
>
>
> On Fri, May 29, 2015 at 9:50 AM, Laura Fowler <laura at ucar.edu> wrote:
>
>> Hi:
>>
>> I have data that are limited between -49.875S and 49.875N. A
>> printVarSummary of the data gives me the following:
>>
>> Variable: trmm
>> Type: float
>> Total Size: 2304000 bytes
>>             576000 values
>> Number of Dimensions: 2
>> Dimensions and sizes: [latitude | 400] x [longitude | 1440]
>> Coordinates:
>>             latitude: [-49.875..49.875]
>>             longitude: [0.125..359.875]
>>
>>
>> I want to fill a global array between -89.875S and 89.875N using the
>> limited array. A printSummary of the global data gives me the
>> following:
>>
>> Variable: trmm_glb
>> Type: float
>> Total Size: 4147200 bytes
>>             1036800 values
>> Number of Dimensions: 2
>> Dimensions and sizes: [lat | 720] x [lon | 1440]
>> Coordinates:
>>             lat: [-89.875..89.875]
>>             lon: [0.125..359.875]
>>
>>
>> When I try to fill the trmm_glb data using the trmm data using the line
>> below:
>> trmm_glb({lat|-49.875:49.875},lon|:) =
>> trmm({latitude|-49.875:49.875},longitude|:)
>>
>>
>> I get the following error message:
>> 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: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:["Execute.c":8575]:Execute: Error occurred at or near line 62
>> in file regrid.to_0.50deg.ncl
>>
>>
>> Can somebody help me resolve this issue. Is there a typo that I do not
>> see in the line above? Many thanks for your help.
>>
>> Thanks,
>> Laura
>>
>>
>>
>>
>> --
>>
>> !-------------------------------------------------------------------------------------------------------------
>> Laura D. Fowler
>> Mesoscale and Microscale Meteorology Division (MMM)
>> National Center for Atmospheric Research
>> P.O. Box 3000, Boulder CO 80307-3000
>>
>> e-mail: laura at ucar.edu
>> phone: 303-497-1628
>>
>>
>> !-------------------------------------------------------------------------------------------------------------
>> _______________________________________________
>> ncl-talk mailing list
>> ncl-talk at ucar.edu
>> List instructions, subscriber options, unsubscribe:
>> http://mailman.ucar.edu/mailman/listinfo/ncl-talk
>>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20150529/d3d48bff/attachment.html 


More information about the ncl-talk mailing list