<div dir="ltr"><div><div><div><div><div><br></div>You are programming as if NCL is fortran. The reason why you are getting multiple repetitive messages is that each iteration call to 'int2p_n_Wrap' is working on only one vertical profile. <br><br>"warning:int2p_n: <b>1 </b>input array(s) contained all missing data. No interpolation performed on these arrays"<br><br>---<br></div><div>Interpreted languages like NCL, Matlab, IDL, Python, ,,, work on arrays and dynamically created arrays for the results<br><br></div>I think your whole set of nested do loops could be replaced with something like:<br><br>extnew = int2p_n_Wrap(pres,cal,po,1,1)<br></div>printVarSummary(extnew)<br></div>printMinMax(extnew, 0)<br><br>===<br></div>Unlike (say) fortran where you have to pre-declare array space, Interpreted languages will create the array space dynamically. Hence, you do not need the following.<br><br><div>extnew = new(dimsizes(cal),typeof(cal))</div><div>extnew@_FillValue=9.96921e+36</div><div><div><br><div><div><div><br></div></div></div></div></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Sep 18, 2017 at 10:23 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">Thank you RIck<div><br></div><div>I tried and it doesn't give me the warming however, all the variable contains all missing values...</div><div><br></div><div>Sun-</div></div><div class="HOEnZb"><div class="h5"><div class="gmail_extra"><br><div class="gmail_quote">2017-09-18 12:34 GMT-07:00 Rick Brownrigg <span dir="ltr"><<a href="mailto:brownrig@ucar.edu" target="_blank">brownrig@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><div><div><div><div>Hi,<br><br></div>I don't know for certain what's going on, but my best guess is that out of the 84 monthly timesteps, there 9 months that either don't have values for the variables "pres" or "cal".  The messages are just warnings -- does this materially affect your calculations.  If you need to detect these case and do something different, you might try something like:<br><br></div>       if (any(ismissing(pi)) .or. any(ismissing(xi))) then <br></div>              ; do something different.....<br></div><div>              ; perhaps something like:    extnew(t,:,j,i) = extnew@_FillValue<br></div>       else<span><br>                extnew(t,:,j,i) = int2p_n_Wrap (pi,xi,po,1,0)<br><br><br></span></div>Hope that helps...<br></div>Rick<br><br></div><div class="gmail_extra"><br><div class="gmail_quote"><div><div class="m_-2542051062242130356h5">On Mon, Sep 18, 2017 at 1:12 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_-2542051062242130356h5"><div dir="ltr"><img class="m_-2542051062242130356m_6183210159536811461m_5539872073362130126mailtrack-img" alt="" style="display:flex" src="https://mailtrack.io/trace/mail/519b065302db691948285211efeb778f599ea602.png?u=1812740" width="0" height="0">Hello <div><br></div><div>I face a problem using int2p_n_Warp.</div><div>It gives me with following message</div><div>warning:int2p_n: 1 input array(s) contained all missing data. No interpolation performed on these arrays<br></div><div><br></div><div>Here is my code. I appreciate any helps comments</div><div><div><br></div><div><div>load "$NCARG_ROOT/lib/ncarg/nclscri<wbr>pts/csm/gsn_code.ncl"</div><div>load "$NCARG_ROOT/lib/ncarg/nclscri<wbr>pts/csm/gsn_csm.ncl"</div><div>load "$NCARG_ROOT/lib/ncarg/nclscri<wbr>pts/csm/contributed.ncl"</div><div>load "$NCARG_ROOT/lib/ncarg/nclscri<wbr>pts/csm/shea_util.ncl"</div><div><br></div><div>begin</div><div><br></div><div>diri = "/Users/spark/03_cmfprec550aer<wbr>/03_output/"</div><div>fili = "<a href="http://calipsodaynight.nc" target="_blank">calipsodaynight.nc</a>"</div><div>filenc       = addfile (diri+fili+".nc", "r")</div><div>varname = "dnext"</div><div>cali = filenc->$varname$</div><div>printVarSummary(cali)</div><div>cali@_FillValue = -9999</div><div><br></div><div>cal = cali(month|:,lev|:,lat|:,lon|:<wbr>)   ;84*208*85*72</div><div>printVarSummary(cal)</div><div>printMinMax(cal,0)</div><div><br></div><div>diri1 = "/Users/spark/03_cmfprec550aer<wbr>/03_output/"</div><div>fili1 = "<a href="http://pressure_hpa.nc" target="_blank">pressure_hpa.nc</a>"</div><div>filenc1       = addfile (diri1+fili1+".nc", "r")</div><div>varname1 = "Pre"</div><div>pres = filenc1->$varname1$   ;84*208*85*72</div><div>;pres = apres(:,::-1,:,:)</div><div>printVarSummary(pres)</div><div>printMinMax(pres,0)</div><div><br></div><div>x=fspan(1013.24,88.2926,208) ;max(p)=1013.24  min(P)=88.2926</div><div>x@units           = "hPa"</div><div>printVarSummary(x)</div><div><br></div><div>extnew = new(dimsizes(cal),typeof(cal))</div><div>extnew@_FillValue=9.96921e+36</div><div>printVarSummary(extnew)</div><div>printMinMax(extnew,0)</div><div><br></div><div>po=x</div><div>po!0 = "p"</div><div>po@units = "hPa"</div><div><br></div><div>do t=0,83</div><div>   do j=0,84</div><div>      do i=0,71</div><div>         pi=pres(t,:,j,i)</div><div>         xi=cal(t,:,j,i)</div><div>         extnew(t,:,j,i) = int2p_n_Wrap (pi,xi,po,1,0)</div><div>         delete([/xi,pi/])</div><div>      end do</div><div>   end do</div><div>end do</div><div>extnew@_FillValue=9.96921e+36</div><div><br></div><div>printVarSummary(extnew)</div><div>printMinMax(extnew,0)</div><div><br></div><div>end</div></div><div><br></div><div>;;;results</div><div><div>Variable: cal</div><div>Type: float</div><div>Total Size: 427714560 bytes</div><div>            106928640 values</div><div>Number of Dimensions: 4</div><div>Dimensions and sizes:<span style="white-space:pre-wrap"> </span>[month | 84] x [lev | 208] x [lat | 85] x [lon | 72]</div><div>Coordinates:</div><div>            month: [0..83]</div><div>            lev: [-0.5..12]</div><div>            lat: [-85..85]</div><div>            lon: [-180..180]</div><div>Number Of Attributes: 1</div><div>  _FillValue :<span style="white-space:pre-wrap">      </span>-9999</div><div>(0)<span style="white-space:pre-wrap"> </span>min=-5.20219   max=13.6829</div><div><br></div><div>Variable: pres</div><div>Type: float</div><div>Total Size: 427714560 bytes</div><div>            106928640 values</div><div>Number of Dimensions: 4</div><div>Dimensions and sizes:<span style="white-space:pre-wrap">        </span>[month | 84] x [lev | 208] x [lat | 85] x [lon | 72]</div><div>Coordinates:</div><div>            month: [0..83]</div><div>            lev: [12..-0.5]</div><div>            lat: [-85..85]</div><div>            lon: [-180..180]</div><div>Number Of Attributes: 3</div><div>  _FillValue :<span style="white-space:pre-wrap">      </span>-999</div><div>  long_name :<span style="white-space:pre-wrap">       </span>pressure; U.S. Standard Atmosphere</div><div>  units :<span style="white-space:pre-wrap">     </span>hPa</div><div>(0)<span style="white-space:pre-wrap">   </span>pressure; U.S. Standard Atmosphere: min=88.2926   max=1013.24</div><div><br></div><div>Variable: x</div><div>Type: float</div><div>Total Size: 832 bytes</div><div>            208 values</div><div>Number of Dimensions: 1</div><div>Dimensions and sizes:<span style="white-space:pre-wrap">    </span>[208]</div><div>Coordinates:</div><div>Number Of Attributes: 1</div><div>  units :<span style="white-space:pre-wrap"> </span>hPa</div></div><div><br></div><div><div>Variable: extnew</div><div>Type: float</div><div>Total Size: 427714560 bytes</div><div>            106928640 values</div><div>Number of Dimensions: 4</div><div>Dimensions and sizes:<span style="white-space:pre-wrap">       </span>[84] x [208] x [85] x [72]</div><div>Coordinates:</div><div>Number Of Attributes: 1</div><div>  _FillValue :<span style="white-space:pre-wrap">       </span>9.96921e+36</div><div>(0)<span style="white-space:pre-wrap">   </span>min=9.96921e+36   max=9.96921e+36</div><div>warning:int2p_n: 1 input array(s) contained all missing data. No interpolation performed on these arrays</div><div>warning:int2p_n: 1 input array(s) contained all missing data. No interpolation performed on these arrays</div><div>warning:int2p_n: 1 input array(s) contained all missing data. No interpolation performed on these arrays</div><div>warning:int2p_n: 1 input array(s) contained all missing data. No interpolation performed on these arrays</div><div>warning:int2p_n: 1 input array(s) contained all missing data. No interpolation performed on these arrays</div><div>warning:int2p_n: 1 input array(s) contained all missing data. No interpolation performed on these arrays</div><div>warning:int2p_n: 1 input array(s) contained all missing data. No interpolation performed on these arrays</div><div>warning:int2p_n: 1 input array(s) contained all missing data. No interpolation performed on these arrays</div><div>warning:int2p_n: 1 input array(s) contained all missing data. No interpolation performed on these arrays...</div></div><div>continuous </div><div><br></div>-- <br><div class="m_-2542051062242130356m_6183210159536811461m_5539872073362130126gmail_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_-2542051062242130356m_6183210159536811461m_5539872073362130126mt-signature" style="padding-right:5px;color:initial">
                <a href="https://mailtrack.io/" class="m_-2542051062242130356m_6183210159536811461m_5539872073362130126mt-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:rgb(153,153,153)">Sent with </span>
                <a href="https://mailtrack.io/install?source=signature&lang=en&referral=mireiyue@gmail.com&idSignature=22" class="m_-2542051062242130356m_6183210159536811461m_5539872073362130126mt-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_-2542051062242130356gmail_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><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>