You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
c=fix_pressure_levels(c) orc# NB: use new cube if pressure points are modified
Improvement
If the pressure coordinate is not found, the fix_pressure_levels should return the cube as it is, so in the process_cubes we can simplify the call within process_cubes.
A suggestion for the changes of the fix_pressure_levels and of the process function is shown below:
Overview
In the current implementation, the
fix_pressure_levels
function doesn't return anything (i.e. returnsNone
) when there is no pressure coordinate:um2nc-standalone/src/um2nc/um2netcdf.py
Lines 1002 to 1005 in b44e549
and within the
process_cubes
function thefix_pressure_levels
function is used as it follows:um2nc-standalone/src/um2nc/um2netcdf.py
Line 586 in b44e549
Improvement
If the pressure coordinate is not found, the
fix_pressure_levels
should return the cube as it is, so in theprocess_cubes
we can simplify the call withinprocess_cubes
.A suggestion for the changes of the
fix_pressure_levels
and of theprocess
function is shown below:fix_pressure_levels
functionprocess
functionThe text was updated successfully, but these errors were encountered: