コード例 #1
0
ファイル: core.py プロジェクト: lucashtnguyen/pygridtools
    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
コード例 #2
0
ファイル: test_iotools.py プロジェクト: phobson/pygridtools
 def test_errors(self):
     iotools._write_gridout_file(self.x, self.y[2:, 2:], 'junk')
コード例 #3
0
ファイル: test_iotools.py プロジェクト: phobson/pygridtools
 def test_baseline(self):
     iotools._write_gridout_file(self.x, self.y, self.result_filename)
     testing.compareTextFiles(self.result_filename, self.known_filename)