Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
languagepy
titleExport multiple time series to multiple files
index = 0
for ts in timeSeriesToCompare:
    if index == 0:
        flag = " Initial set up "
    elif index == indexBestFit:
        flag = " best fit "
    else:
        flag = " "

    fileName = rootPath + r"\Water Level at Gauging Station case " + str(index) + flag + ".csv"
    ExportListToCsvFile(fileName, ts, ["Time", "Water level at Gauging station"], ",")
    index += 1

Finally, also the plots produced during the calibration process can be saved to external image files. For example:

Code Block
languagepy
titleExport figures as image files
 ExportImage(viewCalibration.Image, rootPath + r"\Calibration.png", ImageType.PNG)