Where to find the cell area for the LAM outputs #899
-
Hi, |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 3 replies
-
Hi @XiaSun-Atmos, you're right, the write-component generation code in the weather model does not include the areas of the write-component grid cells in the output files ( |
Beta Was this translation helpful? Give feedback.
-
@XiaSun-Atmos I thought about this a bit more yesterday, and I think it's not too hard to calculate the cell areas. I think all you have to do is take the lat and lon coordinates of the grid (which are available in say
You'll need the cell face center coordinates to calculate dlon and dlat for each cell, i.e.
where lon(i+1/2,j) is the longitude of the center of the east face of cell (i,j), and lat(i,j+1/2) is the latitude of the center of the north face of cell (i,j). In I also recommend plotting the write-component grid in lat-lon space just to make sure things look reasonable. |
Beta Was this translation helpful? Give feedback.
@XiaSun-Atmos I thought about this a bit more yesterday, and I think it's not too hard to calculate the cell areas. I think all you have to do is take the lat and lon coordinates of the grid (which are available in say
dynf000.nc
) and, for each cell, calculate a dlat and dlon. Then use the usual formulas to get the physical area:You'll need the cell face center coordinates to calculate dlon and dlat for each cell, i.e.
where lon(i+1/2,j) is the longitude of the c…