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

RadxConvert writing NEXRAD site name backwards #119

Open
achaberm opened this issue Jan 6, 2023 · 0 comments
Open

RadxConvert writing NEXRAD site name backwards #119

achaberm opened this issue Jan 6, 2023 · 0 comments

Comments

@achaberm
Copy link

achaberm commented Jan 6, 2023

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.

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant