1 subroutine da_llxy_latlon(lat, lon, proj, x, y)
3 !-----------------------------------------------------------------------
4 ! Purpose: Compute the x/y location of a lat/lon on a LATLON
5 ! (cylindrical equidistant) grid.
6 !-----------------------------------------------------------------------
10 real, intent(in) :: lat
11 real, intent(in) :: lon
12 type(proj_info), intent(in) :: proj
13 real, intent(out) :: x
14 real, intent(out) :: y
22 if (trace_use_frequent) call da_trace_entry("da_llxy_latlon")
24 ! To account for issues around the dateline, convert the incoming
25 ! longitudes to be 0->360.0
32 deltalat = lat - proj%lat1
33 deltalon = lon360 - proj%lon1
35 !For cylindrical equidistant, dx == dy
36 loninc = proj%dx*360.0/(2.0*EARTH_RADIUS_M*PI)
37 latinc = proj%dx*360.0/(2.0*EARTH_RADIUS_M*PI)
47 if (trace_use_frequent) call da_trace_exit("da_llxy_latlon")
49 end subroutine da_llxy_latlon