Skip to content

Commit

Permalink
#86
Browse files Browse the repository at this point in the history
  • Loading branch information
CyanideCN committed Nov 11, 2022
1 parent 727de88 commit fb96c2a
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions cinrad/calc.py
Original file line number Diff line number Diff line change
Expand Up @@ -403,7 +403,7 @@ def _process_grid(self, x_step: Number_T, y_step: Number_T) -> Tuple[np.ndarray]
y_lower = np.round_(self.lat_ravel.min(), 2)
y_upper = np.round_(self.lat_ravel.max(), 2)
x_grid = np.arange(x_lower, x_upper + x_step, x_step)
y_grid = np.arange(y_lower, y_upper + x_step, x_step)
y_grid = np.arange(y_lower, y_upper + y_step, y_step)
return np.meshgrid(x_grid, y_grid)

def _map_points(self, x: np.ndarray, y: np.ndarray) -> np.ma.MaskedArray:
Expand Down Expand Up @@ -449,11 +449,9 @@ def __call__(self, step: Number_T) -> Dataset:
r_attr["site_name"] = "RADMAP"
r_attr["site_code"] = "RADMAP"
r_attr["scan_time"] = self.scan_time.strftime("%Y-%m-%d %H:%M:%S")
del (
r_attr["site_longitude"],
r_attr["site_latitude"],
r_attr["nyquist_vel"],
)
for k in ["site_longitude", "site_latitude", "nyquist_vel"]:
if k in r_attr:
del r_attr[k]
ret.attrs = r_attr
return ret

Expand Down

0 comments on commit fb96c2a

Please sign in to comment.