gnomonic_grids Subroutine

private subroutine gnomonic_grids(grid_type, im, lon, lat)

Arguments

Type IntentOptional Attributes Name
integer, intent(in) :: grid_type
integer, intent(in) :: im
real(kind=ESMF_KIND_R8), intent(out) :: lon(im+1,im+1)
real(kind=ESMF_KIND_R8), intent(out) :: lat(im+1,im+1)

Source Code

 subroutine gnomonic_grids(grid_type, im, lon, lat)
 integer, intent(in):: im, grid_type
 real(ESMF_KIND_R8), intent(out):: lon(im+1,im+1)
 real(ESMF_KIND_R8), intent(out):: lat(im+1,im+1)
 integer i, j

  if(grid_type==0) call gnomonic_ed(  im, lon, lat)
  if(grid_type==1) call gnomonic_dist(im, lon, lat)
  if(grid_type==2) call gnomonic_angl(im, lon, lat)


  if(grid_type<3) then
     call symm_ed(im, lon, lat)
     do j=1,im+1
        do i=1,im+1
           lon(i,j) = lon(i,j) - pi
        enddo
     enddo
!    call van2_init(lon, lat, im+1, im+1)
  endif

!   gnomonic_grid = .true.
  
 end subroutine gnomonic_grids