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

Dennis Shea shea at ucar.edu
Wed Oct 2 07:16:32 MDT 2019


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/20191002/5478ed2e/attachment.html>


More information about the ncl-talk mailing list