Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adds support for the MiRS Snow Grain Size product #731

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions polar2grid/etc/enhancements/generic.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,13 @@ enhancements:
- name: linear_stretch
method: !!python/name:satpy.enhancements.stretch
kwargs: {stretch: 'crude', min_stretch: 0.0, max_stretch: 50.0}
snow_grain_size:
name: SnowGS
# Uses NOAA STAR Snow Grain Size range: https://www.star.nesdis.noaa.gov/mirs/highresolutionv.php
operations:
- name: linear_stretch
method: !!python/name:satpy.enhancements.stretch
kwargs: {stretch: 'crude', min_stretch: 0.3, max_stretch: 0.7}
# mirs_tpw: See higher up in configuration

# MIRS BTs - ATMS
Expand Down
8 changes: 8 additions & 0 deletions polar2grid/etc/writers/awips_tiled.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -758,3 +758,11 @@ templates:
physical_element:
raw_value: MIRS Skin Temperature
units: {}
mirs_snow_grain_size:
reader: mirs
name: SnowGS
var_name: data
attributes:
physical_element:
raw_value: MIRS Snow Grain Size
units: {}
4 changes: 4 additions & 0 deletions polar2grid/readers/mirs.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,8 @@
+--------------------+----------------------------------------------------+
| tskin | Skin Temperature |
+--------------------+----------------------------------------------------+
| snow_grain_size | Snow Grain Size |
+--------------------+----------------------------------------------------+
| btemp_X | Brightness Temperature for channel X (see below) |
+--------------------+----------------------------------------------------+

Expand Down Expand Up @@ -192,6 +194,7 @@
"snow_cover",
"swe",
"sfr",
"snow_grain_size",
]
SEAICE_PRODUCTS = [
"sea_ice",
Expand All @@ -205,6 +208,7 @@
PRODUCT_ALIASES["snow_cover"] = "Snow"
PRODUCT_ALIASES["swe"] = "SWE"
PRODUCT_ALIASES["sfr"] = "SFR"
PRODUCT_ALIASES["snow_grain_size"] = "SnowGS"

PRODUCT_ALIASES["sea_ice"] = "SIce"

Expand Down
Loading