Read specific input file for a GSSHA project to the database.

        Args:
            card_name(str): Name of GSSHA project card.
            directory (str): Directory containing all GSSHA model files. This method assumes that all files are located
                in the same directory.
            session (:mod:`sqlalchemy.orm.session.Session`): SQLAlchemy session object bound to PostGIS enabled database
            spatial (bool, optional): If True, spatially enabled objects will be read in as PostGIS spatial objects.
                Defaults to False.
            spatialReferenceID (int, optional): Integer id of spatial reference system for the model. If no id is
                provided GsshaPy will attempt to automatically lookup the spatial reference ID. If this process fails,
                default srid will be used (4326 for WGS 84).

        Returns:
            file object

def readInputFile(self, card_name, directory, session, spatial=False,
                      spatialReferenceID=None, **kwargs):
        """
        Read specific input file for a GSSHA project to the database.

        Args:
            card_name(str): Name of GSSHA project card.
            directory (str): Directory containing all GSSHA model files. This method assumes that all files are located
                in the same directory.
            session (:mod:`sqlalchemy.orm.session.Session`): SQLAlchemy session object bound to PostGIS enabled database
            spatial (bool, optional): If True, spatially enabled objects will be read in as PostGIS spatial objects.
                Defaults to False.
            spatialReferenceID (int, optional): Integer id of spatial reference system for the model. If no id is
                provided GsshaPy will attempt to automatically lookup the spatial reference ID. If this process fails,
                default srid will be used (4326 for WGS 84).

        Returns:
            file object
        """
        self.project_directory = directory
        with tmp_chdir(directory):
            # Read in replace param file
            replaceParamFile = self._readReplacementFiles(directory, session, spatial, spatialReferenceID)
            return self._readXputFile(self.INPUT_FILES, card_name, directory,
                                      session, spatial, spatialReferenceID,
                                      replaceParamFile, **kwargs)