Skip to content

Commit

Permalink
Added example config file for nc output.
Browse files Browse the repository at this point in the history
  • Loading branch information
donaldwj committed Mar 27, 2024
1 parent ef8658b commit 444f238
Showing 1 changed file with 167 additions and 0 deletions.
167 changes: 167 additions & 0 deletions data/example_ncout_realization_config.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,167 @@
{
"global": {
"formulations": [
{
"name": "bmi_c++",
"params": {
"model_type_name": "test_bmi_cpp",
"library_file": "./extern/test_bmi_cpp/cmake_build/libtestbmicppmodel.so",
"init_config": "./data/bmi/c/test/test_bmi_c_config.ini",
"main_output_variable": "OUTPUT_VAR_2",
"variables_names_map" : {
"INPUT_VAR_2": "TMP_2maboveground",
"INPUT_VAR_1": "precip_rate"
},
"create_function": "bmi_model_create",
"destroy_function": "bmi_model_destroy",
"uses_forcing_file": false
}
}
],
"forcing": {
"file_pattern": ".*{{id}}.*.csv",
"path": "./data/forcing/"
}
},
"time": {
"start_time": "2015-12-01 00:00:00",
"end_time": "2015-12-30 23:00:00",
"output_interval": 3600
},
"outputs" : {
"nc_file1" : {
"name" : "netcdf_output_1.nc",
"type" : "NetCDF4",
"dimensions" : {
"X" : {
"size" : 1000
},
"Y" : {
"size" : 500
},
"Z" : {
"size" : 100
}
},
"variables" : {
"inflitration_excess" : {
"type" : "float",
"dimensions" : "X, Y"
},
"soil_moisture_content" : {
"type" : "float",
"dimensions" : "X, Y"
}
}
}
},
"nc_file2" : {
"name" : "netcdf_output_2.nc",
"type" : "NetCDF4",
"dimensions" : {
"D1" : {
"size" : 10
},
"D2" : {
"size" : 100
},
"D3" : {
"size" : 1000
},
"D4" : {
"size" : 10000
}
},
"variables" : {
"var1" : {
"type" : "float",
"dimensions" : "D1"
},
"var2" : {
"type" : "int",
"dimensions" : "D2"
},
"var3" : {
"type" : "char",
"dimensions" : "D3"
},
"var4" : {
"type" : "int64",
"dimensions" : "D4"
}
}

}
},
"catchments": {
"cat-27": {
"formulations": [
{
"name": "bmi_c++",
"params": {
"model_type_name": "test_bmi_cpp",
"library_file": "./extern/test_bmi_cpp/cmake_build/libtestbmicppmodel.so",
"init_config": "./data/bmi/c/test/test_bmi_c_config.ini",
"main_output_variable": "OUTPUT_VAR_2",
"variables_names_map" : {
"INPUT_VAR_2": "TMP_2maboveground",
"INPUT_VAR_1": "precip_rate"
},
"create_function": "bmi_model_create",
"destroy_function": "bmi_model_destroy",
"uses_forcing_file": false
}
}
],
"forcing": {
"path": "./data/forcing/cat-27_2015-12-01 00_00_00_2015-12-30 23_00_00.csv"
}
},
"cat-52": {
"formulations": [
{
"name": "bmi_c++",
"params": {
"model_type_name": "test_bmi_cpp",
"library_file": "./extern/test_bmi_cpp/cmake_build/libtestbmicppmodel.so",
"init_config": "./data/bmi/c/test/test_bmi_c_config.ini",
"main_output_variable": "OUTPUT_VAR_2",
"variables_names_map" : {
"INPUT_VAR_2": "TMP_2maboveground",
"INPUT_VAR_1": "precip_rate"
},
"create_function": "bmi_model_create",
"destroy_function": "bmi_model_destroy",
"uses_forcing_file": false
}
}
],
"forcing": {
"path": "./data/forcing/cat-52_2015-12-01 00_00_00_2015-12-30 23_00_00.csv"
}
},
"cat-67": {
"formulations": [
{
"name": "bmi_c++",
"params": {
"model_type_name": "test_bmi_cpp",
"library_file": "./extern/test_bmi_cpp/cmake_build/libtestbmicppmodel.so",
"init_config": "./data/bmi/c/test/test_bmi_c_config.ini",
"main_output_variable": "OUTPUT_VAR_2",
"variables_names_map" : {
"INPUT_VAR_2": "TMP_2maboveground",
"INPUT_VAR_1": "precip_rate"
},
"create_function": "bmi_model_create",
"destroy_function": "bmi_model_destroy",
"uses_forcing_file": false
}
}
],
"forcing": {
"path": "./data/forcing/cat-67_2015-12-01 00_00_00_2015-12-30 23_00_00.csv"
}
}
}
}

0 comments on commit 444f238

Please sign in to comment.