1 subroutine da_set_merc(proj)
3 !--------------------------------------------------------------------------
4 ! Purpose: Sets up the remaining basic elements for the mercator projection
5 !--------------------------------------------------------------------------
9 type(proj_info), intent(inout) :: proj
13 if (trace_use) call da_trace_entry("da_set_merc")
15 ! Preliminary variables
17 clain = COS(rad_per_deg*proj%truelat1)
18 proj%dlon = proj%dx / (earth_radius_m * clain)
20 ! Compute distance from equator to origin, and store in the
24 if (proj%lat1 .NE. 0.0) then
25 proj%rsw = (alog(tan(0.5*((proj%lat1+90.)*rad_per_deg))))/proj%dlon
28 if (trace_use) call da_trace_exit("da_set_merc")
30 end subroutine da_set_merc