-
It would be convenient to be able to generate the 2d grid areas of the Gaussian grid that UFS interpolates to, I'm having difficulty figuring out how to do that? Looking for a 192 x 384 array of surface areas basically, either in separate file or added to 2d sfc diagnostics. I tried adding: grid spec to diag_table but that doesn't seem to work. Ideas? Second question might be how to extend back to native cubed sphere grid ... for "areas" for that? This all has to do w/ reconstructing mass budgets for atm tracers post hoc. I also posted this over on the NOAA-UFS git repos: ufs-community/ufs-weather-model#2095 |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments
-
Hi, Andrew. The areas on the remapped Gaussian grid would have to be written out from the regridding software or computed analytically. The area of a grid cell bounded by latitude and longitude circles is simple to compute: I believe it is On the native cubed-sphere grid the coordinates of the grid cell centroids, corners, and grid-cell areas can be written to history files by adding the following lines to your diag table (assuming the grid_spec file is not defined elsewhere in this file):
See more about the diag_table format at the FMS documentation. |
Beta Was this translation helpful? Give feedback.
-
@aschuh - What @lharris4 showed you will dump the native cubed-sphere information. You can also get this same information from the input grid files. The input grid files describe the supergrid, which is made up of the cell corners, cell-edge midpoints, and the cell centroid. I will point out that the quantities (area, dx, dy, etc) in the input grid files are derived from the supergrid lat-lon pairs and are dependent on the definition of the R_e and pi. I assume you are talking about the gaussian grid output from the UFS write component. The definition of that grid occurs outside of FV3 and can be found in the UFS fv3atm write grid component. I don't see an area calculation, merely the definition of lat and lon. |
Beta Was this translation helpful? Give feedback.
-
@bensonr- It is really cubed sphere "areas" I'm looking for in the output files. It IS available internally. I just want to be able to integrate up global atmos burden by multiplying mix ratio by pressure by area. The cubed sphere isn't a regular grid so it's not clear how you'd use the topology, e.g. edges, corners, etc, to calc area. I'd have to look at the Gaussian grid again, but I believe is still a GRID in lat/long just not regularly spaced. Again, to do precise tracer mass checks, it would be nice if this is absolutely true. From what I've heard, I think I'll progress like this. Try to figure out why adding : Anticipate questions coming soon on pressure levels : ). Thx all. andrew |
Beta Was this translation helpful? Give feedback.
Hi, Andrew. The areas on the remapped Gaussian grid would have to be written out from the regridding software or computed analytically. The area of a grid cell bounded by latitude and longitude circles is simple to compute: I believe it is$$R_e^2 \times \Delta \lambda \times \Delta \cos \phi.$$
On the native cubed-sphere grid the coordinates of the grid cell centroids, corners, and grid-cell areas can be written to history files by adding the following lines to your diag table (assuming the grid_spec file is not defined elsewhere in this file):