21 character*200,
public :: afwa_snow_global_file
22 character*200,
public :: afwa_snow_nh_file
23 character*200,
public :: afwa_snow_sh_file
24 character*200,
public :: afwa_lsmask_nh_file
25 character*200,
public :: afwa_lsmask_sh_file
26 character*200,
public :: autosnow_file
27 character*200,
public :: climo_qc_file
29 character*200,
public :: gfs_lpl_file
32 character*200,
public :: model_lat_file
33 character*200,
public :: model_lon_file
34 character*200,
public :: model_lsmask_file
35 character*200,
public :: model_snow_file
36 character*200,
public :: nesdis_lsmask_file
37 character*200,
public :: nesdis_snow_file
39 integer,
public :: grib_century
41 integer,
public :: grib_day
42 integer,
public :: grib_hour
43 integer,
public :: grib_month
44 integer,
public :: grib_year
46 logical,
public :: output_grib2
48 real,
public :: lat_threshold
52 real,
public :: min_snow_depth
53 real,
public :: snow_cvr_threshold
84 integer,
parameter :: iunit=41
87 namelist /source_data/ autosnow_file, &
90 afwa_snow_global_file, &
93 afwa_lsmask_nh_file, &
96 namelist /qc/ climo_qc_file
98 namelist /model_specs/ model_lat_file, &
103 namelist /output_data/ model_snow_file, &
106 namelist /output_grib_time/ grib_year, &
111 namelist /parameters/ lat_threshold, &
116 print*,
"- READ CONFIGURATION NAMELIST"
118 open(iunit, iostat=istat)
122 print*,
'- FATAL ERROR: BAD OPEN ON CONFIG NAMELIST. ISTAT IS ', istat
124 call w3tage(
'SNOW2MDL')
128 read(iunit, nml=source_data, iostat=istat, err=900)
130 read(iunit, nml=qc, iostat=istat, err=900)
132 read(iunit, nml=model_specs, iostat=istat, err=900)
134 read(iunit, nml=output_data, iostat=istat, err=900)
136 read(iunit, nml=output_grib_time, iostat=istat, err=900)
138 read(iunit, nml=parameters, iostat=istat, err=900)
147 grib_century = grib_year / 100
149 grib_year = mod(grib_year,100)
151 if (grib_year == 0)
then
154 grib_century = grib_century + 1
161 print*,
'- FATAL ERROR: BAD READ ON CONFIG NAMELIST. ISTAT IS ', istat
163 call w3tage(
'SNOW2MDL')
This module reads in data from the program's configuration namelist.
subroutine, public read_config_nml
Read namelist control.