runtraj.models.hysplit.data_tables#

runtraj.models.hysplit.data_tables(directory=None, program='hycs_std')[source]#

Return HYSPLIT’s data tables a run uses, by name: a file to link, or the text to write.

They come from bdyfiles/ under directory, or, without directory, from a bdyfiles/ folder beside the folder of the hycs_std on PATH (or of program, such as hyts_std for a trajectory run), as HYSPLIT’s download lays them out. runtraj includes none. HYSPLIT’s own ASCDATA.CFG says the tables are in ../bdyfiles/; a run links them into its workdir, so its ASCDATA.CFG is returned as text with that line, the sixth, set to './' and the rest kept.

Raises:

HYSPLITNotFoundError – If the folder is missing or lacks one of the four tables, or, without directory, no program is on PATH.

Return type:

dict[str, Path | bytes]

Parameters: