Ejemplo n.º 1
0
    def writeGEFDCGridFile(self, outputdir=None, filename='grid.out'):
        """
        Writes to the nodes as coordinate pairs for GEFDC.

        Parameters
        ----------
        outputdir : str, optional
            The path to where the should be saved.
        filename : str, optional
            The name of the output file.

        Returns
        -------
        df : pandas.DataFrame
            The dataframe of node coordinate pairs.

        """

        outfile = iotools._outputfile(outputdir, filename)
        df = iotools._write_gridout_file(self.xn, self.yn, outfile)
        return df
Ejemplo n.º 2
0
 def test_errors(self):
     iotools._write_gridout_file(self.x, self.y[2:, 2:], 'junk')
Ejemplo n.º 3
0
 def test_baseline(self):
     iotools._write_gridout_file(self.x, self.y, self.result_filename)
     testing.compareTextFiles(self.result_filename, self.known_filename)