herbie.tools.create_index_files#

herbie.tools.create_index_files(path, overwrite=False)[source]#

Create an index file for all GRIB2 files in a directory.

# TODO: use Path().expand()

Parameters:
  • path (str or pathlib.Path) – Path to directory or file.

  • overwrite (bool) – Overwrite index file if it exists.