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

Rick Brownrigg brownrig at ucar.edu
Tue Oct 1 10:08:03 MDT 2019


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/20191001/77e74f6d/attachment.html>


More information about the ncl-talk mailing list