emcsfc_snow2mdl  1.8.0
driver.F90
Go to the documentation of this file.
1 
4 
144  program driver
145 
146  use snowdat, only : readnesdis, &
147  readafwa, &
149 
150  use model_grid, only : read_mdl_grid_info, &
152 
153  use snow2mdl, only : interp
154 
155  use program_setup, only : read_config_nml
156 
157  implicit none
158 
159  call w3tagb('SNOW2MDL',2005,350,0000,'NP2')
160 
161  print*,''
162  print*,"***********************"
163  print*,"*** BEGIN EXECUTION ***"
164  print*,"***********************"
165 
166 !-----------------------------------------------------------------------
167 ! get configuration stuff.
168 !-----------------------------------------------------------------------
169 
170  call read_config_nml
171 
172 !-----------------------------------------------------------------------
173 ! read input snow data.
174 !-----------------------------------------------------------------------
175 
176  call readautosnow ! autosnow snow cover data
177 
178  call readnesdis ! nesdis/ims snow cover data
179 
180  call readafwa ! afwa depth data
181 
182 !-----------------------------------------------------------------------
183 ! read information about the model grid to which the
184 ! snow data will be interpolated.
185 !-----------------------------------------------------------------------
186 
187  call read_mdl_grid_info
188 
189 !-----------------------------------------------------------------------
190 ! interpolate the data to the model grid, then write
191 ! it to a grib file.
192 !-----------------------------------------------------------------------
193 
194  call interp
195 
196 !-----------------------------------------------------------------------
197 ! free up memory
198 !-----------------------------------------------------------------------
199 
200  call model_grid_cleanup
201 
202  print*,''
203  print*,'****************************'
204  print*,'**** NORMAL TERMINATION ****'
205  print*,'****************************'
206 
207  call w3tage('SNOW2MDL')
208 
209  stop
210 
211  end program driver
This module reads in data from the program's configuration namelist.
Read in data defining the model grid.
Definition: model_grid.F90:19
Read and qc afwa, nesdis/ims and autosnow snow data.
Definition: snowdat.F90:26
subroutine read_mdl_grid_info
Read mdl grid.
Definition: model_grid.F90:85
program driver
Create a snow cover and snow depth analysis on a nam or global gfs gaussian grid using nesdis/ims sno...
Definition: driver.F90:144
Interpolate snow data to model grid and grib the result.
Definition: snow2mdl.F90:20
subroutine readafwa
Read snow depth data and masks.
Definition: snowdat.F90:532
subroutine model_grid_cleanup
Clean up allocatable arrays.
Definition: model_grid.F90:578
subroutine readnesdis
Read nesdis/ims snow cover/ice data.
Definition: snowdat.F90:223
subroutine readautosnow
Read autosnow snow cover.
Definition: snowdat.F90:118
subroutine, public read_config_nml
Read namelist control.
subroutine, public interp
Interpolate snow data to model grid.
Definition: snow2mdl.F90:158