Skip to content

Where to find the cell area for the LAM outputs #899

Answered by gsketefian
XiaSun-Atmos asked this question in Q&A
Discussion options

You must be logged in to vote

@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:

  ds_lon (distance in easting direction) = rad_earth*cos(lat)*dlon
  ds_lat (distance in northing direction) = rad_earth*dlat
  dA = ds_lon*ds_lat

You'll need the cell face center coordinates to calculate dlon and dlat for each cell, i.e.

dlon(i,j) = lon(i+1/2,j) - lon(i-1/2,j)
dlat(i,j) = lat(i,j+1/2) - lat(i,j-1/2)

where lon(i+1/2,j) is the longitude of the c…

Replies: 2 comments 3 replies

Comment options

You must be logged in to vote
2 replies
@DusanJovic-NOAA
Comment options

@XiaSun-Atmos
Comment options

Comment options

You must be logged in to vote
1 reply
@XiaSun-Atmos
Comment options

Answer selected by XiaSun-Atmos
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants