-
Notifications
You must be signed in to change notification settings - Fork 446
Description
There are a number of calculations (e.g., isentropic_interpolation, potential_vorticity_baroclinic) that require multiple variables to have the same number of vertical levels. Unfortunately, there are a number of methods to obtain gridded data that don't automatically return base state variables (e.g., 'Geopotential_height_isobaric', 'u-component_of_the_wind_isobaric', 'v-component_of_the_wind_isobaric', 'Temperature_isobaric', 'Relative_humidity_isobaric') with the same coordinates, specifically in there vertical. One could end up with at least two, if not three different vertical coordinates because one or more variables are missing values at very low pressure values (very high up in the atmosphere, commonly above 100-hPa level). It would be nice to have in MetPy a way to unify these variables to their common subset of values in the vertical and assign a common vertical name.
I imagine a xarray Dataset going in that contains the variables needing to be unified, which will have multiple vertical coordinates (e.g., 'isobaric', 'isobaric3', 'isobaric5', etc.) and out comes a xarray Dataset with all of the same variables subset to the common levels that are available for all of the variables with a single common vertical coordinate name across all of the variables (e.g., 'isobaric_unified'). This output would then be the input for the specific MetPy calculations (as mentioned above). Another alternative would be to build this functionality into a decorator for those functions so the end user wouldn't have to specifically worry about that, but I'm not sold on that idea.
Metadata
Metadata
Assignees
Labels
Type
Projects
Status