-
Notifications
You must be signed in to change notification settings - Fork 27
total heat flux doesn't match sum of 4 components in HR5 ocean grib2 file #103
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
Comments
@jiandewang |
FYI @AminIlia-NOAA |
Is this only a product issue or also a bug in model forecast ? Is it possible THFLX is computed with time-averaged fluxes while the individual components are instantaneous values ? |
I am sure this has nothing to do with the model as we don't output total heat flux in ocean. The total HF in grib2 file must be re-calaulated (summation) in post job. |
@aerorahul in current post code or script, it must have something like "THF=SW+LW+LH+SH". There is no need to do any sign changes as the 4 components are all defined in the same direction. I suspect right now it is "SW+LW-LH-LH" or something similiar to it which is not correct. |
Here is the documentation in gfs-utils/src/reg2grb2.fd/regdiag.f Lines 42 to 43 in 58f7901
And here are the calculations:
gfs-utils/src/reg2grb2.fd/regdiag.f Line 92 in 58f7901
gfs-utils/src/reg2grb2.fd/regdiag.f Line 118 in 58f7901
then total shortwave is added to it gfs-utils/src/reg2grb2.fd/regdiag.f Line 138 in 58f7901
What does MOM6 sum to calculate |
@DavidHuber-NOAA |
this code looks correct, but I guess it isn't being used in HR5 |
@jiandewang can you look at the experiment output here: /lfs/h2/emc/ptmp/emc.global/RETRO_GFSv17/comroot/retrotestgfs03/gfs.20230418/12/products/ocean/grib2/0p25 and see if things are looking okay there? |
@JessicaMeixner-NOAA sure, will take a look when I arrive in office |
@JessicaMeixner-NOAA just had a quick check for your file on wcoss2, same issue |
where is the script that convert it to grib2 ? I don't see issue in FORTRAN code. Total HF must be calculated in script as this variable doesn't exist in netcdf file. |
@AminIlia-NOAA Can you point @jiandewang in the right direction? |
oceanice_nc2grib2.sh is being used presently. The functions in the above script are replicated from here because the functions here will only work for wcoss2, for a specific date and a specific target grid. |
I know the reason now: |
I can fix this issue in my grib2 writer code. But first I should be the only owner of all ocean ice product related codes both in gfs-utils and workflow. |
I sent a PR for gfs-utils side fix. https://github.com/NOAA-EMC/gfs-utils/pull/105/files |
What is wrong?
During the verification of HR5 ocean results, Sulagna and I noticed that the total heat flux (THFLX) doesn't match sum of 4 components in HR5 ocean grib2 file. Heat flux in ocean is defined as positive downward for all SW, LW, latent and sensible heat. The summation of them shouldn't involved any sign change. Attached two plots are from THFLX and the summation of 4 components. We compared the 4 components with the original netcdf file's variables and they all match. So we suspect there is sign issue in the summation.
I have a sample file on HERA: /scratch1/NCEPDEV/climate/Jiande.Wang/working/scratch/HR5-NHF
What should have happened?
they should match
What machines are impacted?
All or N/A
What global-workflow hash are you using?
HR5
Steps to reproduce
run HR5
check ocean grib2 file
Additional information
No response
Do you have a proposed solution?
No response
The text was updated successfully, but these errors were encountered: