Skip to content

Commit

Permalink
fix: use default azimuth for StandardPUP & revert module dir config
Browse files Browse the repository at this point in the history
  • Loading branch information
CyanideCN committed Jan 7, 2025
1 parent ff4f7bb commit fcba093
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 7 deletions.
10 changes: 5 additions & 5 deletions cinrad/io/level3.py
Original file line number Diff line number Diff line change
Expand Up @@ -564,11 +564,11 @@ def _parse_radial_fmt(self):
if self.ptype in [25, 26, 27, 28]:
# Mask 0 value in precipitation products
data = np.ma.masked_equal(data, 0)
az = np.linspace(0, 360, raw.shape[0])
az += azi[0]
az[az > 360] -= 360
azi = np.deg2rad(az)
# self.azi = np.deg2rad(azi)
# az = np.linspace(0, 360, raw.shape[0])
# az += azi[0]
# az[az > 360] -= 360
# azi = np.deg2rad(az)
self.azi = np.deg2rad(azi)
dist = np.arange(start_range // reso + 1, end_range // reso + 1, 1) * reso
lon, lat = get_coordinate(
dist, azi, self.params["elevation"], self.stationlon, self.stationlat
Expand Down
2 changes: 0 additions & 2 deletions cinrad/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,6 @@
from cinrad._typing import Array_T, Number_T

MODULE_DIR = os.path.dirname(__file__)
if getattr(sys, "frozen", False):
MODULE_DIR = sys.executable

VIL_CONST = 3.44e-6

Expand Down

0 comments on commit fcba093

Please sign in to comment.