@staticmethod
def decode_sampling(sampling_str):
    """
        converts the string representing the sampling (e.g. from the tilenames)
        to an integer value in metres

        Parameters
        ----------
        sampling_str : str
            string representing the sampling

        Returns
        -------
        sampling : int
            the grid sampling = size of pixels; in metres.

        """
    if len(sampling_str) != 3:
        raise ValueError('Resolution is badly defined!')
    if sampling_str[1] == 'K':
        sampling = int(sampling_str[0]) * 1000 + int(sampling_str[2]) * 100
    else:
        sampling = int(sampling_str)
    return sampling
