Skip to content

Using "convert" in user-defined functions in gen_ens_prod #1948

Locked Answered by JohnHalleyGotway
Jeff-Duda asked this question in Configuration
Discussion options

You must be logged in to vote

@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:

plot_data_plane sample.grib2 TMP_P500.ps 'name="TMP"; level="P500"; convert(x) = x - 273.15;'
plot_data_plane sample.grib2 TMP_P850.ps 'name="TMP"; level="P850"; convert(x) = x - 273.15;'

However, there is no way to call a convert(x) command to compute the maximum of the 500mb and 850mb temperature v…

Replies: 1 comment 5 replies

Comment options

You must be logged in to vote
5 replies
@JohnHalleyGotway
Comment options

@Jeff-Duda
Comment options

@JohnHalleyGotway
Comment options

@Jeff-Duda
Comment options

@JohnHalleyGotway
Comment options

Answer selected by Jeff-Duda
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment