[ncl-talk] Selected domain is wrong

Rashed Mahmood rashidcomsis at gmail.com
Fri Dec 6 03:44:33 MST 2019


Hi Morteza:
I think the simplest solution is the lonFlip function and using "-" for
longitude west of greenwich longitude:
For exampl try the following:

UA = lonFlip(UA)

UASEC1     = UA (:,{35:70},{-40:90})

Please add printVarSummary(UA) to see variable information. If above does
not work then please provide print variable info.

Cheers,
Rashed



On Fri, Dec 6, 2019 at 2:25 AM Morteza Qadimi via ncl-talk <
ncl-talk at ucar.edu> wrote:

> Greetings NCL wizards,
>
> I'm trying to select 35-70N, 45W-90E domain from the global data. As you
> see, my domain is crossing the prime meridian. You can find the snippet
> I've used below:
>
> UASEC1     = UA (:,{35:70},{315:90})
>
> but this selects all longitudes, except the longitudes I want. I've
> attached the output plot. In addition, I used the below scripts, too.
> Unfortunately, none of them worked.
>
> UASEC1     = UA (:,{35:70},{90:315})
> UASEC1     = UA (:,{35:70},280:80)
> UASEC1     = UA (:,{35:70},80:280)
>
> 80 and 280 are the number of the longitudes corresponding to 90N and 315N
> respectively.
> Any Idea?
>
> _______________________________________________
> 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/20191206/d864fbc3/attachment.html>


More information about the ncl-talk mailing list