Skip to content

Commit 4ed5907

Browse files
Merge pull request #81 from CFMIP/unused_z_ray
Delete unused variables in quickbeam
2 parents e0558d4 + 5bd7881 commit 4ed5907

File tree

1 file changed

+2
-14
lines changed

1 file changed

+2
-14
lines changed

src/simulator/quickbeam/quickbeam.F90

Lines changed: 2 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -123,10 +123,8 @@ subroutine quickbeam_subcolumn(rcfg,nprof,ngate,hgt_matrix,z_vol,kr_vol,g_vol,dB
123123
! LOCAL VARIABLES
124124
integer :: k,pr,start_gate,end_gate,d_gate
125125
real(wp),dimension(nprof,ngate) :: &
126-
Ze_ray, & ! Rayleigh reflectivity (dBZ)
127126
g_to_vol, & ! Gaseous atteunation, radar to vol (dB)
128-
a_to_vol, & ! Hydromets attenuation, radar to vol (dB)
129-
z_ray ! Reflectivity factor, Rayleigh only (mm^6/m^3)
127+
a_to_vol ! Hydromets attenuation, radar to vol (dB)
130128

131129
! Load scaling matricies from disk -- but only the first time this subroutine is called
132130
if(rcfg%load_scale_LUTs) then
@@ -205,17 +203,7 @@ subroutine quickbeam_subcolumn(rcfg,nprof,ngate,hgt_matrix,z_vol,kr_vol,g_vol,dB
205203
enddo ! End loop over pr (profile)
206204
enddo ! End loop of k (range gate)
207205

208-
! Compute Rayleigh reflectivity, and full, attenuated reflectivity
209-
if(rcfg%do_ray == 1) then
210-
where(z_ray(1:nprof,1:ngate) > 0._wp)
211-
Ze_ray(1:nprof,1:ngate) = 10._wp*log10(z_ray(1:nprof,1:ngate))
212-
elsewhere
213-
Ze_Ray(1:nprof,1:ngate) = 0._wp
214-
endwhere
215-
else
216-
Ze_ray(1:nprof,1:ngate) = R_UNDEF
217-
end if
218-
206+
! Compute full and attenuated reflectivity
219207
where(z_vol(1:nprof,1:ngate) > 0._wp)
220208
Ze_non(1:nprof,1:ngate) = 10._wp*log10(z_vol(1:nprof,1:ngate))
221209
dBZe(1:nprof,1:ngate) = Ze_non(1:nprof,1:ngate)-a_to_vol(1:nprof,1:ngate)-g_to_vol(1:nprof,1:ngate)

0 commit comments

Comments
 (0)