<div dir="ltr"><div>Hi Morteza:</div><div>I think the simplest solution is the lonFlip function and using "-" for longitude west of greenwich longitude:</div><div>For exampl try the following:</div><div><br></div><div>UA = lonFlip(UA)</div><div><br></div><div>
<span>UASEC1 = UA (:,{35:70},{-40:90})</span>
</div><div><br></div><div>Please add printVarSummary(UA) to see variable information. If above does not work then please provide print variable info.</div><div><br></div><div>Cheers,</div><div>Rashed<br></div><div><br></div><div><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Fri, Dec 6, 2019 at 2:25 AM Morteza Qadimi via ncl-talk <<a href="mailto:ncl-talk@ucar.edu">ncl-talk@ucar.edu</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div><div style="font-family:Helvetica Neue,Helvetica,Arial,sans-serif;font-size:16px"><div dir="ltr">Greetings NCL wizards,</div><div dir="ltr"><br></div><div dir="ltr">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:</div><div dir="ltr"><br></div><div dir="ltr"><span>UASEC1 = UA (:,{35:70},{315:90})</span><br></div><div dir="ltr"><span><br></span></div><div dir="ltr"><span>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.</span></div><div dir="ltr"><span><br></span></div><div dir="ltr"><span><span><span style="color:rgb(0,0,0);font-family:"Helvetica Neue",Helvetica,Arial,sans-serif;font-size:16px">UASEC1 = UA (:,{35:70},{90:315})</span></span><br></span></div><div dir="ltr"><span><span><span style="color:rgb(0,0,0);font-family:"Helvetica Neue",Helvetica,Arial,sans-serif;font-size:16px"><span><span style="color:rgb(0,0,0);font-family:"Helvetica Neue",Helvetica,Arial,sans-serif;font-size:16px">UASEC1 = UA (:,{35:70},280:80)</span></span><br></span></span></span></div><div dir="ltr"><span><span><span style="color:rgb(0,0,0);font-family:"Helvetica Neue",Helvetica,Arial,sans-serif;font-size:16px"><span><span style="color:rgb(0,0,0);font-family:"Helvetica Neue",Helvetica,Arial,sans-serif;font-size:16px"><span><span style="color:rgb(0,0,0);font-family:"Helvetica Neue",Helvetica,Arial,sans-serif;font-size:16px">UASEC1 = UA (:,{35:70},80:280)</span></span><br></span></span></span></span></span></div><div dir="ltr"><span><span><span style="color:rgb(0,0,0);font-family:"Helvetica Neue",Helvetica,Arial,sans-serif;font-size:16px"><span><span style="color:rgb(0,0,0);font-family:"Helvetica Neue",Helvetica,Arial,sans-serif;font-size:16px"><span><span style="color:rgb(0,0,0);font-family:"Helvetica Neue",Helvetica,Arial,sans-serif;font-size:16px"><br></span></span></span></span></span></span></span></div><div dir="ltr"><span><span><span style="color:rgb(0,0,0);font-family:"Helvetica Neue",Helvetica,Arial,sans-serif;font-size:16px"><span><span style="color:rgb(0,0,0);font-family:"Helvetica Neue",Helvetica,Arial,sans-serif;font-size:16px"><span><span style="color:rgb(0,0,0);font-family:"Helvetica Neue",Helvetica,Arial,sans-serif;font-size:16px">80 and 280 are the number of the longitudes corresponding to 90N and 315N respectively. </span></span></span></span></span></span></span></div><div dir="ltr"><span><span><span style="color:rgb(0,0,0);font-family:"Helvetica Neue",Helvetica,Arial,sans-serif;font-size:16px"><span><span style="color:rgb(0,0,0);font-family:"Helvetica Neue",Helvetica,Arial,sans-serif;font-size:16px"><span><span style="color:rgb(0,0,0);font-family:"Helvetica Neue",Helvetica,Arial,sans-serif;font-size:16px">Any Idea?</span></span></span></span></span></span></span></div><div dir="ltr"><span><span><span style="color:rgb(0,0,0);font-family:"Helvetica Neue",Helvetica,Arial,sans-serif;font-size:16px"><span><span style="color:rgb(0,0,0);font-family:"Helvetica Neue",Helvetica,Arial,sans-serif;font-size:16px"><span><span style="color:rgb(0,0,0);font-family:"Helvetica Neue",Helvetica,Arial,sans-serif;font-size:16px"><br></span></span></span></span></span></span></span></div></div></div>_______________________________________________<br>
ncl-talk mailing list<br>
<a href="mailto:ncl-talk@ucar.edu" target="_blank">ncl-talk@ucar.edu</a><br>
List instructions, subscriber options, unsubscribe:<br>
<a href="http://mailman.ucar.edu/mailman/listinfo/ncl-talk" rel="noreferrer" target="_blank">http://mailman.ucar.edu/mailman/listinfo/ncl-talk</a></blockquote></div>