Skip to content

Commit

Permalink
select on TV (virtual temp)
Browse files Browse the repository at this point in the history
  • Loading branch information
Ricardo Todling committed Nov 15, 2017
1 parent e0ca614 commit d3d3dd2
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions src/ncdiag/m_diag_raob.f90
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,7 @@ module m_diag_raob
integer :: nobstype
integer :: raob_mass_type = 120 ! type for RAOB T and Q
integer :: raob_wind_type = 220 ! type for RAOB U and V
integer :: t_qcmark = 0 ! 0=tv; 1=tdry

contains

Expand Down Expand Up @@ -281,11 +282,19 @@ subroutine read_raob_diag_nc_mass(infn, raob_header, raob_mass, ierr)
deallocate(i_var)
deallocate(c_var)

ncount = count(rtmp_mass(:)%Observation_Type==raob_mass_type,1); nraob = ncount(1)
ic=0
do ii=1,nobs
if(rtmp_mass(ii)%Observation_Type==raob_mass_type.and.&
rtmp_mass(ii)%Setup_QC_Mark==t_qcmark) then
ic=ic+1
endif
enddo
nraob=ic
allocate(indx(nraob))
ic=0
do ii=1,nobs
if(rtmp_mass(ii)%Observation_Type==raob_mass_type) then
if(rtmp_mass(ii)%Observation_Type==raob_mass_type.and.&
rtmp_mass(ii)%Setup_QC_Mark==t_qcmark) then
ic=ic+1
indx(ic)=ii
endif
Expand Down

0 comments on commit d3d3dd2

Please sign in to comment.