key string CURRENT_OBS_LEVEL not passed for use #1458
-
I tried to put together a use-case that runs GridStat, then a number of instances of MODE for different variables that use different thresholds. MODE uses the difference field from GridStat to run. When running MODE by itself in METplus, I was able to use the key string CURRENT_OBS/FCST_LEVEL, for my MODE output prefix. It doesn't seem to work in the use case (i.e. it is not listed in the keys that get passed to do_string_sub for MODE). I am guessing it is because levels are set differently for GridStat and the MODE instances in the use-case. Is there another way to do this? Currently my output files at each level for a given variable get overridden due to level not being available. My parm is on cheyenne: /glade/work/hertneky/airforce/validation/parm/GridStat_MODE_Validation.conf |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
@hertneky I definitely see the behavior you expect listed in the documentation for CURRENT_FCST_LEVEL and CURRENT_OBS_LEVEL. And I see your use of CURRENT_OBS_LEVEL in your config file:
Comparing that this mode.conf example:
Your usage looks to be totally consistent and in line with that usage. I checked the (hopefully correct) log file and do see this error:
I see in your config file, you're using "LOOP_ORDER = processes" whereas that use case example uses "LOOP_ORDER = times". You could try testing with "LOOP_ORDER = times" to see if that produces a different result? @georgemccabe would be best suited to debug this behavior, but he's out of the office until Thursday. I suspect there's a bug here that will require fixing. I don't see any obvious problems with your setup. |
Beta Was this translation helpful? Give feedback.
-
Hi @hertneky, it looks like the issue is likely occurring in the logic to handle reading the config variables from the instance sections. I ran your test config file and confirmed the behavior you are seeing. The issue goes away when I remove the [tmp] section and the tmp instance name from the process list, so you can temporarily get around this by calling run_metplus.py to run MODE for each instance separately. I created issue #1471 to take care of this for the upcoming 4.1.0 release which should be completed this month. Please let me know if you will need a bugfix applied to METplus 4.0 as well. |
Beta Was this translation helpful? Give feedback.
Hi @hertneky, it looks like the issue is likely occurring in the logic to handle reading the config variables from the instance sections. I ran your test config file and confirmed the behavior you are seeing. The issue goes away when I remove the [tmp] section and the tmp instance name from the process list, so you can temporarily get around this by calling run_metplus.py to run MODE for each instance separately.
I created issue #1471 to take care of this for the upcoming 4.1.0 release which should be completed this month. Please let me know if you will need a bugfix applied to METplus 4.0 as well.