def METHOD_NAME(local_filename, var_name):
    from pyhdf.SD import SD, SDC
    f = SD(local_filename, SDC.READ)
    var = f.select(var_name)
    data = var[:]
    fill = ReflectanceCorrector._read_fill_value_from_hdf4(var, data.dtype)
    return np.ma.MaskedArray(data, data == fill)