def _plot_tccon_xco2_bar(self, obj_names, sounding_id, RetrievalResults__xco2, SoundingHeader__sounding_id, TCCON__xco2_true, comparison_func, **kwargs):
        l2_xco2_scaled = [ val * 1e6 for val in  RetrievalResults__xco2 ]
        
        xco2_comp_data = self._compare_l2_tccon_data(sounding_id, l2_xco2_scaled, SoundingHeader__sounding_id, TCCON__xco2_true, comparison_func)
        snd_times = ids2times(SoundingHeader__sounding_id)

        ax = self._plot_bar_stats(obj_names, snd_times, xco2_comp_data, **kwargs)

        return ax
    def get_tccon_l2_combined_data(self, obj_names, sounding_id, RetrievalResults__xco2, SoundingHeader__sounding_id, TCCON__xco2_true, **kwargs):
        """Returns TCCON and L2 XCO2 data packaged together and returned as namedtuple.
        Optional keyword 'tccon_ids_only = True' will return only L2 data for the same sounding ids"""

        snd_times = ids2times(sounding_ids)

        from collections import namedtuple
        Results = namedtuple('CombinedData', 'obj_names sounding_ids sounding_times sounding_data')
        return Results(obj_names, sounding_ids, snd_times, sounding_data)