-
Notifications
You must be signed in to change notification settings - Fork 447
Closed
Labels
Area: CalcPertains to calculationsPertains to calculationsArea: DocsAffects documentationAffects documentationType: EnhancementEnhancement to existing functionalityEnhancement to existing functionality
Milestone
Description
What can be better?
Right now, these functions assume that pressure is in descending order, but there is nowhere users can find this information. I am not aware of other functions that have this issue, but here are a few things that can be done:
- Provide a similar error message with CCL as EL and LFC do when
pressureis not in descending error, i.e.,metpy.calc.exceptions.InvalidSoundingError; - Specify that
pressureshould be in descending order in the docstring; - Manually check if flipping the
pressurevariable (and all other associated variables) will make it in descending order.
Metadata
Metadata
Assignees
Labels
Area: CalcPertains to calculationsPertains to calculationsArea: DocsAffects documentationAffects documentationType: EnhancementEnhancement to existing functionalityEnhancement to existing functionality