RadxConvert writing NEXRAD site name backwards
Opened this issue · 0 comments
achaberm commented
Hello, when using RadxConvert to convert data to NEXRAD format, I noticed that the site names are written backwards in the metadata header (i.e "KBMX" becomes "XMBK"). And after some digging, I'm pretty sure I've narrowed it down to the NexradRadxFile::_writeMetaDataHdrs function inside NexradRadxFile.cc, where NexradData::swap is called after the site_id is copied to the title struct, moving the NexradData::swap call to after millisecs_past_midnight is set, and before the site id is copied seems to fix this. I've attached the edited code.