29 logical :: ltraj = .false.
54 character(len=*),
parameter :: myname_=
"ufo_adt_tlad_settraj" 55 character(max_string) :: err_msg
62 self%geoval_adt = geoval_adt
74 real(c_double),
intent(inout) :: hofx(:)
76 character(len=*),
parameter :: myname_=
"ufo_adt_simobs_tl" 77 character(max_string) :: err_msg
81 real(kind_real) :: offset_obs, offset_hofx
84 if (.not. self%ltraj)
then 85 write(err_msg,*) myname_,
' trajectory wasnt set!' 86 call abor1_ftn(err_msg)
91 if (geovals%nobs /= nobs)
then 92 write(err_msg,*) myname_,
' error: nobs inconsistent!' 93 call abor1_ftn(err_msg)
100 offset_hofx=sum(geoval_adt%vals(1,:))/nobs
105 hofx(iobs) = geoval_adt%vals(1,iobs) - offset_hofx
116 real(c_double),
intent(inout) :: hofx(:)
118 character(len=*),
parameter :: myname_=
"ufo_adt_simobs_ad" 119 character(max_string) :: err_msg
121 integer :: iobs, nobs
123 real(kind_real) :: offset_hofx
126 if (.not. self%ltraj)
then 127 write(err_msg,*) myname_,
' trajectory wasnt set!' 128 call abor1_ftn(err_msg)
133 if (geovals%nobs /= nobs)
then 134 write(err_msg,*) myname_,
' error: nobs inconsistent!' 135 call abor1_ftn(err_msg)
138 if (.not. geovals%linit ) geovals%linit=.true.
146 offset_hofx=sum(hofx)/nobs
148 if (.not.
allocated(geoval_adt%vals))
allocate(geoval_adt%vals(1,nobs))
149 geoval_adt%vals = 0.0
151 geoval_adt%vals(1,iobs) = geoval_adt%vals(1,iobs) + hofx(iobs) - offset_hofx
subroutine, public ufo_geovals_get_var(self, varname, geoval, status)
integer, parameter max_string
subroutine, public ufo_adt_simobs_ad(self, geovals, hofx)
Fortran derived type for adt observation operator.
subroutine, public ufo_adt_tlad_settraj(self, geovals)
type to hold interpolated fields required by the obs operators
character(len=maxvarlen), public var_abs_topo
Fortran module to handle adt observations.
subroutine, public ufo_adt_simobs_tl(self, geovals, hofx)
Fortran module handling observation locations.
subroutine, public ufo_adt_tlad_delete(self)
Fortran interface to ObsSpace.
type to hold interpolated field for one variable, one observation