[ncl-talk] Removing surface dimension to calculate the difference

S Br sbr.climate at gmail.com
Thu Oct 3 03:51:19 MDT 2019


Hi Dennis,
Thank you.
I didn't know that there is a reassign operator is available in NCL.

Best,
SB

On Wed, Oct 2, 2019 at 2:16 PM Dennis Shea <shea at ucar.edu> wrote:

> re: "I tried the same earlier, but trying to assign to the same variable
> name."
>
> b *:=* b(0,:,:)     ; reassign
>
> On Wed, Oct 2, 2019 at 8:52 AM S Br via ncl-talk <ncl-talk at ucar.edu>
> wrote:
>
>> Dear Rick,
>> It worked fine thank you. I tried the same earlier, but trying to assign
>> to the same variable name.
>>
>> Best,
>> SB
>>
>> On Tue, Oct 1, 2019 at 5:08 PM Rick Brownrigg <brownrig at ucar.edu> wrote:
>>
>>> Hi,
>>>
>>> Suppose your 1x64x128 3D array is "a", then:
>>>
>>>    b = (0,:,:)   ; produces a 2D 64x128 array
>>>
>>> Rick
>>>
>>> On Tue, Oct 1, 2019 at 10:04 AM S Br via ncl-talk <ncl-talk at ucar.edu>
>>> wrote:
>>>
>>>> Hi All,
>>>> I have a file with 3 dimensions ([surface | 1] x [latitude | 64] x
>>>> [longitude | 128]) and another file with 2 dimensions ([latitude | 64] x
>>>> [longitude | 128]).
>>>> How can I delete or avoid the 'surface' dimension from first file, so
>>>> that I can calculate the difference between the two files.
>>>>
>>>> Thanks.
>>>> SB
>>>> _______________________________________________
>>>> ncl-talk mailing list
>>>> ncl-talk at ucar.edu
>>>> List instructions, subscriber options, unsubscribe:
>>>> http://mailman.ucar.edu/mailman/listinfo/ncl-talk
>>>
>>> _______________________________________________
>> 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/20191003/f3f6f5fd/attachment.html>


More information about the ncl-talk mailing list