<div dir="ltr"><div>I believe so. <br>------<br>There is no '<b>simpne_n</b>' version of the function so you will have to use dimension reordering.<br><br></div><div>Both of the following return: <br><pre>result(ntim,nlat,mlon)<br>-----<br></pre></div>[a] depth[*]<br><div><pre>result = <b>simpne</b>(depth,f(time|:,lat|:,<wbr>lon|:,depth|:)) <br></pre><pre>[b] depth(time,depth,lat,lon)<br><br>result = <b>simpne</b>(depth(time|:,lat|:,lon|<wbr>:,depth|:) \<br> , f(time|:,lat|:,lon|:,depth|:)<wbr> ) <br><br>-----<br></pre><pre>Add attributes:<br></pre><pre>result@long_name = "vertical integral: "+f@long_name<br>result@units = "..."<br></pre><pre>===<br></pre><pre>Add coordinate information:<br><br></pre><pre>copy_VarCoords(f(:,0,:,:), result)<br><br>---<br></pre><pre>printVarSummary(result)<br></pre><pre>printMinMax(result, 0)<br></pre></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Sun, Oct 15, 2017 at 1:56 PM, sunmin park <span dir="ltr"><<a href="mailto:mireiyue@gmail.com" target="_blank">mireiyue@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"><img class="m_4675030175016806609mailtrack-img" alt="" style="display:flex" src="https://mailtrack.io/trace/mail/7a1c654578d5450247361c306f58687fff0e2bf9.png?u=1812740" width="0" height="0">Thank you Dennis!<div>Is the function "simpne" works like that??</div><div><br></div><div>Sun-<br><br><br><br><div style="display:inline">
<div class="m_4675030175016806609mt-signature" style="padding-right:5px;color:initial">
<a href="https://mailtrack.io/" class="m_4675030175016806609mt-signature-logo" style="text-decoration:none" target="_blank">
<img src="https://s3-eu-west-1.amazonaws.com/mailtrack-crx/icon-signature.png" height="14">
</a>
<span style="color:#999">Sent with </span>
<a href="https://chrome.google.com/webstore/detail/mailtrack-for-gmail-inbox/ndnaehgpjlnokgebbaldlmgkapkpjkkb?utm_source=gmail&utm_medium=signature&utm_campaign=signaturevirality" class="m_4675030175016806609mt-install" target="_blank">Mailtrack</a>
</div></div></div></div><div class="HOEnZb"><div class="h5"><div class="gmail_extra"><br><div class="gmail_quote">2017-10-13 7:08 GMT-07:00 Dennis Shea <span dir="ltr"><<a href="mailto:shea@ucar.edu" target="_blank">shea@ucar.edu</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div><div>Simple Integration is : SUM( x*dx)<br></div><div><br>Does the file have any variable like: <br> SOIL_LAYER_THICKNESS(time, soil_layers) ;<br> X (time, soil_layers ydim, xdim) ; (0,1,2,3) <=dimension numbers<br>---<br></div><div>f = <b>addfile</b>("..." , "r")<br></div><div><br></div><div>slt = f->SOIL_LAYER_THICKNESS<br></div><div>x = f->X<br><br>SLT = <b>conform</b>( x, slt, (/0,1/) ) ; convenience, clarity<br></div><div>XI = <b>dim_sum_n</b>( x*SLT, <b><span style="color:rgb(0,0,255)">1</span></b>) ; sum (integrate) the product; (ntim,nlat,mlon)<br></div></div><div><b>copy_VarCoords</b>(X(:,0,:,:), XI) ; copy any coordinsate<br></div><div>XI@long_name = "Integration: "+x@long_name<br></div><div>XI@units = "..."<br></div><div><b>printVarSummary</b>(XI)<br><br>----<br></div><div>if you do not have a 'SOIL_LAYER_THICKNESS' variable, you will have to create one.<br></div><div> <br></div><div>good luck<br></div></div><div class="gmail_extra"><br><div class="gmail_quote"><div><div class="m_4675030175016806609h5">On Thu, Oct 12, 2017 at 2:02 PM, sunmin park <span dir="ltr"><<a href="mailto:mireiyue@gmail.com" target="_blank">mireiyue@gmail.com</a>></span> wrote:<br></div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div class="m_4675030175016806609h5"><div dir="ltr"><img class="m_4675030175016806609m_-3487605833851117903m_6397071223522833483mailtrack-img" alt="" style="display:flex" width="0" height="0">Hello NCL users<div><br></div><div>I have dataset which is soil moisture and it has 15 vertical levels. I need to integrate the levels to the levels I want. I have been looking for a function but so far I can find functions for pressure interpolation. Is there any function that integrate underground values?</div><div><br></div><div>Thank you</div><div>Sun-<br clear="all"><div><br></div>-- <br><div class="m_4675030175016806609m_-3487605833851117903m_6397071223522833483gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><div dir="ltr"><p style="margin:0px 0px 1.35em;color:rgb(42,42,42);font-size:12px;background-color:rgb(255,255,255)"><span style="font-size:12px;line-height:15px"><font face="georgia, serif">Sunmin Park, </font></span></p><p style="margin:0px 0px 1.35em;color:rgb(42,42,42);font-size:12px;background-color:rgb(255,255,255)"><font face="georgia, serif"><span style="font-size:12px">PhD Candidate, </span>Department of Earth Science, </font></p><p style="margin:0px 0px 1.35em;color:rgb(42,42,42);font-size:12px;background-color:rgb(255,255,255)"><font face="georgia, serif">University of California Riverside</font></p><p style="line-height:15px;margin:0px 0px 1.35em;color:rgb(42,42,42);font-family:Gulim;font-size:12px;background-color:rgb(255,255,255)"><span lang="EN-US"><font style="line-height:normal" face="arial,helvetica,sans-serif"><br></font></span></p>
<div><font color="#006600"><br></font></div>
<div><font color="#006600"><br></font></div><br></div></div></div></div>
<br><br><br><div style="display:inline">
<div class="m_4675030175016806609m_-3487605833851117903m_6397071223522833483mt-signature" style="padding-right:5px;color:initial">
<a href="https://mailtrack.io/" class="m_4675030175016806609m_-3487605833851117903m_6397071223522833483mt-signature-logo" style="text-decoration:none" target="_blank">
<img src="https://s3-eu-west-1.amazonaws.com/mailtrack-crx/icon-signature.png" height="14">
</a>
<span style="color:#999">Sent with </span>
<a href="https://chrome.google.com/webstore/detail/mailtrack-for-gmail-inbox/ndnaehgpjlnokgebbaldlmgkapkpjkkb?utm_source=gmail&utm_medium=signature&utm_campaign=signaturevirality" class="m_4675030175016806609m_-3487605833851117903m_6397071223522833483mt-install" target="_blank">Mailtrack</a>
</div></div></div></div>
<br></div></div>______________________________<wbr>_________________<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/mailma<wbr>n/listinfo/ncl-talk</a><br>
<br></blockquote></div><br></div>
</blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="m_4675030175016806609gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><div dir="ltr"><p style="margin:0px 0px 1.35em;color:rgb(42,42,42);font-size:12px;background-color:rgb(255,255,255)"><span style="font-size:12px;line-height:15px"><font face="georgia, serif">Sunmin Park, </font></span></p><p style="margin:0px 0px 1.35em;color:rgb(42,42,42);font-size:12px;background-color:rgb(255,255,255)"><font face="georgia, serif"><span style="font-size:12px">PhD Candidate, </span>Department of Earth Science, </font></p><p style="margin:0px 0px 1.35em;color:rgb(42,42,42);font-size:12px;background-color:rgb(255,255,255)"><font face="georgia, serif">University of California Riverside</font></p><p style="line-height:15px;margin:0px 0px 1.35em;color:rgb(42,42,42);font-family:Gulim;font-size:12px;background-color:rgb(255,255,255)"><span lang="EN-US"><font style="line-height:normal" face="arial,helvetica,sans-serif"><br></font></span></p>
<div><font color="#006600"><br></font></div>
<div><font color="#006600"><br></font></div><br></div></div></div></div>
</div>
</div></div></blockquote></div><br></div>