<div dir="ltr"><div><div>[1] <br>Your implementation is wrong on multiple levels. Please carefully read the WRAPIT documentation. Also, you are using f90 syntax within the NCL script. <br><br>===<br>So I need to use the subroutine dobjanlx like this</div><div>grid = average::<span style="color:rgb(121,93,163);font-family:consolas,"liberation mono",menlo,courier,monospace;font-size:12px;white-space:pre-wrap">dobjanlx</span>(plon,plat,<wbr>pval,ntim,npts,grid,mlon,nlat</div><div> & ,xmsg,pmsg ,rscan,nscan,glat,glon,smwgt,<wbr>opt</div><div> & ,zval,zlat,zlon,ip,work,lwork,<wbr>ier)<br><br>====<br></div><div>It should be something like ....<br></div><div><br></div><div>grid = new( ....) ; preallocate for the return array<br></div><div>work = nes(...) ; preallocate a work array spaceMissing values<br> :<br></div><div><div>average::<span style="color:rgb(121,93,163);font-family:consolas,"liberation mono",menlo,courier,monospace;font-size:12px;white-space:pre-wrap">dobjanlx</span>(plon,plat,<wbr>pval,ntim,npts,grid,mlon,nlat \<br></div><div> ,xmsg,pmsg ,rscan,nscan,glat,glon,smwgt,<wbr>opt \<br></div> ,zval,zlat,zlon,ip,work,lwork,<wbr>ier)<br><br></div><div><br></div>[2] The plon[*], plat[*],pval[*] triplet could have pval@_FillValue=1e20<br><br></div><div>plat(0)=10 ... plon(0)=20, pval(0)=30<br>plat(1)=31.3 ... plon(1)=135.8, pval(2)=1e20 <=== would be ignored<br></div><div><br><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Jan 23, 2017 at 9:06 AM, Tao Lu <span dir="ltr"><<a href="mailto:hakufu.asano@gmail.com" target="_blank">hakufu.asano@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Dear ncl-talk<div><br></div><div>I got the obj_anal_ic code from <b>[ncl-talk] process underlying obj_anal_ic_Wrap()</b></div><div>You can get it also from <a href="https://github.com/yyr/ncl/blob/master/ni/src/lib/nfpfort/obsp1_mult_time_dp.f" target="_blank">https://github.com/yyr/<wbr>ncl/blob/master/ni/src/lib/<wbr>nfpfort/obsp1_mult_time_dp.f</a></div><div><br></div><div>The subroutine infomation is shown below:</div><div><table class="m_8631853620543719014gmail-highlight m_8631853620543719014gmail-tab-size m_8631853620543719014gmail-js-file-line-container" style="box-sizing:border-box;border-collapse:collapse;color:rgb(51,51,51);font-family:-apple-system,blinkmacsystemfont,"segoe ui",helvetica,arial,sans-serif,"apple color emoji","segoe ui emoji","segoe ui symbol";font-size:14px"><tbody style="box-sizing:border-box"><tr style="box-sizing:border-box"><td id="m_8631853620543719014gmail-LC1" class="m_8631853620543719014gmail-blob-code m_8631853620543719014gmail-blob-code-inner m_8631853620543719014gmail-js-file-line" style="box-sizing:border-box;padding:0px 10px;line-height:20px;vertical-align:top;overflow:visible;font-family:consolas,"liberation mono",menlo,courier,monospace;font-size:12px;word-wrap:normal;white-space:pre-wrap"><span class="m_8631853620543719014gmail-pl-c" style="box-sizing:border-box;color:rgb(150,152,150)"><span class="m_8631853620543719014gmail-pl-c" style="box-sizing:border-box">C</span> NCLFORTSTART</span></td></tr><tr style="box-sizing:border-box"><td id="m_8631853620543719014gmail-L2" class="m_8631853620543719014gmail-blob-num m_8631853620543719014gmail-js-line-number" style="box-sizing:border-box;padding:0px 10px;width:50px;min-width:50px;font-family:consolas,"liberation mono",menlo,courier,monospace;font-size:12px;line-height:20px;color:rgba(0,0,0,0.298039);text-align:right;white-space:nowrap;vertical-align:top"></td><td id="m_8631853620543719014gmail-LC2" class="m_8631853620543719014gmail-blob-code m_8631853620543719014gmail-blob-code-inner m_8631853620543719014gmail-js-file-line" style="box-sizing:border-box;padding:0px 10px;line-height:20px;vertical-align:top;overflow:visible;font-family:consolas,"liberation mono",menlo,courier,monospace;font-size:12px;word-wrap:normal;white-space:pre-wrap"> <span class="m_8631853620543719014gmail-pl-k" style="box-sizing:border-box;color:rgb(167,29,93)">subroutine</span> <span class="m_8631853620543719014gmail-pl-en" style="box-sizing:border-box;color:rgb(121,93,163)">dobjanlx</span>(<span class="m_8631853620543719014gmail-pl-v" style="box-sizing:border-box;color:rgb(237,106,67)">plon</span>,<span class="m_8631853620543719014gmail-pl-v" style="box-sizing:border-box;color:rgb(237,106,67)">plat</span>,<span class="m_8631853620543719014gmail-pl-v" style="box-sizing:border-box;color:rgb(237,106,67)">pval</span>,<span class="m_8631853620543719014gmail-pl-v" style="box-sizing:border-box;color:rgb(237,106,67)">ntim</span>,<span class="m_8631853620543719014gmail-pl-v" style="box-sizing:border-box;color:rgb(237,106,67)">n<wbr>pts</span>,<span class="m_8631853620543719014gmail-pl-v" style="box-sizing:border-box;color:rgb(237,106,67)">grid</span>,<span class="m_8631853620543719014gmail-pl-v" style="box-sizing:border-box;color:rgb(237,106,67)">mlon</span>,<span class="m_8631853620543719014gmail-pl-v" style="box-sizing:border-box;color:rgb(237,106,67)">nlat</span></td></tr><tr style="box-sizing:border-box"><td id="m_8631853620543719014gmail-L3" class="m_8631853620543719014gmail-blob-num m_8631853620543719014gmail-js-line-number" style="box-sizing:border-box;padding:0px 10px;width:50px;min-width:50px;font-family:consolas,"liberation mono",menlo,courier,monospace;font-size:12px;line-height:20px;color:rgba(0,0,0,0.298039);text-align:right;white-space:nowrap;vertical-align:top"></td><td id="m_8631853620543719014gmail-LC3" class="m_8631853620543719014gmail-blob-code m_8631853620543719014gmail-blob-code-inner m_8631853620543719014gmail-js-file-line" style="box-sizing:border-box;padding:0px 10px;line-height:20px;vertical-align:top;overflow:visible;font-family:consolas,"liberation mono",menlo,courier,monospace;font-size:12px;word-wrap:normal;white-space:pre-wrap"> <span class="m_8631853620543719014gmail-pl-v" style="box-sizing:border-box;color:rgb(237,106,67)">&</span> ,<span class="m_8631853620543719014gmail-pl-v" style="box-sizing:border-box;color:rgb(237,106,67)">xmsg</span>,<span class="m_8631853620543719014gmail-pl-v" style="box-sizing:border-box;color:rgb(237,106,67)">pmsg</span> ,<span class="m_8631853620543719014gmail-pl-v" style="box-sizing:border-box;color:rgb(237,106,67)">rscan</span>,<span class="m_8631853620543719014gmail-pl-v" style="box-sizing:border-box;color:rgb(237,106,67)">nscan</span>,<span class="m_8631853620543719014gmail-pl-v" style="box-sizing:border-box;color:rgb(237,106,67)">glat</span>,<span class="m_8631853620543719014gmail-pl-v" style="box-sizing:border-box;color:rgb(237,106,67)">glon</span>,<span class="m_8631853620543719014gmail-pl-v" style="box-sizing:border-box;color:rgb(237,106,67)">smwgt</span>,<span class="m_8631853620543719014gmail-pl-v" style="box-sizing:border-box;color:rgb(237,106,67)">o<wbr>pt</span></td></tr><tr style="box-sizing:border-box"><td id="m_8631853620543719014gmail-L4" class="m_8631853620543719014gmail-blob-num m_8631853620543719014gmail-js-line-number" style="box-sizing:border-box;padding:0px 10px;width:50px;min-width:50px;font-family:consolas,"liberation mono",menlo,courier,monospace;font-size:12px;line-height:20px;color:rgba(0,0,0,0.298039);text-align:right;white-space:nowrap;vertical-align:top"></td><td id="m_8631853620543719014gmail-LC4" class="m_8631853620543719014gmail-blob-code m_8631853620543719014gmail-blob-code-inner m_8631853620543719014gmail-js-file-line" style="box-sizing:border-box;padding:0px 10px;line-height:20px;vertical-align:top;overflow:visible;font-family:consolas,"liberation mono",menlo,courier,monospace;font-size:12px;word-wrap:normal;white-space:pre-wrap"> <span class="m_8631853620543719014gmail-pl-v" style="box-sizing:border-box;color:rgb(237,106,67)">&</span> ,<span class="m_8631853620543719014gmail-pl-v" style="box-sizing:border-box;color:rgb(237,106,67)">zval</span>,<span class="m_8631853620543719014gmail-pl-v" style="box-sizing:border-box;color:rgb(237,106,67)">zlat</span>,<span class="m_8631853620543719014gmail-pl-v" style="box-sizing:border-box;color:rgb(237,106,67)">zlon</span>,<span class="m_8631853620543719014gmail-pl-v" style="box-sizing:border-box;color:rgb(237,106,67)">ip</span>,<span class="m_8631853620543719014gmail-pl-v" style="box-sizing:border-box;color:rgb(237,106,67)">work</span>,<span class="m_8631853620543719014gmail-pl-v" style="box-sizing:border-box;color:rgb(237,106,67)">lwork</span>,<span class="m_8631853620543719014gmail-pl-v" style="box-sizing:border-box;color:rgb(237,106,67)"><wbr>ier</span>) </td></tr><tr style="box-sizing:border-box"><td id="m_8631853620543719014gmail-L5" class="m_8631853620543719014gmail-blob-num m_8631853620543719014gmail-js-line-number" style="box-sizing:border-box;padding:0px 10px;width:50px;min-width:50px;font-family:consolas,"liberation mono",menlo,courier,monospace;font-size:12px;line-height:20px;color:rgba(0,0,0,0.298039);text-align:right;white-space:nowrap;vertical-align:top"></td><td id="m_8631853620543719014gmail-LC5" class="m_8631853620543719014gmail-blob-code m_8631853620543719014gmail-blob-code-inner m_8631853620543719014gmail-js-file-line" style="box-sizing:border-box;padding:0px 10px;line-height:20px;vertical-align:top;overflow:visible;font-family:consolas,"liberation mono",menlo,courier,monospace;font-size:12px;word-wrap:normal;white-space:pre-wrap"> <span class="m_8631853620543719014gmail-pl-k" style="box-sizing:border-box;color:rgb(167,29,93)">implicit none</span></td></tr><tr style="box-sizing:border-box"><td id="m_8631853620543719014gmail-L6" class="m_8631853620543719014gmail-blob-num m_8631853620543719014gmail-js-line-number" style="box-sizing:border-box;padding:0px 10px;width:50px;min-width:50px;font-family:consolas,"liberation mono",menlo,courier,monospace;font-size:12px;line-height:20px;color:rgba(0,0,0,0.298039);text-align:right;white-space:nowrap;vertical-align:top"></td><td id="m_8631853620543719014gmail-LC6" class="m_8631853620543719014gmail-blob-code m_8631853620543719014gmail-blob-code-inner m_8631853620543719014gmail-js-file-line" style="box-sizing:border-box;padding:0px 10px;line-height:20px;vertical-align:top;overflow:visible;font-family:consolas,"liberation mono",menlo,courier,monospace;font-size:12px;word-wrap:normal;white-space:pre-wrap"><span class="m_8631853620543719014gmail-pl-c" style="box-sizing:border-box;color:rgb(150,152,150)"><span class="m_8631853620543719014gmail-pl-c" style="box-sizing:border-box">c</span> </span></td></tr><tr style="box-sizing:border-box"><td id="m_8631853620543719014gmail-L7" class="m_8631853620543719014gmail-blob-num m_8631853620543719014gmail-js-line-number" style="box-sizing:border-box;padding:0px 10px;width:50px;min-width:50px;font-family:consolas,"liberation mono",menlo,courier,monospace;font-size:12px;line-height:20px;color:rgba(0,0,0,0.298039);text-align:right;white-space:nowrap;vertical-align:top"></td><td id="m_8631853620543719014gmail-LC7" class="m_8631853620543719014gmail-blob-code m_8631853620543719014gmail-blob-code-inner m_8631853620543719014gmail-js-file-line" style="box-sizing:border-box;padding:0px 10px;line-height:20px;vertical-align:top;overflow:visible;font-family:consolas,"liberation mono",menlo,courier,monospace;font-size:12px;word-wrap:normal;white-space:pre-wrap"><span class="m_8631853620543719014gmail-pl-c" style="box-sizing:border-box;color:rgb(150,152,150)"><span class="m_8631853620543719014gmail-pl-c" style="box-sizing:border-box">c</span> Objective Analysis via 'iterative improvement' [driver]</span></td></tr><tr style="box-sizing:border-box"><td id="m_8631853620543719014gmail-L8" class="m_8631853620543719014gmail-blob-num m_8631853620543719014gmail-js-line-number" style="box-sizing:border-box;padding:0px 10px;width:50px;min-width:50px;font-family:consolas,"liberation mono",menlo,courier,monospace;font-size:12px;line-height:20px;color:rgba(0,0,0,0.298039);text-align:right;white-space:nowrap;vertical-align:top"></td><td id="m_8631853620543719014gmail-LC8" class="m_8631853620543719014gmail-blob-code m_8631853620543719014gmail-blob-code-inner m_8631853620543719014gmail-js-file-line" style="box-sizing:border-box;padding:0px 10px;line-height:20px;vertical-align:top;overflow:visible;font-family:consolas,"liberation mono",menlo,courier,monospace;font-size:12px;word-wrap:normal;white-space:pre-wrap"><span class="m_8631853620543719014gmail-pl-c" style="box-sizing:border-box;color:rgb(150,152,150)">c</span></td></tr><tr style="box-sizing:border-box"><td id="m_8631853620543719014gmail-L9" class="m_8631853620543719014gmail-blob-num m_8631853620543719014gmail-js-line-number" style="box-sizing:border-box;padding:0px 10px;width:50px;min-width:50px;font-family:consolas,"liberation mono",menlo,courier,monospace;font-size:12px;line-height:20px;color:rgba(0,0,0,0.298039);text-align:right;white-space:nowrap;vertical-align:top"></td><td id="m_8631853620543719014gmail-LC9" class="m_8631853620543719014gmail-blob-code m_8631853620543719014gmail-blob-code-inner m_8631853620543719014gmail-js-file-line" style="box-sizing:border-box;padding:0px 10px;line-height:20px;vertical-align:top;overflow:visible;font-family:consolas,"liberation mono",menlo,courier,monospace;font-size:12px;word-wrap:normal;white-space:pre-wrap"><span class="m_8631853620543719014gmail-pl-c" style="box-sizing:border-box;color:rgb(150,152,150)"><span class="m_8631853620543719014gmail-pl-c" style="box-sizing:border-box">c</span> NCL: grid = objanalii(plon,plat,pval,<wbr>rscan,glat,glon,opt)</span></td></tr><tr style="box-sizing:border-box"><td id="m_8631853620543719014gmail-L10" class="m_8631853620543719014gmail-blob-num m_8631853620543719014gmail-js-line-number" style="box-sizing:border-box;padding:0px 10px;width:50px;min-width:50px;font-family:consolas,"liberation mono",menlo,courier,monospace;font-size:12px;line-height:20px;color:rgba(0,0,0,0.298039);text-align:right;white-space:nowrap;vertical-align:top"></td><td id="m_8631853620543719014gmail-LC10" class="m_8631853620543719014gmail-blob-code m_8631853620543719014gmail-blob-code-inner m_8631853620543719014gmail-js-file-line" style="box-sizing:border-box;padding:0px 10px;line-height:20px;vertical-align:top;overflow:visible;font-family:consolas,"liberation mono",menlo,courier,monospace;font-size:12px;word-wrap:normal;white-space:pre-wrap"><span class="m_8631853620543719014gmail-pl-c" style="box-sizing:border-box;color:rgb(150,152,150)"><span class="m_8631853620543719014gmail-pl-c" style="box-sizing:border-box">c</span> </span></td></tr><tr style="box-sizing:border-box"><td id="m_8631853620543719014gmail-L11" class="m_8631853620543719014gmail-blob-num m_8631853620543719014gmail-js-line-number" style="box-sizing:border-box;padding:0px 10px;width:50px;min-width:50px;font-family:consolas,"liberation mono",menlo,courier,monospace;font-size:12px;line-height:20px;color:rgba(0,0,0,0.298039);text-align:right;white-space:nowrap;vertical-align:top"></td><td id="m_8631853620543719014gmail-LC11" class="m_8631853620543719014gmail-blob-code m_8631853620543719014gmail-blob-code-inner m_8631853620543719014gmail-js-file-line" style="box-sizing:border-box;padding:0px 10px;line-height:20px;vertical-align:top;overflow:visible;font-family:consolas,"liberation mono",menlo,courier,monospace;font-size:12px;word-wrap:normal;white-space:pre-wrap"><span class="m_8631853620543719014gmail-pl-c" style="box-sizing:border-box;color:rgb(150,152,150)"><span class="m_8631853620543719014gmail-pl-c" style="box-sizing:border-box">c</span> nomenclature : </span></td></tr><tr style="box-sizing:border-box"><td id="m_8631853620543719014gmail-L12" class="m_8631853620543719014gmail-blob-num m_8631853620543719014gmail-js-line-number" style="box-sizing:border-box;padding:0px 10px;width:50px;min-width:50px;font-family:consolas,"liberation mono",menlo,courier,monospace;font-size:12px;line-height:20px;color:rgba(0,0,0,0.298039);text-align:right;white-space:nowrap;vertical-align:top"></td><td id="m_8631853620543719014gmail-LC12" class="m_8631853620543719014gmail-blob-code m_8631853620543719014gmail-blob-code-inner m_8631853620543719014gmail-js-file-line" style="box-sizing:border-box;padding:0px 10px;line-height:20px;vertical-align:top;overflow:visible;font-family:consolas,"liberation mono",menlo,courier,monospace;font-size:12px;word-wrap:normal;white-space:pre-wrap"><span class="m_8631853620543719014gmail-pl-c" style="box-sizing:border-box;color:rgb(150,152,150)"><span class="m_8631853620543719014gmail-pl-c" style="box-sizing:border-box">c</span> . plat,plon - coordinates of observation in degrees </span></td></tr><tr style="box-sizing:border-box"><td id="m_8631853620543719014gmail-L13" class="m_8631853620543719014gmail-blob-num m_8631853620543719014gmail-js-line-number" style="box-sizing:border-box;padding:0px 10px;width:50px;min-width:50px;font-family:consolas,"liberation mono",menlo,courier,monospace;font-size:12px;line-height:20px;color:rgba(0,0,0,0.298039);text-align:right;white-space:nowrap;vertical-align:top"></td><td id="m_8631853620543719014gmail-LC13" class="m_8631853620543719014gmail-blob-code m_8631853620543719014gmail-blob-code-inner m_8631853620543719014gmail-js-file-line" style="box-sizing:border-box;padding:0px 10px;line-height:20px;vertical-align:top;overflow:visible;font-family:consolas,"liberation mono",menlo,courier,monospace;font-size:12px;word-wrap:normal;white-space:pre-wrap"><span class="m_8631853620543719014gmail-pl-c" style="box-sizing:border-box;color:rgb(150,152,150)"><span class="m_8631853620543719014gmail-pl-c" style="box-sizing:border-box">c</span> . -90.<= plat =>90. ; {-180, 0}<= plon >=(180, 360}</span></td></tr><tr style="box-sizing:border-box"><td id="m_8631853620543719014gmail-L14" class="m_8631853620543719014gmail-blob-num m_8631853620543719014gmail-js-line-number" style="box-sizing:border-box;padding:0px 10px;width:50px;min-width:50px;font-family:consolas,"liberation mono",menlo,courier,monospace;font-size:12px;line-height:20px;color:rgba(0,0,0,0.298039);text-align:right;white-space:nowrap;vertical-align:top"></td><td id="m_8631853620543719014gmail-LC14" class="m_8631853620543719014gmail-blob-code m_8631853620543719014gmail-blob-code-inner m_8631853620543719014gmail-js-file-line" style="box-sizing:border-box;padding:0px 10px;line-height:20px;vertical-align:top;overflow:visible;font-family:consolas,"liberation mono",menlo,courier,monospace;font-size:12px;word-wrap:normal;white-space:pre-wrap"><span class="m_8631853620543719014gmail-pl-c" style="box-sizing:border-box;color:rgb(150,152,150)"><span class="m_8631853620543719014gmail-pl-c" style="box-sizing:border-box">c</span> . pval - value of obs. [*] or ... [ntim][*] </span></td></tr><tr style="box-sizing:border-box"><td id="m_8631853620543719014gmail-L15" class="m_8631853620543719014gmail-blob-num m_8631853620543719014gmail-js-line-number" style="box-sizing:border-box;padding:0px 10px;width:50px;min-width:50px;font-family:consolas,"liberation mono",menlo,courier,monospace;font-size:12px;line-height:20px;color:rgba(0,0,0,0.298039);text-align:right;white-space:nowrap;vertical-align:top"></td><td id="m_8631853620543719014gmail-LC15" class="m_8631853620543719014gmail-blob-code m_8631853620543719014gmail-blob-code-inner m_8631853620543719014gmail-js-file-line" style="box-sizing:border-box;padding:0px 10px;line-height:20px;vertical-align:top;overflow:visible;font-family:consolas,"liberation mono",menlo,courier,monospace;font-size:12px;word-wrap:normal;white-space:pre-wrap"><span class="m_8631853620543719014gmail-pl-c" style="box-sizing:border-box;color:rgb(150,152,150)"><span class="m_8631853620543719014gmail-pl-c" style="box-sizing:border-box">c</span> . grid - array which will hold the interpolated grid </span></td></tr><tr style="box-sizing:border-box"><td id="m_8631853620543719014gmail-L16" class="m_8631853620543719014gmail-blob-num m_8631853620543719014gmail-js-line-number" style="box-sizing:border-box;padding:0px 10px;width:50px;min-width:50px;font-family:consolas,"liberation mono",menlo,courier,monospace;font-size:12px;line-height:20px;color:rgba(0,0,0,0.298039);text-align:right;white-space:nowrap;vertical-align:top"></td><td id="m_8631853620543719014gmail-LC16" class="m_8631853620543719014gmail-blob-code m_8631853620543719014gmail-blob-code-inner m_8631853620543719014gmail-js-file-line" style="box-sizing:border-box;padding:0px 10px;line-height:20px;vertical-align:top;overflow:visible;font-family:consolas,"liberation mono",menlo,courier,monospace;font-size:12px;word-wrap:normal;white-space:pre-wrap"><span class="m_8631853620543719014gmail-pl-c" style="box-sizing:border-box;color:rgb(150,152,150)"><span class="m_8631853620543719014gmail-pl-c" style="box-sizing:border-box">c</span> . mlon,nlat - no. of lon and lat points </span></td></tr><tr style="box-sizing:border-box"><td id="m_8631853620543719014gmail-L17" class="m_8631853620543719014gmail-blob-num m_8631853620543719014gmail-js-line-number" style="box-sizing:border-box;padding:0px 10px;width:50px;min-width:50px;font-family:consolas,"liberation mono",menlo,courier,monospace;font-size:12px;line-height:20px;color:rgba(0,0,0,0.298039);text-align:right;white-space:nowrap;vertical-align:top"></td><td id="m_8631853620543719014gmail-LC17" class="m_8631853620543719014gmail-blob-code m_8631853620543719014gmail-blob-code-inner m_8631853620543719014gmail-js-file-line" style="box-sizing:border-box;padding:0px 10px;line-height:20px;vertical-align:top;overflow:visible;font-family:consolas,"liberation mono",menlo,courier,monospace;font-size:12px;word-wrap:normal;white-space:pre-wrap"><span class="m_8631853620543719014gmail-pl-c" style="box-sizing:border-box;color:rgb(150,152,150)"><span class="m_8631853620543719014gmail-pl-c" style="box-sizing:border-box">c</span> . glon,glat - vectors containing the lat/lon coords of the grid </span></td></tr><tr style="box-sizing:border-box"><td id="m_8631853620543719014gmail-L18" class="m_8631853620543719014gmail-blob-num m_8631853620543719014gmail-js-line-number" style="box-sizing:border-box;padding:0px 10px;width:50px;min-width:50px;font-family:consolas,"liberation mono",menlo,courier,monospace;font-size:12px;line-height:20px;color:rgba(0,0,0,0.298039);text-align:right;white-space:nowrap;vertical-align:top"></td><td id="m_8631853620543719014gmail-LC18" class="m_8631853620543719014gmail-blob-code m_8631853620543719014gmail-blob-code-inner m_8631853620543719014gmail-js-file-line" style="box-sizing:border-box;padding:0px 10px;line-height:20px;vertical-align:top;overflow:visible;font-family:consolas,"liberation mono",menlo,courier,monospace;font-size:12px;word-wrap:normal;white-space:pre-wrap"><span class="m_8631853620543719014gmail-pl-c" style="box-sizing:border-box;color:rgb(150,152,150)"><span class="m_8631853620543719014gmail-pl-c" style="box-sizing:border-box">c</span> . longitudes must have same range as plon</span></td></tr><tr style="box-sizing:border-box"><td id="m_8631853620543719014gmail-L19" class="m_8631853620543719014gmail-blob-num m_8631853620543719014gmail-js-line-number" style="box-sizing:border-box;padding:0px 10px;width:50px;min-width:50px;font-family:consolas,"liberation mono",menlo,courier,monospace;font-size:12px;line-height:20px;color:rgba(0,0,0,0.298039);text-align:right;white-space:nowrap;vertical-align:top"></td><td id="m_8631853620543719014gmail-LC19" class="m_8631853620543719014gmail-blob-code m_8631853620543719014gmail-blob-code-inner m_8631853620543719014gmail-js-file-line" style="box-sizing:border-box;padding:0px 10px;line-height:20px;vertical-align:top;overflow:visible;font-family:consolas,"liberation mono",menlo,courier,monospace;font-size:12px;word-wrap:normal;white-space:pre-wrap"><span class="m_8631853620543719014gmail-pl-c" style="box-sizing:border-box;color:rgb(150,152,150)"><span class="m_8631853620543719014gmail-pl-c" style="box-sizing:border-box">c</span> . rscan - vector containing scan radii (in degrees) </span></td></tr><tr style="box-sizing:border-box"><td id="m_8631853620543719014gmail-L20" class="m_8631853620543719014gmail-blob-num m_8631853620543719014gmail-js-line-number" style="box-sizing:border-box;padding:0px 10px;width:50px;min-width:50px;font-family:consolas,"liberation mono",menlo,courier,monospace;font-size:12px;line-height:20px;color:rgba(0,0,0,0.298039);text-align:right;white-space:nowrap;vertical-align:top"></td><td id="m_8631853620543719014gmail-LC20" class="m_8631853620543719014gmail-blob-code m_8631853620543719014gmail-blob-code-inner m_8631853620543719014gmail-js-file-line" style="box-sizing:border-box;padding:0px 10px;line-height:20px;vertical-align:top;overflow:visible;font-family:consolas,"liberation mono",menlo,courier,monospace;font-size:12px;word-wrap:normal;white-space:pre-wrap"><span class="m_8631853620543719014gmail-pl-c" style="box-sizing:border-box;color:rgb(150,152,150)"><span class="m_8631853620543719014gmail-pl-c" style="box-sizing:border-box">c</span> . rscan(1)> rscan(2)> ...>rscan(nscan) </span></td></tr><tr style="box-sizing:border-box"><td id="m_8631853620543719014gmail-L21" class="m_8631853620543719014gmail-blob-num m_8631853620543719014gmail-js-line-number" style="box-sizing:border-box;padding:0px 10px;width:50px;min-width:50px;font-family:consolas,"liberation mono",menlo,courier,monospace;font-size:12px;line-height:20px;color:rgba(0,0,0,0.298039);text-align:right;white-space:nowrap;vertical-align:top"></td><td id="m_8631853620543719014gmail-LC21" class="m_8631853620543719014gmail-blob-code m_8631853620543719014gmail-blob-code-inner m_8631853620543719014gmail-js-file-line" style="box-sizing:border-box;padding:0px 10px;line-height:20px;vertical-align:top;overflow:visible;font-family:consolas,"liberation mono",menlo,courier,monospace;font-size:12px;word-wrap:normal;white-space:pre-wrap"><span class="m_8631853620543719014gmail-pl-c" style="box-sizing:border-box;color:rgb(150,152,150)"><span class="m_8631853620543719014gmail-pl-c" style="box-sizing:border-box">c</span> . nscan - no. of scans to be performed (length of rscan) </span></td></tr><tr style="box-sizing:border-box"><td id="m_8631853620543719014gmail-L22" class="m_8631853620543719014gmail-blob-num m_8631853620543719014gmail-js-line-number" style="box-sizing:border-box;padding:0px 10px;width:50px;min-width:50px;font-family:consolas,"liberation mono",menlo,courier,monospace;font-size:12px;line-height:20px;color:rgba(0,0,0,0.298039);text-align:right;white-space:nowrap;vertical-align:top"></td><td id="m_8631853620543719014gmail-LC22" class="m_8631853620543719014gmail-blob-code m_8631853620543719014gmail-blob-code-inner m_8631853620543719014gmail-js-file-line" style="box-sizing:border-box;padding:0px 10px;line-height:20px;vertical-align:top;overflow:visible;font-family:consolas,"liberation mono",menlo,courier,monospace;font-size:12px;word-wrap:normal;white-space:pre-wrap"><span class="m_8631853620543719014gmail-pl-c" style="box-sizing:border-box;color:rgb(150,152,150)"><span class="m_8631853620543719014gmail-pl-c" style="box-sizing:border-box">c</span> . it is recommended that multiple scans be </span></td></tr><tr style="box-sizing:border-box"><td id="m_8631853620543719014gmail-L23" class="m_8631853620543719014gmail-blob-num m_8631853620543719014gmail-js-line-number" style="box-sizing:border-box;padding:0px 10px;width:50px;min-width:50px;font-family:consolas,"liberation mono",menlo,courier,monospace;font-size:12px;line-height:20px;color:rgba(0,0,0,0.298039);text-align:right;white-space:nowrap;vertical-align:top"></td><td id="m_8631853620543719014gmail-LC23" class="m_8631853620543719014gmail-blob-code m_8631853620543719014gmail-blob-code-inner m_8631853620543719014gmail-js-file-line" style="box-sizing:border-box;padding:0px 10px;line-height:20px;vertical-align:top;overflow:visible;font-family:consolas,"liberation mono",menlo,courier,monospace;font-size:12px;word-wrap:normal;white-space:pre-wrap"><span class="m_8631853620543719014gmail-pl-c" style="box-sizing:border-box;color:rgb(150,152,150)"><span class="m_8631853620543719014gmail-pl-c" style="box-sizing:border-box">c</span> . performed. the max number of scans is currently </span></td></tr><tr style="box-sizing:border-box"><td id="m_8631853620543719014gmail-L24" class="m_8631853620543719014gmail-blob-num m_8631853620543719014gmail-js-line-number" style="box-sizing:border-box;padding:0px 10px;width:50px;min-width:50px;font-family:consolas,"liberation mono",menlo,courier,monospace;font-size:12px;line-height:20px;color:rgba(0,0,0,0.298039);text-align:right;white-space:nowrap;vertical-align:top"></td><td id="m_8631853620543719014gmail-LC24" class="m_8631853620543719014gmail-blob-code m_8631853620543719014gmail-blob-code-inner m_8631853620543719014gmail-js-file-line" style="box-sizing:border-box;padding:0px 10px;line-height:20px;vertical-align:top;overflow:visible;font-family:consolas,"liberation mono",menlo,courier,monospace;font-size:12px;word-wrap:normal;white-space:pre-wrap"><span class="m_8631853620543719014gmail-pl-c" style="box-sizing:border-box;color:rgb(150,152,150)"><span class="m_8631853620543719014gmail-pl-c" style="box-sizing:border-box">c</span> . 10. this may easily be adjusted by changing the </span></td></tr><tr style="box-sizing:border-box"><td id="m_8631853620543719014gmail-L25" class="m_8631853620543719014gmail-blob-num m_8631853620543719014gmail-js-line-number" style="box-sizing:border-box;padding:0px 10px;width:50px;min-width:50px;font-family:consolas,"liberation mono",menlo,courier,monospace;font-size:12px;line-height:20px;color:rgba(0,0,0,0.298039);text-align:right;white-space:nowrap;vertical-align:top"></td><td id="m_8631853620543719014gmail-LC25" class="m_8631853620543719014gmail-blob-code m_8631853620543719014gmail-blob-code-inner m_8631853620543719014gmail-js-file-line" style="box-sizing:border-box;padding:0px 10px;line-height:20px;vertical-align:top;overflow:visible;font-family:consolas,"liberation mono",menlo,courier,monospace;font-size:12px;word-wrap:normal;white-space:pre-wrap"><span class="m_8631853620543719014gmail-pl-c" style="box-sizing:border-box;color:rgb(150,152,150)"><span class="m_8631853620543719014gmail-pl-c" style="box-sizing:border-box">c</span> . parameter nscmax and changing the length of the </span></td></tr><tr style="box-sizing:border-box"><td id="m_8631853620543719014gmail-L26" class="m_8631853620543719014gmail-blob-num m_8631853620543719014gmail-js-line-number" style="box-sizing:border-box;padding:0px 10px;width:50px;min-width:50px;font-family:consolas,"liberation mono",menlo,courier,monospace;font-size:12px;line-height:20px;color:rgba(0,0,0,0.298039);text-align:right;white-space:nowrap;vertical-align:top"></td><td id="m_8631853620543719014gmail-LC26" class="m_8631853620543719014gmail-blob-code m_8631853620543719014gmail-blob-code-inner m_8631853620543719014gmail-js-file-line" style="box-sizing:border-box;padding:0px 10px;line-height:20px;vertical-align:top;overflow:visible;font-family:consolas,"liberation mono",menlo,courier,monospace;font-size:12px;word-wrap:normal;white-space:pre-wrap"><span class="m_8631853620543719014gmail-pl-c" style="box-sizing:border-box;color:rgb(150,152,150)"><span class="m_8631853620543719014gmail-pl-c" style="box-sizing:border-box">c</span> . data statement for smwgt. this routine was tested </span></td></tr><tr style="box-sizing:border-box"><td id="m_8631853620543719014gmail-L27" class="m_8631853620543719014gmail-blob-num m_8631853620543719014gmail-js-line-number" style="box-sizing:border-box;padding:0px 10px;width:50px;min-width:50px;font-family:consolas,"liberation mono",menlo,courier,monospace;font-size:12px;line-height:20px;color:rgba(0,0,0,0.298039);text-align:right;white-space:nowrap;vertical-align:top"></td><td id="m_8631853620543719014gmail-LC27" class="m_8631853620543719014gmail-blob-code m_8631853620543719014gmail-blob-code-inner m_8631853620543719014gmail-js-file-line" style="box-sizing:border-box;padding:0px 10px;line-height:20px;vertical-align:top;overflow:visible;font-family:consolas,"liberation mono",menlo,courier,monospace;font-size:12px;word-wrap:normal;white-space:pre-wrap"><span class="m_8631853620543719014gmail-pl-c" style="box-sizing:border-box;color:rgb(150,152,150)"><span class="m_8631853620543719014gmail-pl-c" style="box-sizing:border-box">c</span> . with nscan=4 : rscan(1,2,3,4)=20.,15.,10.,7.5 </span></td></tr><tr style="box-sizing:border-box"><td id="m_8631853620543719014gmail-L28" class="m_8631853620543719014gmail-blob-num m_8631853620543719014gmail-js-line-number" style="box-sizing:border-box;padding:0px 10px;width:50px;min-width:50px;font-family:consolas,"liberation mono",menlo,courier,monospace;font-size:12px;line-height:20px;color:rgba(0,0,0,0.298039);text-align:right;white-space:nowrap;vertical-align:top"></td><td id="m_8631853620543719014gmail-LC28" class="m_8631853620543719014gmail-blob-code m_8631853620543719014gmail-blob-code-inner m_8631853620543719014gmail-js-file-line" style="box-sizing:border-box;padding:0px 10px;line-height:20px;vertical-align:top;overflow:visible;font-family:consolas,"liberation mono",menlo,courier,monospace;font-size:12px;word-wrap:normal;white-space:pre-wrap"><span class="m_8631853620543719014gmail-pl-c" style="box-sizing:border-box;color:rgb(150,152,150)"><span class="m_8631853620543719014gmail-pl-c" style="box-sizing:border-box">c</span> . rscan(nscan) should be .ge. the grid spacing. </span></td></tr><tr style="box-sizing:border-box"><td id="m_8631853620543719014gmail-L29" class="m_8631853620543719014gmail-blob-num m_8631853620543719014gmail-js-line-number" style="box-sizing:border-box;padding:0px 10px;width:50px;min-width:50px;font-family:consolas,"liberation mono",menlo,courier,monospace;font-size:12px;line-height:20px;color:rgba(0,0,0,0.298039);text-align:right;white-space:nowrap;vertical-align:top"></td><td id="m_8631853620543719014gmail-LC29" class="m_8631853620543719014gmail-blob-code m_8631853620543719014gmail-blob-code-inner m_8631853620543719014gmail-js-file-line" style="box-sizing:border-box;padding:0px 10px;line-height:20px;vertical-align:top;overflow:visible;font-family:consolas,"liberation mono",menlo,courier,monospace;font-size:12px;word-wrap:normal;white-space:pre-wrap"><span class="m_8631853620543719014gmail-pl-c" style="box-sizing:border-box;color:rgb(150,152,150)"><span class="m_8631853620543719014gmail-pl-c" style="box-sizing:border-box">c</span> . xmsg - missing code for plat and plon</span></td></tr><tr style="box-sizing:border-box"><td id="m_8631853620543719014gmail-L30" class="m_8631853620543719014gmail-blob-num m_8631853620543719014gmail-js-line-number" style="box-sizing:border-box;padding:0px 10px;width:50px;min-width:50px;font-family:consolas,"liberation mono",menlo,courier,monospace;font-size:12px;line-height:20px;color:rgba(0,0,0,0.298039);text-align:right;white-space:nowrap;vertical-align:top"></td><td id="m_8631853620543719014gmail-LC30" class="m_8631853620543719014gmail-blob-code m_8631853620543719014gmail-blob-code-inner m_8631853620543719014gmail-js-file-line" style="box-sizing:border-box;padding:0px 10px;line-height:20px;vertical-align:top;overflow:visible;font-family:consolas,"liberation mono",menlo,courier,monospace;font-size:12px;word-wrap:normal;white-space:pre-wrap"><span class="m_8631853620543719014gmail-pl-c" style="box-sizing:border-box;color:rgb(150,152,150)"><span class="m_8631853620543719014gmail-pl-c" style="box-sizing:border-box">c</span> . pmsg - missing code for pval</span></td></tr><tr style="box-sizing:border-box"><td id="m_8631853620543719014gmail-L31" class="m_8631853620543719014gmail-blob-num m_8631853620543719014gmail-js-line-number" style="box-sizing:border-box;padding:0px 10px;width:50px;min-width:50px;font-family:consolas,"liberation mono",menlo,courier,monospace;font-size:12px;line-height:20px;color:rgba(0,0,0,0.298039);text-align:right;white-space:nowrap;vertical-align:top"></td><td id="m_8631853620543719014gmail-LC31" class="m_8631853620543719014gmail-blob-code m_8631853620543719014gmail-blob-code-inner m_8631853620543719014gmail-js-file-line" style="box-sizing:border-box;padding:0px 10px;line-height:20px;vertical-align:top;overflow:visible;font-family:consolas,"liberation mono",menlo,courier,monospace;font-size:12px;word-wrap:normal;white-space:pre-wrap"><span class="m_8631853620543719014gmail-pl-c" style="box-sizing:border-box;color:rgb(150,152,150)"><span class="m_8631853620543719014gmail-pl-c" style="box-sizing:border-box">c</span> . value to which grid points with no data </span></td></tr><tr style="box-sizing:border-box"><td id="m_8631853620543719014gmail-L32" class="m_8631853620543719014gmail-blob-num m_8631853620543719014gmail-js-line-number" style="box-sizing:border-box;padding:0px 10px;width:50px;min-width:50px;font-family:consolas,"liberation mono",menlo,courier,monospace;font-size:12px;line-height:20px;color:rgba(0,0,0,0.298039);text-align:right;white-space:nowrap;vertical-align:top"></td><td id="m_8631853620543719014gmail-LC32" class="m_8631853620543719014gmail-blob-code m_8631853620543719014gmail-blob-code-inner m_8631853620543719014gmail-js-file-line" style="box-sizing:border-box;padding:0px 10px;line-height:20px;vertical-align:top;overflow:visible;font-family:consolas,"liberation mono",menlo,courier,monospace;font-size:12px;word-wrap:normal;white-space:pre-wrap"><span class="m_8631853620543719014gmail-pl-c" style="box-sizing:border-box;color:rgb(150,152,150)"><span class="m_8631853620543719014gmail-pl-c" style="box-sizing:border-box">c</span> . within rscan(1) degrees will be set </span></td></tr><tr style="box-sizing:border-box"><td id="m_8631853620543719014gmail-L33" class="m_8631853620543719014gmail-blob-num m_8631853620543719014gmail-js-line-number" style="box-sizing:border-box;padding:0px 10px;width:50px;min-width:50px;font-family:consolas,"liberation mono",menlo,courier,monospace;font-size:12px;line-height:20px;color:rgba(0,0,0,0.298039);text-align:right;white-space:nowrap;vertical-align:top"></td><td id="m_8631853620543719014gmail-LC33" class="m_8631853620543719014gmail-blob-code m_8631853620543719014gmail-blob-code-inner m_8631853620543719014gmail-js-file-line" style="box-sizing:border-box;padding:0px 10px;line-height:20px;vertical-align:top;overflow:visible;font-family:consolas,"liberation mono",menlo,courier,monospace;font-size:12px;word-wrap:normal;white-space:pre-wrap"><span class="m_8631853620543719014gmail-pl-c" style="box-sizing:border-box;color:rgb(150,152,150)"><span class="m_8631853620543719014gmail-pl-c" style="box-sizing:border-box">c</span> . opt - option flag</span></td></tr><tr style="box-sizing:border-box"><td id="m_8631853620543719014gmail-L34" class="m_8631853620543719014gmail-blob-num m_8631853620543719014gmail-js-line-number" style="box-sizing:border-box;padding:0px 10px;width:50px;min-width:50px;font-family:consolas,"liberation mono",menlo,courier,monospace;font-size:12px;line-height:20px;color:rgba(0,0,0,0.298039);text-align:right;white-space:nowrap;vertical-align:top"></td><td id="m_8631853620543719014gmail-LC34" class="m_8631853620543719014gmail-blob-code m_8631853620543719014gmail-blob-code-inner m_8631853620543719014gmail-js-file-line" style="box-sizing:border-box;padding:0px 10px;line-height:20px;vertical-align:top;overflow:visible;font-family:consolas,"liberation mono",menlo,courier,monospace;font-size:12px;word-wrap:normal;white-space:pre-wrap"><span class="m_8631853620543719014gmail-pl-c" style="box-sizing:border-box;color:rgb(150,152,150)"><span class="m_8631853620543719014gmail-pl-c" style="box-sizing:border-box">c</span> . ier - error code </span></td></tr><tr style="box-sizing:border-box"><td id="m_8631853620543719014gmail-L35" class="m_8631853620543719014gmail-blob-num m_8631853620543719014gmail-js-line-number" style="box-sizing:border-box;padding:0px 10px;width:50px;min-width:50px;font-family:consolas,"liberation mono",menlo,courier,monospace;font-size:12px;line-height:20px;color:rgba(0,0,0,0.298039);text-align:right;white-space:nowrap;vertical-align:top"></td><td id="m_8631853620543719014gmail-LC35" class="m_8631853620543719014gmail-blob-code m_8631853620543719014gmail-blob-code-inner m_8631853620543719014gmail-js-file-line" style="box-sizing:border-box;padding:0px 10px;line-height:20px;vertical-align:top;overflow:visible;font-family:consolas,"liberation mono",menlo,courier,monospace;font-size:12px;word-wrap:normal;white-space:pre-wrap"><span class="m_8631853620543719014gmail-pl-c" style="box-sizing:border-box;color:rgb(150,152,150)"><span class="m_8631853620543719014gmail-pl-c" style="box-sizing:border-box">c</span> </span></td></tr><tr style="box-sizing:border-box"><td id="m_8631853620543719014gmail-L36" class="m_8631853620543719014gmail-blob-num m_8631853620543719014gmail-js-line-number" style="box-sizing:border-box;padding:0px 10px;width:50px;min-width:50px;font-family:consolas,"liberation mono",menlo,courier,monospace;font-size:12px;line-height:20px;color:rgba(0,0,0,0.298039);text-align:right;white-space:nowrap;vertical-align:top"></td><td id="m_8631853620543719014gmail-LC36" class="m_8631853620543719014gmail-blob-code m_8631853620543719014gmail-blob-code-inner m_8631853620543719014gmail-js-file-line" style="box-sizing:border-box;padding:0px 10px;line-height:20px;vertical-align:top;overflow:visible;word-wrap:normal"><span class="m_8631853620543719014gmail-pl-c" style="box-sizing:border-box"><span class="m_8631853620543719014gmail-pl-c" style="color:rgb(150,152,150);font-family:consolas,"liberation mono",menlo,courier,monospace;font-size:12px;white-space:pre-wrap;box-sizing:border-box">c</span><font color="#969896" face="consolas, liberation mono, menlo, courier, monospace"><span style="font-size:12px;white-space:pre-wrap"> INPU
</span></font></span></td></tr></tbody></table><div><br></div><br></div><div>I did some changes to the code and use</div><div><pre style="margin-top:0px;margin-bottom:0px;padding:0px;font-size:13.3333px;line-height:12pt;font-family:courier;border-style:solid;border-width:0px 0px 15px;border-color:transparent;color:rgb(0,0,0)">WRAPIT obsp1_mult_time_dp.f</pre>Get shared object obsp1_mult_time_dp.o</div><div>So I need to use the subroutine dobjanlx like this</div><div>grid = average::<span style="color:rgb(121,93,163);font-family:consolas,"liberation mono",menlo,courier,monospace;font-size:12px;white-space:pre-wrap">dobjanlx</span>(plon,plat,<wbr>pval,ntim,npts,grid,mlon,nlat</div><div> & ,xmsg,pmsg ,rscan,nscan,glat,glon,smwgt,<wbr>opt</div><div> & ,zval,zlat,zlon,ip,work,lwork,<wbr>ier)<br></div><div><br></div><div>But I am confused with the how the xmsg, pmsg and ier are passed to the subroutine <span style="color:rgb(121,93,163);font-family:consolas,"liberation mono",menlo,courier,monospace;font-size:12px;white-space:pre-wrap">dobjanlx</span>.</div><div>What does missing code exactly mean?</div><div>And what is parameter ip is? How should I pass value to it?</div><div><br></div><div>Thank you,</div><div>Tao</div></div>
<br>______________________________<wbr>_________________<br>
ncl-talk mailing list<br>
<a href="mailto:ncl-talk@ucar.edu">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/<wbr>mailman/listinfo/ncl-talk</a><br>
<br></blockquote></div><br></div>