Trying to understand RegridDataPlane followed by GridStat (in the same job) output #2898
Replies: 1 comment 2 replies
-
@robdarvell, thanks for reaching out about this issue. I was able to replicate the behavior you describe and have some followup. First though, let me offer a formatting tip for GitHub discussions. All discussions and issue comments are written in the Markdown lightweight markup language. Here's some Markdown formatting tips from GitHub. When typing code or commands, especially when including special characters like the
I've edited your original post to include the use of single (`) backticks for inline code and triple (```) backticks for code blocks. On to the issue at hand. I did some testing and have determined that we should refine/improve the level handling logic in the
I have found that while the
Additionally, we should update the U/V matching logic to avoid the multiple matches warning message shown above. I'll write up a MET issue to clean up this logic and will note it here. Unfortunately, I don't have an easy fix for using MET version 12.0.2 to verify U/V with vector statistics (i.e. VL1L2, VAL1L2, and/or VCNT line types) at multiple levels when reading data from MET NetCDF files. As you've already pointed out, doing so with separate |
Beta Was this translation helpful? Give feedback.
-
Hi,
I have been trying to improve the efficiency of running my gridstat task (which involves different grids and multiple fields) by splitting the grid aspect into running the regriddataplane task followed by the gridstat task. (I do the regrid on both the obs and fcst bits)
This has improved things, especially in my vector running, but I have run into a question which I have failed to understand what settings I have missed.
When running regriddataplane for multiple levels for the same field eg: (x/y)Winds @ 100hPa, 250hPa, 500hPa which are distinguished in the levels field (eg:
“(@100,*,*)”
), given the regrid job won’t place them into a similar structure in the output from regriddataplane I have included the output_field_name option in order to rename things. My name setting part of the config looks like:Running this in regriddataplane does indeed rename the variables eg: x_wind_100, y_wind_100, x_wind_250 etc, with level setting as
(*,*)
in the newly created netcdf file.I have then included those new names in my gridstat job. (and updated the file_type to NETCDF_MET)
(I don't know why, but below the levels are (star,star) (they just didn't seem to look like that just now when I hit return)
The gridstat job then runs through fine so the relevant fields it picks up the correct combinations to generate the stats. (I have also added the set_attr_field, set_attr_level in the options list to update the output file, but that doesn't make any difference to my next query)
However, my problem/question arises when it comes to trying to also include the vector stats. Adding the is_u_wind and is_v_wind, as I do when I just run the gridstat job I now get a lot of the following messages in the output:
From looking through the code I see that this seems to be found in grid_stat_conf_info.cc (in the section from line 245).
It seems to be then selecting an incorrect combination when doing the vector stats (the first combination appears OK, VAR1 and VAR2 combined is OK). I am trying to work out how I would go about changing the levels string to differentiate between them as I have had to set (assuming I have done it correctly) them as (,) in the regriddataplane part. Also trying to understand what is involved in the field array entry in order for them to come back as matches even when the var?_name parts are different, Is there some other entry in the file which I am missing. (not getting far with my back reading through the c++)
I was trying to avoid needing to output each field level combination in the regrid job into a different file (and naming them somehow, couldn’t get that working when I did attempt it).
Any thoughts?
Many thanks
Rob
Beta Was this translation helpful? Give feedback.
All reactions