runtraj.models.hysplit.find_program#

runtraj.models.hysplit.find_program(name, directory=None)[source]#

Return the HYSPLIT program called name that a run uses: exec/<name> under directory, else the first on PATH.

runtraj does not include HYSPLIT, so the build is yours. directory is the HYSPLIT folder as unpacked (directory under models: hysplit: in config.yaml), which holds exec/ and bdyfiles/.

Parameters:
  • name (str) – The program: hycs_std, or hyts_std for a trajectory run.

  • directory (str | Path | None) – The HYSPLIT folder.

Raises:

HYSPLITNotFoundError – If directory has no exec/<name>, or it is not executable; without directory, if no such program is on PATH.

Return type:

Path