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

Bugfix 1409 develop non_madis_profiler #1483

Merged
merged 2 commits into from Sep 10, 2020

Conversation

hsoh-u
Copy link
Collaborator

@hsoh-u hsoh-u commented Sep 8, 2020

It checks the existence of variables and displays the missing variable. If there are any missing variables, it stops. This prevent from the segfault (on reading non-exist variable.
The other branch to the masterV9.1 "bugfix_1409_master_non_madis_profiler" is not pushed yet.

@JohnHalleyGotway JohnHalleyGotway added this to In progress in MET-10.0.0-beta1 (10/22/20) via automation Sep 9, 2020
@JohnHalleyGotway JohnHalleyGotway added this to the MET 10.0 milestone Sep 9, 2020
@JohnHalleyGotway JohnHalleyGotway linked an issue Sep 9, 2020 that may be closed by this pull request
19 tasks
@JohnHalleyGotway
Copy link
Collaborator

Howard, I'm ready to test this out but can't find the file "acars.2020010_1700" for testing. Can you please tell me where I can find it?

@hsoh-u
Copy link
Collaborator Author

hsoh-u commented Sep 9, 2020

It's at dakota which is not up yet.
It's at dakota:/d3/personal/hsoh/data/RT-95865/acars.2020010_1700.

Copy link
Collaborator

@JohnHalleyGotway JohnHalleyGotway left a comment

Choose a reason for hiding this comment

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

I tested this and confirmed that the change works as expected. I approve this PR.

With met-9.1 we get a segfault:

MET-master_v9.1/met/bin/madis2nc
musial6:met johnhg$ madis2nc acars.20200108_1700 acars.20200108_1700.nc
DEBUG 1: Reading MADIS File:	acars.20200108_1700
DEBUG 2: Processing ACARS Profiles recs		= -372500542
Segmentation fault: 11

And with this bugfix branch merged into master_v9.1, we get a more useful error message:

madis2nc acars.20200108_1700 acars.20200108_1700.nc
DEBUG 1: Reading MADIS File:	acars.20200108_1700
ERROR  : 
ERROR  : process_madis_acarsProfiles() -> Please check if the input is a ACARS Profiles.
ERROR  : 
WARNING:     missing variable: profileAirport
WARNING:     missing variable: profileTime
WARNING:     missing variable: trackLat
WARNING:     missing variable: trackLon
WARNING:     missing variable: obsTimeOfDay
WARNING:     missing variable: nLevelsDD
WARNING:     missing variable: nLevels

@JohnHalleyGotway JohnHalleyGotway merged commit 950e0d9 into develop Sep 10, 2020
MET-10.0.0-beta1 (10/22/20) automation moved this from In progress to Done Sep 10, 2020
@JohnHalleyGotway JohnHalleyGotway deleted the bugfix_1409_non_madis_profiler branch September 10, 2020 15:39
@JohnHalleyGotway JohnHalleyGotway changed the title Bugfix 1409 non madis profiler Bugfix 1409 develop non_madis_profiler Sep 10, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
No open projects
Development

Successfully merging this pull request may close these issues.

Show the proper message with madis2nc and ACARS input (not ACARS profiler)
2 participants