<html><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class="">Hi Mary,<div class=""><br class=""></div><div class="">Thank you very much! Your result is almost exactly what I’m trying to get. What I need is the average temperature / annual precipitation for all the counties together, not separate for each county or shapefile feature. I just tried it again with a shapefile in which each county is a separate feature, but unfortunately I got pretty much the same result as before. I attached the shapefiles (there are two sets, for counties with the center point east and west of the 100th meridian). I also attached a screenshot of the data result in Panoply and my NCL code.</div><div class=""><br class=""></div><div class="">I would greatly appreciate if you could take a look at the shapefile data and change it so it works correctly in NCL.<br class=""><div class=""><br class="webkit-block-placeholder"></div><div class="">
<div dir="auto" style="letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class=""><div dir="auto" style="letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class=""><div dir="auto" style="letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class=""><div dir="auto" style="letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class=""><div dir="auto" style="letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class=""><div dir="auto" style="letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class=""><div dir="auto" style="letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class=""><div style="font-family: Calibri; font-size: 14px; font-style: normal; font-variant-caps: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class=""><span style="background-color: rgb(255, 255, 255);" class=""><font class="">Thanks again,</font></span></div><div style="font-family: Calibri; font-size: 14px; font-style: normal; font-variant-caps: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class=""><span style="background-color: rgb(255, 255, 255);" class=""><font class="">Toni</font></span></div><div style="font-family: Calibri; font-size: 14px; font-style: normal; font-variant-caps: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class=""><span style="background-color: rgb(255, 255, 255);" class=""><font class=""><br class="Apple-interchange-newline"><font color="#333300" class=""><br class=""></font></font></span></div><div style="font-family: Calibri; font-size: 14px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class=""><font color="#333300" class=""><b style="background-color: rgb(255, 255, 255);" class="">Toni Klemm</b><b class=""><span style="background-color: rgb(255, 255, 255);" class="">, </span><span style="background-color: rgb(255, 255, 255);" class="">Ph.D.</span></b></font><div class=""><div class=""><span class="" style="background-color: rgb(255, 255, 255);"><font color="#333300" class="">Postdoctoral Research Associate</font></span></div><div class=""><span class="" style="background-color: rgb(255, 255, 255);"><font color="#333300" class="">Department of Ecosystem Science and Management</font></span></div><div class=""><span class="" style="background-color: rgb(255, 255, 255);"><font color="#333300" class="">College of Agriculture and Life Sciences</font></span></div><div class=""><span style="background-color: rgb(255, 255, 255);" class=""><font color="#333300" class="">Texas A&M University, College Station, TX</font></span></div><div class="" style="color: rgb(0, 0, 0);">Contributor to the <a href="https://www.eccforum.org/" class="">Early Career Climate Forum</a></div><div class="" style="color: rgb(0, 0, 0);"><span class="" style="color: rgb(51, 51, 153); background-color: rgb(255, 255, 255);"><a href="http://www.toni-klemm.de/" class="">www.toni-klemm.de</a> | </span><a href="https://twitter.com/ToniKlemm" class="">@toniklemm</a></div></div></div><div style="color: rgb(0, 0, 0); font-family: Calibri; font-size: 14px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class=""><br class=""></div><div style="color: rgb(0, 0, 0); font-family: Calibri; font-size: 14px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class=""><br class=""></div></div></div></div></div></div></div><br class="Apple-interchange-newline"></div><br class="Apple-interchange-newline"><br class="Apple-interchange-newline">
</div>
<div><br class=""><blockquote type="cite" class=""><div class="">On Dec 19, 2018, at 5:06 PM, Mary Haley <<a href="mailto:haley@ucar.edu" class="">haley@ucar.edu</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><div dir="ltr" class=""><div class="gmail_default" style="font-size:small">Hi Toni,</div><div class="gmail_default" style="font-size:small"><br class=""></div><div class="gmail_default" style="font-size:small">Your shapefile has just one feature and several segments for that feature.  Usually the shapefiles we see have several features and several segments for each feature. Your shapefile is a little unusual, but not unheard of.  Unfortunately, the examples we have all do the averaging across shapefile *features* and not shapefile *segments*.</div><div class="gmail_default" style="font-size:small"><br class=""></div><div class="gmail_default" style="font-size:small">This doesn't mean you can't do it with NCL.  See the attached plot, where I contoured some dummy 2D data over the area of interest and then generated a second plot where the values were averaged based on whether they fell inside one of these segments.  Is this what you are trying to accomplish?  If so, I'll clean up the code and send it to you.</div><div class="gmail_default" style="font-size:small"><br class=""></div><div class="gmail_default" style="font-size:small">--Mary</div></div><br class=""><div class="gmail_quote"><div dir="ltr" class="">On Wed, Dec 19, 2018 at 1:26 PM Toni Klemm <<a href="mailto:toni-klemm@tamu.edu" class="">toni-klemm@tamu.edu</a>> wrote:<br class=""></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div style="overflow-wrap: break-word;" class="">Hello All,<div class=""><br class=""></div><div class="">I am trying to use a shapefile of merged counties in the western Great Plains to create a spatial subset of temperature and precipitation data and calculate averages and totals for those counties as a whole. However, the data subset doesn't look anything like the shapefile (see the Panoply screenshot). I attached the shapefile as GIS files and screenshot. </div><div class=""><br class=""></div><div class="">My guess is that NCL gets confused about the disconnected-yet-combined counties and doesn't know how to process a shapefile like that. Does anyone know what I can do to make this work? Can I manipulate the shapefile data in QGIS somehow so NCL understands it? Alternatively I could process each county by itself and then average the results. But there are over 100 counties, which would take a very long time. </div><div class=""><br class=""></div><div class="">I appreciate any help!</div><div class=""><br class=""></div><div class="">Thank you very much,</div><div class="">Toni<br class=""><div class="">
<div dir="auto" style="letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; text-decoration: none;" class=""><div dir="auto" style="letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; text-decoration: none;" class=""><div dir="auto" style="letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; text-decoration: none;" class=""><div dir="auto" style="letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; text-decoration: none;" class=""><div dir="auto" style="letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px;" class=""><div style="font-variant-caps: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px;" class=""><font face="Calibri" class=""><br class="gmail-m_-6586768839414286389Apple-interchange-newline"><br class=""></font></div><div style="font-variant-caps: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px;" class=""><font face="Calibri" class=""><b class="">Toni Klemm, Ph.D.<br class=""></b>Postdoctoral Research Associate</font></div><div style="font-variant-caps: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px;" class="">Department of Ecosystem Science and Management</div><div style="font-variant-caps: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px;" class="">College of Agriculture and Life Sciences</div><div style="font-variant-caps: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px;" class="">Texas A&M University, College Station, TX</div><div style="font-variant-caps: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px;" class=""><font face="Calibri" class="">Contributor to the <a href="https://urldefense.proofpoint.com/v2/url?u=http-3A__www.eccforum.org&d=DwMFaQ&c=ODFT-G5SujMiGrKuoJJjVg&r=WsLJ5ywbW3XnTzqo_ETV62H6s1a5bcGgnrpl7xPRfic&m=S4Vpn9B9dGEDj8PfFUyL3ZZyY6XSazVZ50UULc2pwEU&s=_wmxrfPQsMF3vojIFKRAtdhltlvptw6M4HZ9fLg_3cQ&e=" target="_blank" class="">Early Career Climate Forum</a><br class=""><a href="https://urldefense.proofpoint.com/v2/url?u=http-3A__www.toni-2Dklemm.de&d=DwMFaQ&c=ODFT-G5SujMiGrKuoJJjVg&r=WsLJ5ywbW3XnTzqo_ETV62H6s1a5bcGgnrpl7xPRfic&m=S4Vpn9B9dGEDj8PfFUyL3ZZyY6XSazVZ50UULc2pwEU&s=BUcEg1gjQSTNzMQTj8-c30-A9wVn4XtHJXwJ98GJFdc&e=" target="_blank" class="">www.toni-klemm.de</a> | <a href="https://urldefense.proofpoint.com/v2/url?u=http-3A__twitter.com_toniklemm&d=DwMFaQ&c=ODFT-G5SujMiGrKuoJJjVg&r=WsLJ5ywbW3XnTzqo_ETV62H6s1a5bcGgnrpl7xPRfic&m=S4Vpn9B9dGEDj8PfFUyL3ZZyY6XSazVZ50UULc2pwEU&s=4uj7i-TM4DYGnhfVvqE6_pSkQa5N6ZthvK0BCZWNzK8&e=" target="_blank" class="">@toniklemm</a></font></div><div style="font-variant-caps: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px;" class=""><font face="Calibri" class=""><br class=""></font></div><div style="font-variant-caps: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px;" class=""><font face="Calibri" class=""><br class=""></font></div></div></div><br class="gmail-m_-6586768839414286389Apple-interchange-newline"></div><br class="gmail-m_-6586768839414286389Apple-interchange-newline"></div><br class="gmail-m_-6586768839414286389Apple-interchange-newline"></div><br class="gmail-m_-6586768839414286389Apple-interchange-newline"><br class="gmail-m_-6586768839414286389Apple-interchange-newline">
</div>
</div></div><div style="overflow-wrap: break-word;" class=""><div class=""></div></div><div style="overflow-wrap: break-word;" class=""><div class=""></div></div><div style="overflow-wrap: break-word;" class=""><div class=""></div></div><div style="overflow-wrap: break-word;" class=""><div class=""></div></div><div style="overflow-wrap: break-word;" class=""><div class=""></div></div><div style="overflow-wrap: break-word;" class=""><div class=""></div></div><div style="overflow-wrap: break-word;" class=""><div class=""></div></div><div style="overflow-wrap: break-word;" class=""><div class=""></div></div>_______________________________________________<br class="">
ncl-talk mailing list<br class="">
<a href="mailto:ncl-talk@ucar.edu" target="_blank" class="">ncl-talk@ucar.edu</a><br class="">
List instructions, subscriber options, unsubscribe:<br class="">
<a href="https://urldefense.proofpoint.com/v2/url?u=http-3A__mailman.ucar.edu_mailman_listinfo_ncl-2Dtalk&d=DwMFaQ&c=ODFT-G5SujMiGrKuoJJjVg&r=WsLJ5ywbW3XnTzqo_ETV62H6s1a5bcGgnrpl7xPRfic&m=S4Vpn9B9dGEDj8PfFUyL3ZZyY6XSazVZ50UULc2pwEU&s=PmMsnjl-ihptp2YXVfcxUt782zRG1XbIMrqgS8bUQZg&e=" rel="noreferrer" target="_blank" class="">http://mailman.ucar.edu/mailman/listinfo/ncl-talk</a><br class="">
</blockquote></div>
<span id="cid:f_jpvsb4r80"><shapefile.000002.png></span></div></blockquote></div></div></body></html>