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


import numpy as np
from atrain_match.config import RESOLUTION
from matplotlib import pyplot as plt
        pixel_position = np.arange(match_calipso.calipso.latitude.shape[0])    
    # Calculates Hihest Cloud Top
    if MAXHEIGHT is None:
        maxheight_calipso = np.nanmax(caliop_height)
        maxheight_imager = np.nanmax(imager_ctth_m_above_seasurface)
        max_height_sat = np.max([maxheight_calipso, maxheight_imager])
        maxheight = max_height_sat + 1000
    else:
        maxheight = MAXHEIGHT
    # PLOT
    fig = plt.figure()
    # Plot ground
    ax = fig.add_subplot(111)
    ax.vlines(pixel_position, 0, match_calipso.calipso.elevation,
              color='k', alpha=1.0)
    # plot cloudsat if we have it
    if match_clsat is not None:
        #  Colors
        colors = []
        for i in range(10):
            colors.append(np.divide([(40 - i) * 6, (40 - i) * 6, (40 - i) * 6], 255.))
        for i in range(10, 30):
            colors.append(np.divide([100 + (i - 10) * 5, 100 + (i - 10) * 5, 100 - (i - 10) * 5], 255.))
        for i in range(30, 100):
            colors.append(np.divide([255, 50, 50], 255.))

        # Plot CloudSat
        base_height = match_clsat.cloudsat.validation_height_base
        top_height = match_clsat.cloudsat.validation_height
        plot_these = top_height > 0

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


# Path: atrain_match/plotting/along_track_plotting.py
import numpy as np
from atrain_match.config import RESOLUTION
from matplotlib import pyplot as plt

        pixel_position = np.arange(match_calipso.calipso.latitude.shape[0])    
    # Calculates Hihest Cloud Top
    if MAXHEIGHT is None:
        maxheight_calipso = np.nanmax(caliop_height)
        maxheight_imager = np.nanmax(imager_ctth_m_above_seasurface)
        max_height_sat = np.max([maxheight_calipso, maxheight_imager])
        maxheight = max_height_sat + 1000
    else:
        maxheight = MAXHEIGHT
    # PLOT
    fig = plt.figure()
    # Plot ground
    ax = fig.add_subplot(111)
    ax.vlines(pixel_position, 0, match_calipso.calipso.elevation,
              color='k', alpha=1.0)
    # plot cloudsat if we have it
    if match_clsat is not None:
        #  Colors
        colors = []
        for i in range(10):
            colors.append(np.divide([(40 - i) * 6, (40 - i) * 6, (40 - i) * 6], 255.))
        for i in range(10, 30):
            colors.append(np.divide([100 + (i - 10) * 5, 100 + (i - 10) * 5, 100 - (i - 10) * 5], 255.))
        for i in range(30, 100):
            colors.append(np.divide([255, 50, 50], 255.))

        # Plot CloudSat
        base_height = match_clsat.cloudsat.validation_height_base
        top_height = match_clsat.cloudsat.validation_height
        plot_these = top_height > 0

        if RESOLUTION == 5: