pywatershed.utils.compile_prms#
- pywatershed.utils.compile_prms(source='5.2.1', force=False)[source]#
Compile PRMS from source and return the path to the resulting binary.
- Parameters:
- Return type:
- Returns:
pathlib.Path– Absolute path to the compiled binary.- Raises:
ValueError – If source is not a supported value.
RuntimeError – If compilation succeeds but the expected output binary is missing.
subprocess.CalledProcessError – If any subprocess step fails.