<html><head><meta http-equiv="Content-Type" content="text/html; charset=us-ascii"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class=""><div class=""></div><div class=""><br class=""></div><div class=""><br class=""><div><br class=""><blockquote type="cite" class=""><div class="">On Aug 28, 2018, at 10:36 AM, Barry Lynn <<a href="mailto:barry.h.lynn@gmail.com" class="">barry.h.lynn@gmail.com</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><meta http-equiv="Content-Type" content="text/html; charset=utf-8" class=""><div dir="ltr" class="">Bill:<div class=""><br class=""></div><div class="">Thanks.</div><div class=""><br class=""></div><div class="">For the moment, I just limited the pressure to below a value that seems to work.  No one (here) cares about the Wet Bulb Temperature over the Dead Sea.</div><div class=""><br class=""></div><div class="">Still, it would be nice to have it work as is, so I should take a look.</div><div class=""><br class=""></div><div class="">Barry</div></div><br class=""><div class="gmail_quote"><div dir="ltr" class="">On Tue, Aug 28, 2018 at 8:09 PM Bill Ladwig <<a href="mailto:ladwig@ucar.edu" class="">ladwig@ucar.edu</a>> wrote:<br class=""></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr" class="">Hi Barry,<div class=""><br class=""></div><div class="">Modifying the table isn't easy, but if you like to live dangerously, I can show you where the file is. </div><div class=""><br class=""></div><div class="">When NCL is installed, the file is installed here:</div><br class=""><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">$NCARG_ROOT/lib/ncarg/data/asc/psadilookup.dat</blockquote><br class=""><div class="">For the source code, it is located here:<br class=""><br class=""><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">{NCL_SOURCE_ROOT}/ni/src/examples/data/asc/psadilookup.dat</blockquote><div class=""><br class=""></div><div class="">There is a brief description at the top of the file that explains how to read the data in Fortran, but it should give you some idea of how you might modify the values. As long as you keep the dimensions the same (e.g. 150 x 150), then you can probably shift the table in to your region of interest. The table is read in when the wetbulb and CAPE algorithms are run, so you shouldn't have to change anything but the table.  You probably want to make a copy of this file and store it somewhere else before modifying the values.</div><div class=""><br class=""></div><div class="">Unfortunately, I don't think we have the original code that generated the table, so you're probably on your own implementing the algorithm from Bolton. But, it might be buried in the RIP source code somewhere, which is where the algorithm originally came from.</div><div class=""><br class=""></div><div class="">Hope this helps,</div><div class=""><br class=""></div><div class="">Bill</div><br class=""></div></div><br class=""><div class="gmail_quote"><div dir="ltr" class="">On Tue, Aug 28, 2018 at 5:39 AM Barry Lynn <<a href="mailto:barry.h.lynn@gmail.com" target="_blank" class="">barry.h.lynn@gmail.com</a>> wrote:<br class=""></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr" class="">Hi:<div class=""><br class=""></div><div class="">I live in an area t aht has locations 200 to 400 m below sea-level.</div><div class=""><br class=""></div><div class="">When calling:<br class=""><div class=""><br class=""></div><div class=""><div style="margin: 0px; font-variant-numeric: normal; font-variant-east-asian: normal; font-stretch: normal; line-height: normal; font-family: "Courier New";" class=""><span class="m_-3862642655512493798m_4974670387594922249gmail-s1" style="font-variant-ligatures:no-common-ligatures">twb = wrf_wetbulb(p,t,qv)</span></div><div style="margin: 0px; font-variant-numeric: normal; font-variant-east-asian: normal; font-stretch: normal; line-height: normal; font-family: "Courier New";" class=""><span class="m_-3862642655512493798m_4974670387594922249gmail-s1" style="font-variant-ligatures:no-common-ligatures"><br class=""></span></div><div style="margin: 0px; font-variant-numeric: normal; font-variant-east-asian: normal; font-stretch: normal; line-height: normal; font-family: "Courier New";" class=""><span class="m_-3862642655512493798m_4974670387594922249gmail-s1" style="font-variant-ligatures:no-common-ligatures">I get this error:</span></div><div style="margin: 0px; font-variant-numeric: normal; font-variant-east-asian: normal; font-stretch: normal; line-height: normal; font-family: "Courier New";" class=""><span class="m_-3862642655512493798m_4974670387594922249gmail-s1" style="font-variant-ligatures:no-common-ligatures"><br class=""></span></div><p class="m_-3862642655512493798m_4974670387594922249gmail-p1" style="margin: 0px; font-variant-numeric: normal; font-variant-east-asian: normal; font-stretch: normal; line-height: normal; font-family: "Courier New";"><span class="m_-3862642655512493798m_4974670387594922249gmail-s1" style="font-variant-ligatures:no-common-ligatures">





