-
Notifications
You must be signed in to change notification settings - Fork 164
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
Adding support for CMA-GFS in WPS #236
base: develop
Are you sure you want to change the base?
Conversation
This Vtable was created for CMA/CMA_GFS model data from the CMA server. Developed by Dr. Haiqing SONG from Inner Mongolia Meteorological Service of China Meteorological Administration(CMA).
I modified the rd_grib2.F file to solve the problem that WPS/ungrib can not correctly decode the CMA-GFS model of soil moisture and soil temperature.
Delete SeaIce and LANDDN. There are not Seaice and LANDDN in CMA-GFS data.
A test of the modified code on a dataset pulled from that CMA web site segfaulted. I haven't found the cause, but note that CMA uses several vertical level types that aren't decoded by rd_grib2. Their files also cause problems for g2print. So, it will take debugging and mods to get it working. I also suggest renaming Vtable.CMA_GFS to something else, since it may be confused with the NCEP GFS by some users. Vtable.CMA_GRAPES perhaps? Otherwise we may need to have a naming convention of the form Vtable.center_model and rename all the NCEP Vtables. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ungrib failed on derecho. Some debugging and mods may be needed.
Hello, Jim. |
Hi Andrew, |
Hi,Jim, Haiqing Soong (宋海清) |
@jimbresch Do We need to resubmit this PR based on WPS-V4.6.0? |
@andrewsoong You should be able to continue to amend this PR, unless you are addressing a different issue. |
Have you solved your problem? |
The problem was due to incompatibility of the external libraries compiled with an older version of the compiler on derecho with a new re-compile of WPS. The wrfhelp libraries don't work with a new compile. The problem was hard to track since ungrib fails on some grib2 files and not others. The CMA file was one which caused a failure. The fault is not with this PR. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
These changes permit ungribbing of the CMA model output. Tests on derecho were successful. Note that the global CMA output files are very large and time-consuming to download.
Thanks,Jim! Dr. Wei Wang,Will these changes work correctly on the NCAR machine? Thanks! @weiwangncar |
@andrewsoong: @jimbresch has tested it on our HPC (Derecho), and it seems to work. |
@weiwangncar Is the WRF team considering merging this capability in the next release? |
@andrewsoong Yes, we are considering it. |
Thanks,Wei ! |
@andrewsoong It would be helpful if you or CMA could provide documentation on the grib codes for the fields in the CMA model output files. Some of the fields seem to be non-standard or locally defined. While not needed for initializing WRF, the codes could be added to g2print. |
I am very sorry, I contacted CMA Technical Staff, but I did not get the relevant documentation. |
The CMA-GFS grib2 datasets is now able to be ingested by the ungrib program. The GRAPES_GFS(here in after referred to as CMA_GFS), the new generation of Global/Regional Assimilation and Prediction Enhanced System which is independently developped by China Meteorological Administration (CMA), has been put into formal operation. So we are committed to solving the problem of WPS correctly handling CMA_GFS forecast data.
one Vtable files(Vtable.CMA_GFS) has been created with the fields required by the WRF model.
Modifications to the ungrib source code: Adding support for code 738 in rd_grid2.F because model levels of CMA_GFS are on generalized vertical height coordinates.
The CMA_GFS real time data is here:http://data.wis.cma.cn/DCPC_WMC_BJ/open/nwp/gmf_gra/
I've tested the program with an Intel compiler and it passed without errors. CMA_GFS forecast data were also used to test, the results are normal.