Skip to content
Merged
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
14 changes: 7 additions & 7 deletions lars/preprocessing/radar_preprocessing.py
Original file line number Diff line number Diff line change
Expand Up @@ -71,13 +71,13 @@ def preprocess_radar_data(file_path, output_path, date=None,
if sweep_mode in ('ppi', 'sector', 'azimuth_surveillance'):
fig = plt.figure(figsize=(size_px/dpi, size_px/dpi))
ax = plt.axes()
sweep["corrected_reflectivity"].where(
sweep["corrected_reflectivity"] > min_ref).plot(x="x", y="y",
ax=ax,
add_colorbar=False,
**kwargs)
masked = sweep["corrected_reflectivity"].where(
sweep["corrected_reflectivity"] > min_ref).values
sweep[radar_field].where(
sweep[radar_field] > min_ref).plot(x="x", y="y",
ax=ax,
add_colorbar=False,
**kwargs)
masked = sweep[radar_field].where(
sweep[radar_field] > min_ref).values
ref_min = np.nanmin(masked)
ref_max = np.nanmax(masked)
ax.axis('off')
Expand Down
Loading