Skip to content
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
21 changes: 9 additions & 12 deletions interface/framework/obs_SM_pdafomi.F90
Original file line number Diff line number Diff line change
Expand Up @@ -424,10 +424,9 @@ SUBROUTINE init_dim_obs_SM(step, dim_obs)
if(newgridcell) then

if(is_use_dr) then
if (lon(g)>180) then
deltax = abs(lon(g)-lon_obs(i)-360)
else
deltax = abs(lon(g)-lon_obs(i))
deltax = abs(lon(g)-lon_obs(i))
if (deltax > 180.0) then
deltax = 360.0 - deltax
end if
deltay = abs(lat(g)-lat_obs(i))
end if
Expand Down Expand Up @@ -611,10 +610,9 @@ SUBROUTINE init_dim_obs_SM(step, dim_obs)
if(newgridcell) then

if(is_use_dr) then
if (lon(g)>180) then
deltax = abs(lon(g)-lon_obs(i)-360)
else
deltax = abs(lon(g)-lon_obs(i))
deltax = abs(lon(g)-lon_obs(i))
if (deltax > 180.0) then
deltax = 360.0 - deltax
end if
deltay = abs(lat(g)-lat_obs(i))
end if
Expand Down Expand Up @@ -704,10 +702,9 @@ SUBROUTINE init_dim_obs_SM(step, dim_obs)
if(newgridcell) then

if(is_use_dr) then
if (lon(g)>180) then
deltax = abs(lon(g)-lon_obs(i)-360)
else
deltax = abs(lon(g)-lon_obs(i))
deltax = abs(lon(g)-lon_obs(i))
if (deltax > 180.0) then
deltax = 360.0 - deltax
end if
deltay = abs(lat(g)-lat_obs(i))
end if
Expand Down
Loading