# pyresample.bilinear.xarr module

XArray version of bilinear interpolation.

class pyresample.bilinear.xarr.XArrayBilinearResampler(source_geo_def, target_geo_def, radius_of_influence, neighbours=32, epsilon=0, reduce_data=True)

  Bases: `BilinearBase`

  Bilinear interpolation using XArray.

  Initialize resampler.

  Parameters:

    - source_geo_def (object) – Geometry definition of source

    - target_geo_def (object) – Geometry definition of target

    - radius_of_influence (float) – Cut off distance in meters

    - neighbours (int, optional) – The number of neigbours to consider for each grid point

    - epsilon (float, optional) – Allowed uncertainty in meters. Increasing uncertainty reduces execution time

    - reduce_data (bool, optional) – Perform initial coarse reduction of source dataset in order to reduce execution time

  load_resampling_info(filename)

    Load bilinear resampling look-up tables and initialize the resampler.

  resample(data, fill_value=None, nprocs=1)

    Resample the given data.

  save_resampling_info(filename)

    Save bilinear resampling look-up tables.

class pyresample.bilinear.xarr.XArrayResamplerBilinear(source_geo_def, target_geo_def, radius_of_influence, **kwargs)

  Bases: `XArrayBilinearResampler`

  Wrapper for the old resampler class.

  Initialize resampler.

  __init__(source_geo_def, target_geo_def, radius_of_influence, **kwargs)

    Initialize resampler.