sup3r.utilities.stitching.stitch_and_save

stitch_and_save(year, month, input_pattern, out_pattern, time_step=None, overlap=50, n_domains=4, max_level=15, overwrite=False)[source]

Stitch all smaller domains into largest domain and save output

Parameters:
  • year (int) – Year for input files

  • month (int) – Month for input files

  • time_step (int) – Time step for input files for the specified month. e.g. if year=2017, month=3, time_step=0 this will select the file for the first time step of 2017-03-01. If None then stitch and save will be done for full month.

  • input_pattern (str) – Pattern for input files. Assumes pattern contains {month}, {year}, and {domain}

  • out_pattern (str) – Pattern for output files

  • overlap (int) – Number of grid points to use for blending edges

  • n_domains (int) – Number of domains to stitch together

  • max_level (int) – Max pressure level index

  • overwrite (bool) – Whether to overwrite existing files