Skip to content

Commit

Permalink
Merge pull request #988 from Quba1/master
Browse files Browse the repository at this point in the history
Change default weighting function to Barnes2
  • Loading branch information
zssherman authored Sep 23, 2021
2 parents 9660422 + cd82f71 commit 3415a24
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion examples/mapping/plot_map_one_radar_to_grid.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
RADAR_FILE = '110635.mdv'
radar = pyart.io.read_mdv(RADAR_FILE)

# mask out last 10 gates of each ray, this removes the "ring" around th radar.
# mask out last 10 gates of each ray, this removes the "ring" around the radar.
radar.fields['reflectivity']['data'][:, -10:] = np.ma.masked

# exclude masked gates from the gridding
Expand Down
2 changes: 1 addition & 1 deletion pyart/io/cfradial.py
Original file line number Diff line number Diff line change
Expand Up @@ -305,7 +305,7 @@ def read_cfradial(filename, field_names=None, additional_metadata=None,
if radar_calibration == {}:
radar_calibration = None

# do not close file is field loading is delayed
# do not close file if field loading is delayed
if not delay_field_loading:
ncobj.close()
return Radar(
Expand Down
2 changes: 1 addition & 1 deletion pyart/map/gates_to_grid.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ def map_gates_to_grid(
radars, grid_shape, grid_limits, grid_origin=None,
grid_origin_alt=None, grid_projection=None,
fields=None, gatefilters=False, map_roi=True,
weighting_function='Barnes', toa=17000.0, roi_func='dist_beam',
weighting_function='Barnes2', toa=17000.0, roi_func='dist_beam',
constant_roi=None, z_factor=0.05, xy_factor=0.02, min_radius=500.0,
h_factor=1.0, nb=1.5, bsp=1.0, **kwargs):
"""
Expand Down
2 changes: 1 addition & 1 deletion pyart/map/grid_mapper.py
Original file line number Diff line number Diff line change
Expand Up @@ -260,7 +260,7 @@ def find_neighbors_and_dists(self, q, r):
def map_to_grid(radars, grid_shape, grid_limits, grid_origin=None,
grid_origin_alt=None, grid_projection=None,
fields=None, gatefilters=False,
map_roi=True, weighting_function='Barnes', toa=17000.0,
map_roi=True, weighting_function='Barnes2', toa=17000.0,
copy_field_data=True, algorithm='kd_tree', leafsize=10.,
roi_func='dist_beam', constant_roi=None,
z_factor=0.05, xy_factor=0.02, min_radius=500.0,
Expand Down

0 comments on commit 3415a24

Please sign in to comment.