Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Delete unused variables in quickbeam #81

Merged
merged 1 commit into from
Sep 13, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 2 additions & 14 deletions src/simulator/quickbeam/quickbeam.F90
Original file line number Diff line number Diff line change
Expand Up @@ -123,10 +123,8 @@ subroutine quickbeam_subcolumn(rcfg,nprof,ngate,hgt_matrix,z_vol,kr_vol,g_vol,dB
! LOCAL VARIABLES
integer :: k,pr,start_gate,end_gate,d_gate
real(wp),dimension(nprof,ngate) :: &
Ze_ray, & ! Rayleigh reflectivity (dBZ)
g_to_vol, & ! Gaseous atteunation, radar to vol (dB)
a_to_vol, & ! Hydromets attenuation, radar to vol (dB)
z_ray ! Reflectivity factor, Rayleigh only (mm^6/m^3)
a_to_vol ! Hydromets attenuation, radar to vol (dB)

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

! Compute Rayleigh reflectivity, and full, attenuated reflectivity
if(rcfg%do_ray == 1) then
where(z_ray(1:nprof,1:ngate) > 0._wp)
Ze_ray(1:nprof,1:ngate) = 10._wp*log10(z_ray(1:nprof,1:ngate))
elsewhere
Ze_Ray(1:nprof,1:ngate) = 0._wp
endwhere
else
Ze_ray(1:nprof,1:ngate) = R_UNDEF
end if

! Compute full and attenuated reflectivity
where(z_vol(1:nprof,1:ngate) > 0._wp)
Ze_non(1:nprof,1:ngate) = 10._wp*log10(z_vol(1:nprof,1:ngate))
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)
Expand Down
Loading