-
Notifications
You must be signed in to change notification settings - Fork 243
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
Use inline post with cubed sphere history output #1803
Use inline post with cubed sphere history output #1803
Comments
Let me know if you need any further information/clarification or how I can help, thanks! |
I think the solution of interpolating the native grid to Gaussian grid is doable, but this requires additional updates in both the write grid comp and the POST since offline POST won't work after this change. |
Do you need both cubed sphere history files and post files created at the same time during the DA cycling? |
@DusanJovic-NOAA good question. I'm not sure if any of the "gdas" post files are actually used except the analysis (which is offline anyways). For DA cycling, we don't need any post files, but perhaps for verification purposes? |
@WenMeng-NOAA I remember we do output post products for gdas, right? |
@junwang-noaa That's right. The UPP process gdas to generate master and flux files at analysis and f00 to f09. These data files are disseminated for the public. Please see https://nomads.ncep.noaa.gov/pub/data/nccf/com/gfs/prod/gdas.20230623/00/atmos/ |
I made some preliminary changes to the model to allow writing cubed sphere history outputs (for top-level domain only) in addition to using other grid type for standard history output and inline post. See : https://github.com/DusanJovic-NOAA/ufs-weather-model/tree/cubed_sphere_history_output If in the model_configure you add:
and leave output_grid to be 'gaussian_grid' and set write_dopost to .true. you will get standard history output files and post grib file on gaussian grid, and additional set of history files with prefix 'cubed_sphere_grid_'. For example:
will produce:
GFS*.Grb* atmf*.nc and sfcf*.nc will be on gaussian grid, while cubed_sphre_grid_*.nc will be on cubed sphere. Suggestion on how we should name the new model_configure option and which file prefix we should use are welcome. |
I am thinking if we would like to add post grid instead, by default (if not set), it would be the same as "output_grid", and we will not output atmf$fh.nc and sfcf$fh.nc in this case.
|
But according to the link Wen posted above with the nomads outputs from gdas we need both grib files and atm and sfc history files, both on Gaussian grid. That means means one option should control both grib and history files, which is currently 'output_grid' option. Your suggestion with:
implies that Since these additional JEDI DA files will always be on the cubed sphere grid, logical switch should be enough, if turned on user will get these additional files (always on cubed sphere) while @aerorahul any suggestions. |
My understanding is that we only need Gaussian grid for post and cubed sphere grid for history. Maybe Rahul and @CoryMartin-NOAA can confirm. I think it wastes resources if we output history files in both Gaussian grid and cubed sphere grid. |
I'm not sure about who uses the history files for things like boundary conditions (such as the RRFS, for example). However, I suspect an offline utility to go from cubed sphere history to Gaussian history would satisfy these requirements. Or those users would need to modify their codes to read the native grid. From a "GFS/GDAS" perspective, I think Jun is correct, but we may need to continue to disseminate Gaussian grid model data in netCDF for other users (or perhaps a public notice stating the change will be sufficient?) |
If we decide to add completely new
Should hypothetical configuration like this be allowed? Even if we say that
if it is allowed, then we'll need something like:
All these cases will complicate the model_configure and code substantially and I'm not sure we really need it. How likely is that any other configuration will need different grids for history and grib files other than JEDI DA configuration? And if JEDI DA is the only configuration that needs grib and history files to be on different grids, and if in that case history files will always be on cubed sphere grid, then that looks to me like a special case, and for that case a simple logical switch should be sufficient. The type of the grid is basically assumed to be cubed_sphere and no other configuration is needed. If the concern is that we unnecessarily create both gaussian and cubed_sphere history files (we still need to see if we can actually get rid of gaussian history files), than maybe we can hardcode something in the code to simply skip writing out gaussian history files in this specific case only. |
@DusanJovic-NOAA I have some discussion with Rahul. I think at this time it might be easier to just have a new variable in model configure: top_parent_history_file_is_on_cubed_sphere_grid: .true. or: history_file_on_native_grid: .true. |
Description
The model now has the capability to write out cubed sphere history files in a similar format to the Gaussian grid history files. We plan to use these as the input to JEDI rather than the FMS restart files (we need the cubed sphere grid for JEDI-based DA and restart files will be unsustainable at operational resolution, particularly for 80 ensemble members x 7 valid times.).
Currently, if you try to run UFS with cubed sphere history and the inline post together, the model will error because the UPP does not accept cubed sphere grids. It is likely this configuration is the one we would need for any version of the global UFS that uses JEDI for its atmospheric data assimilation.
One other thing to note: if 'netcdf' is the file type, it will write out six tile files, only 'netcdf_parallel' will write out a single atmf006.nc file with a tile dimension. Not sure if this is by design or not, we would ideally want to use the single file with tile dimension if possible to conform to the current workflow/data structure as much as possible.
Solution
Have the model (ESMF?) interpolate to an appropriate Gaussian grid for the inline post immediately before passing the fields to the post when writing out cubed sphere history.
Alternatives
Related to
Cycling with JEDI for hybrid 4DEnVar configuration as in the operational GDAS
The text was updated successfully, but these errors were encountered: