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

S Br sbr.climate at gmail.com
Wed Oct 2 02:51:50 MDT 2019


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
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20191002/a72da28a/attachment.html>


More information about the ncl-talk mailing list