<div dir="ltr"><div dir="ltr"><div dir="ltr"><div> latS = ... ; south boundary<br> latN = ... ; north "<br> lonL = ... ; left boundary<br> lonR = ... ; right "<br> <br></div><div> f = addfile(...)</div><div> LAT = f->lat</div><div> LON = f->lon</div><div> ii = ind(LAT.ge.latS .and. LAT.le.latN .and. \</div><div> LON.ge.lonL .and. LON.le.lonR)</div><div><br></div><div> lat = LAT(ii)</div><div> lon = LON(ii)</div><div> prc = f->PRCC(:,ii)</div><div> printVarSummary(lat)</div><div><b> printVarSummary(lon)</b><br></div><div> printVarSummary(prc)<br></div><div> <br></div><div> ======</div><div><a href="http://www.ncl.ucar.edu/Document/Functions/Built-in/ind.shtml"><b>http://www.ncl.ucar.edu/Document/Functions/Built-in/ind.shtml</b></a><br></div></div></div></div><br><div class="gmail_quote"><div dir="ltr">On Thu, Jan 3, 2019 at 5:21 AM snehlata Tirkey <<a href="mailto:snehlata_tirkey@yahoo.com">snehlata_tirkey@yahoo.com</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 class="gmail-m_3296040670263120381ydp3761323ayahoo-style-wrap" style="font-family:verdana,helvetica,sans-serif;font-size:13px"><div>Dear NCL community,</div><div><br></div><div>I have a global dataset with monthly temporal resolution on unstructured grid. </div><div><br></div><div>Part of the ncdump is as follows-</div><div><br></div><div><span><div><i>dimensions:</i></div><div><i><span style="white-space:pre-wrap"> </span>ncol = 48602 ;</i></div><div><i><span style="white-space:pre-wrap"> </span>time = UNLIMITED ; // (1 currently)</i></div><div><i><span style="white-space:pre-wrap"> </span>nbnd = 2 ;</i></div><div><i><span style="white-space:pre-wrap"> </span>chars = 8 ;</i></div><div><i><span style="white-space:pre-wrap"> </span>lev = 30 ;</i></div><div><i><span style="white-space:pre-wrap"> </span>ilev = 31 ;</i></div><div><i><span style="white-space:pre-wrap"> </span>psubcols = 4 ;</i></div><div><i>variables:</i></div><div><i><span style="white-space:pre-wrap"> </span>double lat(ncol) ;</i></div><div><i><span style="white-space:pre-wrap"> </span>lat:long_name = "latitude" ;</i></div><div><i><span style="white-space:pre-wrap"> </span>lat:units = "degrees_north" ;</i></div><div><i><span style="white-space:pre-wrap"> </span>double lon(ncol) ;</i></div><div><i><span style="white-space:pre-wrap"> </span>lon:long_name = "longitude" ;</i></div><div><i><span style="white-space:pre-wrap"> </span>lon:units = "degrees_east" ;</i></div><div><i><span style="white-space:pre-wrap"> </span>double area(ncol) ;</i></div><div><i><span style="white-space:pre-wrap"> </span>area:long_name = "gll grid areas" ;</i></div><div><i><span style="white-space:pre-wrap"> </span>double lev(lev) ;</i></div><div><i><span style="white-space:pre-wrap"> </span>lev:long_name = "hybrid level at midpoints (1000*(A+B))" ;</i></div><div><i><span style="white-space:pre-wrap"> </span>lev:units = "hPa" ;</i></div><div><i><span style="white-space:pre-wrap"> </span>lev:positive = "down" ;</i></div><div><i><span style="white-space:pre-wrap"> </span>lev:standard_name = "atmosphere_hybrid_sigma_pressure_coordinate" ;</i></div><div><i><span style="white-space:pre-wrap"> </span>lev:formula_terms = "a: hyam b: hybm p0: P0 ps: PS" ;</i></div><div><span><div><i> float PRECC(time, ncol) ;</i></div><div><i><span style="white-space:pre-wrap"> </span>PRECC:units = "m/s" ;</i></div><div><i><span style="white-space:pre-wrap"> </span>PRECC:long_name = "Convective precipitation rate (liq + ice)" ;</i></div><div><i><span style="white-space:pre-wrap"> </span>PRECC:cell_methods = "time: mean" ;</i></div><div><br></div><div>I am able to plot the above variable (PRECC) globally using sfXArray and sfYArray but how to subset the data for a smaller area for plotting or further processing?</div><div><br></div><div>I could find information for 2D lat and lon type of grid in NCL but could not find information for such 1D lat/lon type of grid. Please help.</div><div><br></div><div>Thanking in anticipation.</div></span><br></div></span><br></div><div>Yours sincerely,<br></div><div class="gmail-m_3296040670263120381ydp3761323asignature"><div>Snehlata Tirkey</div><div><a href="mailto:e-mail%3Asnehlata_tirkey@yahoo.com" target="_blank">e-mail:snehlata_tirkey@yahoo.com</a></div><div><br></div></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><br>
</blockquote></div>