<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">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><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><img class="m_6397071223522833483mailtrack-img" alt="" style="display:flex" src="https://mailtrack.io/trace/mail/ed616bb1e9f28f18c5e875d26cffaa0d94c6f554.png?u=1812740" 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_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_6397071223522833483mt-signature" style="padding-right:5px;color:initial">
                <a href="https://mailtrack.io/" class="m_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_6397071223522833483mt-install" target="_blank">Mailtrack</a>
                
            </div></div></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>