1 subroutine da_llxy_kma_global(lat,lon,x,y)
3 !----------------------------------------------------------------------------
4 ! Purpose: calculates the(x,y) location(dot) in the global grids
5 ! from latitudes and longitudes
6 !----------------------------------------------------------------------------
10 real, intent(in) :: lat, lon
11 real, intent(out) :: x, y
15 if (trace_use_frequent) call da_trace_entry("da_llxy_kma_global")
17 xlat = lat - start_lat
18 xlon = lon - start_lon
20 if (xlat < 0.0) xlat = xlat + 180.0
21 if (xlon < 0.0) xlon = xlon + 360.0
23 x = start_x + xlon/delt_lon
24 y = start_y + xlat/delt_lat
26 if (trace_use_frequent) call da_trace_exit("da_llxy_kma_global")
28 end subroutine da_llxy_kma_global