# 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
                          alpha=1.0, label='caliop')
                caliop_label_set = True
        ax.set_ylabel("Cloud Height (meter)", fontsize=22)
    #  Plot Imager
    ax = fig.add_subplot(211)
    ax.plot(pixel_position_ok, imager_ctth_ok1, 'b+', linewidth=0.5,
            label=instrument.upper() + " old-CTTH")
    false = (caliop_height[:, 0] < 0)[data_ok]
    ax.plot(pixel_position_ok[false], imager_ctth_ok1[false], 'r+', linewidth=0.5,
            label=instrument.upper() + " old-CTTH (false")
    plt.legend(fancybox=True, loc=1, numpoints=4)
    ax.set_xlim(xmin, xmax)
    ax.set_ylim(0, maxheight)
    ax = fig.add_subplot(212)
    ax.plot(pixel_position_ok, imager_ctth_ok2, 'c+', linewidth=0.5,
            label=instrument.upper() + " nn-CTTH")
    ax.plot(pixel_position_ok[false], imager_ctth_ok2[false], 'm+', linewidth=0.5,
            label=instrument.upper() + " nn-CTTH (false)")
    plt.legend(fancybox=True, loc=1, numpoints=4)
    ax.set_xlim(xmin, xmax)
    ax.set_ylim(0, maxheight)
    plt.suptitle(title, fontsize=24)
    ax.set_xlabel("Track Position", fontsize=22)
    if isinstance(file_type, str):
        filename = "%s/%skm_%s_calipso_%s_clouds.%s" \
            % (plotpath, RESOLUTION, basename, instrument, file_type)
        fig.savefig(filename, format=file_type)
    else:
        for filetype in file_type:
            filename = "%s/%skm_%s_calipso_%s_clouds.%s" \

# 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

                          alpha=1.0, label='caliop')
                caliop_label_set = True
        ax.set_ylabel("Cloud Height (meter)", fontsize=22)
    #  Plot Imager
    ax = fig.add_subplot(211)
    ax.plot(pixel_position_ok, imager_ctth_ok1, 'b+', linewidth=0.5,
            label=instrument.upper() + " old-CTTH")
    false = (caliop_height[:, 0] < 0)[data_ok]
    ax.plot(pixel_position_ok[false], imager_ctth_ok1[false], 'r+', linewidth=0.5,
            label=instrument.upper() + " old-CTTH (false")
    plt.legend(fancybox=True, loc=1, numpoints=4)
    ax.set_xlim(xmin, xmax)
    ax.set_ylim(0, maxheight)
    ax = fig.add_subplot(212)
    ax.plot(pixel_position_ok, imager_ctth_ok2, 'c+', linewidth=0.5,
            label=instrument.upper() + " nn-CTTH")
    ax.plot(pixel_position_ok[false], imager_ctth_ok2[false], 'm+', linewidth=0.5,
            label=instrument.upper() + " nn-CTTH (false)")
    plt.legend(fancybox=True, loc=1, numpoints=4)
    ax.set_xlim(xmin, xmax)
    ax.set_ylim(0, maxheight)
    plt.suptitle(title, fontsize=24)
    ax.set_xlabel("Track Position", fontsize=22)
    if isinstance(file_type, str):
        filename = "%s/%skm_%s_calipso_%s_clouds.%s" \
            % (plotpath, RESOLUTION, basename, instrument, file_type)
        fig.savefig(filename, format=file_type)
    else:
        for filetype in file_type:
            filename = "%s/%skm_%s_calipso_%s_clouds.%s" \

                % (plotpath, RESOLUTION, basename, instrument, filetype)