Skip to content

Commit

Permalink
pointer to pyart
Browse files Browse the repository at this point in the history
  • Loading branch information
wolfidan committed Jan 22, 2024
1 parent 7b05689 commit 7088012
Show file tree
Hide file tree
Showing 5 changed files with 17 additions and 4 deletions.
3 changes: 1 addition & 2 deletions src/pyrad_proc/pyrad/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
=====================================
"""

# Detect if we're being called as part of Pyrad's setup procedure
try:
__PYRAD_SETUP__
Expand All @@ -19,7 +18,7 @@
# Make sure that deprecation warnings get printed by default
import warnings as _warnings
_warnings.simplefilter("always", DeprecationWarning)

# print out helpful message if build fails or importing from source tree
# fvj built not checked for the moment
# from . import __check_build
Expand Down
2 changes: 1 addition & 1 deletion src/pyrad_proc/pyrad/graph/plots_aux.py
Original file line number Diff line number Diff line change
Expand Up @@ -449,7 +449,7 @@ def get_norm(field_name, field_dict={}, isxarray=False):
ticklabs = None

ref_dict = pyart.config.get_metadata(field_name)
cmap = mpl.cm.get_cmap(pyart.config.get_field_colormap(field_name))
cmap = mpl.colormaps.get_cmap(pyart.config.get_field_colormap(field_name))

if field_dict is not None and 'boundaries' in field_dict:
if isxarray:
Expand Down
5 changes: 5 additions & 0 deletions src/pyrad_proc/pyrad/proc/process_monitoring.py
Original file line number Diff line number Diff line change
Expand Up @@ -138,6 +138,7 @@ def process_selfconsistency_kdp_phidp(procstatus, dscfg, radar_list=None):
return None, None

fzl = None
temp_ref ='fixed_fzl'
# determine which freezing level reference
if temp is not None:
if temp in radar.fields:
Expand Down Expand Up @@ -399,6 +400,7 @@ def process_selfconsistency_bias(procstatus, dscfg, radar_list=None):
return None, None

fzl = None
temp_ref ='fixed_fzl'
# determine which freezing level reference
if temp is not None:
if temp in radar.fields:
Expand Down Expand Up @@ -719,6 +721,7 @@ def process_selfconsistency_bias2(procstatus, dscfg, radar_list=None):
return None, None

fzl = None
temp_ref ='fixed_fzl'
# determine which freezing level reference
if temp is not None:
if temp in radar.fields:
Expand Down Expand Up @@ -1068,6 +1071,7 @@ def process_rhohv_rain(procstatus, dscfg, radar_list=None):
return None, None

fzl = None
temp_ref ='fixed_fzl'
# determine which freezing level reference
if temp_field is not None:
if temp_field in radar.fields:
Expand Down Expand Up @@ -1238,6 +1242,7 @@ def process_zdr_precip(procstatus, dscfg, radar_list=None):
# if data in and above the melting layer has to be filtered determine the
# field to use
fzl = None
temp_ref = 'fixed_fzl'
ml_filter = True
if 'ml_filter' in dscfg:
ml_filter = dscfg['ml_filter']
Expand Down
9 changes: 9 additions & 0 deletions src/pyrad_proc/pyrad/proc/process_phase.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
process_attenuation
"""
import warnings

from copy import deepcopy
from warnings import warn
Expand All @@ -32,6 +33,11 @@
from ..io.io_aux import get_datatype_fields
from ..io.read_data_sensor import read_fzl_igra

# Ignore warning in process_phidp_kdp_Maesaka
warnings.filterwarnings("ignore",
message=".*'partition' will ignore the 'mask' of the MaskedArray.*",
category=UserWarning)

def process_correct_phidp0(procstatus, dscfg, radar_list=None):
"""
corrects phidp of the system phase
Expand Down Expand Up @@ -438,6 +444,7 @@ def process_phidp_kdp_Maesaka(procstatus, dscfg, radar_list=None):
thickness = dscfg.get('ml_thickness', 700.)

fzl = None
temp_ref = 'fixed_fzl'
# determine which freezing level reference
if temp_field is not None:
if temp_field in radar.fields:
Expand Down Expand Up @@ -624,6 +631,7 @@ def process_phidp_kdp_lp(procstatus, dscfg, radar_list=None):
return None, None

fzl = None
temp_ref = 'fixed_fzl'
# determine which freezing level reference
if temp_field is not None:
if temp_field in radar.fields:
Expand Down Expand Up @@ -1169,6 +1177,7 @@ def process_attenuation(procstatus, dscfg, radar_list=None):

# determine which freezing level reference
fzl = None
temp_ref = 'fixed_fzl'
if temp is not None:
if temp in radar.fields:
temp_ref = 'temperature'
Expand Down

0 comments on commit 7088012

Please sign in to comment.