# Path: atrain_match/config.py
# RESOLUTION = int(os.environ.get('ATRAIN_RESOLUTION', 5))
# 
# NODATA = -9


import numpy as np
import logging
from atrain_match.config import RESOLUTION, NODATA
    from pyresample.geometry import SwathDefinition
    from pyresample.kd_tree import get_neighbour_info
    from pyresample.kd_tree import get_sample_from_neighbour_info

    @property
    def cols(self):

        # self._cols = np.array(self._cols, dtype=np.int64)
        return np.ma.array(self._cols, mask=self.mask, fill_value=-NODATA,
                           hard_mask=True)

    @property
    def time_diff(self):
        """Time difference in seconds"""
        if self._time_diff is None:
            return None
        # Only use pixel mask
        return np.ma.array(self._time_diff, mask=self._pixel_mask,
                           fill_value=np.inf, hard_mask=True)

    @time_diff.setter
    def time_diff(self, value):
        self._time_diff = value

    @property
    def mask(self):
        if None not in (self.time_diff, self.time_threshold):
            return (self._pixel_mask +
                    (abs(self.time_diff) > self.time_threshold))
        return self._pixel_mask


def match_lonlat(source, target,

# Path: atrain_match/config.py
# RESOLUTION = int(os.environ.get('ATRAIN_RESOLUTION', 5))
# 
# NODATA = -9


# Path: atrain_match/utils/match.py
import numpy as np
import logging
from atrain_match.config import RESOLUTION, NODATA
    from pyresample.geometry import SwathDefinition
    from pyresample.kd_tree import get_neighbour_info
    from pyresample.kd_tree import get_sample_from_neighbour_info


    @property
    def cols(self):

        # self._cols = np.array(self._cols, dtype=np.int64)
        return np.ma.array(self._cols, mask=self.mask, fill_value=-NODATA,
                           hard_mask=True)

    @property
    def time_diff(self):
        """Time difference in seconds"""
        if self._time_diff is None:
            return None
        # Only use pixel mask
        return np.ma.array(self._time_diff, mask=self._pixel_mask,
                           fill_value=np.inf, hard_mask=True)

    @time_diff.setter
    def time_diff(self, value):
        self._time_diff = value

    @property
    def mask(self):
        if None not in (self.time_diff, self.time_threshold):
            return (self._pixel_mask +
                    (abs(self.time_diff) > self.time_threshold))
        return self._pixel_mask


def match_lonlat(source, target,

                 radius_of_influence=0.7*RESOLUTION*1000.0,