[ncl-talk] select sub_region

Karin Meier-Fleischer meier-fleischer at dkrz.de
Tue Dec 14 05:33:47 MST 2021


Hi Chatchu,

you should have received an error message because you try to extract 
data from a 4D variable tauuo which seems to be a 3D variable (with a 
different name tauuo_ssp ??).

Variable: tauuo_ssp
...
Dimensions and sizes: [time | 720] x [lat | 66] x [lon | 360]
Coordinates:
        time: [569784..744360]
        lat: [  10..  75]
        lon: [ 180..-180]

Try

    variable = f->tauuo_ssp(:,:,{-120.:120.})

-Karin


Am 14.12.21 um 13:12 schrieb Chathurika via ncl-talk:
>
> Hello Everyone,
>
>
> I have a dataset and the variable summary as follows;
>
>
> Variable: tauuo_ssp
> Type: float
> Total Size: 45809280 bytes
>  11452320 values
> Number of Dimensions: 3
> Dimensions and sizes: [time | 720] x [lat | 66] x [lon | 360]
> Coordinates:
>        time: [569784..744360]
>        lat: [ 10..  75]
>        lon: [ 180..-180]
> Number Of Attributes: 7
>   depth :   0
> standard_name : surface_downward_x_stress
>   long_name : Surface downward x stress
>   units : N m-2
>   code : 548
>   _FillValue : -9e+33
> missing_value : -9e+33
>
> I want to select the pacific ocean (-120:120). However, this does not 
> work. I tried out several ways to choose this subsection, but I always 
> got the part that I wanted to subtract between -120:120 (means 
> Atlantic plus the Indian Ocean instead of Pacific Ocean).
>
>
> I tried this
>
>
> = f->tauuo(:,0,{10:75},{-120:120}) and vice versa.
> = f->tauuo(:,0,{10:75},300:60}) and vice versa.
>
> Nothing selected the Pacific Ocean from 120E to 120W.
>
>
> Could you please give me a hint on how I could do this? That would be 
> a great help.
>
>
> Thank you very very much and best regards,
> Chathu
>
> ------------------------------------------------------------------------
>
>
>
>
>     //
>     //
>     //
>     //
>
>
> _______________________________________________
> ncl-talk mailing list
> ncl-talk at mailman.ucar.edu
> List instructions, subscriber options, unsubscribe:
> https://mailman.ucar.edu/mailman/listinfo/ncl-talk
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mailman.ucar.edu/pipermail/ncl-talk/attachments/20211214/6f2ebd9f/attachment.html>


More information about the ncl-talk mailing list