Skip to content

Commit

Permalink
added cut_radar function in util
Browse files Browse the repository at this point in the history
  • Loading branch information
wolfidan committed Jul 27, 2022
1 parent eefbf79 commit 94a268b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/util/test_radar_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -69,14 +69,14 @@ def test_cut_radar():
rng_max = 800, ele_min = 0.75,
ele_max = 0.75, azi_min = 10,
azi_max = 100)
# assert correct domain
# assert correct domain and correct fields
assert(radarcut.azimuth['data'].min() >= azi_min)
assert(radarcut.azimuth['data'].max() <= azi_max)
assert(radarcut.range['data'].min() >= rng_min)
assert(radarcut.range['data'].max() <= rng_max)
assert(radarcut.elevation['data'].min() >= ele_min)
assert(radarcut.elevation['data'].max() <= ele_max)

assert(list(radarcut.fields) == ['f1'])

# read in example file
radar = pyart.io.read_nexrad_archive(pyart.testing.NEXRAD_ARCHIVE_MSG31_FILE)
Expand Down

1 comment on commit 94a268b

@wolfidan
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I forgot to check if the new radar object has indeed only the specified field

Please sign in to comment.