NCEPLIBS-g2tmpl  1.12.0
g2sec4_temp11.F90
Go to the documentation of this file.
1 
4 
55 subroutine g2sec4_temp11(icatg,iparm,typ_gen_proc_key,gen_proc_or_mod_key, &
56  hrs_obs_cutoff,min_obs_cutoff,unit_of_time_key, &
57  fcst_time,lvl_type1,scale_fac1,scaled_val1,lvl_type2, &
58  scale_fac2,scaled_val2,type_ens_fcst_key, &
59  perturb_num,num_fcst_ens,year_intvl, &
60  mon_intvl,day_intvl,hour_intvl,min_intvl,sec_intvl, &
61  num_time_range,stat_miss_val,type_of_stat_proc, &
62  type_of_time_inc,stat_unit_time_key, &
63  leng_time_range_stat,stat_unit_time_key_succ, &
64  time_inc_betwn_succ_fld,ipdstmpl11)
65 
67 
68  integer(4),intent(in) :: icatg,iparm,hrs_obs_cutoff,min_obs_cutoff,fcst_time, &
69  scale_fac1,scaled_val1,scale_fac2,scaled_val2
70  integer(4),intent(in) :: year_intvl,mon_intvl,day_intvl,hour_intvl,min_intvl, &
71  sec_intvl,num_time_range,stat_miss_val, &
72  leng_time_range_stat,time_inc_betwn_succ_fld
73  integer(4),intent(in) :: perturb_num, num_fcst_ens
74  !
75  character(len=*),intent(in) :: typ_gen_proc_key,gen_proc_or_mod_key, &
76  unit_of_time_key,lvl_type1,lvl_type2, &
77  type_of_stat_proc,type_of_time_inc, &
78  stat_unit_time_key,stat_unit_time_key_succ, &
79  type_ens_fcst_key
80  !
81  integer(4) :: bckgnd_gen_proc_id ! defined by the center
82  !
83  integer(4),intent(inout) :: ipdstmpl11(32) ! currently works only for n=1
84  ! later on, this will be generalized
85  !
86  !-- local vars
87  integer(4) :: value,ierr
88  !
89  bckgnd_gen_proc_id=0
90  !
91  ipdstmpl11(1) = icatg
92  ipdstmpl11(2) = iparm
93  !
94  call get_g2_typeofgenproc(typ_gen_proc_key,value,ierr)
95  ipdstmpl11(3) = value
96  !
97  ipdstmpl11(4) = bckgnd_gen_proc_id
98  !
99  call get_g2_on388genproc(gen_proc_or_mod_key,value,ierr)
100  ipdstmpl11(5) = value
101  !
102  ipdstmpl11(6) = hrs_obs_cutoff
103  ipdstmpl11(7) = min_obs_cutoff
104  !
105  call get_g2_unitoftimerange(unit_of_time_key,value,ierr)
106  ipdstmpl11(8) = value
107  ipdstmpl11(9) = fcst_time
108  !
109  call get_g2_fixedsurfacetypes(lvl_type1,value,ierr)
110  ipdstmpl11(10) = value
111  ipdstmpl11(11) = scale_fac1
112  ipdstmpl11(12) = scaled_val1
113  !
114  call get_g2_fixedsurfacetypes(lvl_type2,value,ierr)
115  ipdstmpl11(13) = value
116  !
117  ipdstmpl11(14) = scale_fac2
118  ipdstmpl11(15) = scaled_val2
119  !
120  call get_g2_typeofensfcst(type_ens_fcst_key,value,ierr)
121  ipdstmpl11(16) = value
122  !
123  ipdstmpl11(17) = perturb_num
124  ipdstmpl11(18) = num_fcst_ens
125  !
126  ipdstmpl11(19) = year_intvl
127  ipdstmpl11(20) = mon_intvl
128  ipdstmpl11(21) = day_intvl
129  ipdstmpl11(22) = hour_intvl
130  ipdstmpl11(23) = min_intvl
131  ipdstmpl11(24) = sec_intvl
132  !
133  ipdstmpl11(25) = num_time_range ! choose n=1 for this case
134  ipdstmpl11(26) = stat_miss_val ! choose 0 for this case
135  !
136  call get_g2_statprocesstypes(type_of_stat_proc,value,ierr)
137  ipdstmpl11(27) = value ! types_of_stat_proc='accumulation'
138  !
139  call get_g2_typeoftimeintervals(type_of_time_inc,value,ierr)
140  ipdstmpl11(28) = value ! type_of_time_inc='same_start_time_fcst_fcst_time_inc'
141  ! value = 2 (Successive times processed have same start
142  ! time of forecast, forecast time is incremented)
143  !
144  call get_g2_unitoftimerange(stat_unit_time_key,value,ierr)
145  ipdstmpl11(29) = value ! stat_unit_time_key='hour'
146  ! value = 1
147  ipdstmpl11(30) = leng_time_range_stat ! value = 6
148  !
149  call get_g2_unitoftimerange(stat_unit_time_key_succ,value,ierr)
150  ! stat_unit_time_key_succ='missing'
151  ipdstmpl11(31) = value ! value = 255
152  !
153  ipdstmpl11(32) = time_inc_betwn_succ_fld ! value = 0
154  !
155  return
156 end subroutine g2sec4_temp11
subroutine g2sec4_temp11(icatg, iparm, typ_gen_proc_key, gen_proc_or_mod_key, hrs_obs_cutoff, min_obs_cutoff, unit_of_time_key, fcst_time, lvl_type1, scale_fac1, scaled_val1, lvl_type2, scale_fac2, scaled_val2, type_ens_fcst_key, perturb_num, num_fcst_ens, year_intvl, mon_intvl, day_intvl, hour_intvl, min_intvl, sec_intvl, num_time_range, stat_miss_val, type_of_stat_proc, type_of_time_inc, stat_unit_time_key, leng_time_range_stat, stat_unit_time_key_succ, time_inc_betwn_succ_fld, ipdstmpl11)
This subroutine returns the Grib2 Section 4 Template 4.11 list for given keys PDT 4....
Define the variables in the derived data type discipline provided in Section 0.
subroutine get_g2_on388genproc(key, value, ierr)
This subroutine returns the corresponding GRIB1 - PDS Ocet6 data value (Generating process or model) ...
subroutine get_g2_typeofgenproc(key, value, ierr)
This subroutine returns the corresponding GRIB2 - Type of Generating Process value for a given short ...
subroutine get_g2_typeoftimeintervals(key, value, ierr)
This subroutine returns the corresponding GRIB2 - Type of time intervals value for a given short key ...
subroutine get_g2_fixedsurfacetypes(key, value, ierr)
This subroutine returns the corresponding GRIB2 - Fixed Surface Types and Units value for a given sho...
subroutine get_g2_statprocesstypes(key, value, ierr)
This subroutine returns the corresponding GRIB2 - Type of statistica processing value for a given sho...
subroutine get_g2_unitoftimerange(key, value, ierr)
This subroutine returns the corresponding GRIB2 - Indicator of unit of time range value for a given s...
subroutine get_g2_typeofensfcst(key, value, ierr)
This subroutine returns the corresponding GRIB2 type of ensemble forecast value for a given short key...