Skip to content

Conversation

SamuelTrahanNOAA
Copy link

Bug fix: write global attributes from forecast.

As documented here:

In the comment chain, it was noted that the current gsl/develop cannot write global attributes.

The bug is caused by a workaround I added to let jedivar write to init.nc. Jedivar was trying to write to undefined global attributes in data mode. My workaround was to not write to attributes unless they're defined. That prevented them from being defined in define mode (since nothing is defined yet).

The fix is to always allow writing global attributes in define mode.

Information on running mandatory regression tests on Jet can be found here and the results pasted below.

regression test case results
PASTE compare_run_testcases AND/OR compare_create_testcases TEXT HERE

@SamuelTrahanNOAA
Copy link
Author

@guoqing-noaa - This is the fix for your troubles.

@SamuelTrahanNOAA
Copy link
Author

SamuelTrahanNOAA commented Oct 6, 2025

I may have PR'd this to the wrong branch. Regardless, the fix guoqing needs is here.

@SamuelTrahanNOAA
Copy link
Author

The branch this needs to be PR'd to isn't in this repository. I'm closing the PR.

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.

1 participant