[ncl-talk] ESMF regrids data with missing values

Dennis Shea shea at ucar.edu
Thu Sep 3 08:31:04 MDT 2015


As we always request .... please include a

   printVarSummary(temp)
   printMinMax(temp,0)

Does 'temp' have an _FillValue attribute?

On Wed, Sep 2, 2015 at 9:15 PM, Zhifeng Yang <yangzf01 at gmail.com> wrote:
> Hi
>
> I am using the ESMF to regrid an array including missing values. The
> interpolation method is "bilinear". In order to distinguish the positions of
> missing value, I add
>
> Opt at SrcGridMask    = where(.not.ismissing(temp),1,0)
>
> in my code. Unfortunately, it seems that NCL still uses the missing values
> to calculate the interpolation, and my destination array is full of missing
> value.
>
> Since I interpolate 1deg*1deg to 2deg*2deg, the four 1deg*1deg grids can get
> one 2deg*2deg grid. It seems that if I have one missing value in these four
> 1deg*1deg grids, my interpolated 2deg*2deg grid will be a missing value, no
> matter of other 3 1deg*1deg grids.
>
> So how can I ignore the influence from the missing values while I
> interpolate the 1deg*1deg grid to the 2deg*2deg grid?
>
> Thank you
> Zhifeng
>
> _______________________________________________
> ncl-talk mailing list
> ncl-talk at ucar.edu
> List instructions, subscriber options, unsubscribe:
> http://mailman.ucar.edu/mailman/listinfo/ncl-talk
>


More information about the ncl-talk mailing list