Closed swnesbitt closed 1 year ago
Manually setting radar.scan_type='ppi'
as appropriate is a workaround.
@swnesbitt - can you share a sample file here? I can take a look at debugging here.
@swnesbitt - I think I found the culprit here. The byte-encoded string is being converted to a list... we should add a check on the dimensionality of the sweep mode array before grabbing the first element https://github.com/ARM-DOE/pyart/blob/main/pyart/io/cfradial.py#L200
Description
Tried to open a cfradial 360 sweep file produced from RadxConvert (originally a DOW produced DORADE)
What I Did
Tried to produce a radar display, but it says can't deal with
scan_mode
of "other" in the radar object.Looked at the cfradial file, and the
sweep_mode
isazimuth_surveillance
which is legal according to cfradial conventions.However, pyart.io.read is reading in
sweep_mode
from the cfradial as a masked array rather than a string.This causes plotting routines to crash as it compares
sweep_mode
to a number of known strings, and upon failure of matching, setsscan_type
(used in plotting routines) to "other".