From e44856bc7f49655997de41640f9b5bc2d64d4416 Mon Sep 17 00:00:00 2001 From: mgrover1 Date: Wed, 6 Mar 2024 14:35:53 -0600 Subject: [PATCH] ADD: Add new xdrlib drop in replacement --- continuous_integration/environment-ci.yml | 1 + doc/environment.yml | 1 + environment.yml | 1 + pyart/io/nexrad_level3.py | 2 +- requirements.txt | 1 + 5 files changed, 5 insertions(+), 1 deletion(-) diff --git a/continuous_integration/environment-ci.yml b/continuous_integration/environment-ci.yml index 427602cb43..941c2135b9 100644 --- a/continuous_integration/environment-ci.yml +++ b/continuous_integration/environment-ci.yml @@ -25,6 +25,7 @@ dependencies: - setuptools - shapely - ruff + - mda-xdrlib - pip - pip: - cibuildwheel diff --git a/doc/environment.yml b/doc/environment.yml index 1c1ce02963..bbcc740206 100644 --- a/doc/environment.yml +++ b/doc/environment.yml @@ -34,6 +34,7 @@ dependencies: - nbsphinx - pre_commit - cmweather + - mda-xdrlib - pip - pip: - pooch diff --git a/environment.yml b/environment.yml index 1a37c1c719..dd0fc129e9 100644 --- a/environment.yml +++ b/environment.yml @@ -14,6 +14,7 @@ dependencies: - arm_pyart - xarray - xradar + - mda-xdrlib - pip - pip: - wheel diff --git a/pyart/io/nexrad_level3.py b/pyart/io/nexrad_level3.py index 7c653b593f..69da980b43 100644 --- a/pyart/io/nexrad_level3.py +++ b/pyart/io/nexrad_level3.py @@ -70,9 +70,9 @@ import warnings from collections import namedtuple from datetime import datetime, timedelta -from xdrlib import Unpacker import numpy as np +from mda_xdrlib.xdrlib import Unpacker class NEXRADLevel3File: diff --git a/requirements.txt b/requirements.txt index b2f16d96e0..506d92a95c 100644 --- a/requirements.txt +++ b/requirements.txt @@ -9,4 +9,5 @@ s3fs open_radar_data xradar pandas +mda-xdrlib xarray!=0.21.0