Skip to content

Commit

Permalink
FIX: Fix local import nexrad_interpolate
Browse files Browse the repository at this point in the history
  • Loading branch information
mgrover1 committed Jan 19, 2024
1 parent e042f1f commit 0c2d0dc
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions xradar/io/backends/nexrad_level2.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,6 @@
prepare_for_read,
)
from xradar.io.backends.nexrad_common import get_nexrad_location
from xradar.io.backends.nexrad_interpolate import (
_fast_interpolate_scan_2,
_fast_interpolate_scan_4,
)
from xradar.model import (
get_altitude_attrs,
get_azimuth_attrs,
Expand All @@ -33,6 +29,11 @@
get_time_attrs,
)

from .nexrad_interpolate import (
_fast_interpolate_scan_2,
_fast_interpolate_scan_4,
)

nexrad_mapping = {
"REF": "DBZH",
"VEL": "VRADH",
Expand Down Expand Up @@ -1366,7 +1367,7 @@ def open_dataset(
ds = ds.assign_coords({"elevation": ds.elevation})
ds = ds.assign_coords({"time": ds.time})

ds.encoding["engine"] = "NexradLevel2"
ds.encoding["engine"] = "nexradlevel2"

# handle duplicates and reindex
if decode_coords and reindex_angle is not False:
Expand Down

0 comments on commit 0c2d0dc

Please sign in to comment.