orog_mask_tools  1.13.0
gsl_oro_data.f90
Go to the documentation of this file.
1 
30 
36 program gsl_oro_data
37 
38 use gsl_oro_data_sm_scale, only: calc_gsl_oro_data_sm_scale
39 use gsl_oro_data_lg_scale, only: calc_gsl_oro_data_lg_scale
40 
41 implicit none
42 
43 
44 character(len=2) :: tile_num ! tile number entered by user
45 character(len=7) :: res_indx ! grid-resolution index, e.g., 96, 192, 384, 768,
46  ! etc. entered by user
47 character(len=4) :: halo ! halo value entered by user (for input grid data)
48 
49 logical :: duplicate_oro_data_file ! flag for whether oro_data_ls file is a duplicate
50  ! of oro_data_ss due to minimum grid size being less than 7.5km
51 
52 
53 
54 ! Read in FV3GFS grid info
55 print *
56 print *, "Enter tile number:"
57 read (5,*) tile_num
58 print *
59 print *, "Enter grid-resolution index:"
60 read (5,*) res_indx
61 print *
62 print *, "Enter halo number (-999 for no halo):"
63 read (5,*) halo
64 print *
65 print *, "Creating tile oro_data for tile number: ", tile_num
66 print *, "Grid resolution = ", res_indx
67 print *, "Halo = ", halo
68 print *
69 
70 
71 call calc_gsl_oro_data_sm_scale(tile_num,res_indx,halo,duplicate_oro_data_file)
72 
73 print *, "duplicate_oro_data_file =", duplicate_oro_data_file
74 print *
75 
76 if ( .not.duplicate_oro_data_file ) then
77  call calc_gsl_oro_data_lg_scale(tile_num,res_indx,halo)
78 end if
79 
80 
81 print *
82 print *, "End program gsl_oro_data"
83 print *
84 
85 
86 end program gsl_oro_data
program gsl_oro_data
Brief description of program: Creates orographic (oro_data) files needed by the GSL drag suite physic...