def make_output_cf_compliant(self,
                                 simulation_start_datetime,
                                 comid_lat_lon_z_file="",
                                 project_name="Normal RAPID project"):
        """
        This function converts the RAPID output to be CF compliant.
        This will require a *comid_lat_lon_z.csv* file
        (See: :func:`~RAPIDpy.gis.centroid.FlowlineToPoint` to
        generate the file).

        .. note:: It prepends time an initial flow to your simulation from the
                  *qinit_file*. If no qinit file is given, an initial value
                  of zero is added.

        .. warning:: This will delete your original Qout file.

        Parameters
        ----------
        simulation_start_datetime: datetime
            Datetime object with the start date of the simulation.
        comid_lat_lon_z_file: str, optional
            Path to the *comid_lat_lon_z.csv* file. If none given,
            spatial information will be skipped.
        project_name: str, optional
            Name of project to add to the RAPID output file.


        Example:

        .. code:: python

            from RAPIDpy import RAPID

            rapid_manager = RAPID(
                rapid_executable_location='~/work/rapid/run/rapid'
                use_all_processors=True,
                ZS_TauR=24*3600,
                ZS_dtR=15*60,
                ZS_TauM=365*24*3600,
                ZS_dtM=24*3600
                rapid_connect_file='../rapid-io/input/rapid_connect.csv',
                Vlat_file='../rapid-io/input/m3_riv.nc',
                riv_bas_id_file='../rapid-io/input/riv_bas_id.csv',
                k_file='../rapid-io/input/k.csv',
                x_file='../rapid-io/input/x.csv',
                Qout_file='../rapid-io/output/Qout.nc'
            )

            rapid_manager.run()

            rapid_manager.make_output_cf_compliant(
                simulation_start_datetime=datetime.datetime(1980, 1, 1),
                comid_lat_lon_z_file='../rapid-io/input/comid_lat_lon_z.csv',
                project_name="ERA Interim Historical flows by US Army ERDC"
            )

        """
        with RAPIDDataset(self.Qout_file) as qout_nc:
            if qout_nc.is_time_variable_valid():
                log("RAPID Qout file already CF compliant ...",
                    "INFO")
                return

        crv = ConvertRAPIDOutputToCF(
            rapid_output_file=self.Qout_file,
            start_datetime=simulation_start_datetime,
            time_step=self.ZS_TauR,
            qinit_file=self.Qinit_file,
            comid_lat_lon_z_file=comid_lat_lon_z_file,
            rapid_connect_file=self.rapid_connect_file,
            project_name=project_name,
            output_id_dim_name='rivid',
            output_flow_var_name='Qout',
            print_debug=False
        )
        crv.convert()