Commit 20f61bc8 authored by Chris Jewell's avatar Chris Jewell
Browse files

Add commandline ability to run summary_longformat.py

parent 87f9d621
......@@ -94,3 +94,28 @@ def insample_predictive_timeseries(input_files, output_dir, lag):
)
plt.savefig(output_dir.joinpath(f"{location.data}.png"))
plt.close()
if __name__ == "__main__":
import argparse
parser = argparse.ArgumentParser()
parser.add_argument(
"--data_pkl", type=str, required=True, help="Pipeline data pickle"
)
parser.add_argument(
"--insample",
type=str,
required=True,
help="Insample prediction netCDF4",
)
parser.add_argument(
"--output-dir", type=str, required=True, help="Output directory"
)
parser.add_argument("--lag", type=int, required=True, help="Lag")
args = parser.parse_args()
insample_predictive_timeseries(
[args.insample, args.data_pkl], args.output_dir, args.lag
)
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment