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

Add image muting citation to function and example #1304

Merged
merged 8 commits into from
Oct 28, 2022
6 changes: 4 additions & 2 deletions examples/plotting/plot_nexrad_image_muted_reflectivity.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,10 @@

#Author: Laura Tomkins ([email protected])
#License: BSD 3 clause
#citation: Tomkins et al., Image Muting of Mixed Precipitation to Improve Identification of
# Regions of Heavy Snow in Radar Data, 2022, in prep.
#citation: Tomkins, L. M., Yuter, S. E., Miller, M. A., and Allen, L. R., 2022:
# Image muting of mixed precipitation to improve identification of regions
# of heavy snow in radar data. Atmos. Meas. Tech., 15, 5515–5525,
# https://doi.org/10.5194/amt-15-5515-2022

import pyart
import numpy as np
Expand Down
7 changes: 7 additions & 0 deletions pyart/util/radar_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -483,6 +483,13 @@ def image_mute_radar(
radar : Radar
Radar object with 2 new fields from input field, one muted and one not muted.

References
----------
Tomkins, L. M., Yuter, S. E., Miller, M. A., and Allen, L. R., 2022:
Image muting of mixed precipitation to improve identification of regions
of heavy snow in radar data. Atmos. Meas. Tech., 15, 5515–5525,
https://doi.org/10.5194/amt-15-5515-2022

"""
# add checks for field availability
if field not in radar.fields.keys():
Expand Down