<div dir="ltr"><div><div><div><div><div><div>Hi Dennis, <br><br></div>Sorry for late reply. I just missed your email and didn't respond it.<br><br></div>Here are the variables that I interpolate using ESMF. <br><br>Variable (CALIOP_cf_yearly) before using ESMF:<br><br>Variable: CALIOP_cf_yearly<br>Type: float<br>Total Size: 259200 bytes<br> 64800 values<br>Number of Dimensions: 2<br>Dimensions and sizes: [180] x [360]<br>Coordinates: <br>Number Of Attributes: 1<br> _FillValue : -9999<br>(0) min=0.00341297 max=1<br><br>----------------------------------------------------------------------------------------------------<br></div>Variable (CALIOPg_cf_yearly) after using ESMF:<br><br>Variable: CALIOPg_cf_yearly<br>Type: float<br>Total Size: 65884 bytes<br> 16471 values<br>Number of Dimensions: 2<br>Dimensions and sizes: [91] x [181]<br>Coordinates: <br>Number Of Attributes: 1<br> _FillValue : -9999<br>(0) min=0.0176868 max=1<br><br></div>Both of them have the attribute "_FillValue: -9999". Actually what I am doing is to interpolate the 1*1degree grids to 2*2 degree grids. <br><br></div>Thank you<br></div>Zhifeng<br></div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Sep 3, 2015 at 10:31 AM, Dennis Shea <span dir="ltr"><<a href="mailto:shea@ucar.edu" target="_blank">shea@ucar.edu</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">As we always request .... please include a<br>
<br>
printVarSummary(temp)<br>
printMinMax(temp,0)<br>
<br>
Does 'temp' have an _FillValue attribute?<br>
<div><div class="h5"><br>
On Wed, Sep 2, 2015 at 9:15 PM, Zhifeng Yang <<a href="mailto:yangzf01@gmail.com">yangzf01@gmail.com</a>> wrote:<br>
> Hi<br>
><br>
> I am using the ESMF to regrid an array including missing values. The<br>
> interpolation method is "bilinear". In order to distinguish the positions of<br>
> missing value, I add<br>
><br>
> Opt@SrcGridMask = where(.not.ismissing(temp),1,0)<br>
><br>
> in my code. Unfortunately, it seems that NCL still uses the missing values<br>
> to calculate the interpolation, and my destination array is full of missing<br>
> value.<br>
><br>
> Since I interpolate 1deg*1deg to 2deg*2deg, the four 1deg*1deg grids can get<br>
> one 2deg*2deg grid. It seems that if I have one missing value in these four<br>
> 1deg*1deg grids, my interpolated 2deg*2deg grid will be a missing value, no<br>
> matter of other 3 1deg*1deg grids.<br>
><br>
> So how can I ignore the influence from the missing values while I<br>
> interpolate the 1deg*1deg grid to the 2deg*2deg grid?<br>
><br>
> Thank you<br>
> Zhifeng<br>
><br>
</div></div>> _______________________________________________<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/mailman/listinfo/ncl-talk</a><br>
><br>
</blockquote></div><br></div>