Skip to content

Commit

Permalink
Adding plots of snow-to-liquid ratio (SLR) (#253)
Browse files Browse the repository at this point in the history
* Adding functionality to plot the snow-to-liquid ratio (U. Utah method)

* Updates to plotting for snow-to-liquid ratio
  • Loading branch information
jaymes-kenyon authored Feb 26, 2025
1 parent 7fe6c84 commit 3e3e284
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 0 deletions.
6 changes: 6 additions & 0 deletions adb_graphics/conversions.py
Original file line number Diff line number Diff line change
Expand Up @@ -101,3 +101,9 @@ def weasd_to_1hsnw(field, **kwargs):
''' Conversion from snow wter equiv to snow (10:1 ratio) '''

return field * 10.

def sden_to_slr(field, **kwargs):

''' Convert snow density (kg m-3) to snow-liquid ratio '''

return 1000. / field
10 changes: 10 additions & 0 deletions adb_graphics/default_specs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2008,6 +2008,16 @@ weasd: # Water equivalent of accumulated snow depth
title: Snow Water Equivalent
transform: conversions.kgm2_to_in
unit: in
snoliqr: # Snow-liquid ratio (from U. Utah diagnostic in UPP)
sfc:
clevs: [6, 8, 10, 12, 14, 16, 18, 20, 22, 24, 26, 28]
cmap: gist_ncar
colors: snow_colors
ncl_name: SDEN_P0_L1_{grid}
ticks: 0
title: Instantaneous Snow-Liquid Ratio (U. Utah Method)
transform: conversions.sden_to_slr
print_units: false
windmax:
10m:
accumulate: True
Expand Down
2 changes: 2 additions & 0 deletions image_lists/hrrr_subset.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@ hourly:
- sfc
acsnw:
- sfc
snoliqr:
- sfc
cape:
- mu
- mul
Expand Down

0 comments on commit 3e3e284

Please sign in to comment.