Hi Luke,
Yes I was reading from xconv - that makes sense if this isn’t correct!
I think in that case there must be a loss rate in s-1, following the line ‘loss rate [s-1]: zdryrt (lon, lat, species)’ in this guide to the dry dep : https://www.ukca.ac.uk/images/5/53/20180110_Folberth_UKCA_DryDep_V1.9.pdf as I am calling them both from zdryrt.
I think that means my code is wrong as it seems to be that these values are much too small and also the difference between the 2D and the 3D shouldn’t be there. If I multiply the output in s-1 with the concentration in mol/m3, I would expect the values to align with the standard deposition output but they are much too small.
When I look at the altitude profile for the 3D output, the diagnostic is not repeated until the boundary layer but instead decreases in magnitude with height.
Sorry for all of the questions, I am very puzzled as to why this loop isn’t producing the correct output!
This is the code for reference:
REAL, INTENT(INOUT) :: h2dryrt(row_length, rows,model_levels)
REAL, INTENT(INOUT) :: h2dryrt2(row_length,rows)
REAL :: h2dryrt3(theta_field_size)
IF (L_ukca_intdd) THEN
DO l=1,jpdd
IF (L_ukca_strattrop .AND. (speci(nldepd(l)) == 'H2 ')) THEN
h2dryrt2(:,: ) = zdryrt(:,:,l)
END IF
END DO
END IF
!Additional loop to output the 2D and 3D H2 lbc deposition velocity
DO k=1,model_levels
h2dryrt3(: )=0.0e0
IF (L_ukca_intdd) THEN
ddmask(: ) = (k <= nlev_with_ddep2(:))
WHERE (ddmask(:))
h2dryrt3(: ) = RESHAPE(h2dryrt2(:,:),(/theta_field_size/))
END WHERE
h2dryrt(:,:,k) = RESHAPE(h2dryrt3(:),(/row_length,rows/))
END IF
END DO
DO k=1,model_levels
DO l=1, jpdd
IF (L_ukca_strattrop .AND. (speci(nldepd(l)) == 'H2 ')) THEN
zdryrt(:,:,l) = 0.0
END IF
END DO
END DO
Thanks,
Hannah