def prepare_hmet(self):
        """
        Prepare HMET data for simulation
        """
        if self._prepare_lsm_hmet:
            netcdf_file_path = None
            hmet_ascii_output_folder = None
            if self.output_netcdf:
                netcdf_file_path = '{0}_hmet.nc'.format(self.project_manager.name)
                if self.hotstart_minimal_mode:
                    netcdf_file_path = '{0}_hmet_hotstart.nc'.format(self.project_manager.name)
            else:
                hmet_ascii_output_folder = 'hmet_data_{0}to{1}'
                if self.hotstart_minimal_mode:
                    hmet_ascii_output_folder += "_hotstart"

            self.event_manager.prepare_hmet_lsm(self.lsm_data_var_map_array,
                                                hmet_ascii_output_folder,
                                                netcdf_file_path)
            self.simulation_modified_input_cards += ["HMET_NETCDF",
                                                     "HMET_ASCII"]
        else:
            log.info("HMET preparation skipped due to missing parameters ...")
def prepare_hmet ( self ) : if self . _prepare_lsm_hmet : netcdf_file_path = None hmet_ascii_output_folder = None if self . output_netcdf : netcdf_file_path = '{0}_hmet.nc' . format ( self . project_manager . name ) if self . hotstart_minimal_mode : netcdf_file_path = '{0}_hmet_hotstart.nc' . format ( self . project_manager . name ) else : hmet_ascii_output_folder = 'hmet_data_{0}to{1}' if self . hotstart_minimal_mode : hmet_ascii_output_folder += "_hotstart" self . event_manager . prepare_hmet_lsm ( self . lsm_data_var_map_array , hmet_ascii_output_folder , netcdf_file_path ) self . simulation_modified_input_cards += [ "HMET_NETCDF" , "HMET_ASCII" ] else : log . info ( "HMET preparation skipped due to missing parameters ..." )
Prepare HMET data for simulation