</span></p><div style="margin: 0px; font-variant-numeric: normal; font-variant-east-asian: normal; font-stretch: normal; line-height: normal; font-family: "Courier New";" class=""><span class="m_-3862642655512493798m_4974670387594922249gmail-s1" style="font-variant-ligatures:no-common-ligatures">Outside of lookup table bounds. prs,thte= <span class="m_-3862642655512493798m_4974670387594922249gmail-Apple-converted-space">  </span>1100.3168750000000<span class="m_-3862642655512493798m_4974670387594922249gmail-Apple-converted-space">        </span>347.73405695443734 <span class="m_-3862642655512493798m_4974670387594922249gmail-Apple-converted-space"> </span></span></div><div style="margin: 0px; font-variant-numeric: normal; font-variant-east-asian: normal; font-stretch: normal; line-height: normal; font-family: "Courier New";" class=""><span class="m_-3862642655512493798m_4974670387594922249gmail-s1" style="font-variant-ligatures:no-common-ligatures"><span class="m_-3862642655512493798m_4974670387594922249gmail-Apple-converted-space"><br class=""></span></span></div><div style="margin: 0px; font-variant-numeric: normal; font-variant-east-asian: normal; font-stretch: normal; line-height: normal; font-family: "Courier New";" class=""><span class="m_-3862642655512493798m_4974670387594922249gmail-s1" style="font-variant-ligatures:no-common-ligatures"><span class="m_-3862642655512493798m_4974670387594922249gmail-Apple-converted-space">So, is it possible to expand the lookup table or to return the closest value?</span></span></div><div style="margin: 0px; font-variant-numeric: normal; font-variant-east-asian: normal; font-stretch: normal; line-height: normal; font-family: "Courier New";" class=""><span class="m_-3862642655512493798m_4974670387594922249gmail-s1" style="font-variant-ligatures:no-common-ligatures"><span class="m_-3862642655512493798m_4974670387594922249gmail-Apple-converted-space"><br class=""></span></span></div><div style="margin: 0px; font-variant-numeric: normal; font-variant-east-asian: normal; font-stretch: normal; line-height: normal; font-family: "Courier New";" class=""><span class="m_-3862642655512493798m_4974670387594922249gmail-s1" style="font-variant-ligatures:no-common-ligatures"><span class="m_-3862642655512493798m_4974670387594922249gmail-Apple-converted-space">Thanks Barry</span></span></div><div style="margin: 0px; font-variant-numeric: normal; font-variant-east-asian: normal; font-stretch: normal; font-size: 21px; line-height: normal; font-family: "Courier New";" class=""><span class="m_-3862642655512493798m_4974670387594922249gmail-s1" style="font-variant-ligatures:no-common-ligatures"><br class=""></span></div><div style="margin: 0px; font-variant-numeric: normal; font-variant-east-asian: normal; font-stretch: normal; font-size: 21px; line-height: normal; font-family: "Courier New";" class=""><span class="m_-3862642655512493798m_4974670387594922249gmail-s1" style="font-variant-ligatures:no-common-ligatures"><br class=""></span></div><div class=""><br class=""></div>-- <br class=""><div dir="ltr" class="m_-3862642655512493798m_4974670387594922249gmail_signature" data-smartmail="gmail_signature"><div dir="ltr" class=""><div class=""><div dir="ltr" class="">Barry H. Lynn, Ph.D<div class=""><div class="">Senior Associate Scientist, Lecturer,</div><div class=""><div class=""><span style="color:rgb(136,136,136)" class="">The Institute of the Earth Science, </span><br style="color:rgb(136,136,136)" class=""><span style="color:rgb(136,136,136)" class="">The Hebrew University of Jerusalem, </span><br style="color:rgb(136,136,136)" class=""><span style="color:rgb(136,136,136)" class="">Givat Ram, Jerusalem 91904, Israel </span><br style="color:rgb(136,136,136)" class=""></div><span style="color:rgb(136,136,136)" class="">Tel: 972 547 231 170</span><br style="color:rgb(136,136,136)" class=""><span style="color:rgb(136,136,136)" class="">Fax: (972)-25662581</span></div></div><div class=""><span style="color:rgb(136,136,136)" class=""><br class=""></span></div><div class="">C.E.O, Weather It Is, LTD<br class="">Weather and Climate Focus<br class=""><a href="http://weather-it-is.com/" target="_blank" class="">http://weather-it-is.com</a><br class="">Jerusalem, Israel<br class="">Local: 02 930 9525<br class="">Cell: 054 7 231 170<br class="">Int-IS: x972 2 930 9525<br class=""><br class=""></div></div></div></div></div></div></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="http://mailman.ucar.edu/mailman/listinfo/ncl-talk" rel="noreferrer" target="_blank" class="">http://mailman.ucar.edu/mailman/listinfo/ncl-talk</a><br class="">
</blockquote></div>
</blockquote></div><br clear="all" class=""><div class=""><br class=""></div>-- <br class=""><div dir="ltr" class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr" class=""><div class=""><div dir="ltr" class="">Barry H. Lynn, Ph.D<div class=""><div class="">Senior Associate Scientist, Lecturer,</div><div class=""><div class=""><span style="color:rgb(136,136,136)" class="">The Institute of the Earth Science, </span><br style="color:rgb(136,136,136)" class=""><span style="color:rgb(136,136,136)" class="">The Hebrew University of Jerusalem, </span><br style="color:rgb(136,136,136)" class=""><span style="color:rgb(136,136,136)" class="">Givat Ram, Jerusalem 91904, Israel </span><br style="color:rgb(136,136,136)" class=""></div><span style="color:rgb(136,136,136)" class="">Tel: 972 547 231 170</span><br style="color:rgb(136,136,136)" class=""><span style="color:rgb(136,136,136)" class="">Fax: (972)-25662581</span></div></div><div class=""><span style="color:rgb(136,136,136)" class=""><br class=""></span></div><div class="">C.E.O, Weather It Is, LTD<br class="">Weather and Climate Focus<br class=""><a href="http://weather-it-is.com/" target="_blank" class="">http://weather-it-is.com</a><br class="">Jerusalem, Israel<br class="">Local: 02 930 9525<br class="">Cell: 054 7 231 170<br class="">Int-IS: x972 2 930 9525<br class=""><br class=""></div></div></div></div></div>
_______________________________________________<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>