-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Major updates to calc_ctp and calc_humidity_index. First, functions r…
…e-worked to take a full Xarray object for NWP data, which mainly involved making `station_index` a positional rather than a kwarg. Added new `station_name` kwarg if needed for calc_ctp optional plotting. Avoids unnecessary interpolation of pressure when a specific pressure is requested because the user provided it so we don't need to interpolate. Similarly, the bottom/top pressures are also known in this case and don't need to be interpolated, only the data used at those pressures. Changes to debugging statements, bounds checking to see if the starting and top/bottom pressures are more than a certain pressure delta away from the values requested. Buildout of calc_humidity_index to be more like calc_ctp in many regards.
- Loading branch information
1 parent
c90b980
commit 7115d0d
Showing
1 changed file
with
141 additions
and
39 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters