Deltares/QGIS-Tim

Add example section in script to write output files

Opened this issue · 0 comments

In GitLab by @Huite on Dec 20, 2022, 11:15

Use the internal functions for gistim for this:

import gistim

head = gistim.ttim_elements.headgrid(
    ttim_model,
    extent,
    cellsize,
    ttim_spec.output_times,
    refdate,
)


gistim.compute.write_raster(head, crs, outpath)

This could be added at the end of the script.