From 1d18bbb801f6ff15f0d3e1efaa69aed984db0690 Mon Sep 17 00:00:00 2001 From: acollow Date: Wed, 23 Sep 2026 12:42:47 -0400 Subject: [PATCH 01/17] initial checkin of code using radii from optics files --- .../DU2G_GridComp/DU2G_GridCompMod.F90 | 9 +-- .../DU2G_GridComp/DU2G_StateSpecs.rc | 4 +- .../DU2G_GridComp/DU2G_instance_DU.rc | 2 + .../GOCART2G_GridCompMod.F90 | 14 +++- ESMF/GOCART2G_GridComp/GOCART2G_StateSpecs.rc | 3 +- .../SS2G_GridComp/SS2G_GridCompMod.F90 | 5 +- .../SS2G_GridComp/SS2G_StateSpecs.rc | 4 +- .../SS2G_GridComp/SS2G_instance_SS.rc | 2 + Process_Library/GOCART2G_MieMod.F90 | 30 ++++++++ Process_Library/GOCART2G_Process.F90 | 72 ++++++++++++++++--- Process_Library/MieQuery.H | 18 ++++- 11 files changed, 141 insertions(+), 22 deletions(-) diff --git a/ESMF/GOCART2G_GridComp/DU2G_GridComp/DU2G_GridCompMod.F90 b/ESMF/GOCART2G_GridComp/DU2G_GridComp/DU2G_GridCompMod.F90 index d8b303ca..5edd9b07 100644 --- a/ESMF/GOCART2G_GridComp/DU2G_GridComp/DU2G_GridCompMod.F90 +++ b/ESMF/GOCART2G_GridComp/DU2G_GridComp/DU2G_GridCompMod.F90 @@ -66,6 +66,7 @@ module DU2G_GridCompMod real :: Ch_DU_res(NHRES) ! resolutions used for Ch_DU real :: Ch_DU ! dust emission tuning coefficient [kg s2 m-5]. logical :: maringFlag=.false. ! maring settling velocity correction + real :: shape_factor ! shape factor used to convert to aerodynamic diameter integer :: day_save = -1 character(len=:), allocatable :: emission_scheme ! emission scheme selector integer :: clayFlag ! clay and silt term in K14 @@ -164,6 +165,7 @@ subroutine SetServices (GC, RC) call ESMF_ConfigGetAttribute (cfg, self%Ch_DU_res, label='Ch_DU:', __RC__) call ESMF_ConfigGetAttribute (cfg, self%rlow, label='radius_lower:', __RC__) call ESMF_ConfigGetAttribute (cfg, self%rup, label='radius_upper:', __RC__) + call ESMF_ConfigGetAttribute (cfg, self%shape_factor, label='shape_factor:', __RC__) ! Choose Emission Scheme !----------------------- @@ -378,7 +380,7 @@ subroutine Initialize (GC, import, export, clock, RC) type (ESMF_Clock), intent(inout) :: clock ! The clock integer, optional, intent( out) :: RC ! Error code -! !DESCRIPTION: This initializes DU's Grid Component. It primaryily fills +! !DESCRIPTION: This initializes DU's Grid Component. It primarily fills ! GOCART's AERO states with its dust fields. ! !REVISION HISTORY: @@ -1114,16 +1116,15 @@ subroutine Run2 (GC, import, export, clock, RC) self%wavelengths_vertint*1.0e-9, DU, MAPL_GRAV, t, airdens, & rh2, u, v, delp, ple,tropp, & DUSMASS, DUCMASS, DUMASS, DUEXTTAU, DUSTEXTTAU, DUSCATAU,DUSTSCATAU, & - DUSMASS25, DUCMASS25, DUMASS25, DUEXTT25, DUSCAT25, & + DUSMASS25, DUSMASS25A, DUCMASS25, DUMASS25, DUMASSFM, DUEXTT25, DUSCAT25, & DUFLUXU, DUFLUXV, DUCONC, DUEXTCOEF, DUSCACOEF, & - DUBCKCOEF,DUEXTTFM, DUSCATFM, DUANGSTR, DUAERIDX, NO3nFlag=.false., __RC__ ) + DUBCKCOEF,DUEXTTFM, DUSCATFM, DUANGSTR, DUAERIDX, NO3nFlag=.false., BinFracFlag=.true., shapefactor=self%shape_factor, __RC__ ) i1 = lbound(RH2, 1); i2 = ubound(RH2, 1) j1 = lbound(RH2, 2); j2 = ubound(RH2, 2) km = ubound(RH2, 3) - allocate(RH20(i1:i2,j1:j2,km), __STAT__) allocate(RH80(i1:i2,j1:j2,km), __STAT__) RH20(:,:,:) = 0.20 diff --git a/ESMF/GOCART2G_GridComp/DU2G_GridComp/DU2G_StateSpecs.rc b/ESMF/GOCART2G_GridComp/DU2G_GridComp/DU2G_StateSpecs.rc index 2177f905..9a6013d1 100644 --- a/ESMF/GOCART2G_GridComp/DU2G_GridComp/DU2G_StateSpecs.rc +++ b/ESMF/GOCART2G_GridComp/DU2G_GridComp/DU2G_StateSpecs.rc @@ -61,6 +61,7 @@ category: EXPORT #---------------------------------------------------------------------------------------- DUMASS | kg kg-1 | xyz | C | | Dust Mass Mixing Ratio DUMASS25 | kg kg-1 | xyz | C | | Dust Mass Mixing Ratio + DUMASSFM | kg kg-1 | xyz | C | | Fine Mode Dust Mass Mixing Ratio (PM1) DUCONC | kg m-3 | xyz | C | | Dust Mass Concentration DUSD_V | m s-1 | xyz | C | self%nbins | Dust Settling Velocity (Bin %d) DUEXTCOEF | m-1 | xyz | C | size(self%wavelengths_profile) | Dust Extinction Coefficient @@ -77,7 +78,8 @@ category: EXPORT DUSTEXTTAU | 1 | xy | N | size(self%wavelengths_vertint) | Dust Stratospheric Aerosol Optical Thickness DUSCATAU | 1 | xy | N | size(self%wavelengths_vertint) | Dust Aerosol Optical Depth Due to Scattering DUSTSCATAU | 1 | xy | N | size(self%wavelengths_vertint) | Dust Stratospheric Aerosol Optical Thickness Due to Scattering - DUSMASS25 | kg m-3 | xy | N | | Dust Surface Mass Concentration of Particulate Matter < 2.5 microns (PM 2.5) + DUSMASS25 | kg m-3 | xy | N | | Dust Surface Mass Concentration of Particulate Matter < geometric 2.5 microns (PM 2.5) + DUSMASS25A | kg m-3 | xy | N | | Dust Surface Mass Concentration of Particulate Matter < aerodynamic 2.5 microns (PM 2.5) DUCMASS25 | kg m-2 | xy | N | | Dust Column Mass Density of Particulate Matter < 2.5 microns (PM 2.5) DUEXTT25 | 1 | xy | N | size(self%wavelengths_vertint) | Dust Aerosol Optical Depth from Particulate Matter < 2.5 microns (PM2.5) DUSCAT25 | 1 | xy | N | size(self%wavelengths_vertint) | Dust Aerosol Optical Depth Due to Scattering from Particulate Matter < 2.5 microns (PM2.5) diff --git a/ESMF/GOCART2G_GridComp/DU2G_GridComp/DU2G_instance_DU.rc b/ESMF/GOCART2G_GridComp/DU2G_GridComp/DU2G_instance_DU.rc index ff6bfc38..f0b79b94 100644 --- a/ESMF/GOCART2G_GridComp/DU2G_GridComp/DU2G_instance_DU.rc +++ b/ESMF/GOCART2G_GridComp/DU2G_GridComp/DU2G_instance_DU.rc @@ -11,6 +11,8 @@ radius_lower: 0.1 1.0 1.8 3.0 6.0 radius_upper: 1.0 1.8 3.0 6.0 10.0 +shape_factor: 1.4 + # units [kg/m-3] particle_density: 2500. 2650. 2650. 2650. 2650. diff --git a/ESMF/GOCART2G_GridComp/GOCART2G_GridCompMod.F90 b/ESMF/GOCART2G_GridComp/GOCART2G_GridCompMod.F90 index bae287fc..b684f4cc 100644 --- a/ESMF/GOCART2G_GridComp/GOCART2G_GridCompMod.F90 +++ b/ESMF/GOCART2G_GridComp/GOCART2G_GridCompMod.F90 @@ -612,7 +612,7 @@ subroutine Run2 (GC, import, export, clock, RC) real, pointer, dimension(:,:,:,:) :: duscacoefrh20, duscacoefrh80 real, pointer, dimension(:,:,:,:) :: dubckcoef real, pointer, dimension(:,:) :: duangstr, dusmass, & - dusmass25 + dusmass25, dusmass25a real, pointer, dimension(:,:,:) :: ssexttau, ssstexttau, & ssscatau, ssstscatau, & ssextt25, ssscat25, & @@ -622,7 +622,7 @@ subroutine Run2 (GC, import, export, clock, RC) real, pointer, dimension(:,:,:,:) :: ssscacoefrh20, ssscacoefrh80 real, pointer, dimension(:,:,:,:) :: ssbckcoef real, pointer, dimension(:,:) :: ssangstr, sssmass, & - sssmass25 + sssmass25, sssmass25a real, pointer, dimension(:,:,:) :: niexttau, nistexttau, & niscatau, nistscatau, & niextt25, niscat25, & @@ -741,6 +741,7 @@ subroutine Run2 (GC, import, export, clock, RC) if(associated(totabcksfc)) totabcksfc = 0. if(associated(pm)) pm(:,:) = 0. if(associated(pm25)) pm25(:,:) = 0. + if(associated(pm25a)) pm25a(:,:) = 0. if(associated(pm_rh35)) pm_rh35(:,:) = 0. if(associated(pm25_rh35)) pm25_rh35(:,:) = 0. if(associated(pm_rh50)) pm_rh50(:,:) = 0. @@ -834,8 +835,10 @@ subroutine Run2 (GC, import, export, clock, RC) call MAPL_GetPointer (gex(self%DU%instances(n)%id), dusmass, 'DUSMASS', __RC__) call MAPL_GetPointer (gex(self%DU%instances(n)%id), dusmass25, 'DUSMASS25', __RC__) + call MAPL_GetPointer (gex(self%DU%instances(n)%id), dusmass25a, 'DUSMASS25A', __RC__) if(associated(pm) .and. associated(dusmass)) pm = pm + dusmass if(associated(pm25) .and. associated(dusmass25)) pm25 = pm25 + dusmass25 + if(associated(pm25a) .and. associated(dusmass25a)) pm25a = pm25a + dusmass25a if(associated(pm_rh35) .and. associated(dusmass)) pm_rh35 = pm_rh35 + dusmass if(associated(pm25_rh35) .and. associated(dusmass25)) pm25_rh35 = pm25_rh35 + dusmass25 if(associated(pm_rh50) .and. associated(dusmass)) pm_rh50 = pm_rh50 + dusmass @@ -892,8 +895,10 @@ subroutine Run2 (GC, import, export, clock, RC) call MAPL_GetPointer (gex(self%SS%instances(n)%id), sssmass, 'SSSMASS', __RC__) call MAPL_GetPointer (gex(self%SS%instances(n)%id), sssmass25, 'SSSMASS25', __RC__) + call MAPL_GetPointer (gex(self%SS%instances(n)%id), sssmass25a, 'SSSMASS25A', __RC__) if(associated(pm) .and. associated(sssmass)) pm = pm + sssmass if(associated(pm25) .and. associated(sssmass25)) pm25 = pm25 + sssmass25 + if(associated(pm25a) .and. associated(sssmass25a)) pm25a = pm25a + sssmass25a if(associated(pm_rh35) .and. associated(sssmass)) pm_rh35 = pm_rh35 + 1.86*sssmass if(associated(pm25_rh35) .and. associated(sssmass25)) pm25_rh35 = pm25_rh35 + 1.86*sssmass25 if(associated(pm_rh50) .and. associated(sssmass)) pm_rh50 = pm_rh50 + 2.42*sssmass @@ -953,6 +958,7 @@ subroutine Run2 (GC, import, export, clock, RC) call MAPL_GetPointer (gex(self%NI%instances(n)%id), nh4smass, 'NH4SMASS', __RC__) if(associated(pm) .and. associated(nismass) .and. associated(nh4smass)) pm = pm + nismass + nh4smass if(associated(pm25) .and. associated(nismass25) .and. associated(nh4smass)) pm25 = pm25 + nismass25 + nh4smass + if(associated(pm25a) .and. associated(nismass25) .and. associated(nh4smass)) pm25a = pm25a + nismass25 + nh4smass if(associated(pm_rh35) .and. associated(nismass) .and. associated(nh4smass)) pm_rh35 = pm_rh35 + 1.33*(nismass + nh4smass) if(associated(pm25_rh35) .and. associated(nismass25) .and. associated(nh4smass)) pm25_rh35 = pm25_rh35 + 1.33*(nismass25 + nh4smass) if(associated(pm_rh50) .and. associated(nismass) .and. associated(nh4smass)) pm_rh50 = pm_rh50 + 1.51*(nismass + nh4smass) @@ -1015,6 +1021,7 @@ subroutine Run2 (GC, import, export, clock, RC) if(associated(so4smass)) then if(associated(pm) ) pm = pm + nifactor*so4smass if(associated(pm25) ) pm25 = pm25 + nifactor*so4smass + if(associated(pm25a) ) pm25a = pm25a + nifactor*so4smass if(associated(pm_rh35) ) pm_rh35 = pm_rh35 + 1.33*nifactor*so4smass if(associated(pm25_rh35)) pm25_rh35 = pm25_rh35 + 1.33*nifactor*so4smass if(associated(pm_rh50) ) pm_rh50 = pm_rh50 + 1.51*nifactor*so4smass @@ -1072,6 +1079,7 @@ subroutine Run2 (GC, import, export, clock, RC) call MAPL_GetPointer (gex(self%CA%instances(n)%id), bcsmass, 'CA.bcSMASS', __RC__) if(associated(pm) .and. associated(bcsmass)) pm = pm + bcsmass if(associated(pm25) .and. associated(bcsmass)) pm25 = pm25 + bcsmass + if(associated(pm25a) .and. associated(bcsmass)) pm25a = pm25a + bcsmass if(associated(pm_rh35) .and. associated(bcsmass)) pm_rh35 = pm_rh35 + bcsmass if(associated(pm25_rh35) .and. associated(bcsmass)) pm25_rh35 = pm25_rh35 + bcsmass if(associated(pm_rh50) .and. associated(bcsmass)) pm_rh50 = pm_rh50 + bcsmass @@ -1122,6 +1130,7 @@ subroutine Run2 (GC, import, export, clock, RC) call MAPL_GetPointer (gex(self%CA%instances(n)%id), ocsmass, 'CA.ocSMASS', __RC__) if(associated(pm) .and. associated(ocsmass)) pm = pm + ocsmass if(associated(pm25) .and. associated(ocsmass)) pm25 = pm25 + ocsmass + if(associated(pm25a) .and. associated(ocsmass)) pm25a = pm25a + ocsmass if(associated(pm_rh35) .and. associated(ocsmass)) pm_rh35 = pm_rh35 + 1.16*ocsmass ! needs to be revisited: OCpho + 1.16 OCphi if(associated(pm25_rh35) .and. associated(ocsmass)) pm25_rh35 = pm25_rh35 + 1.16*ocsmass ! if(associated(pm_rh50) .and. associated(ocsmass)) pm_rh50 = pm_rh50 + 1.24*ocsmass ! needs to be revisited: OCpho + 1.24 OCphi @@ -1172,6 +1181,7 @@ subroutine Run2 (GC, import, export, clock, RC) call MAPL_GetPointer (gex(self%CA%instances(n)%id), brsmass, 'CA.brSMASS', __RC__) if(associated(pm) .and. associated(brsmass)) pm = pm + brsmass if(associated(pm25) .and. associated(brsmass)) pm25 = pm25 + brsmass + if(associated(pm25a) .and. associated(brsmass)) pm25a = pm25a + brsmass if(associated(pm_rh35) .and. associated(brsmass)) pm_rh35 = pm_rh35 + 1.16*brsmass ! needs to be revisited: OCpho + 1.16 OCphi if(associated(pm25_rh35) .and. associated(brsmass)) pm25_rh35 = pm25_rh35 + 1.16*brsmass ! if(associated(pm_rh50) .and. associated(brsmass)) pm_rh50 = pm_rh50 + 1.24*brsmass ! needs to be revisited: OCpho + 1.24 OCphi diff --git a/ESMF/GOCART2G_GridComp/GOCART2G_StateSpecs.rc b/ESMF/GOCART2G_GridComp/GOCART2G_StateSpecs.rc index 7a7cbe90..0907edc6 100644 --- a/ESMF/GOCART2G_GridComp/GOCART2G_StateSpecs.rc +++ b/ESMF/GOCART2G_GridComp/GOCART2G_StateSpecs.rc @@ -42,7 +42,8 @@ category: EXPORT PM | kg m-3 | xy | N | | Total Reconstructed Dry Particulate Matter PM_RH35 | kg m-3 | xy | N | | Total Reconstructed Particulate Matter at 35% Relative Humidity PM_RH50 | kg m-3 | xy | N | | Total Reconstructed Particulate Matter at 50% Relative Humidity - PM25 | kg m-3 | xy | N | | Total Reconstructed Dry Particulate Matter < 2.5 microns (PM2.5) + PM25 | kg m-3 | xy | N | | Total Reconstructed Dry Particulate Matter < geometric 2.5 microns (PM2.5) + PM25A | kg m-3 | xy | N | | Total Reconstructed Dry Particulate Matter < aerodynamic 2.5 microns (PM2.5) PM25_RH35 | kg m-3 | xy | N | | Total Reconstructed Particulate Matter < 2.5 microns (PM2.5) at 35% Relative Humidity PM25_RH50 | kg m-3 | xy | N | | Total Reconstructed Particulate Matter < 2.5 microns (PM2.5) at 50% Relative Humidity diff --git a/ESMF/GOCART2G_GridComp/SS2G_GridComp/SS2G_GridCompMod.F90 b/ESMF/GOCART2G_GridComp/SS2G_GridComp/SS2G_GridCompMod.F90 index 003567c2..615d1db4 100644 --- a/ESMF/GOCART2G_GridComp/SS2G_GridComp/SS2G_GridCompMod.F90 +++ b/ESMF/GOCART2G_GridComp/SS2G_GridComp/SS2G_GridCompMod.F90 @@ -53,6 +53,7 @@ module SS2G_GridCompMod integer :: emission_scheme real :: emission_scale ! global scaling factor real :: emission_scale_res(NHRES) ! global scaling factor + real :: shape_factor ! shape factor used to convert geometric to aerodynamic diameter end type SS2G_GridComp type wrap_ @@ -940,9 +941,9 @@ subroutine Run2 (GC, import, export, clock, RC) self%rup, self%wavelengths_profile*1.0e-9, & self%wavelengths_vertint*1.0e-9, SS, MAPL_GRAV, t, airdens,rh2, u, v, & delp, ple, tropp,SSSMASS, SSCMASS, SSMASS, SSEXTTAU,SSSTEXTTAU, SSSCATAU,SSSTSCATAU, & - SSSMASS25, SSCMASS25, SSMASS25, SSEXTT25, SSSCAT25, & + SSSMASS25, SSSMASS25A, SSCMASS25, SSMASS25, SSMASSFM, SSEXTT25, SSSCAT25, & SSFLUXU, SSFLUXV, SSCONC, SSEXTCOEF, SSSCACOEF, SSBCKCOEF, & - SSEXTTFM, SSSCATFM ,SSANGSTR, SSAERIDX, NO3nFlag=.false.,__RC__) + SSEXTTFM, SSSCATFM ,SSANGSTR, SSAERIDX, NO3nFlag=.false., BinFracFlag=.true., shapefactor=self%shape_factor , __RC__) i1 = lbound(RH2, 1); i2 = ubound(RH2, 1) j1 = lbound(RH2, 2); j2 = ubound(RH2, 2) diff --git a/ESMF/GOCART2G_GridComp/SS2G_GridComp/SS2G_StateSpecs.rc b/ESMF/GOCART2G_GridComp/SS2G_GridComp/SS2G_StateSpecs.rc index 0298001a..3b9fee37 100644 --- a/ESMF/GOCART2G_GridComp/SS2G_GridComp/SS2G_StateSpecs.rc +++ b/ESMF/GOCART2G_GridComp/SS2G_GridComp/SS2G_StateSpecs.rc @@ -43,6 +43,7 @@ category: EXPORT #---------------------------------------------------------------------------------------- SSMASS | kg kg-1 | xyz | C | | Sea Salt Mass Mixing Ratio SSMASS25 | kg kg-1 | xyz | C | | Sea Salt Mass Mixing Ratio of Particulate Matter < 2.5 microns (PM2.5) + SSMASSFM | kg kg-1 | xyz | C | | Sea Salt Mass Mixing Ratio of Particulate Matter < 1 microns (PM1) SSCONC | kg m-3 | xyz | C | | Sea Salt Mass Concentration SSSD_V | m s-1 | xyz | C | self%nbins | Sea Salt Settling Velocity (Bin %d) SSEXTCOEF | m-1 | xyz | C | size(self%wavelengths_profile) | Sea Salt Extinction Coefficient @@ -64,7 +65,8 @@ category: EXPORT SSSTEXTTAU | 1 | xy | N | size(self%wavelengths_vertint) | Sea Salt Stratospheric Aerosol Optical Thickness SSSCATAU | 1 | xy | N | size(self%wavelengths_vertint) | Sea Salt Aerosol Optical Depth Due to Scattering SSSTSCATAU | 1 | xy | N | size(self%wavelengths_vertint) | Sea Salt Stratospheric Aerosol Optical Thickness Due to Scattering - SSSMASS25 | kg m-3 | xy | N | | Sea Salt Surface Mass Concentration of Particulate Matter < 2.5 microns (PM2.5) + SSSMASS25 | kg m-3 | xy | N | | Sea Salt Surface Mass Concentration of Particulate Matter < geometric 2.5 microns (PM2.5) + SSSMASS25A | kg m-3 | xy | N | | Sea Salt Surface Mass Concentration of Particulate Matter < aerodynamic 2.5 microns (PM2.5) SSCMASS25 | kg m-2 | xy | N | | Sea Salt Column Mass Density of Particulate Matter < 2.5 microns (PM2.5) SSEXTT25 | 1 | xy | N | size(self%wavelengths_vertint) | Sea Salt Aerosol Optical Depth from Particulate Matter < 2.5 microns (PM2.5) SSSCAT25 | 1 | xy | N | size(self%wavelengths_vertint) | Sea Salt Aerosol Optical Depth Due to Scattering from Particulate Matter < 2.5 microns (PM2.5) diff --git a/ESMF/GOCART2G_GridComp/SS2G_GridComp/SS2G_instance_SS.rc b/ESMF/GOCART2G_GridComp/SS2G_GridComp/SS2G_instance_SS.rc index 1c62b5ea..3c1f79f2 100644 --- a/ESMF/GOCART2G_GridComp/SS2G_GridComp/SS2G_instance_SS.rc +++ b/ESMF/GOCART2G_GridComp/SS2G_GridComp/SS2G_instance_SS.rc @@ -13,6 +13,8 @@ radius_upper: 0.1 0.5 1.5 5.0 10.0 particle_density: 2200. 2200. 2200. 2200. 2200. +shape_factor: 1 + # Wet Removal Scheme Option | gocart, ufs wet_removal_scheme: gocart ! default value diff --git a/Process_Library/GOCART2G_MieMod.F90 b/Process_Library/GOCART2G_MieMod.F90 index 9206528c..a83e4665 100644 --- a/Process_Library/GOCART2G_MieMod.F90 +++ b/Process_Library/GOCART2G_MieMod.F90 @@ -55,6 +55,8 @@ module GOCART2G_MieMod real, pointer :: wavelengths(:) => Null() ! (c) wavelengths [m] real, pointer :: rh(:) => Null() ! (r) RH values [fraction] real, pointer :: reff(:,:) => Null() ! (r,b) effective radius [m] + real, pointer :: rUp(:,:) => Null() ! (r,b) radius upper bound [m] + real, pointer :: rLow(:,:) => Null() ! (r,b) radius lower bound [m] real, pointer :: bext(:,:,:) => Null() ! (r,c,b) bext values [m2 kg-1] real, pointer :: bsca(:,:,:) => Null() ! (r,c,b) bsca values [m2 kg-1] real, pointer :: bbck(:,:,:) => Null() ! (r,c,b) bbck values [m2 kg-1] @@ -145,6 +147,7 @@ type(GOCART2G_Mie) function GOCART2G_MieCreate ( MieFile, wavelengths, nmom, rc integer :: nch_table, nrh_table, nbin_table, nmom_table, nPol_table real, allocatable :: channels_table(:), rh_table(:), reff_table(:,:), & + rUp_table(:,:), rLow_table(:,:), & bext_table(:,:,:), bsca_table(:,:,:), & bbck_table(:,:,:), g_table(:,:,:), & pmom_table(:,:,:,:,:),pback_table(:,:,:,:), & @@ -228,6 +231,8 @@ type(GOCART2G_Mie) function GOCART2G_MieCreate ( MieFile, wavelengths, nmom, rc allocate(channels_table(nch_table), __NF_STAT__) allocate(rh_table(nrh_table), __NF_STAT__) allocate(reff_table(nrh_table,nbin_table), __NF_STAT__) + allocate(rUp_table(nrh_table,nbin_table), __NF_STAT__) + allocate(rLow_table(nrh_table,nbin_table), __NF_STAT__) allocate(bext_table(nrh_table,nch_table,nbin_table), __NF_STAT__) allocate(bsca_table(nrh_table,nch_table,nbin_table), __NF_STAT__) allocate(bbck_table(nrh_table,nch_table,nbin_table), __NF_STAT__) @@ -336,6 +341,23 @@ type(GOCART2G_Mie) function GOCART2G_MieCreate ( MieFile, wavelengths, nmom, rc NF_VERIFY_(nf90_get_var(ncid,ivarid,area_table)) endif +! rUp + rc = nf90_inq_varid(ncid,'rUp',ivarid) + if(rc .ne. NF90_NOERR) then ! not in table, fill in dummy variable + rUp_table = reff_table + else + NF_VERIFY_(nf90_get_var(ncid,ivarid,rUp_table)) + endif + + ! rLow + rc = nf90_inq_varid(ncid,'rLow',ivarid) + if(rc .ne. NF90_NOERR) then ! not in table, fill in dummy variable + rLow_table = reff_table + else + NF_VERIFY_(nf90_get_var(ncid,ivarid,rLow_table)) + endif + + ! Close the table file ! ------------------------------------- NF_VERIFY_(nf90_close(ncid)) @@ -351,6 +373,8 @@ type(GOCART2G_Mie) function GOCART2G_MieCreate ( MieFile, wavelengths, nmom, rc allocate (this%rh(this%nrh), __NF_STAT__) allocate (this%reff(this%nrh,this%nbin), __NF_STAT__) + allocate (this%rUp(this%nrh,this%nbin), __NF_STAT__) + allocate (this%rLow(this%nrh,this%nbin), __NF_STAT__) allocate (this%bext(this%nrh,this%nch,this%nbin), __NF_STAT__) allocate (this%bsca(this%nrh,this%nch,this%nbin), __NF_STAT__) allocate (this%bbck(this%nrh,this%nch,this%nbin), __NF_STAT__) @@ -376,6 +400,12 @@ type(GOCART2G_Mie) function GOCART2G_MieCreate ( MieFile, wavelengths, nmom, rc ! Insert rEff (moist effective radius) this%reff = reff_table +! Insert rUp + this%rUp = rUp_table + +! Insert rLow + this%rLow = rLow_table + ! Insert growth factor this%gf = gf_table diff --git a/Process_Library/GOCART2G_Process.F90 b/Process_Library/GOCART2G_Process.F90 index 499586f1..64c5faab 100644 --- a/Process_Library/GOCART2G_Process.F90 +++ b/Process_Library/GOCART2G_Process.F90 @@ -2030,7 +2030,7 @@ subroutine SettlingSolverUFS(i1, i2, j1, j2, km, cdt, delp, dz, vs, qa) if (dt_cfl >= cdt) then ! no need for time sub-splitting - nSubSteps = 0 + nSubSteps = 1 dt = cdt else nSubSteps = max(1, ceiling(cdt / dt_cfl)) @@ -4372,10 +4372,10 @@ subroutine Aero_Compute_Diags (mie, km, klid, nbegin, nbins, rlow, rup, & wavelengths_profile, wavelengths_vertint, aerosol, & grav, tmpu, rhoa, rh, u, v, delp, ple,tropp, & sfcmass, colmass, mass, exttau, stexttau, scatau, stscatau,& - sfcmass25, colmass25, mass25, exttau25, scatau25, & + sfcmass25, sfcmass25aerodyn, colmass25, mass25, mass1, exttau25, scatau25, & fluxu, fluxv, conc, extcoef, scacoef, bckcoef,& exttaufm, scataufm, angstrom, aerindx, NO3nFlag, & - sarea, reff, rc ) + sarea, reff, BinFracFlag, shapefactor, rc ) ! !USES: @@ -4400,6 +4400,8 @@ subroutine Aero_Compute_Diags (mie, km, klid, nbegin, nbins, rlow, rup, & real, pointer, dimension(:,:,:), intent(in) :: ple ! level edge air pressure [Pa] real, pointer, dimension(:,:), intent(in) :: tropp ! tropopause pressure [Pa] logical, optional, intent(in) :: NO3nFlag + logical, optional, intent(in) :: BinFracFlag + real, optional, intent(in) :: shapefactor ! used to convert geometric to aerodynamic ! !OUTPUT PARAMETERS: ! Total mass @@ -4413,8 +4415,10 @@ subroutine Aero_Compute_Diags (mie, km, klid, nbegin, nbins, rlow, rup, & real, optional, dimension(:,:,:), intent(inout) :: scatau ! sct. AOT at 550 nm real, optional, dimension(:,:,:), intent(inout) :: stscatau ! stratospheric sct. AOT at 550 nm real, optional, dimension(:,:), intent(inout) :: sfcmass25 ! sfc mass concentration kg/m3 (pm2.5) + real, optional, dimension(:,:), intent(inout) :: sfcmass25aerodyn ! sfc mass concentration kg/m3 computed with an aerodynamic diameter (pm2.5) real, optional, dimension(:,:), intent(inout) :: colmass25 ! col mass density kg/m2 (pm2.5) real, optional, dimension(:,:,:), intent(inout) :: mass25 ! 3d mass mixing ratio kg/kg (pm2.5) + real, optional, dimension(:,:,:), intent(inout) :: mass1 ! 3d mass mixing ratio kg/kg (pm1) real, optional, dimension(:,:,:), intent(inout) :: exttau25 ! ext. AOT at 550 nm (pm2.5) real, optional, dimension(:,:,:), intent(inout) :: scatau25 ! sct. AOT at 550 nm (pm2.5) real, optional, dimension(:,:), intent(inout) :: aerindx ! TOMS UV AI @@ -4439,6 +4443,7 @@ subroutine Aero_Compute_Diags (mie, km, klid, nbegin, nbins, rlow, rup, & ! 16APR2004, Colarco ! 11MAR2010, Nowottnick ! 11AUG2020, E.Sherman - refactored to work for multiple aerosols +! 22SEP2026, Collow - added aerodynamic PM2.5, PM2.5 using radius from optics files, and fine column mass ! !Local Variables character(len=*), parameter :: myname = 'Aero_Compute_Diags' @@ -4449,10 +4454,14 @@ subroutine Aero_Compute_Diags (mie, km, klid, nbegin, nbins, rlow, rup, & ! real :: fPMfm(nbins) ! fraction of bin with particles diameter < 1.0 um ! real :: fPM25(nbins) ! fraction of bin with particles diameter < 2.5 um real, dimension(:), allocatable :: fPMfm ! fraction of bin with particles diameter < 1.0 um - real, dimension(:), allocatable :: fPM25 ! fraction of bin with particles diameter < 2.5 um + real, dimension(:), allocatable :: fPM25 ! fraction of bin with particles geometric diameter < 2.5 um + real, dimension(:), allocatable :: fPM25aerodyn ! fraction of bin with particles aerodynamic diameter < 2.5 um logical :: do_angstrom real, dimension(:,:), allocatable :: tau470, tau870 logical :: NO3nFlag_ !local version of the input + logical :: BinFracFlag_ !local version of the input + real, dimension(:), allocatable :: local_rUp, local_rLow, local_rhop, rUpaerodyn, rLowaerodyn + real, dimension(1) :: RH0, temp_rUp, temp_rLow, temp_rhop !EOP !------------------------------------------------------------------------- @@ -4463,6 +4472,11 @@ subroutine Aero_Compute_Diags (mie, km, klid, nbegin, nbins, rlow, rup, & else NO3nFlag_ = .false. end if + if( present(BinFracFlag) ) then + BinFracFlag_ = BinFracFlag + else + BinFracFlag_ = .false. + end if ! Initialize local variables ! -------------------------- @@ -4470,6 +4484,8 @@ subroutine Aero_Compute_Diags (mie, km, klid, nbegin, nbins, rlow, rup, & j2 = size(rhoa,2) allocate(fPMfm(nbins),source=0.0) allocate(fPM25(nbins),source=0.0) + allocate(fPM25aerodyn(nbins),source=0.0) + allocate(local_rUp(nbins), local_rLow(nbins), local_rhop(nbins), rUpaerodyn(nbins), rLowaerodyn(nbins), source=0.0) ! Get the wavelength indices ! -------------------------- @@ -4495,11 +4511,38 @@ subroutine Aero_Compute_Diags (mie, km, klid, nbegin, nbins, rlow, rup, & end if end if + +! Get rUp and rLow if needed + if( BinFracFlag_ ) then + RH0(1)=0.0 + + ! Query into the specific bin index of our local arrays + do n = nbegin, nbins + call mie%Query(550e-9, n, & + aerosol(1:1,1,1,n)*delp(1:1,1,1)/grav, & + RH0, rUp=temp_rUp, rLow=temp_rLow, rhop=temp_rhop, __RC__) + + local_rUp(n) = temp_rUp(1) + local_rLow(n) = temp_rLow(1) + local_rhop(n) = temp_rhop(1) + end do + print *, local_rUp + +! Compute aerodynamic diameter + if (present(shapefactor)) then + rUpaerodyn = local_rUp * SQRT(local_rhop/shapefactor) + rLowaerodyn = local_rLow * SQRT(local_rhop/shapefactor) + else + ! Fallback if shapefactor isn't passed + rUpaerodyn = local_rUp + rLowaerodyn = local_rLow + end if + ! Compute the fine mode (sub-micron) and PM2.5 bin-wise fractions -! ------------------------------------ - if (present(rlow) .and. present(rup)) then - call Aero_Binwise_PM_Fractions(fPMfm, 0.50, rlow, rup, nbins) ! 2*r < 1.0 um - call Aero_Binwise_PM_Fractions(fPM25, 1.25, rlow, rup, nbins) ! 2*r < 2.5 um +! NOTE: We pass our local arrays into the fraction subroutine instead of the intent(in) arrays + call Aero_Binwise_PM_Fractions(fPMfm, 0.50, local_rLow, local_rUp, nbins) ! 2*r < 1.0 um + call Aero_Binwise_PM_Fractions(fPM25, 1.25, local_rLow, local_rUp, nbins) ! 2*r < 2.5 um + call Aero_Binwise_PM_Fractions(fPM25aerodyn, 1.25, rLowaerodyn, rUpaerodyn, nbins) end if if (present(aerindx)) aerindx = 0.0 ! for now @@ -4517,10 +4560,14 @@ subroutine Aero_Compute_Diags (mie, km, klid, nbegin, nbins, rlow, rup, & endif if( present(sfcmass25) ) then sfcmass25(i1:i2,j1:j2) = 0. + sfcmass25aerodyn(i1:i2,j1:j2) = 0. do n = nbegin, nbins sfcmass25(i1:i2,j1:j2) & = sfcmass25(i1:i2,j1:j2) & + aerosol(i1:i2,j1:j2,km,n)*rhoa(i1:i2,j1:j2,km)*fPM25(n) + sfcmass25aerodyn(i1:i2,j1:j2) & + = sfcmass25aerodyn(i1:i2,j1:j2) & + + aerosol(i1:i2,j1:j2,km,n)*rhoa(i1:i2,j1:j2,km)*fPM25aerodyn(n) end do endif @@ -4573,6 +4620,15 @@ subroutine Aero_Compute_Diags (mie, km, klid, nbegin, nbins, rlow, rup, & + aerosol(i1:i2,j1:j2,1:km,n)*fPM25(n) end do endif + if( present(mass1) ) then + mass1(i1:i2,j1:j2,1:km) = 0. + do n = nbegin, nbins + mass1(i1:i2,j1:j2,1:km) & + = mass1(i1:i2,j1:j2,1:km) & + + aerosol(i1:i2,j1:j2,1:km,n)*fPMfm(n) + end do + endif + ! Calculate the column mass flux in x direction if( present(fluxu) ) then diff --git a/Process_Library/MieQuery.H b/Process_Library/MieQuery.H index 3207f742..32421c73 100644 --- a/Process_Library/MieQuery.H +++ b/Process_Library/MieQuery.H @@ -29,7 +29,7 @@ subroutine SUBCHANNEL_ ( this, channel , bin, q_mass, rh, & tau, ssa, gasym, bext, bsca, bbck, & - reff, pmom, p11, p22, gf, rhop, rhod, & + reff, rUp, rLow, pmom, p11, p22, gf, rhop, rhod, & vol, area, refr, refi, rc ) ! !INPUT PARAMETERS: @@ -49,6 +49,8 @@ real, optional, intent(out) :: bsca (__DIMS__) ! mass scattering efficiency [m2 (kg dry mass)-1] real, optional, intent(out) :: bbck (__DIMS__) ! mass backscatter efficiency [m2 (kg dry mass)-1] real, optional, intent(out) :: reff (__DIMS__) ! effective radius (micron) + real, optional, intent(out) :: rLow (__DIMS__) ! radius lower bound (micron) + real, optional, intent(out) :: rUp (__DIMS__) ! radius upper bound (micron) real, optional, intent(out) :: pmom (:,:,__DIMS__) ! moments of phase function real, optional, intent(out) :: p11 (__DIMS__) ! P11 phase function at backscatter real, optional, intent(out) :: p22 (__DIMS__) ! P22 phase function at backscatter @@ -118,6 +120,14 @@ rEff = __RHINTERP2__(this%rEff, irh, arh, bin, rEff) endif + if(present(rUp)) then + rUp = __RHINTERP2__(this%rUp, irh, arh, bin, rUp) + endif + + if(present(rLow)) then + rLow = __RHINTERP2__(this%rLow, irh, arh, bin, rLow) + endif + if(present(rhop)) then rhop = __RHINTERP2__(this%rhop, irh, arh, bin, rhop) endif @@ -185,7 +195,7 @@ subroutine SUBWAVELENGTH_ ( this, wavelength, bin, q_mass, rh, & tau, ssa, gasym, bext, bsca, bbck, & - reff, pmom, p11, p22, gf, rhop, rhod, & + reff, rUp, rLow, pmom, p11, p22, gf, rhop, rhod, & vol, area, refr, refi, rc ) ! !INPUT PARAMETERS: @@ -205,6 +215,8 @@ real, optional, intent(out) :: bsca (__DIMS__) ! mass scattering efficiency [m2 (kg dry mass)-1] real, optional, intent(out) :: bbck (__DIMS__) ! mass backscatter efficiency [m2 (kg dry mass)-1] real, optional, intent(out) :: reff (__DIMS__) ! effective radius (micron) + real, optional, intent(out) :: rUp (__DIMS__) ! radius upper bound (micron) + real, optional, intent(out) :: rLow (__DIMS__) ! radius lower bound (micron) real, optional, intent(out) :: pmom (:,:,__DIMS__) ! moments of phase function real, optional, intent(out) :: p11 (__DIMS__) ! P11 phase function at backscatter real, optional, intent(out) :: p22 (__DIMS__) ! P22 phase function at backscatter @@ -248,7 +260,7 @@ call this%Query(channel, bin, q_mass, rh, & tau, ssa, gasym, bext, bsca, bbck, & - reff, pmom, p11, p22, gf, rhop, rhod, & + reff, rUp, rLow, pmom, p11, p22, gf, rhop, rhod, & vol, area, refr, refi, rc ) end subroutine SUBWAVELENGTH_ From 5cdea618ca73068eec7c0e726ae86486f5d771c3 Mon Sep 17 00:00:00 2001 From: acollow Date: Wed, 23 Sep 2026 12:53:57 -0400 Subject: [PATCH 02/17] add back missing line --- ESMF/GOCART2G_GridComp/DU2G_GridComp/DU2G_GridCompMod.F90 | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ESMF/GOCART2G_GridComp/DU2G_GridComp/DU2G_GridCompMod.F90 b/ESMF/GOCART2G_GridComp/DU2G_GridComp/DU2G_GridCompMod.F90 index 5edd9b07..c1ac3307 100644 --- a/ESMF/GOCART2G_GridComp/DU2G_GridComp/DU2G_GridCompMod.F90 +++ b/ESMF/GOCART2G_GridComp/DU2G_GridComp/DU2G_GridCompMod.F90 @@ -1124,7 +1124,8 @@ subroutine Run2 (GC, import, export, clock, RC) i1 = lbound(RH2, 1); i2 = ubound(RH2, 1) j1 = lbound(RH2, 2); j2 = ubound(RH2, 2) km = ubound(RH2, 3) - + + allocate(RH20(i1:i2,j1:j2,km), __STAT__) allocate(RH80(i1:i2,j1:j2,km), __STAT__) RH20(:,:,:) = 0.20 From 4175608d12bc5f3a0f1963c233fff84c51aee285 Mon Sep 17 00:00:00 2001 From: acollow Date: Thu, 24 Sep 2026 08:04:49 -0400 Subject: [PATCH 03/17] bug and unit fixes --- .../DU2G_GridComp/DU2G_GridCompMod.F90 | 27 ++++++++++--------- .../SS2G_GridComp/SS2G_GridCompMod.F90 | 1 + Process_Library/GOCART2G_Process.F90 | 25 ++++++++--------- 3 files changed, 28 insertions(+), 25 deletions(-) diff --git a/ESMF/GOCART2G_GridComp/DU2G_GridComp/DU2G_GridCompMod.F90 b/ESMF/GOCART2G_GridComp/DU2G_GridComp/DU2G_GridCompMod.F90 index c1ac3307..61db3700 100644 --- a/ESMF/GOCART2G_GridComp/DU2G_GridComp/DU2G_GridCompMod.F90 +++ b/ESMF/GOCART2G_GridComp/DU2G_GridComp/DU2G_GridCompMod.F90 @@ -1120,7 +1120,7 @@ subroutine Run2 (GC, import, export, clock, RC) DUFLUXU, DUFLUXV, DUCONC, DUEXTCOEF, DUSCACOEF, & DUBCKCOEF,DUEXTTFM, DUSCATFM, DUANGSTR, DUAERIDX, NO3nFlag=.false., BinFracFlag=.true., shapefactor=self%shape_factor, __RC__ ) - + i1 = lbound(RH2, 1); i2 = ubound(RH2, 1) j1 = lbound(RH2, 2); j2 = ubound(RH2, 2) km = ubound(RH2, 3) @@ -1358,16 +1358,16 @@ subroutine mie_(mie, nbins, band, q, rh, bext_s, bssa_s, basym_s, rc) integer, intent(in ) :: band ! channel real, intent(in ) :: q(:,:,:,:) ! aerosol mass mixing ratio, kg kg-1 real, intent(in ) :: rh(:,:,:) ! relative humidity - real(kind=DP), intent( out) :: bext_s (size(ext_s,1),size(ext_s,2),size(ext_s,3)) - real(kind=DP), intent( out) :: bssa_s (size(ext_s,1),size(ext_s,2),size(ext_s,3)) - real(kind=DP), intent( out) :: basym_s(size(ext_s,1),size(ext_s,2),size(ext_s,3)) + real(kind=DP), intent( out) :: bext_s (size(rh,1),size(rh,2),size(rh,3)) + real(kind=DP), intent( out) :: bssa_s (size(rh,1),size(rh,2),size(rh,3)) + real(kind=DP), intent( out) :: basym_s(size(rh,1),size(rh,2),size(rh,3)) integer, intent( out) :: rc ! local integer :: l - real :: bext (size(ext_s,1),size(ext_s,2),size(ext_s,3)) ! extinction - real :: bssa (size(ext_s,1),size(ext_s,2),size(ext_s,3)) ! SSA - real :: gasym(size(ext_s,1),size(ext_s,2),size(ext_s,3)) ! asymmetry parameter + real :: bext (size(rh,1),size(rh,2),size(rh,3)) ! extinction + real :: bssa (size(rh,1),size(rh,2),size(rh,3)) ! SSA + real :: gasym(size(rh,1),size(rh,2),size(rh,3)) ! asymmetry parameter __Iam__('DU2G::aerosol_optics::mie_') @@ -1396,16 +1396,17 @@ subroutine miephot_(mie, nbins, wavelength, q, rh, bext_s, bssa_s, bpmom_s, rc) real, intent(in ) :: wavelength ! wavelength in nm real, intent(in ) :: q(:,:,:,:) ! aerosol mass mixing ratio, kg kg-1 real, intent(in ) :: rh(:,:,:) ! relative humidity - real(kind=DP), intent( out) :: bext_s (size(ext_s,1),size(ext_s,2),size(ext_s,3)) - real(kind=DP), intent( out) :: bssa_s (size(ext_s,1),size(ext_s,2),size(ext_s,3)) - real(kind=DP), intent( out) :: bpmom_s(size(ext_s,1),size(ext_s,2),size(ext_s,3),size(pmom_s,4)) + real(kind=DP), intent( out) :: bext_s (:,:,:) + real(kind=DP), intent( out) :: bssa_s (:,:,:) + real(kind=DP), intent( out) :: bpmom_s(:,:,:,:) integer, intent( out) :: rc ! local integer :: l, m - real :: bext (size(ext_s,1),size(ext_s,2),size(ext_s,3)) ! extinction - real :: bssa (size(ext_s,1),size(ext_s,2),size(ext_s,3)) ! SSA - real :: pmom (size(ext_s,1),size(ext_s,2),size(ext_s,3),size(pmom_s,4),6) + real :: bext (size(rh,1),size(rh,2),size(rh,3)) ! extinction + real :: bssa (size(rh,1),size(rh,2),size(rh,3)) ! SSA + real :: pmom (size(rh,1),size(rh,2),size(rh,3),size(bpmom_s,4),6) + __Iam__('DU2G::aerosol_optics::miephot_') diff --git a/ESMF/GOCART2G_GridComp/SS2G_GridComp/SS2G_GridCompMod.F90 b/ESMF/GOCART2G_GridComp/SS2G_GridComp/SS2G_GridCompMod.F90 index 615d1db4..4d019dcd 100644 --- a/ESMF/GOCART2G_GridComp/SS2G_GridComp/SS2G_GridCompMod.F90 +++ b/ESMF/GOCART2G_GridComp/SS2G_GridComp/SS2G_GridCompMod.F90 @@ -140,6 +140,7 @@ subroutine SetServices ( GC, RC ) call ESMF_ConfigGetAttribute (cfg, self%rlow, label='radius_lower:', __RC__) call ESMF_ConfigGetAttribute (cfg, self%rup, label='radius_upper:', __RC__) call ESMF_ConfigGetAttribute (cfg, self%rmed, label='particle_radius_number:', __RC__) + call ESMF_ConfigGetAttribute (cfg, self%shape_factor, label='shape_factor:', __RC__) ! Is SS data driven? ! ------------------ diff --git a/Process_Library/GOCART2G_Process.F90 b/Process_Library/GOCART2G_Process.F90 index 64c5faab..a6a8ab06 100644 --- a/Process_Library/GOCART2G_Process.F90 +++ b/Process_Library/GOCART2G_Process.F90 @@ -4526,23 +4526,25 @@ subroutine Aero_Compute_Diags (mie, km, klid, nbegin, nbins, rlow, rup, & local_rLow(n) = temp_rLow(1) local_rhop(n) = temp_rhop(1) end do - print *, local_rUp + ! Compute aerodynamic diameter - if (present(shapefactor)) then - rUpaerodyn = local_rUp * SQRT(local_rhop/shapefactor) - rLowaerodyn = local_rLow * SQRT(local_rhop/shapefactor) + if (present(shapefactor)) then + rUpaerodyn = local_rUp * SQRT(local_rhop*0.001/shapefactor) + rLowaerodyn = local_rLow * SQRT(local_rhop*0.001/shapefactor) else ! Fallback if shapefactor isn't passed rUpaerodyn = local_rUp rLowaerodyn = local_rLow end if + ! Compute the fine mode (sub-micron) and PM2.5 bin-wise fractions ! NOTE: We pass our local arrays into the fraction subroutine instead of the intent(in) arrays - call Aero_Binwise_PM_Fractions(fPMfm, 0.50, local_rLow, local_rUp, nbins) ! 2*r < 1.0 um - call Aero_Binwise_PM_Fractions(fPM25, 1.25, local_rLow, local_rUp, nbins) ! 2*r < 2.5 um - call Aero_Binwise_PM_Fractions(fPM25aerodyn, 1.25, rLowaerodyn, rUpaerodyn, nbins) +! units for radius must be converted to microns + call Aero_Binwise_PM_Fractions(fPMfm, 0.50, local_rLow * 1e6, local_rUp * 1e6, nbins) ! 2*r < 1.0 um + call Aero_Binwise_PM_Fractions(fPM25, 1.25, local_rLow * 1e6, local_rUp * 1e6, nbins) ! 2*r < 2.5 um + call Aero_Binwise_PM_Fractions(fPM25aerodyn, 1.25, rLowaerodyn * 1e6, rUpaerodyn * 1e6, nbins) end if if (present(aerindx)) aerindx = 0.0 ! for now @@ -4570,7 +4572,7 @@ subroutine Aero_Compute_Diags (mie, km, klid, nbegin, nbins, rlow, rup, & + aerosol(i1:i2,j1:j2,km,n)*rhoa(i1:i2,j1:j2,km)*fPM25aerodyn(n) end do endif - + ! Calculate the aerosol column loading if( present(colmass) ) then colmass(i1:i2,j1:j2) = 0. @@ -4858,10 +4860,10 @@ subroutine Aero_Binwise_PM_Fractions(fPM, rPM, r_low, r_up, nbins) real, dimension(:), intent(inout) :: fPM ! bin-wise PM fraction (r < rPM) ! !INPUT PARAMETERS: - real, intent(in) :: rPM ! PM radius + real, intent(in) :: rPM ! PM radius in microns integer, intent(in) :: nbins ! number of bins - real, dimension(:), intent(in) :: r_low ! bin radii - low bounds - real, dimension(:), intent(in) :: r_up ! bin radii - upper bounds + real, dimension(:), intent(in) :: r_low ! bin radii - low bounds in microns + real, dimension(:), intent(in) :: r_up ! bin radii - upper bounds in microns ! !Local Variables @@ -4884,7 +4886,6 @@ subroutine Aero_Binwise_PM_Fractions(fPM, rPM, r_low, r_up, nbins) endif endif enddo - end subroutine Aero_Binwise_PM_Fractions !====================================================================================== From 9215575fe4cf27d69c2a92f508e7dbf539c13d47 Mon Sep 17 00:00:00 2001 From: acollow Date: Sat, 26 Sep 2026 14:19:48 -0400 Subject: [PATCH 04/17] add in pm25 with aerodynamic diametre at RH=35% and apply maring correction to bins 4 and 5 only --- .../CA2G_GridComp/CA2G_GridCompMod.F90 | 2 +- .../CA2G_GridComp/CA2G_StateSpecs.rc | 1 + .../DU2G_GridComp/DU2G_GridCompMod.F90 | 2 +- .../DU2G_GridComp/DU2G_StateSpecs.rc | 1 + .../GOCART2G_GridCompMod.F90 | 31 ++- ESMF/GOCART2G_GridComp/GOCART2G_StateSpecs.rc | 1 + .../NI2G_GridComp/NI2G_GridCompMod.F90 | 4 +- .../NI2G_GridComp/NI2G_StateSpecs.rc | 1 + .../SS2G_GridComp/SS2G_GridCompMod.F90 | 2 +- .../SS2G_GridComp/SS2G_StateSpecs.rc | 1 + .../SU2G_GridComp/SU2G_GridCompMod.F90 | 2 +- .../SU2G_GridComp/SU2G_StateSpecs.rc | 1 + Process_Library/GOCART2G_Process.F90 | 239 +++++++++++++++++- 13 files changed, 269 insertions(+), 19 deletions(-) diff --git a/ESMF/GOCART2G_GridComp/CA2G_GridComp/CA2G_GridCompMod.F90 b/ESMF/GOCART2G_GridComp/CA2G_GridComp/CA2G_GridCompMod.F90 index 17e7cd55..505132ad 100644 --- a/ESMF/GOCART2G_GridComp/CA2G_GridComp/CA2G_GridCompMod.F90 +++ b/ESMF/GOCART2G_GridComp/CA2G_GridComp/CA2G_GridCompMod.F90 @@ -1204,7 +1204,7 @@ subroutine Run2 (GC, import, export, clock, RC) wavelengths_profile=self%wavelengths_profile*1.0e-9, & wavelengths_vertint=self%wavelengths_vertint*1.0e-9, aerosol=int_arr, grav=MAPL_GRAV, & tmpu=t, rhoa=airdens, rh=rh2, u=u, v=v, delp=delp, ple=ple, tropp=tropp, & - sfcmass=SMASS, colmass=CMASS, mass=MASS,& + sfcmass=SMASS, sfcmass25aerodynRH35=SMASS25ARH35, colmass=CMASS, mass=MASS,& exttau=EXTTAU,stexttau=STEXTTAU, scatau=SCATAU, stscatau=STSCATAU,& fluxu=FLUXU, fluxv=FLUXV, & conc=CONC, extcoef=EXTCOEF, scacoef=SCACOEF, bckcoef=BCKCOEF, angstrom=ANGSTR,& diff --git a/ESMF/GOCART2G_GridComp/CA2G_GridComp/CA2G_StateSpecs.rc b/ESMF/GOCART2G_GridComp/CA2G_GridComp/CA2G_StateSpecs.rc index 36c5bc0d..18bba4b0 100644 --- a/ESMF/GOCART2G_GridComp/CA2G_GridComp/CA2G_StateSpecs.rc +++ b/ESMF/GOCART2G_GridComp/CA2G_GridComp/CA2G_StateSpecs.rc @@ -100,6 +100,7 @@ category: EXPORT *HYPHIL | kg m-2 s-1 | xy | N | | * Aerosol Hydrophobic to Hydrophilic *PSOA | kg m-2 s-1 | xy | N | | * Aerosol SOA Production *SMASS | kg m-3 | xy | N | | * Aerosol Surface Mass Concentration + *SMASS25ARH35 | kg m-3 | xy | N | | * Aerosol Surface Mass Concentration at RH=35% *CMASS | kg m-2 | xy | N | | * Aerosol Column Mass Density *EXTTAU | 1 | xy | N | size(self%wavelengths_vertint) | * Aerosol Optical Depth *STEXTTAU | 1 | xy | N | size(self%wavelengths_vertint) | * Stratospheric Aerosol Optical Thickness diff --git a/ESMF/GOCART2G_GridComp/DU2G_GridComp/DU2G_GridCompMod.F90 b/ESMF/GOCART2G_GridComp/DU2G_GridComp/DU2G_GridCompMod.F90 index 61db3700..478ec77c 100644 --- a/ESMF/GOCART2G_GridComp/DU2G_GridComp/DU2G_GridCompMod.F90 +++ b/ESMF/GOCART2G_GridComp/DU2G_GridComp/DU2G_GridCompMod.F90 @@ -1116,7 +1116,7 @@ subroutine Run2 (GC, import, export, clock, RC) self%wavelengths_vertint*1.0e-9, DU, MAPL_GRAV, t, airdens, & rh2, u, v, delp, ple,tropp, & DUSMASS, DUCMASS, DUMASS, DUEXTTAU, DUSTEXTTAU, DUSCATAU,DUSTSCATAU, & - DUSMASS25, DUSMASS25A, DUCMASS25, DUMASS25, DUMASSFM, DUEXTT25, DUSCAT25, & + DUSMASS25, DUSMASS25A, DUSMASS25ARH35, DUCMASS25, DUMASS25, DUMASSFM, DUEXTT25, DUSCAT25, & DUFLUXU, DUFLUXV, DUCONC, DUEXTCOEF, DUSCACOEF, & DUBCKCOEF,DUEXTTFM, DUSCATFM, DUANGSTR, DUAERIDX, NO3nFlag=.false., BinFracFlag=.true., shapefactor=self%shape_factor, __RC__ ) diff --git a/ESMF/GOCART2G_GridComp/DU2G_GridComp/DU2G_StateSpecs.rc b/ESMF/GOCART2G_GridComp/DU2G_GridComp/DU2G_StateSpecs.rc index 9a6013d1..c63ced10 100644 --- a/ESMF/GOCART2G_GridComp/DU2G_GridComp/DU2G_StateSpecs.rc +++ b/ESMF/GOCART2G_GridComp/DU2G_GridComp/DU2G_StateSpecs.rc @@ -80,6 +80,7 @@ category: EXPORT DUSTSCATAU | 1 | xy | N | size(self%wavelengths_vertint) | Dust Stratospheric Aerosol Optical Thickness Due to Scattering DUSMASS25 | kg m-3 | xy | N | | Dust Surface Mass Concentration of Particulate Matter < geometric 2.5 microns (PM 2.5) DUSMASS25A | kg m-3 | xy | N | | Dust Surface Mass Concentration of Particulate Matter < aerodynamic 2.5 microns (PM 2.5) + DUSMASS25ARH35 | kg m-3 | xy | N | | Dust Surface Mass Concentration of Particulate Matter < aerodynamic 2.5 microns (PM 2.5) at RH=35% DUCMASS25 | kg m-2 | xy | N | | Dust Column Mass Density of Particulate Matter < 2.5 microns (PM 2.5) DUEXTT25 | 1 | xy | N | size(self%wavelengths_vertint) | Dust Aerosol Optical Depth from Particulate Matter < 2.5 microns (PM2.5) DUSCAT25 | 1 | xy | N | size(self%wavelengths_vertint) | Dust Aerosol Optical Depth Due to Scattering from Particulate Matter < 2.5 microns (PM2.5) diff --git a/ESMF/GOCART2G_GridComp/GOCART2G_GridCompMod.F90 b/ESMF/GOCART2G_GridComp/GOCART2G_GridCompMod.F90 index b684f4cc..7aade45a 100644 --- a/ESMF/GOCART2G_GridComp/GOCART2G_GridCompMod.F90 +++ b/ESMF/GOCART2G_GridComp/GOCART2G_GridCompMod.F90 @@ -612,7 +612,7 @@ subroutine Run2 (GC, import, export, clock, RC) real, pointer, dimension(:,:,:,:) :: duscacoefrh20, duscacoefrh80 real, pointer, dimension(:,:,:,:) :: dubckcoef real, pointer, dimension(:,:) :: duangstr, dusmass, & - dusmass25, dusmass25a + dusmass25, dusmass25a, dusmass25arh35 real, pointer, dimension(:,:,:) :: ssexttau, ssstexttau, & ssscatau, ssstscatau, & ssextt25, ssscat25, & @@ -622,7 +622,7 @@ subroutine Run2 (GC, import, export, clock, RC) real, pointer, dimension(:,:,:,:) :: ssscacoefrh20, ssscacoefrh80 real, pointer, dimension(:,:,:,:) :: ssbckcoef real, pointer, dimension(:,:) :: ssangstr, sssmass, & - sssmass25, sssmass25a + sssmass25, sssmass25a, sssmass25arh35 real, pointer, dimension(:,:,:) :: niexttau, nistexttau, & niscatau, nistscatau, & niextt25, niscat25, & @@ -632,7 +632,7 @@ subroutine Run2 (GC, import, export, clock, RC) real, pointer, dimension(:,:,:,:) :: niscacoefrh20, niscacoefrh80 real, pointer, dimension(:,:,:,:) :: nibckcoef real, pointer, dimension(:,:) :: niangstr, nismass, & - nismass25 + nismass25, nismass25arh35 real, pointer, dimension(:,:) :: nh4smass real, pointer, dimension(:,:,:) :: suexttau, sustexttau, & suscatau, sustscatau @@ -640,25 +640,25 @@ subroutine Run2 (GC, import, export, clock, RC) real, pointer, dimension(:,:,:,:) :: suextcoefrh20, suextcoefrh80 real, pointer, dimension(:,:,:,:) :: suscacoefrh20, suscacoefrh80 real, pointer, dimension(:,:,:,:) :: subckcoef - real, pointer, dimension(:,:) :: suangstr, so4smass + real, pointer, dimension(:,:) :: suangstr, so4smass, so4smassrh35 real, pointer, dimension(:,:,:) :: bcexttau, bcstexttau, bcscatau, bcstscatau real, pointer, dimension(:,:,:,:) :: bcextcoef, bcscacoef real, pointer, dimension(:,:,:,:) :: bcextcoefrh20, bcextcoefrh80 real, pointer, dimension(:,:,:,:) :: bcscacoefrh20, bcscacoefrh80 real, pointer, dimension(:,:,:,:) :: bcbckcoef - real, pointer, dimension(:,:) :: bcangstr, bcsmass + real, pointer, dimension(:,:) :: bcangstr, bcsmass, bcsmass25arh35 real, pointer, dimension(:,:,:) :: ocexttau, ocstexttau, ocscatau, ocstscatau real, pointer, dimension(:,:,:,:) :: ocextcoef, ocscacoef real, pointer, dimension(:,:,:,:) :: ocextcoefrh20, ocextcoefrh80 real, pointer, dimension(:,:,:,:) :: ocscacoefrh20, ocscacoefrh80 real, pointer, dimension(:,:,:,:) :: ocbckcoef - real, pointer, dimension(:,:) :: ocangstr, ocsmass + real, pointer, dimension(:,:) :: ocangstr, ocsmass, ocsmass25arh35 real, pointer, dimension(:,:,:) :: brexttau, brstexttau, brscatau, brstscatau real, pointer, dimension(:,:,:,:) :: brextcoef, brscacoef real, pointer, dimension(:,:,:,:) :: brextcoefrh20, brextcoefrh80 real, pointer, dimension(:,:,:,:) :: brscacoefrh20, brscacoefrh80 real, pointer, dimension(:,:,:,:) :: brbckcoef - real, pointer, dimension(:,:) :: brangstr, brsmass + real, pointer, dimension(:,:) :: brangstr, brsmass, brsmass25arh35 real, pointer, dimension(:,:,:) :: pso4 real, allocatable :: tau1(:,:), tau2(:,:) real, allocatable :: backscat_mol(:,:,:) @@ -742,6 +742,7 @@ subroutine Run2 (GC, import, export, clock, RC) if(associated(pm)) pm(:,:) = 0. if(associated(pm25)) pm25(:,:) = 0. if(associated(pm25a)) pm25a(:,:) = 0. + if(associated(pm25arh35)) pm25arh35(:,:) = 0. if(associated(pm_rh35)) pm_rh35(:,:) = 0. if(associated(pm25_rh35)) pm25_rh35(:,:) = 0. if(associated(pm_rh50)) pm_rh50(:,:) = 0. @@ -836,9 +837,11 @@ subroutine Run2 (GC, import, export, clock, RC) call MAPL_GetPointer (gex(self%DU%instances(n)%id), dusmass, 'DUSMASS', __RC__) call MAPL_GetPointer (gex(self%DU%instances(n)%id), dusmass25, 'DUSMASS25', __RC__) call MAPL_GetPointer (gex(self%DU%instances(n)%id), dusmass25a, 'DUSMASS25A', __RC__) + call MAPL_GetPointer (gex(self%DU%instances(n)%id), dusmass25arh35, 'DUSMASS25ARH35', __RC__) if(associated(pm) .and. associated(dusmass)) pm = pm + dusmass if(associated(pm25) .and. associated(dusmass25)) pm25 = pm25 + dusmass25 if(associated(pm25a) .and. associated(dusmass25a)) pm25a = pm25a + dusmass25a + if(associated(pm25arh35) .and. associated(dusmass25arh35)) pm25arh35 = pm25arh35 + dusmass25arh35 if(associated(pm_rh35) .and. associated(dusmass)) pm_rh35 = pm_rh35 + dusmass if(associated(pm25_rh35) .and. associated(dusmass25)) pm25_rh35 = pm25_rh35 + dusmass25 if(associated(pm_rh50) .and. associated(dusmass)) pm_rh50 = pm_rh50 + dusmass @@ -896,9 +899,11 @@ subroutine Run2 (GC, import, export, clock, RC) call MAPL_GetPointer (gex(self%SS%instances(n)%id), sssmass, 'SSSMASS', __RC__) call MAPL_GetPointer (gex(self%SS%instances(n)%id), sssmass25, 'SSSMASS25', __RC__) call MAPL_GetPointer (gex(self%SS%instances(n)%id), sssmass25a, 'SSSMASS25A', __RC__) + call MAPL_GetPointer (gex(self%SS%instances(n)%id), sssmass25arh35, 'SSSMASS25ARH35', __RC__) if(associated(pm) .and. associated(sssmass)) pm = pm + sssmass if(associated(pm25) .and. associated(sssmass25)) pm25 = pm25 + sssmass25 if(associated(pm25a) .and. associated(sssmass25a)) pm25a = pm25a + sssmass25a + if(associated(pm25arh35) .and. associated(sssmass25arh35)) pm25arh35 = pm25arh35 + sssmass25arh35 if(associated(pm_rh35) .and. associated(sssmass)) pm_rh35 = pm_rh35 + 1.86*sssmass if(associated(pm25_rh35) .and. associated(sssmass25)) pm25_rh35 = pm25_rh35 + 1.86*sssmass25 if(associated(pm_rh50) .and. associated(sssmass)) pm_rh50 = pm_rh50 + 2.42*sssmass @@ -956,9 +961,11 @@ subroutine Run2 (GC, import, export, clock, RC) call MAPL_GetPointer (gex(self%NI%instances(n)%id), nismass, 'NISMASS', __RC__) call MAPL_GetPointer (gex(self%NI%instances(n)%id), nismass25, 'NISMASS25', __RC__) call MAPL_GetPointer (gex(self%NI%instances(n)%id), nh4smass, 'NH4SMASS', __RC__) + call MAPL_GetPointer (gex(self%NI%instances(n)%id), nismass25arh35, 'NISMASS25ARH35', __RC__) if(associated(pm) .and. associated(nismass) .and. associated(nh4smass)) pm = pm + nismass + nh4smass if(associated(pm25) .and. associated(nismass25) .and. associated(nh4smass)) pm25 = pm25 + nismass25 + nh4smass if(associated(pm25a) .and. associated(nismass25) .and. associated(nh4smass)) pm25a = pm25a + nismass25 + nh4smass + if(associated(pm25arh35) .and. associated(nismass25arh35) .and. associated(nh4smass)) pm25arh35 = pm25arh35 + nismass25arh35 + nh4smass if(associated(pm_rh35) .and. associated(nismass) .and. associated(nh4smass)) pm_rh35 = pm_rh35 + 1.33*(nismass + nh4smass) if(associated(pm25_rh35) .and. associated(nismass25) .and. associated(nh4smass)) pm25_rh35 = pm25_rh35 + 1.33*(nismass25 + nh4smass) if(associated(pm_rh50) .and. associated(nismass) .and. associated(nh4smass)) pm_rh50 = pm_rh50 + 1.51*(nismass + nh4smass) @@ -1018,10 +1025,12 @@ subroutine Run2 (GC, import, export, clock, RC) if(associated(pso4tot) .and. associated(pso4)) pso4tot = pso4tot + pso4 call MAPL_GetPointer (gex(self%SU%instances(n)%id), so4smass, 'SO4SMASS', __RC__) + call MAPL_GetPointer (gex(self%SU%instances(n)%id), so4smassrh35, 'SO4SMASSRH35', __RC__) if(associated(so4smass)) then if(associated(pm) ) pm = pm + nifactor*so4smass if(associated(pm25) ) pm25 = pm25 + nifactor*so4smass if(associated(pm25a) ) pm25a = pm25a + nifactor*so4smass + if(associated(pm25arh35)) pm25arh35 = pm25arh35 + nifactor*so4smassrh35 if(associated(pm_rh35) ) pm_rh35 = pm_rh35 + 1.33*nifactor*so4smass if(associated(pm25_rh35)) pm25_rh35 = pm25_rh35 + 1.33*nifactor*so4smass if(associated(pm_rh50) ) pm_rh50 = pm_rh50 + 1.51*nifactor*so4smass @@ -1077,9 +1086,11 @@ subroutine Run2 (GC, import, export, clock, RC) end do call MAPL_GetPointer (gex(self%CA%instances(n)%id), bcsmass, 'CA.bcSMASS', __RC__) + call MAPL_GetPointer (gex(self%CA%instances(n)%id), bcsmass25arh35, 'CA.bcSMASS25ARH35', __RC__) if(associated(pm) .and. associated(bcsmass)) pm = pm + bcsmass if(associated(pm25) .and. associated(bcsmass)) pm25 = pm25 + bcsmass if(associated(pm25a) .and. associated(bcsmass)) pm25a = pm25a + bcsmass + if(associated(pm25arh35) .and. associated(bcsmass25arh35)) pm25arh35 = pm25arh35 + bcsmass25arh35 if(associated(pm_rh35) .and. associated(bcsmass)) pm_rh35 = pm_rh35 + bcsmass if(associated(pm25_rh35) .and. associated(bcsmass)) pm25_rh35 = pm25_rh35 + bcsmass if(associated(pm_rh50) .and. associated(bcsmass)) pm_rh50 = pm_rh50 + bcsmass @@ -1128,9 +1139,11 @@ subroutine Run2 (GC, import, export, clock, RC) end do call MAPL_GetPointer (gex(self%CA%instances(n)%id), ocsmass, 'CA.ocSMASS', __RC__) + call MAPL_GetPointer (gex(self%CA%instances(n)%id), ocsmass25arh35, 'CA.ocSMASS25ARH35', __RC__) if(associated(pm) .and. associated(ocsmass)) pm = pm + ocsmass if(associated(pm25) .and. associated(ocsmass)) pm25 = pm25 + ocsmass - if(associated(pm25a) .and. associated(ocsmass)) pm25a = pm25a + ocsmass + if(associated(pm25a) .and. associated(ocsmass)) pm25a = pm25a + ocsmass + if(associated(pm25arh35) .and. associated(ocsmass25arh35)) pm25arh35 = pm25arh35 + ocsmass25arh35 if(associated(pm_rh35) .and. associated(ocsmass)) pm_rh35 = pm_rh35 + 1.16*ocsmass ! needs to be revisited: OCpho + 1.16 OCphi if(associated(pm25_rh35) .and. associated(ocsmass)) pm25_rh35 = pm25_rh35 + 1.16*ocsmass ! if(associated(pm_rh50) .and. associated(ocsmass)) pm_rh50 = pm_rh50 + 1.24*ocsmass ! needs to be revisited: OCpho + 1.24 OCphi @@ -1179,9 +1192,11 @@ subroutine Run2 (GC, import, export, clock, RC) end do call MAPL_GetPointer (gex(self%CA%instances(n)%id), brsmass, 'CA.brSMASS', __RC__) + call MAPL_GetPointer (gex(self%CA%instances(n)%id), brsmass25arh35, 'CA.brSMASS25ARH35', __RC__) if(associated(pm) .and. associated(brsmass)) pm = pm + brsmass if(associated(pm25) .and. associated(brsmass)) pm25 = pm25 + brsmass if(associated(pm25a) .and. associated(brsmass)) pm25a = pm25a + brsmass + if(associated(pm25arh35) .and. associated(brsmass25arh35)) pm25arh35 = pm25arh35 + brsmass25arh35 if(associated(pm_rh35) .and. associated(brsmass)) pm_rh35 = pm_rh35 + 1.16*brsmass ! needs to be revisited: OCpho + 1.16 OCphi if(associated(pm25_rh35) .and. associated(brsmass)) pm25_rh35 = pm25_rh35 + 1.16*brsmass ! if(associated(pm_rh50) .and. associated(brsmass)) pm_rh50 = pm_rh50 + 1.24*brsmass ! needs to be revisited: OCpho + 1.24 OCphi diff --git a/ESMF/GOCART2G_GridComp/GOCART2G_StateSpecs.rc b/ESMF/GOCART2G_GridComp/GOCART2G_StateSpecs.rc index 0907edc6..5705ea3b 100644 --- a/ESMF/GOCART2G_GridComp/GOCART2G_StateSpecs.rc +++ b/ESMF/GOCART2G_GridComp/GOCART2G_StateSpecs.rc @@ -44,6 +44,7 @@ category: EXPORT PM_RH50 | kg m-3 | xy | N | | Total Reconstructed Particulate Matter at 50% Relative Humidity PM25 | kg m-3 | xy | N | | Total Reconstructed Dry Particulate Matter < geometric 2.5 microns (PM2.5) PM25A | kg m-3 | xy | N | | Total Reconstructed Dry Particulate Matter < aerodynamic 2.5 microns (PM2.5) + PM25ARH35 | kg m-3 | xy | N | | Total Reconstructed Dry Particulate Matter < aerodynamic 2.5 microns (PM2.5) PM25_RH35 | kg m-3 | xy | N | | Total Reconstructed Particulate Matter < 2.5 microns (PM2.5) at 35% Relative Humidity PM25_RH50 | kg m-3 | xy | N | | Total Reconstructed Particulate Matter < 2.5 microns (PM2.5) at 50% Relative Humidity diff --git a/ESMF/GOCART2G_GridComp/NI2G_GridComp/NI2G_GridCompMod.F90 b/ESMF/GOCART2G_GridComp/NI2G_GridComp/NI2G_GridCompMod.F90 index 8e3e2e29..dcf376fd 100644 --- a/ESMF/GOCART2G_GridComp/NI2G_GridComp/NI2G_GridCompMod.F90 +++ b/ESMF/GOCART2G_GridComp/NI2G_GridComp/NI2G_GridCompMod.F90 @@ -1067,9 +1067,9 @@ subroutine Run2 (GC, import, export, clock, RC) wavelengths_vertint=self%wavelengths_vertint*1.0e-9, & aerosol=aerosol, grav=MAPL_GRAV, tmpu=t, rhoa=airdens, rh=rh2, u=u, v=v, & delp=delp, ple=ple, tropp=tropp,& - sfcmass=NISMASS25, colmass=NICMASS25, mass=NIMASS25, conc=NICONC25, & + sfcmass=NISMASS25, sfcmass25aerodynRH35=NISMASS25ARH35, colmass=NICMASS25, mass=NIMASS25, conc=NICONC25, & exttau25=NIEXTT25, scatau25=NISCAT25, exttaufm=NIEXTTFM, scataufm=NISCATFM, & - NO3nFlag=.true., __RC__) + NO3nFlag=.true., __RC__) ! Save local copy of HNO3 for first pass through run method regardless aerosol(:,:,:,1) = NO3an1 diff --git a/ESMF/GOCART2G_GridComp/NI2G_GridComp/NI2G_StateSpecs.rc b/ESMF/GOCART2G_GridComp/NI2G_GridComp/NI2G_StateSpecs.rc index 5370632f..73927165 100644 --- a/ESMF/GOCART2G_GridComp/NI2G_GridComp/NI2G_StateSpecs.rc +++ b/ESMF/GOCART2G_GridComp/NI2G_GridComp/NI2G_StateSpecs.rc @@ -93,6 +93,7 @@ category: EXPORT NH4SMASS | kg m-3 | xy | N | | Ammonium Surface Mass Concentration NISMASS | kg m-3 | xy | N | | Nitrate Surface Mass Concentration NISMASS25 | kg m-3 | xy | N | | Nitrate Surface Mass Concentration of Particulate Matter < 2.5 microns (PM2.5) + NISMASS25ARH35 | kg m-3 | xy | N | | Nitrate Surface Mass Concentration of Particulate Matter < aerodynamic 2.5 microns (PM2.5) at RH=35% HNO3CMASS | kg m-3 | xy | N | | Nitric Acid Column Mass Density NH3CMASS | kg m-3 | xy | N | | Ammonia Column Mass Density NH4CMASS | kg m-3 | xy | N | | Ammonium Column Mass Density diff --git a/ESMF/GOCART2G_GridComp/SS2G_GridComp/SS2G_GridCompMod.F90 b/ESMF/GOCART2G_GridComp/SS2G_GridComp/SS2G_GridCompMod.F90 index 4d019dcd..0a0df90b 100644 --- a/ESMF/GOCART2G_GridComp/SS2G_GridComp/SS2G_GridCompMod.F90 +++ b/ESMF/GOCART2G_GridComp/SS2G_GridComp/SS2G_GridCompMod.F90 @@ -942,7 +942,7 @@ subroutine Run2 (GC, import, export, clock, RC) self%rup, self%wavelengths_profile*1.0e-9, & self%wavelengths_vertint*1.0e-9, SS, MAPL_GRAV, t, airdens,rh2, u, v, & delp, ple, tropp,SSSMASS, SSCMASS, SSMASS, SSEXTTAU,SSSTEXTTAU, SSSCATAU,SSSTSCATAU, & - SSSMASS25, SSSMASS25A, SSCMASS25, SSMASS25, SSMASSFM, SSEXTT25, SSSCAT25, & + SSSMASS25, SSSMASS25A, SSSMASS25ARH35, SSCMASS25, SSMASS25, SSMASSFM, SSEXTT25, SSSCAT25, & SSFLUXU, SSFLUXV, SSCONC, SSEXTCOEF, SSSCACOEF, SSBCKCOEF, & SSEXTTFM, SSSCATFM ,SSANGSTR, SSAERIDX, NO3nFlag=.false., BinFracFlag=.true., shapefactor=self%shape_factor , __RC__) diff --git a/ESMF/GOCART2G_GridComp/SS2G_GridComp/SS2G_StateSpecs.rc b/ESMF/GOCART2G_GridComp/SS2G_GridComp/SS2G_StateSpecs.rc index 3b9fee37..b4b7deae 100644 --- a/ESMF/GOCART2G_GridComp/SS2G_GridComp/SS2G_StateSpecs.rc +++ b/ESMF/GOCART2G_GridComp/SS2G_GridComp/SS2G_StateSpecs.rc @@ -67,6 +67,7 @@ category: EXPORT SSSTSCATAU | 1 | xy | N | size(self%wavelengths_vertint) | Sea Salt Stratospheric Aerosol Optical Thickness Due to Scattering SSSMASS25 | kg m-3 | xy | N | | Sea Salt Surface Mass Concentration of Particulate Matter < geometric 2.5 microns (PM2.5) SSSMASS25A | kg m-3 | xy | N | | Sea Salt Surface Mass Concentration of Particulate Matter < aerodynamic 2.5 microns (PM2.5) + SSSMASS25ARH35 | kg m-3 | xy | N | | Sea Salt Surface Mass Concentration of Particulate Matter < aerodynamic 2.5 microns (PM2.5) at RH=35% SSCMASS25 | kg m-2 | xy | N | | Sea Salt Column Mass Density of Particulate Matter < 2.5 microns (PM2.5) SSEXTT25 | 1 | xy | N | size(self%wavelengths_vertint) | Sea Salt Aerosol Optical Depth from Particulate Matter < 2.5 microns (PM2.5) SSSCAT25 | 1 | xy | N | size(self%wavelengths_vertint) | Sea Salt Aerosol Optical Depth Due to Scattering from Particulate Matter < 2.5 microns (PM2.5) diff --git a/ESMF/GOCART2G_GridComp/SU2G_GridComp/SU2G_GridCompMod.F90 b/ESMF/GOCART2G_GridComp/SU2G_GridComp/SU2G_GridCompMod.F90 index da1c50d3..e2845d8c 100644 --- a/ESMF/GOCART2G_GridComp/SU2G_GridComp/SU2G_GridCompMod.F90 +++ b/ESMF/GOCART2G_GridComp/SU2G_GridComp/SU2G_GridCompMod.F90 @@ -1348,7 +1348,7 @@ subroutine Run2 (GC, import, export, clock, RC) SO2SMASS, SO2CMASS, & SO4SMASS, SO4CMASS, & SUEXTTAU, SUSTEXTTAU,SUSCATAU,SUSTSCATAU, SO4MASS, SUCONC, SUEXTCOEF, & - SUSCACOEF, SUBCKCOEF,SUANGSTR, SUFLUXU, SUFLUXV, SO4SAREA, SO4SNUM, SO4REFF, __RC__) + SUSCACOEF, SUBCKCOEF,SUANGSTR, SUFLUXU, SUFLUXV, SO4SAREA, SO4SNUM, SO4REFF, SO4SMASSRH35, __RC__) if(associated(SO4SAREA)) then nullify(int_ptr) diff --git a/ESMF/GOCART2G_GridComp/SU2G_GridComp/SU2G_StateSpecs.rc b/ESMF/GOCART2G_GridComp/SU2G_GridComp/SU2G_StateSpecs.rc index ba311467..467732e4 100644 --- a/ESMF/GOCART2G_GridComp/SU2G_GridComp/SU2G_StateSpecs.rc +++ b/ESMF/GOCART2G_GridComp/SU2G_GridComp/SU2G_StateSpecs.rc @@ -81,6 +81,7 @@ category: EXPORT SO2SMASS | kg m-3 | xy | N | | SO2 Surface Mass Concentration SO2CMASS | kg m-2 | xy | N | | SO2 Column Mass Density SO4SMASS | kg m-3 | xy | N | | SO4 Surface Mass Concentration + SO4SMASSRH35 | kg m-3 | xy | N | | SO4 Surface Mass Concentration at RH=35% SO4CMASS | kg m-2 | xy | N | | SO4 Column Mass Density DMSSMASS | kg m-3 | xy | N | | DMS Surface Mass Concentration DMSCMASS | kg m-2 | xy | N | | DMS Column Mass Density diff --git a/Process_Library/GOCART2G_Process.F90 b/Process_Library/GOCART2G_Process.F90 index a6a8ab06..080d976e 100644 --- a/Process_Library/GOCART2G_Process.F90 +++ b/Process_Library/GOCART2G_Process.F90 @@ -1559,7 +1559,7 @@ subroutine Chem_SettlingSimple ( km, klid, mie, bin, cdt, grav, & ! Find radius and density of the wet particle call mie%Query(550e-9,bin, & qa*delp/grav, & - rh, reff=radius, rhop=rhop, __RC__) + rh, reff=radius, rLow=rLow, rhop=rhop, __RC__) ! Settling velocity of the wet particle do k = klid, km do j = j1, j2 @@ -1570,8 +1570,9 @@ subroutine Chem_SettlingSimple ( km, klid, mie, bin, cdt, grav, & end do end do +! Maring 2003 (https://agupubs.onlinelibrary.wiley.com/doi/full/10.1029/2002JD002536) indicates that a correction is needed for dust particles with a diameter of 7.3 microns if(present(correctionMaring)) then - if (correctionMaring) then + if (correctionMaring) .and. rUp(i,j,k)*1e6 >= 3.65 then vsettle = max(1.0e-9, vsettle - v_upwardMaring) endif endif @@ -4372,7 +4373,7 @@ subroutine Aero_Compute_Diags (mie, km, klid, nbegin, nbins, rlow, rup, & wavelengths_profile, wavelengths_vertint, aerosol, & grav, tmpu, rhoa, rh, u, v, delp, ple,tropp, & sfcmass, colmass, mass, exttau, stexttau, scatau, stscatau,& - sfcmass25, sfcmass25aerodyn, colmass25, mass25, mass1, exttau25, scatau25, & + sfcmass25, sfcmass25aerodyn, sfcmass25aerodynRH35, colmass25, mass25, mass1, exttau25, scatau25, & fluxu, fluxv, conc, extcoef, scacoef, bckcoef,& exttaufm, scataufm, angstrom, aerindx, NO3nFlag, & sarea, reff, BinFracFlag, shapefactor, rc ) @@ -4416,6 +4417,7 @@ subroutine Aero_Compute_Diags (mie, km, klid, nbegin, nbins, rlow, rup, & real, optional, dimension(:,:,:), intent(inout) :: stscatau ! stratospheric sct. AOT at 550 nm real, optional, dimension(:,:), intent(inout) :: sfcmass25 ! sfc mass concentration kg/m3 (pm2.5) real, optional, dimension(:,:), intent(inout) :: sfcmass25aerodyn ! sfc mass concentration kg/m3 computed with an aerodynamic diameter (pm2.5) + real, optional, dimension(:,:), intent(inout) :: sfcmass25aerodynRH35 ! sfc mass concentration kg/m3 computed with aerodynamic diameter at ambient RH, water removed for RH>35% (pm2.5) real, optional, dimension(:,:), intent(inout) :: colmass25 ! col mass density kg/m2 (pm2.5) real, optional, dimension(:,:,:), intent(inout) :: mass25 ! 3d mass mixing ratio kg/kg (pm2.5) real, optional, dimension(:,:,:), intent(inout) :: mass1 ! 3d mass mixing ratio kg/kg (pm1) @@ -4462,6 +4464,17 @@ subroutine Aero_Compute_Diags (mie, km, klid, nbegin, nbins, rlow, rup, & logical :: BinFracFlag_ !local version of the input real, dimension(:), allocatable :: local_rUp, local_rLow, local_rhop, rUpaerodyn, rLowaerodyn real, dimension(1) :: RH0, temp_rUp, temp_rLow, temp_rhop + real, parameter :: RH_THRESHOLD = 0.35 ! 35% RH threshold + real, parameter :: RHOW = 997.0 ! water density kg m-3 + real, dimension(:,:,:), allocatable :: rEff_wet, rEff_dry, rEff_35rh + real, dimension(:,:), allocatable :: growthfactor_ambient, growthfactor_35rh + real, dimension(:,:), allocatable :: waterfactor_excess + real, dimension(:,:,:), allocatable :: rh_35 + real, dimension(:,:,:), allocatable :: rLow_wet, rUp_wet + real, dimension(:), allocatable :: fPM25aerodyn_wet_1d + real, dimension(:), allocatable :: rLow_wet_aerodyn, rUp_wet_aerodyn + real :: rhod_local + integer :: ij, npts !EOP !------------------------------------------------------------------------- @@ -4572,6 +4585,147 @@ subroutine Aero_Compute_Diags (mie, km, klid, nbegin, nbins, rlow, rup, & + aerosol(i1:i2,j1:j2,km,n)*rhoa(i1:i2,j1:j2,km)*fPM25aerodyn(n) end do endif + +! Calculate PM2.5 aerodynamic diameter at 35% RH (water removed for RH>35%) + if( present(sfcmass25aerodynRH35) ) then + + ! Allocate working arrays - need 3D arrays for mie%Query + allocate(rEff_wet(i1:i2,j1:j2,1), __STAT__) + allocate(rEff_dry(i1:i2,j1:j2,1), __STAT__) + allocate(rEff_35rh(i1:i2,j1:j2,1), __STAT__) + allocate(growthfactor_ambient(i1:i2,j1:j2), __STAT__) + allocate(growthfactor_35rh(i1:i2,j1:j2), __STAT__) + allocate(waterfactor_excess(i1:i2,j1:j2), __STAT__) + allocate(rh_35(i1:i2,j1:j2,1), __STAT__) + allocate(rLow_wet(i1:i2,j1:j2,1), __STAT__) + allocate(rUp_wet(i1:i2,j1:j2,1), __STAT__) + + sfcmass25aerodynRH35(i1:i2,j1:j2) = 0. + + ! Number of spatial points + npts = (i2-i1+1) * (j2-j1+1) + + do n = nbegin, nbins + ! Get particle density + rhod_local = local_rhop(n) ! from earlier calculation + + ! Get wet effective radius at ambient RH + call mie%Query(550e-9, n, & + aerosol(i1:i2,j1:j2,km:km,n)*delp(i1:i2,j1:j2,km:km)/grav, & + rh(i1:i2,j1:j2,km:km), rEff=rEff_wet, __RC__) + + ! Get dry effective radius at 0% RH + rh_35(:,:,1) = 0.0 + call mie%Query(550e-9, n, & + aerosol(i1:i2,j1:j2,km:km,n)*delp(i1:i2,j1:j2,km:km)/grav, & + rh_35, rEff=rEff_dry, __RC__) + + ! Get effective radius at 35% RH + rh_35(:,:,1) = RH_THRESHOLD + call mie%Query(550e-9, n, & + aerosol(i1:i2,j1:j2,km:km,n)*delp(i1:i2,j1:j2,km:km)/grav, & + rh_35, rEff=rEff_35rh, __RC__) + + ! Calculate hygroscopic growth factor at ambient RH (mass_wet/mass_dry) + ! Extract from 3D to 2D arrays + growthfactor_ambient(i1:i2,j1:j2) = 1.0 + & + (((rEff_wet(i1:i2,j1:j2,1) / rEff_dry(i1:i2,j1:j2,1))**3 - 1.0) * & + (RHOW / rhod_local)) + + ! Calculate hygroscopic growth factor at 35% RH (mass_at_35rh/mass_dry) + growthfactor_35rh(i1:i2,j1:j2) = 1.0 + & + (((rEff_35rh(i1:i2,j1:j2,1) / rEff_dry(i1:i2,j1:j2,1))**3 - 1.0) * & + (RHOW / rhod_local)) + + ! Calculate the fraction of EXCESS water (water above 35% RH) + ! This is: (mass_ambient - mass_35rh) / mass_ambient + where (rh(i1:i2,j1:j2,km) > RH_THRESHOLD) + waterfactor_excess(i1:i2,j1:j2) = & + (growthfactor_ambient(i1:i2,j1:j2) - growthfactor_35rh(i1:i2,j1:j2)) / & + growthfactor_ambient(i1:i2,j1:j2) + elsewhere + ! If RH <= 35%, no water removal + waterfactor_excess(i1:i2,j1:j2) = 0.0 + end where + + ! Calculate fPM25 for aerodynamic diameter at ambient humidity + if( BinFracFlag_ ) then + ! Get wet bin boundaries at ambient RH + call mie%Query(550e-9, n, & + aerosol(i1:i2,j1:j2,km:km,n)*delp(i1:i2,j1:j2,km:km)/grav, & + rh(i1:i2,j1:j2,km:km), rUp=rUp_wet, rLow=rLow_wet, __RC__) + + ! Allocate arrays for aerodynamic radii (flattened spatial dimensions) + allocate(rLow_wet_aerodyn(npts), __STAT__) + allocate(rUp_wet_aerodyn(npts), __STAT__) + allocate(fPM25aerodyn_wet_1d(npts), __STAT__) + + ! Calculate wet aerodynamic radii + ! Convert from geometric to aerodynamic using density and shape factor + if (present(shapefactor)) then + ! rLow_wet and rUp_wet are in meters, convert to microns and then to aerodynamic + ! Aerodynamic radius = geometric radius * sqrt(rhop / (shapefactor * 1000)) + ! where rhop is in kg/m3 and we divide by 1000 to get g/cm3 + ij = 0 + do j = j1, j2 + do i = i1, i2 + ij = ij + 1 + rLow_wet_aerodyn(ij) = rLow_wet(i,j,1) * 1.0e6 * & + SQRT(rhod_local * 0.001 / shapefactor) + rUp_wet_aerodyn(ij) = rUp_wet(i,j,1) * 1.0e6 * & + SQRT(rhod_local * 0.001 / shapefactor) + end do + end do + else + ! Fallback if shapefactor isn't passed - use geometric diameter + ij = 0 + do j = j1, j2 + do i = i1, i2 + ij = ij + 1 + rLow_wet_aerodyn(ij) = rLow_wet(i,j,1) * 1.0e6 + rUp_wet_aerodyn(ij) = rUp_wet(i,j,1) * 1.0e6 + end do + end do + end if + + ! Call Aero_Binwise_PM_Fractions to calculate PM2.5 fraction + ! rPM = 1.25 microns (radius) for 2.5 micron diameter + call Aero_Binwise_PM_Fractions(fPM25aerodyn_wet_1d, 1.25, & + rLow_wet_aerodyn, rUp_wet_aerodyn, npts) + + ! Reshape back to 2D and add PM2.5 mass + ij = 0 + do j = j1, j2 + do i = i1, i2 + ij = ij + 1 + sfcmass25aerodynRH35(i,j) = & + sfcmass25aerodynRH35(i,j) + & + aerosol(i,j,km,n) * rhoa(i,j,km) * & + fPM25aerodyn_wet_1d(ij) * growthfactor_ambient(i,j) * & + (1.0 - waterfactor_excess(i,j)) + end do + end do + + deallocate(rLow_wet_aerodyn, rUp_wet_aerodyn, fPM25aerodyn_wet_1d) + + else + ! If BinFracFlag is false, fPM25aerodyn_wet = 1.0 + sfcmass25aerodynRH35(i1:i2,j1:j2) = & + sfcmass25aerodynRH35(i1:i2,j1:j2) + & + aerosol(i1:i2,j1:j2,km,n) * rhoa(i1:i2,j1:j2,km) * & + 1.0 * growthfactor_ambient(i1:i2,j1:j2) * & + (1.0 - waterfactor_excess(i1:i2,j1:j2)) + end if + + end do + + ! Deallocate working arrays + deallocate(rEff_wet, rEff_dry, rEff_35rh) + deallocate(growthfactor_ambient, growthfactor_35rh) + deallocate(waterfactor_excess, rh_35) + deallocate(rLow_wet, rUp_wet) + + endif ! Calculate the aerosol column loading if( present(colmass) ) then @@ -8014,7 +8168,7 @@ subroutine SU_Compute_Diags ( km, klid, rhop, grav, pi, nSO4, mie, & so2sfcmass, so2colmass, & so4sfcmass, so4colmass, & exttau, stexttau,scatau, stscatau,so4mass, so4conc, extcoef, & - scacoef, bckcoef, angstrom, fluxu, fluxv, sarea, snum, reff, rc ) + scacoef, bckcoef, angstrom, fluxu, fluxv, sarea, snum, reff, so4sfcmass25RH35,rc ) ! !USES: implicit NONE @@ -8066,6 +8220,7 @@ subroutine SU_Compute_Diags ( km, klid, rhop, grav, pi, nSO4, mie, & real, optional, dimension(:,:,:), intent(inout) :: sarea ! Sulfate surface area density [m2 m-3] real, optional, dimension(:,:,:), intent(inout) :: snum ! Sulfate number density [# m-2] real, optional, dimension(:,:,:), intent(inout) :: reff ! Sulfate effective radius [m] + real, optional, dimension(:,:), intent(inout) :: so4sfcmass25RH35 ! sfc mass concentration kg/m3 (pm2.5 at 35% RH) integer, optional, intent(out) :: rc ! Error return code: ! 0 - all is well ! 1 - @@ -8085,6 +8240,12 @@ subroutine SU_Compute_Diags ( km, klid, rhop, grav, pi, nSO4, mie, & integer :: ilam470, ilam870 logical :: do_angstrom real :: rh_, gf, rwet, svol + real, parameter :: RH_THRESHOLD = 0.35 ! 35% RH threshold + real, parameter :: RHOW = 997.0 ! water density kg m-3 + real, dimension(:,:,:), allocatable :: rEff_wet_sfc, rEff_dry_sfc, rEff_35rh_sfc + real, dimension(:,:), allocatable :: growthfactor_ambient_sfc, growthfactor_35rh_sfc + real, dimension(:,:), allocatable :: waterfactor_excess_sfc + real, dimension(:,:,:), allocatable :: rh_35_sfc !EOP @@ -8334,6 +8495,74 @@ subroutine SU_Compute_Diags ( km, klid, rhop, grav, pi, nSO4, mie, & reff=reff, __RC__) endif +! Calculate PM2.5 surface mass at 35% RH (sulfate with excess water removed for RH>35%) +! Note: Sulfate particles do not swell larger than 2.5 microns, so all sulfate +! is PM2.5 and we don't need aerodynamic diameter or bin fraction calculations + if( present(so4sfcmass25RH35) ) then + + ! Allocate working arrays - need 3D arrays for mie%Query + allocate(rEff_wet_sfc(i1:i2,j1:j2,1), __STAT__) + allocate(rEff_dry_sfc(i1:i2,j1:j2,1), __STAT__) + allocate(rEff_35rh_sfc(i1:i2,j1:j2,1), __STAT__) + allocate(growthfactor_ambient_sfc(i1:i2,j1:j2), __STAT__) + allocate(growthfactor_35rh_sfc(i1:i2,j1:j2), __STAT__) + allocate(waterfactor_excess_sfc(i1:i2,j1:j2), __STAT__) + allocate(rh_35_sfc(i1:i2,j1:j2,1), __STAT__) + + ! Get wet effective radius at ambient RH (surface level only) + call mie%Query(550e-9, 1, & + SO4(i1:i2,j1:j2,km:km)*delp(i1:i2,j1:j2,km:km)/grav, & + rh(i1:i2,j1:j2,km:km), & + rEff=rEff_wet_sfc, __RC__) + + ! Get dry effective radius at 0% RH + rh_35_sfc(:,:,1) = 0.0 + call mie%Query(550e-9, 1, & + SO4(i1:i2,j1:j2,km:km)*delp(i1:i2,j1:j2,km:km)/grav, & + rh_35_sfc, & + rEff=rEff_dry_sfc, __RC__) + + ! Get effective radius at 35% RH + rh_35_sfc(:,:,1) = RH_THRESHOLD + call mie%Query(550e-9, 1, & + SO4(i1:i2,j1:j2,km:km)*delp(i1:i2,j1:j2,km:km)/grav, & + rh_35_sfc, & + rEff=rEff_35rh_sfc, __RC__) + + ! Calculate hygroscopic growth factor at ambient RH (mass_wet/mass_dry) + ! Extract from 3D to 2D arrays + growthfactor_ambient_sfc(i1:i2,j1:j2) = 1.0 + & + (((rEff_wet_sfc(i1:i2,j1:j2,1) / rEff_dry_sfc(i1:i2,j1:j2,1))**3 - 1.0) * & + (RHOW / rhop)) + + ! Calculate hygroscopic growth factor at 35% RH (mass_at_35rh/mass_dry) + growthfactor_35rh_sfc(i1:i2,j1:j2) = 1.0 + & + (((rEff_35rh_sfc(i1:i2,j1:j2,1) / rEff_dry_sfc(i1:i2,j1:j2,1))**3 - 1.0) * & + (RHOW / rhop)) + + ! Calculate the fraction of EXCESS water (water above 35% RH) + where (rh(i1:i2,j1:j2,km) > RH_THRESHOLD) + waterfactor_excess_sfc(i1:i2,j1:j2) = & + (growthfactor_ambient_sfc(i1:i2,j1:j2) - growthfactor_35rh_sfc(i1:i2,j1:j2)) / & + growthfactor_ambient_sfc(i1:i2,j1:j2) + elsewhere + waterfactor_excess_sfc(i1:i2,j1:j2) = 0.0 + end where + + ! Calculate surface mass concentration at 35% RH + so4sfcmass25RH35(i1:i2,j1:j2) = 0. + so4sfcmass25RH35(i1:i2,j1:j2) = & + SO4(i1:i2,j1:j2,km) * rhoa(i1:i2,j1:j2,km) * & + growthfactor_ambient_sfc(i1:i2,j1:j2) * & + (1.0 - waterfactor_excess_sfc(i1:i2,j1:j2)) + + ! Deallocate working arrays + deallocate(rEff_wet_sfc, rEff_dry_sfc, rEff_35rh_sfc) + deallocate(growthfactor_ambient_sfc, growthfactor_35rh_sfc) + deallocate(waterfactor_excess_sfc, rh_35_sfc) + + endif + ! To implement if desired: if(present(snum)) then @@ -8382,7 +8611,7 @@ subroutine SulfateChemDriver (km, klid, cdt, PI, radToDeg, von_karman, & real, dimension(:,:), intent(in) :: latRad ! model grid lat [radians] real, dimension(:,:,:), intent(inout) :: dms ! dimethyl sulfide [kg/kg] real, dimension(:,:,:), intent(inout) :: so2 ! sulfer dioxide [kg/kg] - real, dimension(:,:,:), intent(inout) :: so4 ! sulfate aerosol [kg/kg] + real, dimension(:,:,:), intent(inout) :: so4 ! sulfate sol [kg/kg] real, pointer, dimension(:,:,:), intent(inout) :: msa ! methanesulphonic acid [kg/kg] integer, intent(in) :: nDMS, nSO2, nSO4, nMSA ! index position of sulfates real, dimension(:,:,:), intent(in) :: delp ! pressure thickness [Pa] From 0aaf6be07ab2695a66e80f02c28b69e2451683c2 Mon Sep 17 00:00:00 2001 From: acollow Date: Sat, 26 Sep 2026 15:05:25 -0400 Subject: [PATCH 05/17] fix syntax error --- Process_Library/GOCART2G_Process.F90 | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Process_Library/GOCART2G_Process.F90 b/Process_Library/GOCART2G_Process.F90 index 080d976e..f7412941 100644 --- a/Process_Library/GOCART2G_Process.F90 +++ b/Process_Library/GOCART2G_Process.F90 @@ -1506,7 +1506,7 @@ subroutine Chem_SettlingSimple ( km, klid, mie, bin, cdt, grav, & real, pointer, dimension(:,:) :: hsurf real(kind=DP), dimension(:,:), allocatable :: cmass_before, cmass_after real, allocatable :: dz(:,:,:) - real, dimension(:,:,:), allocatable :: radius, rhop, qa + real, dimension(:,:,:), allocatable :: radius, rhop, qa, rUp real, dimension(:,:,:), allocatable :: vsettle ! fall speed [m s-1] real :: ONE_OVER_G integer :: status @@ -1523,7 +1523,7 @@ subroutine Chem_SettlingSimple ( km, klid, mie, bin, cdt, grav, & hsurf => hghte(i1:i2,j1:j2,km) - allocate(dz(i2,j2,km), radius(i2,j2,km), rhop(i2,j2,km), vsettle(i2,j2,km), qa(i2,j2,km), source=0.0) + allocate(dz(i2,j2,km), radius(i2,j2,km), rUp(i2,j2,km), rhop(i2,j2,km), vsettle(i2,j2,km), qa(i2,j2,km), source=0.0) allocate(cmass_before(i2,j2), cmass_after(i2,j2), source=0.0_DP) qa = int_qa @@ -1559,7 +1559,7 @@ subroutine Chem_SettlingSimple ( km, klid, mie, bin, cdt, grav, & ! Find radius and density of the wet particle call mie%Query(550e-9,bin, & qa*delp/grav, & - rh, reff=radius, rLow=rLow, rhop=rhop, __RC__) + rh, reff=radius, rUp=rUp, rhop=rhop, __RC__) ! Settling velocity of the wet particle do k = klid, km do j = j1, j2 @@ -1572,7 +1572,7 @@ subroutine Chem_SettlingSimple ( km, klid, mie, bin, cdt, grav, & ! Maring 2003 (https://agupubs.onlinelibrary.wiley.com/doi/full/10.1029/2002JD002536) indicates that a correction is needed for dust particles with a diameter of 7.3 microns if(present(correctionMaring)) then - if (correctionMaring) .and. rUp(i,j,k)*1e6 >= 3.65 then + if (correctionMaring .and. rUp(1,1,1)*1e6 >= 3.65) then vsettle = max(1.0e-9, vsettle - v_upwardMaring) endif endif From e05ebe212d814e1bfb30a716cc1b0fcd8e7ecd0d Mon Sep 17 00:00:00 2001 From: acollow Date: Mon, 28 Sep 2026 10:43:27 -0400 Subject: [PATCH 06/17] fix seg fault in pm25 calc --- Process_Library/GOCART2G_Process.F90 | 206 ++++++++++++++++----------- 1 file changed, 124 insertions(+), 82 deletions(-) diff --git a/Process_Library/GOCART2G_Process.F90 b/Process_Library/GOCART2G_Process.F90 index f7412941..8315e5c2 100644 --- a/Process_Library/GOCART2G_Process.F90 +++ b/Process_Library/GOCART2G_Process.F90 @@ -4453,8 +4453,6 @@ subroutine Aero_Compute_Diags (mie, km, klid, nbegin, nbins, rlow, rup, & integer :: i1 =1, i2, j1=1, j2 integer :: ilam470, ilam870 real, allocatable, dimension(:,:,:) :: tau, ssa, bck, area, tarea, pref, pref0 -! real :: fPMfm(nbins) ! fraction of bin with particles diameter < 1.0 um -! real :: fPM25(nbins) ! fraction of bin with particles diameter < 2.5 um real, dimension(:), allocatable :: fPMfm ! fraction of bin with particles diameter < 1.0 um real, dimension(:), allocatable :: fPM25 ! fraction of bin with particles geometric diameter < 2.5 um real, dimension(:), allocatable :: fPM25aerodyn ! fraction of bin with particles aerodynamic diameter < 2.5 um @@ -4463,7 +4461,7 @@ subroutine Aero_Compute_Diags (mie, km, klid, nbegin, nbins, rlow, rup, & logical :: NO3nFlag_ !local version of the input logical :: BinFracFlag_ !local version of the input real, dimension(:), allocatable :: local_rUp, local_rLow, local_rhop, rUpaerodyn, rLowaerodyn - real, dimension(1) :: RH0, temp_rUp, temp_rLow, temp_rhop + real, dimension(1) :: RH0, temp_rUp, temp_rLow, temp_rhop, dummy_mass real, parameter :: RH_THRESHOLD = 0.35 ! 35% RH threshold real, parameter :: RHOW = 997.0 ! water density kg m-3 real, dimension(:,:,:), allocatable :: rEff_wet, rEff_dry, rEff_35rh @@ -4526,37 +4524,51 @@ subroutine Aero_Compute_Diags (mie, km, klid, nbegin, nbins, rlow, rup, & ! Get rUp and rLow if needed - if( BinFracFlag_ ) then - RH0(1)=0.0 + RH0(1)=0.0 + dummy_mass(1)=1.0e-12 - ! Query into the specific bin index of our local arrays - do n = nbegin, nbins - call mie%Query(550e-9, n, & - aerosol(1:1,1,1,n)*delp(1:1,1,1)/grav, & - RH0, rUp=temp_rUp, rLow=temp_rLow, rhop=temp_rhop, __RC__) + ! Query into the specific bin index of our local arrays + do n = nbegin, nbins + temp_rUp(1) = 1.0 + temp_rLow(1) = 0.0 + temp_rhop(1) = 1000.0 + call mie%Query(550e-9, n, & + dummy_mass, & + RH0, rUp=temp_rUp, rLow=temp_rLow, rhop=temp_rhop, __RC__) - local_rUp(n) = temp_rUp(1) - local_rLow(n) = temp_rLow(1) - local_rhop(n) = temp_rhop(1) - end do - - -! Compute aerodynamic diameter - if (present(shapefactor)) then - rUpaerodyn = local_rUp * SQRT(local_rhop*0.001/shapefactor) - rLowaerodyn = local_rLow * SQRT(local_rhop*0.001/shapefactor) - else - ! Fallback if shapefactor isn't passed - rUpaerodyn = local_rUp - rLowaerodyn = local_rLow - end if - + local_rUp(n) = temp_rUp(1) + local_rLow(n) = temp_rLow(1) + local_rhop(n) = temp_rhop(1) + end do -! Compute the fine mode (sub-micron) and PM2.5 bin-wise fractions -! NOTE: We pass our local arrays into the fraction subroutine instead of the intent(in) arrays -! units for radius must be converted to microns + if( BinFracFlag_ ) then + ! Compute the fine mode (sub-micron) and PM2.5 bin-wise fractions if needed + ! This is not needed for species with dry diameters smaller than the threshold + ! because the species PM2.5 diag is not written out and *SMASS is used for the + ! total PM2.5 calculation + ! units for radius must be converted to microns call Aero_Binwise_PM_Fractions(fPMfm, 0.50, local_rLow * 1e6, local_rUp * 1e6, nbins) ! 2*r < 1.0 um call Aero_Binwise_PM_Fractions(fPM25, 1.25, local_rLow * 1e6, local_rUp * 1e6, nbins) ! 2*r < 2.5 um + + ! Compute aerodynamic diameter for each bin + do n = nbegin, nbins + if (present(shapefactor)) then + ! Ensure shapefactor is strictly > 0.0 to prevent Div by Zero + if (shapefactor > 1.0e-12 .and. local_rhop(n) > 1.0e-12) then + rUpaerodyn(n) = local_rUp(n) * SQRT(local_rhop(n)*0.001/shapefactor) + rLowaerodyn(n) = local_rLow(n) * SQRT(local_rhop(n)*0.001/shapefactor) + else + rUpaerodyn(n) = local_rUp(n) + rLowaerodyn(n) = local_rLow(n) + end if + else + ! Fallback if shapefactor isn't passed + rUpaerodyn(n) = local_rUp(n) + rLowaerodyn(n) = local_rLow(n) + end if + end do + + ! Now calculate PM2.5 aerodynamic fractions with the computed aerodynamic radii call Aero_Binwise_PM_Fractions(fPM25aerodyn, 1.25, rLowaerodyn * 1e6, rUpaerodyn * 1e6, nbins) end if @@ -4573,13 +4585,22 @@ subroutine Aero_Compute_Diags (mie, km, klid, nbegin, nbins, rlow, rup, & + aerosol(i1:i2,j1:j2,km,n)*rhoa(i1:i2,j1:j2,km) end do endif + + +! Calculate PM2.5 surface mass concentration (geometric diameter) if( present(sfcmass25) ) then sfcmass25(i1:i2,j1:j2) = 0. - sfcmass25aerodyn(i1:i2,j1:j2) = 0. do n = nbegin, nbins sfcmass25(i1:i2,j1:j2) & = sfcmass25(i1:i2,j1:j2) & + aerosol(i1:i2,j1:j2,km,n)*rhoa(i1:i2,j1:j2,km)*fPM25(n) + end do + endif + +! Calculate PM2.5 surface mass concentration (aerodynamic diameter) + if( present(sfcmass25aerodyn) ) then + sfcmass25aerodyn(i1:i2,j1:j2) = 0. + do n = nbegin, nbins sfcmass25aerodyn(i1:i2,j1:j2) & = sfcmass25aerodyn(i1:i2,j1:j2) & + aerosol(i1:i2,j1:j2,km,n)*rhoa(i1:i2,j1:j2,km)*fPM25aerodyn(n) @@ -4588,7 +4609,7 @@ subroutine Aero_Compute_Diags (mie, km, klid, nbegin, nbins, rlow, rup, & ! Calculate PM2.5 aerodynamic diameter at 35% RH (water removed for RH>35%) if( present(sfcmass25aerodynRH35) ) then - + print *, 'working on sfcmass25aerodynRH35, allocating vars' ! Allocate working arrays - need 3D arrays for mie%Query allocate(rEff_wet(i1:i2,j1:j2,1), __STAT__) allocate(rEff_dry(i1:i2,j1:j2,1), __STAT__) @@ -4605,10 +4626,16 @@ subroutine Aero_Compute_Diags (mie, km, klid, nbegin, nbins, rlow, rup, & ! Number of spatial points npts = (i2-i1+1) * (j2-j1+1) + print *, 'vars allocated, moving on to mie query' do n = nbegin, nbins ! Get particle density rhod_local = local_rhop(n) ! from earlier calculation + ! Default initializations to prevent NaNs if mie%Query bypasses population + rEff_wet = 1.0 + rEff_dry = 1.0 + rEff_35rh = 1.0 + ! Get wet effective radius at ambient RH call mie%Query(550e-9, n, & aerosol(i1:i2,j1:j2,km:km,n)*delp(i1:i2,j1:j2,km:km)/grav, & @@ -4627,69 +4654,82 @@ subroutine Aero_Compute_Diags (mie, km, klid, nbegin, nbins, rlow, rup, & rh_35, rEff=rEff_35rh, __RC__) ! Calculate hygroscopic growth factor at ambient RH (mass_wet/mass_dry) - ! Extract from 3D to 2D arrays - growthfactor_ambient(i1:i2,j1:j2) = 1.0 + & - (((rEff_wet(i1:i2,j1:j2,1) / rEff_dry(i1:i2,j1:j2,1))**3 - 1.0) * & - (RHOW / rhod_local)) - - ! Calculate hygroscopic growth factor at 35% RH (mass_at_35rh/mass_dry) - growthfactor_35rh(i1:i2,j1:j2) = 1.0 + & - (((rEff_35rh(i1:i2,j1:j2,1) / rEff_dry(i1:i2,j1:j2,1))**3 - 1.0) * & - (RHOW / rhod_local)) + ! Safely check against zero denominators + do j = j1, j2 + do i = i1, i2 + if (rEff_dry(i,j,1) > 1.0e-12 .and. rhod_local > 1.0e-12) then + growthfactor_ambient(i,j) = 1.0 + & + (((rEff_wet(i,j,1) / rEff_dry(i,j,1))**3 - 1.0) * & + (RHOW / rhod_local)) + growthfactor_35rh(i,j) = 1.0 + & + (((rEff_35rh(i,j,1) / rEff_dry(i,j,1))**3 - 1.0) * & + (RHOW / rhod_local)) + else + growthfactor_ambient(i,j) = 1.0 + growthfactor_35rh(i,j) = 1.0 + end if + end do + end do ! Calculate the fraction of EXCESS water (water above 35% RH) ! This is: (mass_ambient - mass_35rh) / mass_ambient - where (rh(i1:i2,j1:j2,km) > RH_THRESHOLD) - waterfactor_excess(i1:i2,j1:j2) = & - (growthfactor_ambient(i1:i2,j1:j2) - growthfactor_35rh(i1:i2,j1:j2)) / & - growthfactor_ambient(i1:i2,j1:j2) - elsewhere - ! If RH <= 35%, no water removal - waterfactor_excess(i1:i2,j1:j2) = 0.0 - end where + do j = j1, j2 + do i = i1, i2 + if (rh(i,j,km) > RH_THRESHOLD .and. growthfactor_ambient(i,j) > 1.0e-12) then + waterfactor_excess(i,j) = & + (growthfactor_ambient(i,j) - growthfactor_35rh(i,j)) / & + growthfactor_ambient(i,j) + ! Ensure value remains bounded >= 0 + waterfactor_excess(i,j) = max(0.0, waterfactor_excess(i,j)) + else + waterfactor_excess(i,j) = 0.0 + end if + end do + end do ! Calculate fPM25 for aerodynamic diameter at ambient humidity if( BinFracFlag_ ) then + ! Seed rUp/rLow incase mie%Query bypasses them + rUp_wet = 1.0 + rLow_wet = 0.0 + ! Get wet bin boundaries at ambient RH call mie%Query(550e-9, n, & aerosol(i1:i2,j1:j2,km:km,n)*delp(i1:i2,j1:j2,km:km)/grav, & rh(i1:i2,j1:j2,km:km), rUp=rUp_wet, rLow=rLow_wet, __RC__) - ! Allocate arrays for aerodynamic radii (flattened spatial dimensions) + ! Allocate arrays for aerodynamic radii allocate(rLow_wet_aerodyn(npts), __STAT__) allocate(rUp_wet_aerodyn(npts), __STAT__) allocate(fPM25aerodyn_wet_1d(npts), __STAT__) + rLow_wet_aerodyn = 0.0 + rUp_wet_aerodyn = 1.0 + fPM25aerodyn_wet_1d = 0.0 + ! Calculate wet aerodynamic radii - ! Convert from geometric to aerodynamic using density and shape factor - if (present(shapefactor)) then - ! rLow_wet and rUp_wet are in meters, convert to microns and then to aerodynamic - ! Aerodynamic radius = geometric radius * sqrt(rhop / (shapefactor * 1000)) - ! where rhop is in kg/m3 and we divide by 1000 to get g/cm3 - ij = 0 - do j = j1, j2 - do i = i1, i2 - ij = ij + 1 - rLow_wet_aerodyn(ij) = rLow_wet(i,j,1) * 1.0e6 * & - SQRT(rhod_local * 0.001 / shapefactor) - rUp_wet_aerodyn(ij) = rUp_wet(i,j,1) * 1.0e6 * & - SQRT(rhod_local * 0.001 / shapefactor) - end do - end do - else - ! Fallback if shapefactor isn't passed - use geometric diameter - ij = 0 - do j = j1, j2 - do i = i1, i2 - ij = ij + 1 + ij = 0 + do j = j1, j2 + do i = i1, i2 + ij = ij + 1 + if (present(shapefactor)) then + if (shapefactor > 1.0e-12 .and. rhod_local > 1.0e-12) then + rLow_wet_aerodyn(ij) = rLow_wet(i,j,1) * 1.0e6 * & + SQRT(rhod_local * 0.001 / shapefactor) + rUp_wet_aerodyn(ij) = rUp_wet(i,j,1) * 1.0e6 * & + SQRT(rhod_local * 0.001 / shapefactor) + else + rLow_wet_aerodyn(ij) = rLow_wet(i,j,1) * 1.0e6 + rUp_wet_aerodyn(ij) = rUp_wet(i,j,1) * 1.0e6 + end if + else rLow_wet_aerodyn(ij) = rLow_wet(i,j,1) * 1.0e6 rUp_wet_aerodyn(ij) = rUp_wet(i,j,1) * 1.0e6 - end do + end if end do - end if + end do ! Call Aero_Binwise_PM_Fractions to calculate PM2.5 fraction - ! rPM = 1.25 microns (radius) for 2.5 micron diameter call Aero_Binwise_PM_Fractions(fPM25aerodyn_wet_1d, 1.25, & rLow_wet_aerodyn, rUp_wet_aerodyn, npts) @@ -4710,20 +4750,21 @@ subroutine Aero_Compute_Diags (mie, km, klid, nbegin, nbins, rlow, rup, & else ! If BinFracFlag is false, fPM25aerodyn_wet = 1.0 - sfcmass25aerodynRH35(i1:i2,j1:j2) = & - sfcmass25aerodynRH35(i1:i2,j1:j2) + & - aerosol(i1:i2,j1:j2,km,n) * rhoa(i1:i2,j1:j2,km) * & - 1.0 * growthfactor_ambient(i1:i2,j1:j2) * & - (1.0 - waterfactor_excess(i1:i2,j1:j2)) + do j = j1, j2 + do i = i1, i2 + sfcmass25aerodynRH35(i,j) = & + sfcmass25aerodynRH35(i,j) + & + aerosol(i,j,km,n) * rhoa(i,j,km) * & + 1.0 * growthfactor_ambient(i,j) * & + (1.0 - waterfactor_excess(i,j)) + end do + end do end if end do ! Deallocate working arrays - deallocate(rEff_wet, rEff_dry, rEff_35rh) - deallocate(growthfactor_ambient, growthfactor_35rh) - deallocate(waterfactor_excess, rh_35) - deallocate(rLow_wet, rUp_wet) + deallocate(rEff_wet, rEff_dry, rEff_35rh, growthfactor_ambient, growthfactor_35rh, waterfactor_excess, rh_35, rLow_wet, rUp_wet) endif @@ -4998,6 +5039,7 @@ subroutine Aero_Compute_Diags (mie, km, klid, nbegin, nbins, rlow, rup, & __RETURN__(__SUCCESS__) end subroutine Aero_Compute_Diags + !==================================================================== !BOP From 8707868f60df1d80f28939dd3c1878be4bf10bf6 Mon Sep 17 00:00:00 2001 From: acollow Date: Mon, 28 Sep 2026 10:51:33 -0400 Subject: [PATCH 07/17] update change log --- CHANGELOG.md | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index f4a557f7..0e7f039a 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -18,6 +18,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 - Updated version of volcanic sulfur emissions for AMIP configuration to v202601 - Update aerosol optics bands files to default to RRTMGP bands, rather than RRTMG (as GEOSgcm v12 has switched to RRTMGP) - NOTE: This means users needing RRTMG bands will need to update at run time. See https://github.com/GEOS-ESM/GEOSgcm_App/pull/878 for changes needed at run-time for GEOSgcm +- fraction of PM2.5 bin calculation to use radius from optics file instead of RC file +- Application of the Maring correction to only bins 4 and 5 for dust ### Fixed @@ -27,9 +29,14 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 - Initialize `eCO_bioburn_` to `0.0` to prevent use of uninitialized data when `diurnal_bb` is false - Guard `DEALLOCATE` of `ier` with an `ALLOCATED` check - Add local `ios` variable in `CO_Emission` to prevent host-association aliasing under optimization +- nsubsteps bug in the UFS Setting Solver ### Added - setZeroKlid for non-radiatively active tracers in Run0 +- diagnostics for PM2.5 using an aerodynamic diameter and RH=35% +- diagnostics for fine mode vertical profile of mixing rations for dust and sea salt +- ability to use rUp and rLow from optics files through Mie Query + ## [v2.6.6] - 2026-08-26 ### Fixed From bb6c8d33f27145459efb2804da680f6a6d4f2432 Mon Sep 17 00:00:00 2001 From: acollow Date: Mon, 28 Sep 2026 11:25:32 -0400 Subject: [PATCH 08/17] roll back maring change --- Process_Library/GOCART2G_Process.F90 | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Process_Library/GOCART2G_Process.F90 b/Process_Library/GOCART2G_Process.F90 index 8315e5c2..92a39b06 100644 --- a/Process_Library/GOCART2G_Process.F90 +++ b/Process_Library/GOCART2G_Process.F90 @@ -1572,7 +1572,8 @@ subroutine Chem_SettlingSimple ( km, klid, mie, bin, cdt, grav, & ! Maring 2003 (https://agupubs.onlinelibrary.wiley.com/doi/full/10.1029/2002JD002536) indicates that a correction is needed for dust particles with a diameter of 7.3 microns if(present(correctionMaring)) then - if (correctionMaring .and. rUp(1,1,1)*1e6 >= 3.65) then + !if (correctionMaring .and. rUp(1,1,1)*1e6 >= 3.65) then + if (correctionMaring) then vsettle = max(1.0e-9, vsettle - v_upwardMaring) endif endif From 009fec866853fabcce45312e4da91ef358aef57a Mon Sep 17 00:00:00 2001 From: acollow Date: Wed, 30 Sep 2026 07:59:55 -0400 Subject: [PATCH 09/17] revert allocations in DU Grid Comp mie section --- .../DU2G_GridComp/DU2G_GridCompMod.F90 | 24 +++++++++---------- Process_Library/GOCART2G_Process.F90 | 3 +-- 2 files changed, 13 insertions(+), 14 deletions(-) diff --git a/ESMF/GOCART2G_GridComp/DU2G_GridComp/DU2G_GridCompMod.F90 b/ESMF/GOCART2G_GridComp/DU2G_GridComp/DU2G_GridCompMod.F90 index 478ec77c..42de4960 100644 --- a/ESMF/GOCART2G_GridComp/DU2G_GridComp/DU2G_GridCompMod.F90 +++ b/ESMF/GOCART2G_GridComp/DU2G_GridComp/DU2G_GridCompMod.F90 @@ -1358,16 +1358,16 @@ subroutine mie_(mie, nbins, band, q, rh, bext_s, bssa_s, basym_s, rc) integer, intent(in ) :: band ! channel real, intent(in ) :: q(:,:,:,:) ! aerosol mass mixing ratio, kg kg-1 real, intent(in ) :: rh(:,:,:) ! relative humidity - real(kind=DP), intent( out) :: bext_s (size(rh,1),size(rh,2),size(rh,3)) - real(kind=DP), intent( out) :: bssa_s (size(rh,1),size(rh,2),size(rh,3)) - real(kind=DP), intent( out) :: basym_s(size(rh,1),size(rh,2),size(rh,3)) + real(kind=DP), intent( out) :: bext_s (size(ext_s,1),size(ext_s,2),size(ext_s,3)) + real(kind=DP), intent( out) :: bssa_s (size(ext_s,1),size(ext_s,2),size(ext_s,3)) + real(kind=DP), intent( out) :: basym_s(size(ext_s,1),size(ext_s,2),size(ext_s,3)) integer, intent( out) :: rc ! local integer :: l - real :: bext (size(rh,1),size(rh,2),size(rh,3)) ! extinction - real :: bssa (size(rh,1),size(rh,2),size(rh,3)) ! SSA - real :: gasym(size(rh,1),size(rh,2),size(rh,3)) ! asymmetry parameter + real :: bext (size(ext_s,1),size(ext_s,2),size(ext_s,3)) ! extinction + real :: bssa (size(ext_s,1),size(ext_s,2),size(ext_s,3)) ! SSA + real :: gasym(size(ext_s,1),size(ext_s,2),size(ext_s,3)) ! asymmetry parameter __Iam__('DU2G::aerosol_optics::mie_') @@ -1396,16 +1396,16 @@ subroutine miephot_(mie, nbins, wavelength, q, rh, bext_s, bssa_s, bpmom_s, rc) real, intent(in ) :: wavelength ! wavelength in nm real, intent(in ) :: q(:,:,:,:) ! aerosol mass mixing ratio, kg kg-1 real, intent(in ) :: rh(:,:,:) ! relative humidity - real(kind=DP), intent( out) :: bext_s (:,:,:) - real(kind=DP), intent( out) :: bssa_s (:,:,:) - real(kind=DP), intent( out) :: bpmom_s(:,:,:,:) + real(kind=DP), intent( out) :: bext_s (size(ext_s,1),size(ext_s,2),size(ext_s,3)) + real(kind=DP), intent( out) :: bssa_s (size(ext_s,1),size(ext_s,2),size(ext_s,3)) + real(kind=DP), intent( out) :: bpmom_s(size(ext_s,1),size(ext_s,2),size(ext_s,3),size(pmom_s,4)) integer, intent( out) :: rc ! local integer :: l, m - real :: bext (size(rh,1),size(rh,2),size(rh,3)) ! extinction - real :: bssa (size(rh,1),size(rh,2),size(rh,3)) ! SSA - real :: pmom (size(rh,1),size(rh,2),size(rh,3),size(bpmom_s,4),6) + real :: bext (size(ext_s,1),size(ext_s,2),size(ext_s,3)) ! extinction + real :: bssa (size(ext_s,1),size(ext_s,2),size(ext_s,3)) ! SSA + real :: pmom (size(ext_s,1),size(ext_s,2),size(ext_s,3),size(pmom_s,4),6) __Iam__('DU2G::aerosol_optics::miephot_') diff --git a/Process_Library/GOCART2G_Process.F90 b/Process_Library/GOCART2G_Process.F90 index 92a39b06..8315e5c2 100644 --- a/Process_Library/GOCART2G_Process.F90 +++ b/Process_Library/GOCART2G_Process.F90 @@ -1572,8 +1572,7 @@ subroutine Chem_SettlingSimple ( km, klid, mie, bin, cdt, grav, & ! Maring 2003 (https://agupubs.onlinelibrary.wiley.com/doi/full/10.1029/2002JD002536) indicates that a correction is needed for dust particles with a diameter of 7.3 microns if(present(correctionMaring)) then - !if (correctionMaring .and. rUp(1,1,1)*1e6 >= 3.65) then - if (correctionMaring) then + if (correctionMaring .and. rUp(1,1,1)*1e6 >= 3.65) then vsettle = max(1.0e-9, vsettle - v_upwardMaring) endif endif From 323adcb4b86bf3ac4cd5788b9ed40fac30ff0d3a Mon Sep 17 00:00:00 2001 From: acollow Date: Fri, 20 Nov 2026 14:10:03 -0500 Subject: [PATCH 10/17] uptick optics files --- ESMF/GOCART2G_GridComp/CA2G_GridComp/CA2G_instance_CA.bc.rc | 4 ++-- ESMF/GOCART2G_GridComp/CA2G_GridComp/CA2G_instance_CA.br.rc | 4 ++-- ESMF/GOCART2G_GridComp/CA2G_GridComp/CA2G_instance_CA.oc.rc | 4 ++-- ESMF/GOCART2G_GridComp/DU2G_GridComp/DU2G_instance_DU.rc | 4 ++-- ESMF/GOCART2G_GridComp/NI2G_GridComp/NI2G_instance_NI.rc | 4 ++-- ESMF/GOCART2G_GridComp/SS2G_GridComp/SS2G_instance_SS.rc | 4 ++-- ESMF/GOCART2G_GridComp/SU2G_GridComp/SU2G_instance_SU.rc | 4 ++-- Process_Library/GOCART2G_Process.F90 | 6 +++--- 8 files changed, 17 insertions(+), 17 deletions(-) diff --git a/ESMF/GOCART2G_GridComp/CA2G_GridComp/CA2G_instance_CA.bc.rc b/ESMF/GOCART2G_GridComp/CA2G_GridComp/CA2G_instance_CA.bc.rc index 7f4c7cec..db4501fd 100644 --- a/ESMF/GOCART2G_GridComp/CA2G_GridComp/CA2G_instance_CA.bc.rc +++ b/ESMF/GOCART2G_GridComp/CA2G_GridComp/CA2G_instance_CA.bc.rc @@ -2,8 +2,8 @@ # Resource file for Black Carbon parameters. # -aerosol_radBands_optics_file: ExtData/chemistry/AerosolOptics/v2.x.x/x/opticsBands_BC.v2.1.0.RRTMGP.nc4 -aerosol_monochromatic_optics_file: ExtData/chemistry/AerosolOptics/v2.x.x/x/optics_BC.v2.1.0.nc4 +aerosol_radBands_optics_file: ExtData/chemistry/AerosolOptics/v2.x.x/x/opticsBands_BC.v2.2.1.RRTMGP.nc4 +aerosol_monochromatic_optics_file: ExtData/chemistry/AerosolOptics/v2.x.x/x/optics_BC.v2.2.1.nc4 # Aircraft emission factor: convert input unit to kg C aircraft_fuel_emission_factor: 1.0000 diff --git a/ESMF/GOCART2G_GridComp/CA2G_GridComp/CA2G_instance_CA.br.rc b/ESMF/GOCART2G_GridComp/CA2G_GridComp/CA2G_instance_CA.br.rc index 8a2c8648..614e4abf 100644 --- a/ESMF/GOCART2G_GridComp/CA2G_GridComp/CA2G_instance_CA.br.rc +++ b/ESMF/GOCART2G_GridComp/CA2G_GridComp/CA2G_instance_CA.br.rc @@ -2,8 +2,8 @@ # Resource file for Brown Carbon parameters. # -aerosol_radBands_optics_file: ExtData/chemistry/AerosolOptics/v2.x.x/x/opticsBands_BR.v2.1.0.RRTMGP.nc4 -aerosol_monochromatic_optics_file: ExtData/chemistry/AerosolOptics/v2.x.x/x/optics_BR.v2.1.0.nc4 +aerosol_radBands_optics_file: ExtData/chemistry/AerosolOptics/v2.x.x/x/opticsBands_BR.v2.2.1.RRTMGP.nc4 +aerosol_monochromatic_optics_file: ExtData/chemistry/AerosolOptics/v2.x.x/x/optics_BR.v2.2.1.nc4 # Aircraft emission factor: convert input unit to kg C aircraft_fuel_emission_factor: 1.0000 diff --git a/ESMF/GOCART2G_GridComp/CA2G_GridComp/CA2G_instance_CA.oc.rc b/ESMF/GOCART2G_GridComp/CA2G_GridComp/CA2G_instance_CA.oc.rc index e73151c6..8eb1ac29 100644 --- a/ESMF/GOCART2G_GridComp/CA2G_GridComp/CA2G_instance_CA.oc.rc +++ b/ESMF/GOCART2G_GridComp/CA2G_GridComp/CA2G_instance_CA.oc.rc @@ -2,8 +2,8 @@ # Resource file for Organic Carbon parameters. # -aerosol_radBands_optics_file: ExtData/chemistry/AerosolOptics/v2.x.x/x/opticsBands_OC.v2.1.0.RRTMGP.nc4 -aerosol_monochromatic_optics_file: ExtData/chemistry/AerosolOptics/v2.x.x/x/optics_OC.v2.1.0.nc4 +aerosol_radBands_optics_file: ExtData/chemistry/AerosolOptics/v2.x.x/x/opticsBands_OC.v2.2.1.RRTMGP.nc4 +aerosol_monochromatic_optics_file: ExtData/chemistry/AerosolOptics/v2.x.x/x/optics_OC.v2.2.1.nc4 # Aircraft emission factor: convert input unit to kg C aircraft_fuel_emission_factor: 1.0000 diff --git a/ESMF/GOCART2G_GridComp/DU2G_GridComp/DU2G_instance_DU.rc b/ESMF/GOCART2G_GridComp/DU2G_GridComp/DU2G_instance_DU.rc index f0b79b94..d6f98358 100644 --- a/ESMF/GOCART2G_GridComp/DU2G_GridComp/DU2G_instance_DU.rc +++ b/ESMF/GOCART2G_GridComp/DU2G_GridComp/DU2G_instance_DU.rc @@ -2,8 +2,8 @@ # Resource file Dust parameters. # -aerosol_radBands_optics_file: ExtData/chemistry/AerosolOptics/v2.x.x/x/opticsBands_DU.v2.1.0.RRTMGP.nc4 -aerosol_monochromatic_optics_file: ExtData/chemistry/AerosolOptics/v2.x.x/x/optics_DU.v2.1.0.nc4 +aerosol_radBands_optics_file: ExtData/chemistry/AerosolOptics/v2.x.x/x/opticsBands_DU.v2.2.1.RRTMGP.nc4 +aerosol_monochromatic_optics_file: ExtData/chemistry/AerosolOptics/v2.x.x/x/optics_DU.v2.2.1.nc4 particle_radius_microns: 0.73 1.4 2.4 4.5 8.0 diff --git a/ESMF/GOCART2G_GridComp/NI2G_GridComp/NI2G_instance_NI.rc b/ESMF/GOCART2G_GridComp/NI2G_GridComp/NI2G_instance_NI.rc index af46d317..a9f955f4 100644 --- a/ESMF/GOCART2G_GridComp/NI2G_GridComp/NI2G_instance_NI.rc +++ b/ESMF/GOCART2G_GridComp/NI2G_GridComp/NI2G_instance_NI.rc @@ -4,8 +4,8 @@ nbins: 5 -aerosol_radBands_optics_file: ExtData/chemistry/AerosolOptics/v2.x.x/x/opticsBands_NI.v2.1.0.RRTMGP.nc4 -aerosol_monochromatic_optics_file: ExtData/chemistry/AerosolOptics/v2.x.x/x/optics_NI.v2.1.0.nc4 +aerosol_radBands_optics_file: ExtData/chemistry/AerosolOptics/v2.x.x/x/opticsBands_NI.v2.2.1.RRTMGP.nc4 +aerosol_monochromatic_optics_file: ExtData/chemistry/AerosolOptics/v2.x.x/x/optics_NI.v2.2.1.nc4 # Scavenging efficiency per bin [km-1] fscav: 0.0 0.4 0.4 0.4 0.4 diff --git a/ESMF/GOCART2G_GridComp/SS2G_GridComp/SS2G_instance_SS.rc b/ESMF/GOCART2G_GridComp/SS2G_GridComp/SS2G_instance_SS.rc index 3c1f79f2..0dc6581b 100644 --- a/ESMF/GOCART2G_GridComp/SS2G_GridComp/SS2G_instance_SS.rc +++ b/ESMF/GOCART2G_GridComp/SS2G_GridComp/SS2G_instance_SS.rc @@ -2,8 +2,8 @@ # Resource file Sea Salt parameters # -aerosol_radBands_optics_file: ExtData/chemistry/AerosolOptics/v2.x.x/x/opticsBands_SS.v2.1.0.RRTMGP.nc4 -aerosol_monochromatic_optics_file: ExtData/chemistry/AerosolOptics/v2.x.x/x/optics_SS.v2.1.0.nc4 +aerosol_radBands_optics_file: ExtData/chemistry/AerosolOptics/v2.x.x/x/opticsBands_SS.v2.2.1.RRTMGP.nc4 +aerosol_monochromatic_optics_file: ExtData/chemistry/AerosolOptics/v2.x.x/x/optics_SS.v2.2.1.nc4 particle_radius_microns: 0.079 0.316 1.119 2.818 7.772 diff --git a/ESMF/GOCART2G_GridComp/SU2G_GridComp/SU2G_instance_SU.rc b/ESMF/GOCART2G_GridComp/SU2G_GridComp/SU2G_instance_SU.rc index 748d1ff3..00170e08 100644 --- a/ESMF/GOCART2G_GridComp/SU2G_GridComp/SU2G_instance_SU.rc +++ b/ESMF/GOCART2G_GridComp/SU2G_GridComp/SU2G_instance_SU.rc @@ -2,8 +2,8 @@ # Resource file for Sulfur parameters. # -aerosol_radBands_optics_file: ExtData/chemistry/AerosolOptics/v2.x.x/x/opticsBands_SU.v2.1.0.RRTMGP.nc4 -aerosol_monochromatic_optics_file: ExtData/chemistry/AerosolOptics/v2.x.x/x/optics_SU.v2.1.0.nc4 +aerosol_radBands_optics_file: ExtData/chemistry/AerosolOptics/v2.x.x/x/opticsBands_SU.v2.2.1.RRTMGP.nc4 +aerosol_monochromatic_optics_file: ExtData/chemistry/AerosolOptics/v2.x.x/x/optics_SU.v2.2.1.nc4 nbins: 4 diff --git a/Process_Library/GOCART2G_Process.F90 b/Process_Library/GOCART2G_Process.F90 index 8315e5c2..da1d4c85 100644 --- a/Process_Library/GOCART2G_Process.F90 +++ b/Process_Library/GOCART2G_Process.F90 @@ -1557,7 +1557,7 @@ subroutine Chem_SettlingSimple ( km, klid, mie, bin, cdt, grav, & enddo ! Find radius and density of the wet particle - call mie%Query(550e-9,bin, & + call mie%Query(550e-9, bin, & qa*delp/grav, & rh, reff=radius, rUp=rUp, rhop=rhop, __RC__) ! Settling velocity of the wet particle @@ -1573,6 +1573,8 @@ subroutine Chem_SettlingSimple ( km, klid, mie, bin, cdt, grav, & ! Maring 2003 (https://agupubs.onlinelibrary.wiley.com/doi/full/10.1029/2002JD002536) indicates that a correction is needed for dust particles with a diameter of 7.3 microns if(present(correctionMaring)) then if (correctionMaring .and. rUp(1,1,1)*1e6 >= 3.65) then + !if (correctionMaring) then + print *, "Maring correction applied for bin ", bin, " and radius ", rUp(1,1,1)*1e6 vsettle = max(1.0e-9, vsettle - v_upwardMaring) endif endif @@ -4609,7 +4611,6 @@ subroutine Aero_Compute_Diags (mie, km, klid, nbegin, nbins, rlow, rup, & ! Calculate PM2.5 aerodynamic diameter at 35% RH (water removed for RH>35%) if( present(sfcmass25aerodynRH35) ) then - print *, 'working on sfcmass25aerodynRH35, allocating vars' ! Allocate working arrays - need 3D arrays for mie%Query allocate(rEff_wet(i1:i2,j1:j2,1), __STAT__) allocate(rEff_dry(i1:i2,j1:j2,1), __STAT__) @@ -4626,7 +4627,6 @@ subroutine Aero_Compute_Diags (mie, km, klid, nbegin, nbins, rlow, rup, & ! Number of spatial points npts = (i2-i1+1) * (j2-j1+1) - print *, 'vars allocated, moving on to mie query' do n = nbegin, nbins ! Get particle density rhod_local = local_rhop(n) ! from earlier calculation From b4e7a2ae23b094b24ab935bcf89bdd5fb0e9fb81 Mon Sep 17 00:00:00 2001 From: Matthew Thompson Date: Mon, 23 Nov 2026 11:57:18 -0500 Subject: [PATCH 11/17] move over CI files from discover --- .circleci/config.yml | 39 ++++------------------------------ .github/workflows/workflow.yml | 36 ++++++------------------------- 2 files changed, 10 insertions(+), 65 deletions(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index 066e85a9..de89b3c6 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -1,46 +1,15 @@ version: 2.1 # Anchors in case we need to override the defaults from the orb -#baselibs_version: &baselibs_version v8.24.0 -#bcs_version: &bcs_version v11.6.0 +#baselibs_version: &baselibs_version v8.33.0 +#bcs_version: &bcs_version v12.0.0 orbs: - ci: geos-esm/circleci-tools@4 + ci: geos-esm/circleci-tools@5 workflows: build-and-test: jobs: - # Build GOCART - - ci/build: - name: build-GOCART2G-on-<< matrix.compiler >> - context: - - docker-hub-creds - matrix: - parameters: - compiler: [gfortran, ifort] - #baselibs_version: *baselibs_version - repo: GOCART - buildtarget: GOCART2G_GridComp - mepodevelop: true - develop_repos: GMAO_Shared - persist_workspace: false # Needs to be true to run fv3/gcm experiment, costs extra - - # Build GOCART like UFS - - ci/build: - name: build-GOCART2G-like-UFS-on-<< matrix.compiler >> - context: - - docker-hub-creds - matrix: - parameters: - compiler: [gfortran, ifort] - #baselibs_version: *baselibs_version - repo: GOCART - buildtarget: GOCART2G_GridComp - mepodevelop: true - develop_repos: GMAO_Shared - extra_cmake_options: "-DBUILD_WITH_FLAP=OFF -DBUILD_WITH_PFLOGGER=OFF -DBUILD_SHARED_MAPL=OFF -DUSE_EXTDATA2G=OFF" - persist_workspace: false # Needs to be true to run fv3/gcm experiment, costs extra - # Build GEOSgcm - ci/build: name: build-GEOSgcm-on-<< matrix.compiler >> @@ -48,7 +17,7 @@ workflows: - docker-hub-creds matrix: parameters: - compiler: [gfortran, ifort] + compiler: [gfortran, ifort, ifx] #baselibs_version: *baselibs_version repo: GEOSgcm checkout_fixture: true diff --git a/.github/workflows/workflow.yml b/.github/workflows/workflow.yml index 01e72922..2fcf0d6b 100644 --- a/.github/workflows/workflow.yml +++ b/.github/workflows/workflow.yml @@ -10,10 +10,11 @@ on: - "**.sh" - "**.perl" - ".github/CODEOWNERS" + workflow_dispatch: concurrency: group: ${{ github.workflow }}-${{ github.ref }} - cancel-in-progress: ${{ github.ref != 'refs/heads/main' }} + cancel-in-progress: ${{ github.ref != 'refs/heads/main' && github.ref != 'refs/heads/develop' }} jobs: build_gcm: @@ -28,18 +29,9 @@ jobs: cmake-build-type: ${{ matrix.build-type }} fixture-repo: GEOS-ESM/GEOSgcm - build_gocart: - strategy: - matrix: - compiler: [ifort] - build-type: [Debug] - uses: GEOS-ESM/CI-workflows/.github/workflows/geosgcm_build_tests.yml@project/geosgcm - with: - compiler: ${{ matrix.compiler }} - cmake-build-type: ${{ matrix.build-type }} - run-mepo-develop: false - build-target: '--target GOCART2G_GridComp' - + # NOTE: If spack builds weirdly fail during spack install phase, you probably + # need to update the default refs in the workflow file to match the refs + # of the spack and spack-packages repo on the AWS build machine spack_build_gcm: uses: GEOS-ESM/CI-workflows/.github/workflows/spack_gcc_build.yml@project/geosgcm secrets: @@ -47,22 +39,6 @@ jobs: BUILDCACHE_TOKEN: ${{ secrets.BUILDCACHE_TOKEN }} with: fixture-repo: GEOS-ESM/GEOSgcm - run-mepo-develop: false - patch-esmf: true - # For some reason, Spack builds have weird install issues. For now, skip install. - run-install: false - load-fms: true - - spack_build_gocart: - uses: GEOS-ESM/CI-workflows/.github/workflows/spack_gcc_build.yml@project/geosgcm - secrets: - BUILDCACHE_USERNAME: ${{ secrets.BUILDCACHE_USERNAME }} - BUILDCACHE_TOKEN: ${{ secrets.BUILDCACHE_TOKEN }} - with: - run-mepo-develop: false - build-target: '--target GOCART2G_GridComp' - patch-esmf: true - # Note: you cannot build the install target with plain gocart - run-install: false + run-mepo-develop: true load-fms: true From 32c043dd2ceafa5901759daad67cd10c754fd4af Mon Sep 17 00:00:00 2001 From: Allie Collow <31133739+acollow@users.noreply.github.com> Date: Thu, 3 Dec 2026 10:18:21 -0500 Subject: [PATCH 12/17] Update CA2G_GridComp_ExtData.yaml accounts for revised optics --- .../CA2G_GridComp/CA2G_GridComp_ExtData.yaml | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/ESMF/GOCART2G_GridComp/CA2G_GridComp/CA2G_GridComp_ExtData.yaml b/ESMF/GOCART2G_GridComp/CA2G_GridComp/CA2G_GridComp_ExtData.yaml index 4b8f5212..fd4c9e30 100644 --- a/ESMF/GOCART2G_GridComp/CA2G_GridComp/CA2G_GridComp_ExtData.yaml +++ b/ESMF/GOCART2G_GridComp/CA2G_GridComp/CA2G_GridComp_ExtData.yaml @@ -96,9 +96,9 @@ Exports: sample: CA2G_sample_2 variable: biofuel BC_BIOMASS: - - {starting: "2014-12-01T12:00", collection: CA2G_qfed2.emis_bc.006.%y4%m2%d2.nc4, linear_transformation: [0.0, 0.778], regrid: CONSERVE, sample: CA2G_sample_1, variable: biomass} - - {starting: "2021-11-01T12:00", collection: CA2G_qfed2.emis_bc.061.%y4%m2%d2.nc4, linear_transformation: [0.0, 0.778], regrid: CONSERVE, sample: CA2G_sample_1, variable: biomass} - - {starting: "2026-02-01T12:00", collection: CA2G_qfed_emis_x3600y1800_bc.v3_2_2.%y4%m2%d2.nc4, linear_transformation: [0.0, 0.778], regrid: CONSERVE, sample: CA2G_sample_1, variable: biomass} + - {starting: "2014-12-01T12:00", collection: CA2G_qfed2.emis_bc.006.%y4%m2%d2.nc4, linear_transformation: [0.0, 1.2], regrid: CONSERVE, sample: CA2G_sample_1, variable: biomass} + - {starting: "2021-11-01T12:00", collection: CA2G_qfed2.emis_bc.061.%y4%m2%d2.nc4, linear_transformation: [0.0, 1.2], regrid: CONSERVE, sample: CA2G_sample_1, variable: biomass} + - {starting: "2026-02-01T12:00", collection: CA2G_qfed_emis_x3600y1800_bc.v3_2_2.%y4%m2%d2.nc4, linear_transformation: [0.0, 1.2], regrid: CONSERVE, sample: CA2G_sample_1, variable: biomass} BC_SHIP: - {starting: "1979-01-15T12:00", collection: CA2G_BC-em-anthro_CMIP_CEDS_gn_shipping.x2304_y1441_t12.%y4.nc4, sample: CA2G_sample_1, regrid: CONSERVE, variable: bc_shipping} - {starting: "2019-12-15T12:00", collection: CA2G_BC-em-anthro_CMIP_CEDS_gn_shipping.x2304_y1441_t12.%y4.nc4, regrid: CONSERVE, sample: CA2G_sample_3, variable: bc_shipping} @@ -138,9 +138,9 @@ Exports: sample: CA2G_sample_2 variable: biofuel BRC_BIOMASS: - - {starting: "2014-12-01T12:00", collection: CA2G_qfed2.emis_oc.006.%y4%m2%d2.nc4, linear_transformation: [0.0, 0.778], regrid: CONSERVE, sample: CA2G_sample_1, variable: biomass} - - {starting: "2021-11-01T12:00", collection: CA2G_qfed2.emis_oc.061.%y4%m2%d2.nc4, linear_transformation: [0.0, 0.778], regrid: CONSERVE, sample: CA2G_sample_1, variable: biomass} - - {starting: "2026-02-01T12:00", collection: CA2G_qfed_emis_x3600y1800_oc.v3_2_2.%y4%m2%d2.nc4, linear_transformation: [0.0, 0.778], regrid: CONSERVE, sample: CA2G_sample_1, variable: biomass} + - {starting: "2014-12-01T12:00", collection: CA2G_qfed2.emis_oc.006.%y4%m2%d2.nc4, linear_transformation: [0.0, 1.2], regrid: CONSERVE, sample: CA2G_sample_1, variable: biomass} + - {starting: "2021-11-01T12:00", collection: CA2G_qfed2.emis_oc.061.%y4%m2%d2.nc4, linear_transformation: [0.0, 1.2], regrid: CONSERVE, sample: CA2G_sample_1, variable: biomass} + - {starting: "2026-02-01T12:00", collection: CA2G_qfed_emis_x3600y1800_oc.v3_2_2.%y4%m2%d2.nc4, linear_transformation: [0.0, 1.2], regrid: CONSERVE, sample: CA2G_sample_1, variable: biomass} BRC_SHIP: collection: /dev/null regrid: CONSERVE @@ -184,7 +184,7 @@ Exports: collection: /dev/null linear_transformation: - 0.0 - - 0.778 + - 1.2 regrid: CONSERVE sample: CA2G_sample_1 variable: biomass From e9c5998d86f3abbfda13a3da246b6fc1522de3f9 Mon Sep 17 00:00:00 2001 From: Allie Collow <31133739+acollow@users.noreply.github.com> Date: Thu, 3 Dec 2026 10:20:18 -0500 Subject: [PATCH 13/17] Update CA2G_GridComp_ExtData.yaml --- .../CA2G_GridComp/AMIP/CA2G_GridComp_ExtData.yaml | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/ESMF/GOCART2G_GridComp/CA2G_GridComp/AMIP/CA2G_GridComp_ExtData.yaml b/ESMF/GOCART2G_GridComp/CA2G_GridComp/AMIP/CA2G_GridComp_ExtData.yaml index 058e0f35..efe42d52 100644 --- a/ESMF/GOCART2G_GridComp/CA2G_GridComp/AMIP/CA2G_GridComp_ExtData.yaml +++ b/ESMF/GOCART2G_GridComp/CA2G_GridComp/AMIP/CA2G_GridComp_ExtData.yaml @@ -95,9 +95,9 @@ Exports: sample: CA2G_sample_2 variable: biofuel BC_BIOMASS: - - {starting: "1960-01-16T12:00", collection: CA2G_hfed.emis_bc.x576_y361.%y4%m2.nc4, linear_transformation: [0.0, 0.778], regrid: CONSERVE, sample: CA2G_sample_1, variable: biomass} - - {starting: "2000-03-01T00:00", collection: CA2G_qfed2.emis_bc.061.%y4%m2%d2.nc4, linear_transformation: [0.0, 0.778], regrid: CONSERVE, sample: CA2G_sample_1, variable: biomass} - - {starting: "2023-03-01T00:00", collection: CA2G_qfed_emis_x3600y1800_bc.v3_2_2.%y4%m2%d2.nc4, linear_transformation: [0.0, 0.778], regrid: CONSERVE, sample: CA2G_sample_1, variable: biomass} + - {starting: "1960-01-16T12:00", collection: CA2G_hfed.emis_bc.x576_y361.%y4%m2.nc4, linear_transformation: [0.0, 1.2], regrid: CONSERVE, sample: CA2G_sample_1, variable: biomass} + - {starting: "2000-03-01T00:00", collection: CA2G_qfed2.emis_bc.061.%y4%m2%d2.nc4, linear_transformation: [0.0, 1.2], regrid: CONSERVE, sample: CA2G_sample_1, variable: biomass} + - {starting: "2023-03-01T00:00", collection: CA2G_qfed_emis_x3600y1800_bc.v3_2_2.%y4%m2%d2.nc4, linear_transformation: [0.0, 1.2], regrid: CONSERVE, sample: CA2G_sample_1, variable: biomass} BC_SHIP: - {starting: "1979-01-15T12:00", collection: CA2G_BC-em-anthro_CMIP_CEDS_gn_shipping.x2304_y1441_t12.%y4.nc4, sample: CA2G_sample_1, regrid: CONSERVE, variable: bc_shipping} - {starting: "2019-12-15T12:00", collection: CA2G_BC-em-anthro_CMIP_CEDS_gn_shipping.x2304_y1441_t12.%y4.nc4, regrid: CONSERVE, sample: CA2G_sample_3, variable: bc_shipping} @@ -137,9 +137,9 @@ Exports: sample: CA2G_sample_2 variable: biofuel BRC_BIOMASS: - - {starting: "1960-01-16T12:00", collection: CA2G_hfed.emis_oc.x576_y361.%y4%m2.nc4, linear_transformation: [0.0, 0.778], regrid: CONSERVE, sample: CA2G_sample_1, variable: biomass} - - {starting: "2000-03-01T00:00", collection: CA2G_qfed2.emis_oc.061.%y4%m2%d2.nc4, linear_transformation: [0.0, 0.778], regrid: CONSERVE, sample: CA2G_sample_1, variable: biomass} - - {starting: "2023-03-01T00:00", collection: CA2G_qfed_emis_x3600y1800_oc.v3_2_2.%y4%m2%d2.nc4, linear_transformation: [0.0, 0.778], regrid: CONSERVE, sample: CA2G_sample_1, variable: biomass} + - {starting: "1960-01-16T12:00", collection: CA2G_hfed.emis_oc.x576_y361.%y4%m2.nc4, linear_transformation: [0.0, 1.2], regrid: CONSERVE, sample: CA2G_sample_1, variable: biomass} + - {starting: "2000-03-01T00:00", collection: CA2G_qfed2.emis_oc.061.%y4%m2%d2.nc4, linear_transformation: [0.0, 1.2], regrid: CONSERVE, sample: CA2G_sample_1, variable: biomass} + - {starting: "2023-03-01T00:00", collection: CA2G_qfed_emis_x3600y1800_oc.v3_2_2.%y4%m2%d2.nc4, linear_transformation: [0.0, 1.2], regrid: CONSERVE, sample: CA2G_sample_1, variable: biomass} BRC_SHIP: collection: /dev/null regrid: CONSERVE @@ -183,7 +183,7 @@ Exports: collection: /dev/null linear_transformation: - 0.0 - - 0.778 + - 1.2 regrid: CONSERVE sample: CA2G_sample_1 variable: biomass From 76dff558c741782bd3be9c5346558f76663ee340 Mon Sep 17 00:00:00 2001 From: Allie Collow <31133739+acollow@users.noreply.github.com> Date: Thu, 3 Dec 2026 10:20:57 -0500 Subject: [PATCH 14/17] Update SU2G_GridComp_ExtData.yaml --- .../SU2G_GridComp/SU2G_GridComp_ExtData.yaml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/ESMF/GOCART2G_GridComp/SU2G_GridComp/SU2G_GridComp_ExtData.yaml b/ESMF/GOCART2G_GridComp/SU2G_GridComp/SU2G_GridComp_ExtData.yaml index c21a3c01..5ffff014 100644 --- a/ESMF/GOCART2G_GridComp/SU2G_GridComp/SU2G_GridComp_ExtData.yaml +++ b/ESMF/GOCART2G_GridComp/SU2G_GridComp/SU2G_GridComp_ExtData.yaml @@ -77,9 +77,9 @@ Exports: sample: SU2G_sample_2 variable: so2_aviation SU_BIOMASS: - - {starting: "2014-12-01T12:00", collection: SU2G_qfed2.emis_so2.006.%y4%m2%d2.nc4, linear_transformation: [0.0, 0.778], regrid: CONSERVE, sample: SU2G_sample_1, variable: biomass} - - {starting: "2021-11-01T12:00", collection: SU2G_qfed2.emis_so2.061.%y4%m2%d2.nc4, linear_transformation: [0.0, 0.778], regrid: CONSERVE, sample: SU2G_sample_1, variable: biomass} - - {starting: "2026-02-01T12:00", collection: SU2G_qfed_emis_x3600y1800_so2.v3_2_2.%y4%m2%d2.nc4, linear_transformation: [0.0, 0.778], regrid: CONSERVE, sample: SU2G_sample_1, variable: biomass} + - {starting: "2014-12-01T12:00", collection: SU2G_qfed2.emis_so2.006.%y4%m2%d2.nc4, linear_transformation: [0.0, 1.2], regrid: CONSERVE, sample: SU2G_sample_1, variable: biomass} + - {starting: "2021-11-01T12:00", collection: SU2G_qfed2.emis_so2.061.%y4%m2%d2.nc4, linear_transformation: [0.0, 1.2], regrid: CONSERVE, sample: SU2G_sample_1, variable: biomass} + - {starting: "2026-02-01T12:00", collection: SU2G_qfed_emis_x3600y1800_so2.v3_2_2.%y4%m2%d2.nc4, linear_transformation: [0.0, 1.2], regrid: CONSERVE, sample: SU2G_sample_1, variable: biomass} SU_DMSO: collection: SU2G_DMSclim_sfcconcentration.x360_y181_t12.Lana2011.nc4 regrid: CONSERVE From b3d529f077e21688ce0ad334392a32eef2c8da9b Mon Sep 17 00:00:00 2001 From: Allie Collow <31133739+acollow@users.noreply.github.com> Date: Thu, 3 Dec 2026 10:21:34 -0500 Subject: [PATCH 15/17] Update SU2G_GridComp_ExtData.yaml --- .../SU2G_GridComp/AMIP/SU2G_GridComp_ExtData.yaml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/ESMF/GOCART2G_GridComp/SU2G_GridComp/AMIP/SU2G_GridComp_ExtData.yaml b/ESMF/GOCART2G_GridComp/SU2G_GridComp/AMIP/SU2G_GridComp_ExtData.yaml index 5020dda5..de048408 100644 --- a/ESMF/GOCART2G_GridComp/SU2G_GridComp/AMIP/SU2G_GridComp_ExtData.yaml +++ b/ESMF/GOCART2G_GridComp/SU2G_GridComp/AMIP/SU2G_GridComp_ExtData.yaml @@ -76,9 +76,9 @@ Exports: sample: SU2G_sample_2 variable: so2_aviation SU_BIOMASS: - - {starting: "1960-01-16T12:00", collection: SU2G_hfed.emis_so2.x576_y361.%y4%m2.nc4, linear_transformation: [0.0, 0.778], regrid: CONSERVE, sample: SU2G_sample_1, variable: biomass} - - {starting: "2000-03-01T00:00", collection: SU2G_qfed2.emis_so2.061.%y4%m2%d2.nc4, linear_transformation: [0.0, 0.778], regrid: CONSERVE, sample: SU2G_sample_1, variable: biomass} - - {starting: "2023-03-01T00:00", collection: SU2G_qfed_emis_x3600y1800_so2.v3_2_2.%y4%m2%d2.nc4, linear_transformation: [0.0, 0.778], regrid: CONSERVE, sample: SU2G_sample_1, variable: biomass} + - {starting: "1960-01-16T12:00", collection: SU2G_hfed.emis_so2.x576_y361.%y4%m2.nc4, linear_transformation: [0.0, 1.2], regrid: CONSERVE, sample: SU2G_sample_1, variable: biomass} + - {starting: "2000-03-01T00:00", collection: SU2G_qfed2.emis_so2.061.%y4%m2%d2.nc4, linear_transformation: [0.0, 1.2], regrid: CONSERVE, sample: SU2G_sample_1, variable: biomass} + - {starting: "2023-03-01T00:00", collection: SU2G_qfed_emis_x3600y1800_so2.v3_2_2.%y4%m2%d2.nc4, linear_transformation: [0.0, 1.2], regrid: CONSERVE, sample: SU2G_sample_1, variable: biomass} SU_DMSO: collection: SU2G_DMSclim_sfcconcentration.x360_y181_t12.Lana2011.nc4 regrid: CONSERVE From 52546a92ef46f2c3813b15c690fc57d4083be5c7 Mon Sep 17 00:00:00 2001 From: Allie Collow <31133739+acollow@users.noreply.github.com> Date: Thu, 3 Dec 2026 10:22:07 -0500 Subject: [PATCH 16/17] Update NI2G_GridComp_ExtData.yaml --- .../NI2G_GridComp/NI2G_GridComp_ExtData.yaml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/ESMF/GOCART2G_GridComp/NI2G_GridComp/NI2G_GridComp_ExtData.yaml b/ESMF/GOCART2G_GridComp/NI2G_GridComp/NI2G_GridComp_ExtData.yaml index 3dbec464..1b54b692 100644 --- a/ESMF/GOCART2G_GridComp/NI2G_GridComp/NI2G_GridComp_ExtData.yaml +++ b/ESMF/GOCART2G_GridComp/NI2G_GridComp/NI2G_GridComp_ExtData.yaml @@ -47,9 +47,9 @@ Exports: sample: NI2G_sample_2 variable: nh3_emis EMI_NH3_BB: - - {starting: "2014-12-01T12:00", collection: NI2G_qfed2.emis_nh3.006.%y4%m2%d2.nc4, linear_transformation: [0.0, 0.778], regrid: CONSERVE, sample: NI2G_sample_1, variable: biomass} - - {starting: "2021-11-01T12:00", collection: NI2G_qfed2.emis_nh3.061.%y4%m2%d2.nc4, linear_transformation: [0.0, 0.778], regrid: CONSERVE, sample: NI2G_sample_1, variable: biomass} - - {starting: "2026-02-01T12:00", collection: NI2G_qfed_emis_x3600y1800_nh3.v3_2_2.%y4%m2%d2.nc4, linear_transformation: [0.0, 0.778], regrid: CONSERVE, sample: NI2G_sample_1, variable: biomass} + - {starting: "2014-12-01T12:00", collection: NI2G_qfed2.emis_nh3.006.%y4%m2%d2.nc4, linear_transformation: [0.0, 1.2], regrid: CONSERVE, sample: NI2G_sample_1, variable: biomass} + - {starting: "2021-11-01T12:00", collection: NI2G_qfed2.emis_nh3.061.%y4%m2%d2.nc4, linear_transformation: [0.0, 1.2], regrid: CONSERVE, sample: NI2G_sample_1, variable: biomass} + - {starting: "2026-02-01T12:00", collection: NI2G_qfed_emis_x3600y1800_nh3.v3_2_2.%y4%m2%d2.nc4, linear_transformation: [0.0, 1.2], regrid: CONSERVE, sample: NI2G_sample_1, variable: biomass} EMI_NH3_EN: - {starting: "1979-01-15T12:00", collection: NI2G_NH3-em-anthro_CMIP_CEDS_gn.x2304_y1441_t12.%y4.nc4, sample: NI2G_sample_1, regrid: CONSERVE, variable: nh3} - {starting: "2019-12-15T12:00", collection: NI2G_NH3-em-anthro_CMIP_CEDS_gn.x2304_y1441_t12.%y4.nc4, regrid: CONSERVE, sample: NI2G_sample_4, variable: nh3} From ebc31b17f9e381aca9f21397f833f9fb6801758c Mon Sep 17 00:00:00 2001 From: Allie Collow <31133739+acollow@users.noreply.github.com> Date: Thu, 3 Dec 2026 10:22:36 -0500 Subject: [PATCH 17/17] Update NI2G_GridComp_ExtData.yaml --- .../NI2G_GridComp/AMIP/NI2G_GridComp_ExtData.yaml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/ESMF/GOCART2G_GridComp/NI2G_GridComp/AMIP/NI2G_GridComp_ExtData.yaml b/ESMF/GOCART2G_GridComp/NI2G_GridComp/AMIP/NI2G_GridComp_ExtData.yaml index 19bfb36a..d2a3718b 100644 --- a/ESMF/GOCART2G_GridComp/NI2G_GridComp/AMIP/NI2G_GridComp_ExtData.yaml +++ b/ESMF/GOCART2G_GridComp/NI2G_GridComp/AMIP/NI2G_GridComp_ExtData.yaml @@ -45,9 +45,9 @@ Exports: sample: NI2G_sample_2 variable: nh3_emis EMI_NH3_BB: - - {starting: "1960-01-16T12:00", collection: NI2G_hfed.emis_nh3.x576_y361.%y4%m2.nc4, linear_transformation: [0.0, 0.778], regrid: CONSERVE, sample: NI2G_sample_1, variable: biomass} - - {starting: "2000-03-01T00:00", collection: NI2G_qfed2.emis_nh3.061.%y4%m2%d2.nc4, linear_transformation: [0.0, 0.778], regrid: CONSERVE, sample: NI2G_sample_1, variable: biomass} - - {starting: "2023-03-01T00:00", collection: NI2G_qfed_emis_x3600y1800_nh3.v3_2_2.%y4%m2%d2.nc4, linear_transformation: [0.0, 0.778], regrid: CONSERVE, sample: NI2G_sample_1, variable: biomass} + - {starting: "1960-01-16T12:00", collection: NI2G_hfed.emis_nh3.x576_y361.%y4%m2.nc4, linear_transformation: [0.0, 1.2], regrid: CONSERVE, sample: NI2G_sample_1, variable: biomass} + - {starting: "2000-03-01T00:00", collection: NI2G_qfed2.emis_nh3.061.%y4%m2%d2.nc4, linear_transformation: [0.0, 1.2], regrid: CONSERVE, sample: NI2G_sample_1, variable: biomass} + - {starting: "2023-03-01T00:00", collection: NI2G_qfed_emis_x3600y1800_nh3.v3_2_2.%y4%m2%d2.nc4, linear_transformation: [0.0, 1.2], regrid: CONSERVE, sample: NI2G_sample_1, variable: biomass} EMI_NH3_EN: - {starting: "1979-01-15T12:00", collection: NI2G_NH3-em-anthro_CMIP_CEDS_gn.x2304_y1441_t12.%y4.nc4, sample: NI2G_sample_1, regrid: CONSERVE, variable: nh3} - {starting: "2019-12-15T12:00", collection: NI2G_NH3-em-anthro_CMIP_CEDS_gn.x2304_y1441_t12.%y4.nc4, regrid: CONSERVE, sample: NI2G_sample_4, variable: nh3}