<div dir="ltr">Hi Barry,<div><br></div><div>Modifying the table isn't easy, but if you like to live dangerously, I can show you where the file is. </div><div><br></div><div>When NCL is installed, the file is installed here:</div><br><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><div>For the source code, it is located here:<br><br><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><br></div><div>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><br></div><div>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><br></div><div>Hope this helps,</div><div><br></div><div>Bill</div><br></div></div><br><div class="gmail_quote"><div dir="ltr">On Tue, Aug 28, 2018 at 5:39 AM Barry Lynn <<a href="mailto:barry.h.lynn@gmail.com">barry.h.lynn@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Hi:<div><br></div><div>I live in an area t aht has locations 200 to 400 m below sea-level.</div><div><br></div><div>When calling:<br><div><br></div><div>
<p class="m_4974670387594922249gmail-p1" style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;line-height:normal;font-family:"Courier New";color:rgb(0,0,0)"><span class="m_4974670387594922249gmail-s1" style="font-variant-ligatures:no-common-ligatures">twb = wrf_wetbulb(p,t,qv)</span></p><p class="m_4974670387594922249gmail-p1" style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;line-height:normal;font-family:"Courier New";color:rgb(0,0,0)"><span class="m_4974670387594922249gmail-s1" style="font-variant-ligatures:no-common-ligatures"><br></span></p><p class="m_4974670387594922249gmail-p1" style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;line-height:normal;font-family:"Courier New";color:rgb(0,0,0)"><span class="m_4974670387594922249gmail-s1" style="font-variant-ligatures:no-common-ligatures">I get this error:</span></p><p class="m_4974670387594922249gmail-p1" style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;line-height:normal;font-family:"Courier New";color:rgb(0,0,0)"><span class="m_4974670387594922249gmail-s1" style="font-variant-ligatures:no-common-ligatures"><br></span></p><p class="m_4974670387594922249gmail-p1" style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;line-height:normal;font-family:"Courier New";color:rgb(0,0,0)"><span class="m_4974670387594922249gmail-s1" style="font-variant-ligatures:no-common-ligatures">
</span></p><p class="m_4974670387594922249gmail-p1" style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;line-height:normal;font-family:"Courier New";color:rgb(0,0,0)"><span class="m_4974670387594922249gmail-s1" style="font-variant-ligatures:no-common-ligatures">Outside of lookup table bounds. prs,thte= <span class="m_4974670387594922249gmail-Apple-converted-space"> </span>1100.3168750000000<span class="m_4974670387594922249gmail-Apple-converted-space"> </span>347.73405695443734 <span class="m_4974670387594922249gmail-Apple-converted-space"> </span></span></p><p class="m_4974670387594922249gmail-p1" style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;line-height:normal;font-family:"Courier New";color:rgb(0,0,0)"><span class="m_4974670387594922249gmail-s1" style="font-variant-ligatures:no-common-ligatures"><span class="m_4974670387594922249gmail-Apple-converted-space"><br></span></span></p><p class="m_4974670387594922249gmail-p1" style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;line-height:normal;font-family:"Courier New";color:rgb(0,0,0)"><span class="m_4974670387594922249gmail-s1" style="font-variant-ligatures:no-common-ligatures"><span class="m_4974670387594922249gmail-Apple-converted-space">So, is it possible to expand the lookup table or to return the closest value?</span></span></p><p class="m_4974670387594922249gmail-p1" style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;line-height:normal;font-family:"Courier New";color:rgb(0,0,0)"><span class="m_4974670387594922249gmail-s1" style="font-variant-ligatures:no-common-ligatures"><span class="m_4974670387594922249gmail-Apple-converted-space"><br></span></span></p><p class="m_4974670387594922249gmail-p1" style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;line-height:normal;font-family:"Courier New";color:rgb(0,0,0)"><span class="m_4974670387594922249gmail-s1" style="font-variant-ligatures:no-common-ligatures"><span class="m_4974670387594922249gmail-Apple-converted-space">Thanks Barry</span></span></p><p class="m_4974670387594922249gmail-p1" 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";color:rgb(0,0,0)"><span class="m_4974670387594922249gmail-s1" style="font-variant-ligatures:no-common-ligatures"><br></span></p><p class="m_4974670387594922249gmail-p1" 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";color:rgb(0,0,0)"><span class="m_4974670387594922249gmail-s1" style="font-variant-ligatures:no-common-ligatures"><br></span></p><div><br></div>-- <br><div dir="ltr" class="m_4974670387594922249gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><div dir="ltr">Barry H. Lynn, Ph.D<div><div>Senior Associate Scientist, Lecturer,</div><div><div><span style="color:rgb(136,136,136)">The Institute of the Earth Science, </span><br style="color:rgb(136,136,136)"><span style="color:rgb(136,136,136)">The Hebrew University of Jerusalem, </span><br style="color:rgb(136,136,136)"><span style="color:rgb(136,136,136)">Givat Ram, Jerusalem 91904, Israel </span><br style="color:rgb(136,136,136)"></div><span style="color:rgb(136,136,136)">Tel: 972 547 231 170</span><br style="color:rgb(136,136,136)"><span style="color:rgb(136,136,136)">Fax: (972)-25662581</span></div></div><div><span style="color:rgb(136,136,136)"><br></span></div><div>C.E.O, Weather It Is, LTD<br>Weather and Climate Focus<br><a href="http://weather-it-is.com" target="_blank">http://weather-it-is.com</a><br>Jerusalem, Israel<br>Local: 02 930 9525<br>Cell: 054 7 231 170<br>Int-IS: x972 2 930 9525<br><br></div></div></div></div></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>