<div dir="ltr"><div class="gmail_default" style="font-size:small">Sun,</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">Without your data, I'm not sure what's going on. I believe this is a case of "look at your data", because it seems that you are trying to use -9999 as a missing value, but in general, you shouldn't need to set missing values when reading data off a NetCDF file. Of course, we've seen poorly written NetCDF files that didn't have _FillValue set correct, but in general, this is not the case.</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">For example, you have:</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style><div class="gmail_default" style="font-size:small"> data = f->$varname$</div><div class="gmail_default" style="font-size:small"> data1 = data(:,:,:)</div><div class="gmail_default" style="font-size:small"> data1@_FillValue= -9999<br></div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">First, I'm not sure why you have both "data" and "data1". Why can't you just do:</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small"> data1 = f->$varname$<br></div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">Also, I'm not sure why you have:</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style><div class="gmail_default" style="font-size:small"> data1@_FillValue= -9999</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">Right after you read in the data, and before you set the _FillValue attribute, did you look at your data by doing a "printVarSummary" on it?</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style><div class="gmail_default" style> fili = "<a href="http://CAL_LID_L3_APro_Combined-Beta-V1-00.2009-12D.nc">CAL_LID_L3_APro_Combined-Beta-V1-00.2009-12D.nc</a>"</div><div class="gmail_default" style> f = addfile (diri+fili+".nc", "r")</div><div class="gmail_default" style> varname ="Extinction_532_Mean"</div><div class="gmail_default" style><br></div><div class="gmail_default" style> data = f->$varname$</div><div style="font-size:small"> printVarSummary(data)</div><div style="font-size:small"><br></div><div style="font-size:small">Also, you have:</div><div style="font-size:small"><br></div><div style="font-size:small"><div> Extinction_532_MeanN = fallN[:]->Extinction_532_Mean</div><div> Extinction_532_MeanN@_FillValue= -9999</div><div><br></div><div>Again, are you sure the explicit setting of _FillValue is needed? Did you do a printVarSummary on the variable *before* setting the _FillValue?</div><div><br></div><div><div> Extinction_532_MeanN = fallN[:]->Extinction_532_Mean</div><div> printVarSummary(Extinction_532_MeanN)</div><div> Extinction_532_MeanN@_FillValue= -9999</div></div></div></div><div style="font-size:small"><br></div><div style="font-size:small">The problem with int2p_Wrap probably has something to do with either the data you are passing it, or a mismatch in your level values. Please read the "int2p_Wrap" documentation carefully and make sure you have the correct units and options set:</div><div style="font-size:small"><br></div><div style><a href="http://www.ncl.ucar.edu/Document/Functions/Contributed/int2p_Wrap.shtml">http://www.ncl.ucar.edu/Document/Functions/Contributed/int2p_Wrap.shtml</a><br></div><div style><br></div><div style>Also, look at the data you are passing in to this function by calling "printMinMax" on the various input parameters and using "printVarSummary" to make sure the units and dimensions all look good.</div><div style><br></div><div style="font-size:small">--Mary</div><div style="font-size:small"><br></div></div></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Oct 15, 2014 at 11:12 AM, 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 style="word-wrap:break-word">Dear NCL Users.<div><br></div><div>I try to interpolate 201 pressure to 17 pressure levels and use “int2p_Wrap”. </div><div>It does interpolation but I get warning </div><div>"<b>warning:int2p: 1025 input array(s) contained all missing data. No interpolation performed on these arrays</b>” </div><div>with</div><div><div><div><br></div><div><b>Variable: levNew</b></div><div><b>Type: float</b></div><div><b>Total Size: 416160 bytes</b></div><div><b> 104040 values</b></div><div><b>Number of Dimensions: 3</b></div><div><b>Dimensions and sizes:<span style="white-space:pre-wrap">        </span>[lat | 85] x [lon | 72] x [ALT | 17]</b></div><div><b>Coordinates:</b></div><div><b> lat: [-85..85]</b></div><div><b> lon: [-180..180]</b></div><div><b> ALT: [1000..10]</b></div><div><b>Number Of Attributes: 2</b></div><div><b> _FillValue :<span style="white-space:pre-wrap">        </span>-9999</b></div><div><b> average_op_ncl :<span style="white-space:pre-wrap">        </span>dim_avg over dimension(s): year</b></div><div><b>(0)<span style="white-space:pre-wrap">        </span>interpolated_01: min=-9999 max=-9999</b></div></div><div><br></div><div>I calculated the average of Extinction coefficient from CALIPSO for each month over the 7 years data (has 201 levels). And this averaged values should be interpolated by 17 levels. It seems that the interpolation worked but the Min. and Max values show wrong. How I can fix this? I appreciate any comments and suggestions.</div><div><br></div><div>Thanks in advance,</div><div>Sun-</div></div><div><br></div><div></div></div><br><div style="word-wrap:break-word"><div></div></div><br>_______________________________________________<br>
ncl-talk mailing list<br>
List instructions, subscriber options, unsubscribe:<br>
<a href="http://mailman.ucar.edu/mailman/listinfo/ncl-talk" target="_blank">http://mailman.ucar.edu/mailman/listinfo/ncl-talk</a><br>
<br></blockquote></div><br></div>