dual python embedding with gridded data and point_obs not working #2713
-
So for some reason this command is retaining the values set in the default configuration file for point stat instead of overwriting them with the values set in the python embedding.
How I define fcst and obs in my point-stat config file:
The error I get when running:
The fcst and obs dictionary when examined through verbosity 5 output shows that I have spfh, tmp, hgt, ugrd,and vgrd in my observation data dictionary. These are the settings in the default point stat config:
|
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
Hi Wesley: The obs dictionary in your configuration does not have a field array. I think this may be what is causing MET to use the values found in the default file, as the field needs to be specified for both the fcst and obs dictionaries. For point observations with python embedding, you want to use the actual variable name and level of your point data. I'm assuming your python script UofW_reader.py puts data in MET's 11 column format. Here, the variable name and level are given in columns 7 and 8 (var and level). Without seeing the python embedding script, I don't know exactly what the field name and level should be set to. However, the name and level should be set to values that are stored in columns 7 and 8 respectively (you could have more than one variable name and level in these columns and MET will pull the appropriate one. As an example, if you have temperature at level 0, and column 7 has values of TMP, and column 8 has values of 0, then the configuration would look like this:
Does this help solve the error? Christina |
Beta Was this translation helpful? Give feedback.
-
Strictly doing that in my configs returns this error:
I ended up getting it to work before I left for the day yesterday but had to follow the instructions laid out in this discussion: Specifically adding the following lines of code to my point reader. (I'm using version 11.0.1 in a singularity container)
|
Beta Was this translation helpful? Give feedback.
Strictly doing that in my configs returns this error:
I ended up getting it to work before I left for the day yesterday but had to follow the instructions laid out in this discussion:
#2391
Specifically adding the following lines of code to my point reader. (I'm using version 11.0.1 in a singularity container)