Skip to content
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

Add tropopause pressure to the GEOS-Chem Classic "SatDiagn" collection #2410

Merged
merged 2 commits into from
Aug 5, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -378,6 +378,10 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
- Removed State_Met%LWI and input meteorology LWI from carbon simulation run config files
- Removed function `CLEANUP_UCX`; deallocations are now done in `state_chm_mod.F90`

## [Unreleased] - TBD
### Added
- Tropopause pressure field in the satellite diagnostic (by @eamarais)

## [14.1.0] - 2023-02-01
### Added
- Added dry deposition updates to Hg0 from Feinberg22 ESPI publication + AMAP emissions
Expand Down
7 changes: 7 additions & 0 deletions GeosCore/diagnostics_mod.F90
Original file line number Diff line number Diff line change
Expand Up @@ -1518,6 +1518,13 @@ SUBROUTINE Do_Archive_SatDiagn( Input_Opt, State_Chm, State_Diag, &
State_Diag%SatDiagnTROPP(I,:) = State_Met%TROPP(I,:) * good
ENDIF

!---------------------------------------------------------------------
! Tropopause level [unitless]:
!---------------------------------------------------------------------
IF ( State_Diag%Archive_SatDiagnTropLev ) THEN
State_Diag%SatDiagnTropLev(I,:) = State_Met%TropLev(I,:) * good
ENDIF

!---------------------------------------------------------------------
! PBL Height [m]:
!---------------------------------------------------------------------
Expand Down
44 changes: 44 additions & 0 deletions Headers/state_diag_mod.F90
Original file line number Diff line number Diff line change
Expand Up @@ -945,6 +945,9 @@ MODULE State_Diag_Mod
REAL(f8), POINTER :: SatDiagnTROPP(:,:)
LOGICAL :: Archive_SatDiagnTROPP

REAL(f8), POINTER :: SatDiagnTropLev(:,:)
LOGICAL :: Archive_SatDiagnTropLev

REAL(f8), POINTER :: SatDiagnPBLHeight(:,:)
LOGICAL :: Archive_SatDiagnPBLHeight

Expand Down Expand Up @@ -2409,6 +2412,9 @@ SUBROUTINE Zero_State_Diag( State_Diag, RC )
State_Diag%SatDiagnTROPP => NULL()
State_Diag%Archive_SatDiagnTROPP = .FALSE.

State_Diag%SatDiagnTropLev => NULL()
State_Diag%Archive_SatDiagnTropLev = .FALSE.

State_Diag%SatDiagnPBLHeight => NULL()
State_Diag%Archive_SatDiagnPBLHeight = .FALSE.

Expand Down Expand Up @@ -4893,6 +4899,28 @@ SUBROUTINE Init_State_Diag( Input_Opt, State_Chm, State_Grid, &
RETURN
ENDIF

!------------------------------------------------------------------------
! Satellite diagnostic: Tropopause level (TropLev)
!------------------------------------------------------------------------
diagId = 'SatDiagnTropLev'
CALL Init_and_Register( &
Input_Opt = Input_Opt, &
State_Chm = State_Chm, &
State_Diag = State_Diag, &
State_Grid = State_Grid, &
DiagList = Diag_List, &
TaggedDiagList = TaggedDiag_List, &
Ptr2Data = State_Diag%SatDiagnTropLev, &
archiveData = State_Diag%Archive_SatDiagnTropLev, &
diagId = diagId, &
RC = RC )

IF ( RC /= GC_SUCCESS ) THEN
errMsg = TRIM( errMsg_ir ) // TRIM( diagId )
CALL GC_Error( errMsg, RC, thisLoc )
RETURN
ENDIF

!------------------------------------------------------------------------
! Satellite diagnostic: PBL Height (m)
!------------------------------------------------------------------------
Expand Down Expand Up @@ -5190,6 +5218,12 @@ SUBROUTINE Init_State_Diag( Input_Opt, State_Chm, State_Grid, &
State_Diag%Archive_SatDiagnConc .or. &
State_Diag%Archive_SatDiagnDryDep .or. &
State_Diag%Archive_SatDiagnDryDepVel .or. &
State_Diag%Archive_SatDiagnPEdge .or. &
State_Diag%Archive_SatDiagnTROPP .or. &
State_Diag%Archive_SatDiagnTropLev .or. &
State_Diag%Archive_SatDiagnPBLHeight .or. &
State_Diag%Archive_SatDiagnPBLTop .or. &
State_Diag%Archive_SatDiagnTAir .or. &
State_Diag%Archive_SatDiagnGWETROOT .or. &
State_Diag%Archive_SatDiagnGWETTOP .or. &
State_Diag%Archive_SatDiagnJval .or. &
Expand Down Expand Up @@ -12999,6 +13033,11 @@ SUBROUTINE Cleanup_State_Diag( State_Diag, RC )
RC = RC )
IF ( RC /= GC_SUCCESS ) RETURN

CALL Finalize( diagId = 'SatDiagnTropLev', &
Ptr2Data = State_Diag%SatDiagnTropLev, &
RC = RC )
IF ( RC /= GC_SUCCESS ) RETURN

CALL Finalize( diagId = 'SatDiagnPBLHeight', &
Ptr2Data = State_Diag%SatDiagnPBLHeight, &
RC = RC )
Expand Down Expand Up @@ -15146,6 +15185,11 @@ SUBROUTINE Get_Metadata_State_Diag( am_I_Root, metadataID, Found, &
IF ( isUnits ) Units = 'hPa'
IF ( isRank ) Rank = 2

ELSE IF ( TRIM( Name_AllCaps ) == 'SATDIAGNTROPLEV' ) THEN
IF ( isDesc ) Desc = 'Tropopause level'
IF ( isUnits ) Units = 'unitless'
IF ( isRank ) Rank = 2

ELSE IF ( TRIM( Name_AllCaps ) == 'SATDIAGNPBLHEIGHT' ) THEN
IF ( isDesc ) Desc = 'PBL Height'
IF ( isUnits ) Units = 'm'
Expand Down