<html><head><meta http-equiv="Content-Type" content="text/html charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">Hi,<div class="">you can use the resources to constraint the area where you are searching the minimum. You have to first find the indices of the cells included in your domain:</div><div class=""><br class=""></div><div class=""><font face="Menlo" size="1" class="">ind_cells=ind(lon.ge.mpres@mpMinLonF .and. lon.le.mpres@mpMaxLonF .and. lat.ge.mpres@mpMinLatF .and. &nbsp;lat.le.mpres@mpMaxLatF)</font></div><div class=""><br class=""></div><div class="">Then you can look for the minimum (assuming that there is only once cell that satisfies this, otherwise you have to write a few lines more):</div><div class=""><br class=""></div><div class=""><font face="Menlo" class="">min_precipitation=dim_min_n_Wrap(precipitation(:,ind_cells), 1)</font></div><div class=""><br class=""></div><div class="">Be careful that, once subsetted the data, you can not print the lat-lon values of the minimum as the indices will be different from the original ones. But something like that should work</div><div class=""><br class=""></div><div class=""><font face="Menlo" class="">do i=0,dimsizes(time)-1</font></div><div class=""><font face="Menlo" class=""><span class="Apple-tab-span" style="white-space:pre">        </span>ind_min:=ind(precipitation(i,:).eq.min_precipitation(i))</font></div><div class=""><font face="Menlo" class=""><span class="Apple-tab-span" style="white-space:pre">        </span>lon_min(i)=lon(ind_min)</font></div><div class=""><font face="Menlo" class=""><span class="Apple-tab-span" style="white-space:pre">        </span>lat_min(i)=lat(ind_min)</font></div><div class=""><font face="Menlo" class="">end do</font></div><div class=""><br class=""></div><div class="">Note that here I’m looping over time because the ind function accepts only 1-D arrays.</div><div class=""><br class=""></div><div class="">Hope that helps.</div><div class=""><br class=""><div><blockquote type="cite" class=""><div class="">Il giorno 24 mag 2017, alle ore 07:53, Gaeun Kim &lt;<a href="mailto:gaeun.kim0921@gmail.com" class="">gaeun.kim0921@gmail.com</a>&gt; ha scritto:</div><br class="Apple-interchange-newline"><div class=""><div dir="ltr" class="">Dear users<div class=""><br class=""></div><div class="">I want to get max/min value from the domain limited by setting resource.</div><div class="">The data I used is global(mother domain), Asia(child domain) and etc. but I want to look into a specific region like below.</div><div class=""><br class=""></div><div class=""><em class="gmail-quotelev1" style="color: rgb(153, 0, 153); font-family: 'Times New Roman'; font-size: inherit;">&gt; /&gt; mpres@mpLimitMode = "LatLon" /&nbsp;</em><br style="font-family: 'Times New Roman'; font-size: inherit;" class=""><em class="gmail-quotelev1" style="color: rgb(153, 0, 153); font-family: 'Times New Roman'; font-size: inherit;">&gt; /&gt; mpres@mpMinLatF = 33.&nbsp;/&nbsp;</em><br style="font-family: 'Times New Roman'; font-size: inherit;" class=""><em class="gmail-quotelev1" style="color: rgb(153, 0, 153); font-family: 'Times New Roman'; font-size: inherit;">&gt; /&gt; mpres@mpMaxLatF = 36./&nbsp;</em><br style="font-family: 'Times New Roman'; font-size: inherit;" class=""><em class="gmail-quotelev1" style="color: rgb(153, 0, 153); font-family: 'Times New Roman'; font-size: inherit;">&gt; /&gt; mpres@mpMinLonF = 126.&nbsp;/&nbsp;</em><br style="font-family: 'Times New Roman'; font-size: inherit;" class=""><em class="gmail-quotelev1" style="color: rgb(153, 0, 153); font-family: 'Times New Roman'; font-size: inherit;">&gt; /&gt; mpres@mpMaxLonF = 130./</em></div><div class=""><em class="gmail-quotelev1" style="color: rgb(153, 0, 153); font-family: 'Times New Roman'; font-size: inherit;"><br class=""></em></div><div class=""><font face="arial, helvetica, sans-serif" class="">Please refer to the attached images, you can guess what I want to find.</font></div><div class=""><font face="arial, helvetica, sans-serif" class="">The data(let's say precipitation for example) is 2d(time,ncells) and triangular grid.</font></div><div class=""><font face="arial, helvetica, sans-serif" class="">Can anyone give an advise with this?</font></div><div class="">Thanks a lot</div><div class=""><br class=""></div><div class="">Regards,</div><div class="">Gaeun</div><div class=""><font face="arial, helvetica, sans-serif" class=""><br class=""></font></div></div>
<span id="cid:C76A4D81-E971-4890-8828-380A572046F7@fritz.box">&lt;domain 4.png&gt;</span><span id="cid:3AAB094B-CA76-4E79-9AEA-C3100AB23E04@fritz.box">&lt;domain1.png&gt;</span>_______________________________________________<br class="">ncl-talk mailing list<br class=""><a href="mailto:ncl-talk@ucar.edu" class="">ncl-talk@ucar.edu</a><br class="">List instructions, subscriber options, unsubscribe:<br class="">http://mailman.ucar.edu/mailman/listinfo/ncl-talk<br class=""></div></blockquote></div><br class=""></div></body></html>