in2Trans.ascUtils.writeResultToAsc

writeResultToAsc(header, resultArray, outFileName, flip=False)[source]

Write 2D array to an ascii file with header and save to location of outFileName

Parameters
  • header (class) – class with methods that give cellsize, nrows, ncols, xllcenter yllcenter, nodata_value

  • resultArray (2D numpy array) – 2D numpy array of values that shall be written to file

  • outFileName (str) – path incl. name of file to be written

  • flip (boolean) – if True, flip the rows of the resultArray when writing