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

DATM updates and fixes #8

Merged
merged 22 commits into from
Apr 30, 2020
Merged

Conversation

DeniseWorthen
Copy link
Collaborator

@DeniseWorthen DeniseWorthen commented Apr 23, 2020

This PR incorporates the following updates to both simplify the DATM component as well as make it more robust. The following changes are made:

Issue #4: The DATM grid is now created by reading a SCRIP grid definition file which is created from one of the source forcing files. An NCL script will be added to the utilities folder of the DATM-MOM6-CICE5 to allow this grid file to be created. This change allows large sections of code to be removed.

Issue #5: The DATM previously required at least one import field because the run sequence for the coupled model included a MED->ATM phase. Removal of this phase from the run sequence allows large sections of code to be removed.

Issue #6: The export field net_lw_flx is now created from the downward lw and upward lw fluxes present in the forcing file. The requirement for this calculation w/in the DATM itself is set in the datm_data_table where the net_lw_flx is set to "false", indicating this field is not present in the forcing file.

Other changes include:
*simplifying the printing of pet log messages
*removal of un-used code and variables

Because of the number of code-changes, the code was tested in standalone mode where the DATM functions solely as a file reader and interpolator. It driven by a simple driver and the fields exported by the standalone have been verified against the fields exported by the DATM when run in coupled mode.

The attached figures show a comparison of the fields contained in the actual forcing file with the matching field exported by the DATM in standalone mode at that timestep.

cfsr1
cfsr2
cfsr3
cfsr4
cfsr5
gefs1
gefs2
gefs3
gefs4
gefs5

@DeniseWorthen DeniseWorthen marked this pull request as ready for review April 27, 2020 19:21
@junwang-noaa
Copy link
Collaborator

Denise,

Thanks for making the changes to fix the issues. This simplifies the code a lot. One question is on the longitude between CFSR and GEFS. Looking at the short wave radiation. latent and sensible heat. It seems to even though both are for 2011100218, the GEFS SW seems not in correct location.

@DeniseWorthen
Copy link
Collaborator Author

Yes, I have to admit that totally went by me! But the fields marked as being from the forcing are read directly from the original forcing files that are used as input. I just looked again and the two forcing files do not agree on the placement of the SWrad at hour 18. I suspect something is wrong in the original forcing file?

@flampouris
Copy link
Collaborator

Thank you, @DeniseWorthen . You tackled almost all the issues at once.

My naive question: To test the PR NEMSdatm, do I have to update DATM-MOM6-CICE5 and run it, or is there any test that I am not aware of (e.g., the way that you created the plots)?

@DeniseWorthen
Copy link
Collaborator Author

@flampouris That is a good question. We don't have to update the coupled app even if one of the components updates to a new develop. Sometimes we do update the app right away if we know the baselines don't change. But in this case, we know for sure it will break the baselines so we don't need to test the coupled model until NEMS can also go to develop.

But before we do that, I think we need to get to the bottom of the time off-set in the gefs forcing files. Do you think you could have someone look at that? The DATM is putting out exactly what it is getting, but as Jun noticed the GEFS files are time-shifted.

@flampouris
Copy link
Collaborator

flampouris commented Apr 27, 2020

@hyunchul386 can you check the issue with the shortwave with the GEFS input files? It appears to be shifted at 18.00 in comparison with the CFSR. Which one is correct?

@DeniseWorthen
Copy link
Collaborator Author

I have created issue #12 on DATM-MOM6-CICE5 and assigned it to @hyunchul386

@flampouris
Copy link
Collaborator

I have created issue #12 on DATM-MOM6-CICE5 and assigned it to @hyunchul386

Thank you @DeniseWorthen

@hyunchul386
Copy link

hyunchul386 commented Apr 28, 2020 via email

@hyunchul386
Copy link

hyunchul386 commented Apr 28, 2020 via email

@flampouris
Copy link
Collaborator

flampouris commented Apr 28, 2020 via email

will have same names as for coupled model
Copy link
Collaborator

@flampouris flampouris left a comment

Choose a reason for hiding this comment

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

@DeniseWorthen thank you for this massive update and bug fix.

About the PR, I followed the code, and I do not see something awkward, not that I understand everything.

Your plots seem reasonable, and also considering that Hyun-Chul is tackling the issue with the GEFS timestamp at the input files level, this PR is approved.

Copy link
Collaborator

@junwang-noaa junwang-noaa left a comment

Choose a reason for hiding this comment

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

The code now is much simplified and clean.

@DeniseWorthen
Copy link
Collaborator Author

@binli2337: I think I need an admin on this repo to approve the PR and merge. Jun and Stelios have both approved but merging is still blocked. Could you please review/approve.

@binli2337
Copy link
Collaborator

Hi Denise,

These code updates will fix several issues reported by Jun and me during our previous meetings.
Everything looks good. Thanks.

@binli2337 binli2337 merged commit 8477b2a into NOAA-EMC:develop Apr 30, 2020
DeniseWorthen added a commit to DeniseWorthen/NEMSdatm that referenced this pull request Apr 30, 2020
@DeniseWorthen DeniseWorthen deleted the feature/gridfix branch May 13, 2020 11:46
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.

5 participants