-
Notifications
You must be signed in to change notification settings - Fork 5
Description
I used the following .prj to demonstrate the Initial_State and Final_State from Borland CRHM.
- I ran the "MarmotCreek_05-06test_modified_25Jul18_basinaggregationscheme3autoa_generateInt.prj" to generate the final state file "MarmotInitialstate06.int" at the end of run.
This project can be found here:
MarmotCreek_05-06test_modified_25Jul18_basinaggregationscheme3autoa_generateInt.zip
The obs file for the prj can be found here:
Marmot_Hourly_ArrayMetData_withT_g_1Oct05-30Sept20_update_22Jan2021.zip
In this prj, I saved the the final state file name "MarmotInitialstate06.int" under Final_State,
Final_State
MarmotInitialstate06.int
This .int file stores all the state variables in this prj. A state variable is declared using declstatvar(...); the state variables include variables such as Albedo, SWE, and so on.
The purpose of .int file is to show information of these state variables at the end of run, but also it can provide initial values of these state variables used by the subsequent model run.
- For the subsequent model run that uses the "MarmotInitialstate06.int", I ran the "MarmotCreek_06-07test_modified_25Jul18_basinaggregationscheme3autoa_useInt.prj".
This project can be found here:
MarmotCreek_06-07test_modified_25Jul18_basinaggregationscheme3autoa_useInt.zip
This prj reads the "MarmotInitialstate06.int" file under Initial_State:
Initial_State
MarmotInitialstate06.int
It should be noted that value for Time in the "MarmotInitialstate06.int" and Start value for Date in the "MarmotCreek_06-07test_modified_25Jul18_basinaggregationscheme3autoa_useInt.prj" must be the same:
Time:
2006 10 1
Dates:
2006 10 1
2007 10 1
If these do not match, CRHM will have complaint message.
Note that in the "MarmotCreek_06-07test_modified_25Jul18_basinaggregationscheme3autoa_useInt.prj", I also saved the final state file "MarmotInitialstate07.int" so that it could be used by the subsequent model run starting 2007 10 1.
Note that in above prj files, there is no file directory specified for the .int files under Final_State and Initial_State, this saves .int file in same file directory as where .prj files are and assumes both prj files are in the same file directory.
On the other hand, .int file can be placed at specified file directory that is different from where .prj files are, such as C:\Research\MarmotInitialstate06.int. As long as whereabout of the int file under Final_State and Initial_State are specified correctly, the prj file generating and reading the .int file can run without problem.