# Path: atrain_match/libs/extract_imager_along_track.py
# def get_data_from_array(array, matched):
#     if array is None:
#         return None
#     return np.array([array[matched['row'][idx], matched['col'][idx]]
#                      for idx in range(matched['row'].shape[0])])
# 
# Path: atrain_match/config.py
# NODATA = -9


from atrain_match.libs.extract_imager_along_track import get_data_from_array
from atrain_match.config import NODATA
    from atrain_match.libs.truth_imager_match import find_main_cloudproduct_file
    from pyhdf.SD import SD, SDC
import numpy as np
import os
import h5py
import logging
# Copyright (c) 2009-2019 atrain_match developers
#
# This file is part of atrain_match.
#
# atrain_match is free software: you can redistribute it and/or modify it
# under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# atrain_match is distributed in the hope that it will be useful, but
# WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
# General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with atrain_match.  If not, see <http://www.gnu.org/licenses/>.
logger = logging.getLogger(__name__)
ATRAIN_MATCH_NODATA = NODATA


class MOD06Obj:
    # skeleton container for MODIS Level2 data
    def __init__(self):
        self.height = None
        self.temperature = None
        self.pressure = None
        self.cloud_emissivity = None
        self.cloud_phase = None
        self.lwp = None
        self.multilayer = None

# Path: atrain_match/libs/extract_imager_along_track.py
# def get_data_from_array(array, matched):
#     if array is None:
#         return None
#     return np.array([array[matched['row'][idx], matched['col'][idx]]
#                      for idx in range(matched['row'].shape[0])])
# 
# Path: atrain_match/config.py
# NODATA = -9


# Path: atrain_match/cloudproducts/read_modis_products.py
from atrain_match.libs.extract_imager_along_track import get_data_from_array
from atrain_match.config import NODATA
    from atrain_match.libs.truth_imager_match import find_main_cloudproduct_file
    from pyhdf.SD import SD, SDC
import numpy as np
import os
import h5py
import logging

# Copyright (c) 2009-2019 atrain_match developers
#
# This file is part of atrain_match.
#
# atrain_match is free software: you can redistribute it and/or modify it
# under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# atrain_match is distributed in the hope that it will be useful, but
# WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
# General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with atrain_match.  If not, see <http://www.gnu.org/licenses/>.
logger = logging.getLogger(__name__)
ATRAIN_MATCH_NODATA = NODATA


class MOD06Obj:
    # skeleton container for MODIS Level2 data
    def __init__(self):
        self.height = None
        self.temperature = None
        self.pressure = None
        self.cloud_emissivity = None
        self.cloud_phase = None
        self.lwp = None
        self.multilayer = None

        self.optical_depth = None