Using "convert" in user-defined functions in gen_ens_prod #1948
-
This discussion is intended as a bump to the discussion closed here: #1287 I had a very similar question as the poster of that discussion, except I do not need to reference the climatological distribution. Instead, I am querying the syntax of using the convert function to derive a field in the config file from fields available in the input files. In particular, I have 3D simulated reflectivity and I want to calculate the vertical max reflectivity using the configuration file options. I see the convert(???)=max(???) availability, but what am I supposed to put in for the ???s? Also, what is the proper syntax for this in the config file? It appears that it belongs somewhere in the fcst.field dictionary entry, but what punctuation do I need to use? I see the example in the User's Guide (https://met.readthedocs.io/en/latest/Users_Guide/config_options.html#fcst) that is
But this example appears to take the max between a 1D field and a fixed constant. I don't want to do that. Instead, I want the column maximum (vertical maximum) among one of the dimensions of the 3D input array. How do I specify such information in the config file? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 5 replies
-
@Jeff-Duda, it sounds to me like you want to compute the maximum across multiple vertical slices of data. The For example, the following 2 calls to
However, there is no way to call a Instead, you could using the
With this call, Perhaps that approach would work for you? |
Beta Was this translation helpful? Give feedback.
@Jeff-Duda, it sounds to me like you want to compute the maximum across multiple vertical slices of data. The
convert(x)
function will not be useful in this context. It is only applied to a single 2D plane of data... or point observations values... at once.For example, the following 2 calls to
plot_data_plane
use convert to change units from Kelvin to Celsius for 2 different levels of data:However, there is no way to call a
convert(x)
command to compute the maximum of the 500mb and 850mb temperature v…