Skip to content

Commit

Permalink
Merge pull request mom-ocean#839 from MJHarrison-GFDL/rotation_angle_…
Browse files Browse the repository at this point in the history
…diagnostic

Added grid rotation angle to the list of available static diagnostics
  • Loading branch information
Hallberg-NOAA authored Aug 22, 2018
2 parents 8c1ed28 + e3923d3 commit 210c2fb
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/diagnostics/MOM_diagnostics.F90
Original file line number Diff line number Diff line change
Expand Up @@ -1952,6 +1952,14 @@ subroutine write_static_fields(G, GV, tv, diag)
'Open zonal grid spacing at v points (meter)', 'm', interp_method='none')
if (id > 0) call post_data(id, G%dx_Cv, diag, .true.)

id = register_static_field('ocean_model', 'sin_rot', diag%axesT1, &
'sine of the clockwise angle of the ocean grid north to true north', 'none')
if (id > 0) call post_data(id, G%sin_rot, diag, .true.)

id = register_static_field('ocean_model', 'cos_rot', diag%axesT1, &
'cosine of the clockwise angle of the ocean grid north to true north', 'none')
if (id > 0) call post_data(id, G%cos_rot, diag, .true.)


! This static diagnostic is from CF 1.8, and is the fraction of a cell
! covered by ocean, given as a percentage (poorly named).
Expand Down

0 comments on commit 210c2fb

Please sign in to comment.