<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="">There was a similar question I found in the archives, response from Mary below. <a href="https://www.ncl.ucar.edu/Support/talk_archives/2009/1643.html" class="">https://www.ncl.ucar.edu/Support/talk_archives/2009/1643.html</a><div class=""><br class=""></div><div class=""><div class="">“</div><div class=""><span style="font-family: -webkit-standard;" class="">"get_res_value" is an internal routine that is not meant</span><span style="font-family: -webkit-standard;" class=""> </span><span style="font-family: -webkit-standard;" class="">in general for users.</span><span style="font-family: -webkit-standard;" class=""> </span></div><p style="font-family: -webkit-standard;" class="">What it does is looks at logical variable to see if it is True *and* <br class="">if the given attribute is attached to it. If it is, then it returns <br class="">that attribute's value. If not, then what's returned is the third <br class="">argument of "get_res_value". <br class=""></p><p style="font-family: -webkit-standard;" class="">So: <br class=""></p><p style="font-family: -webkit-standard;" class=""> useT = get_res_value(opts,"useTime",0) <br class=""></p><p style="font-family: -webkit-standard;" class="">is the equivalent of: <br class=""></p><p style="font-family: -webkit-standard;" class=""> if(opts.and.isatt(opts,"useTime")) then <br class=""> useT = opts@useTime <br class=""> else <br class=""> useT = 0 <br class=""> end if <br class=""></p><div class="">“</div><div class=""><br class=""></div><div class="">get_res_value() deletes the obtained attribute, while get_res_value_keep() does not. </div><div class=""><br class=""></div><div class=""><br class=""></div><div class=""><br class=""></div><div class="">Alan. </div><div class=""><br class=""></div><div class=""><br class=""></div><div class=""><br class=""></div><div class=""><br class=""><div class=""><br class=""><div class="">
<div style="color: rgb(0, 0, 0); letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><div style="color: rgb(0, 0, 0); font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; border-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-stroke-width: 0px;"><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">##############################<br class="">Alan Brammer,<div class="">Post-Doc Researcher</div><div class=""><br class=""></div><div class="">Department of Atmospheric and Environmental Sciences,<br class="">University at Albany, State University of New York, Albany, NY, 12222<div class=""><a href="mailto:abrammer@albany.edu" class="">abrammer@albany.edu</a><br class="">##############################</div></div></div></span></div></div>
</div>
<br class=""><div><blockquote type="cite" class=""><div class="">On 14 Feb 2016, at 23:25, Lijun Diao <<a href="mailto:ljdiao@gmail.com" class="">ljdiao@gmail.com</a>> wrote:</div><br class="Apple-interchange-newline"><div class="">
<div dir="ltr" class="">
<div dir="ltr" class="">
<div style="font-size: 12pt; font-family: Calibri;" class="">
<div class="">Hi, ncl talk forum:</div>
<div class=""> </div>
<div class="">When I was reading shapefile_utils.ncl, I came across get_res_value_keep
function. I could not find explanation of such function. Where can I find some
info about this function of its usage or meaning?</div>
<div class=""> </div>
<div class="">thanks,</div>
<div class=""> </div>
<div style="font-size: 12pt; font-family: Calibri;" class="">-----------------------------------------------------------------------------<br class="">Lijun
Diao<br class=""><a href="mailto:ldiao@uh.edu" class="">ldiao@uh.edu</a><br class="">Research Assistant<br class="">Department of Earth &
Atmospheric Sciences<br class="">University of Houston<br class="">4800 Calhoun RD., Bldg.
S&R1-312<br class="">Houston, TX 77204-5007</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></div></div></body></html>