Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FIX: Errors with pydda's read_from_pyart_grid with origin_latitude #134

Merged
merged 1 commit into from
Oct 14, 2024
Merged
Show file tree
Hide file tree
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
2 changes: 1 addition & 1 deletion pydda/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
from . import constraints
from . import io

__version__ = "2.0.2"
__version__ = "2.0.3"

print("Welcome to PyDDA %s" % __version__)
print("If you are using PyDDA in your publications, please cite:")
Expand Down
5 changes: 5 additions & 0 deletions pydda/io/read_grid.py
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,11 @@ def read_from_pyart_grid(Grid):
origin_latitude = Grid.origin_latitude
origin_longitude = Grid.origin_longitude
origin_altitude = Grid.origin_altitude
# Ensure that origin latitude, longitude are 1-D for .to_xarray()

origin_latitude["data"] = np.atleast_1d(np.squeeze(origin_latitude["data"]))
origin_longitude["data"] = np.atleast_1d(np.squeeze(origin_longitude["data"]))
origin_altitude["data"] = np.atleast_1d(np.squeeze(origin_altitude["data"]))

if len(list(Grid.fields.keys())) > 0:
first_grid_name = list(Grid.fields.keys())[0]
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@
PLATFORMS = "Linux, Windows, OSX"
MAJOR = 2
MINOR = 0
MICRO = 2
MICRO = 3

# SCRIPTS = glob.glob('scripts/*')
# TEST_SUITE = 'nose.collector'
Expand Down
Loading