From 7c64e98aad9c84f4d8592c06606868476cbda81d Mon Sep 17 00:00:00 2001 From: Josh Cunningham Date: Thu, 5 Sep 2024 16:02:18 -0500 Subject: [PATCH] rename ngen.yaml to troute.yaml, output in nc --- modules/data_processing/create_realization.py | 2 +- modules/data_sources/ngen-realization-template.json | 2 +- modules/data_sources/ngen-routing-template.yaml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/modules/data_processing/create_realization.py b/modules/data_processing/create_realization.py index 943459f..223fb17 100644 --- a/modules/data_processing/create_realization.py +++ b/modules/data_processing/create_realization.py @@ -161,7 +161,7 @@ def configure_troute( # not setting this will cause troute to output one netcdf file per timestep troute["output_parameters"]["stream_output"]["stream_output_time"] = number_of_hourly_steps - with open(config_dir / "ngen.yaml", "w") as file: + with open(config_dir / "troute.yaml", "w") as file: yaml.dump(troute, file) return nts diff --git a/modules/data_sources/ngen-realization-template.json b/modules/data_sources/ngen-realization-template.json index 1afef2a..6b6d7b4 100644 --- a/modules/data_sources/ngen-realization-template.json +++ b/modules/data_sources/ngen-realization-template.json @@ -92,7 +92,7 @@ "nts": 15264.0 }, "routing": { - "t_route_config_file_with_path": "/ngen/ngen/data/config/ngen.yaml" + "t_route_config_file_with_path": "/ngen/ngen/data/config/troute.yaml" }, "output_root": "/ngen/ngen/data/outputs/ngen" } \ No newline at end of file diff --git a/modules/data_sources/ngen-routing-template.yaml b/modules/data_sources/ngen-routing-template.yaml index 431a977..b4e79f9 100644 --- a/modules/data_sources/ngen-routing-template.yaml +++ b/modules/data_sources/ngen-routing-template.yaml @@ -106,5 +106,5 @@ output_parameters: stream_output: stream_output_directory: outputs/troute/ stream_output_time: 1 #[hr] - stream_output_type: ".csv" #please select only between netcdf '.nc' or '.csv' or '.pkl' + stream_output_type: ".nc" #please select only between netcdf '.nc' or '.csv' or '.pkl' stream_output_internal_frequency: 60 #[min] it should be order of 5 minutes. For instance if you want to output every hour put 60