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

Check the DO_JEDISNOWDA condition before adding snow DA analysis to the list #2471

Merged

Conversation

jiaruidong2017
Copy link
Contributor

Description

This PR added checking the DO_JEDISNOWDA condition before adding snow DA analysis to the archive list.

Resolves #2469

Type of change

  • Bug fix (fixes something broken)

Change characteristics

  • Is this a breaking change (a change in existing functionality)? NO
  • Does this change require a documentation update? NO

Checklist

  • Any dependent changes have been merged and published
  • My code follows the style guidelines of this project
  • I have performed a self-review of my own code
  • I have commented my code, particularly in hard-to-understand areas
  • My changes generate no new warnings
  • New and existing tests pass with my changes
  • I have made corresponding changes to the documentation if necessary

Copy link
Contributor

@aerorahul aerorahul left a comment

Choose a reason for hiding this comment

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

Thank you for adding the conditional. This will work.

However, in config.base, the variable is named DO_JEDILANDDA. It should be renamed to DO_JEDISNOWDA. Would you mind changing that variable as well to be DO_JEDISNOWDA instead of DO_JEDILANDDA?

echo "${COM_SNOW_ANALYSIS/${ROTDIR}\//}/*0000.sfc_data.tile4.nc"
echo "${COM_SNOW_ANALYSIS/${ROTDIR}\//}/*0000.sfc_data.tile5.nc"
echo "${COM_SNOW_ANALYSIS/${ROTDIR}\//}/*0000.sfc_data.tile6.nc"
if [[ ${DO_JEDISNOWDA} = "YES" ]]; then
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
if [[ ${DO_JEDISNOWDA} = "YES" ]]; then
if [[ "${DO_JEDISNOWDA:-}" == "YES" ]]; then

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Thanks @aerorahul and done the changes as suggested.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Also changed the DO_JEDILANDDA to DO_JEDISNOWDA.

@aerorahul aerorahul self-requested a review April 9, 2024 14:54
Copy link
Contributor

@aerorahul aerorahul 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.
At somepoint we should review what needs to be archived for the sfc_data files. We have sfcanl_data tile files also being archived.

@aerorahul aerorahul merged commit ddd91b1 into NOAA-EMC:develop Apr 9, 2024
4 checks passed
@jiaruidong2017 jiaruidong2017 deleted the feature/Correct_hpss_arch branch April 9, 2024 22:24
danholdaway added a commit to danholdaway/global-workflow that referenced this pull request Apr 15, 2024
* upstream/develop:
  Update fbwind for COM refactor (NOAA-EMC#2479)
  Update parm files for atm product (NOAA-EMC#2486)
  Fix paths in prepocnobs task (NOAA-EMC#2459)
  Add oceanalecn to workflow generator (NOAA-EMC#2409)
  Add support for CADS IR cloud detection scheme in the GSI (NOAA-EMC#2478)
  Improve error messaging to resolve bugzilla (NOAA-EMC#2468)
  Check the DO_JEDISNOWDA condition before adding snow DA analysis to the list (NOAA-EMC#2471)
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.

Archive Jobs Fail
3 participants