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

Allow NUM_CYCLES to be optionally set by command line argument. #39

Merged

Conversation

EdwardSafford-NOAA
Copy link
Collaborator

NUM_CYCLES is defined in the *Mon/config or user settings file and sets the number of cycles used in time series plots. It's sometimes useful to plot specific sources at a different period for time series, while using the default for all others. This change provides a means to easily accomplish that.

Testing was done on Orion, Hera, and wcoss2 confirming both the NUM_CYCLES values with and without command line setting. Time series plots were made for RadMon and OznMon confirming the correct use of NUM_CYCLES.

Note that the MinMon does not create time series plots. Note too that the ConMon is still waiting update to use the shared GSI-monitor resources (#28) and does not plot correctly at the moment. Confirmation of the correct setting of NUM_CYCLES in the ConMon plots was made though.

This completes #38.

Add setting num_cycles via command line.
Merge branch 'develop' into feature/num_cycles_38
OznMon changes for NUM_CYCLES.
Copy link
Collaborator

@DavidHuber-NOAA DavidHuber-NOAA left a comment

Choose a reason for hiding this comment

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

Looks good. Just one trivial comment.

@@ -93,7 +72,7 @@ do
shift
done

if [[ $nargs -lt 0 || $nargs -gt 9 ]]; then
if [[ $nargs -lt 0 || $nargs -gt 13 ]]; then
Copy link
Collaborator

Choose a reason for hiding this comment

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

Should this be 11?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

No, 13 is right. The previous value of 9 was wrong and should have been 11. The options include run, pdate, ncyc, and tank, plus are 2 older, unique options for comparison plotting (comp1, comp2). So total of 12 + suffix is possible.

Copy link
Collaborator

Choose a reason for hiding this comment

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

Okie dokie. Thanks!

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

Successfully merging this pull request may close these issues.

2 participants