chgres_cube  1.13.0
All Data Structures Namespaces Files Functions Variables Pages
program_setup.F90 File Reference

Set up program execution. More...

Go to the source code of this file.

Modules

module  program_setup
 This module contains code to read the setup namelist file, handle the varmap file for GRIB2 data, and calculate the soil parameters.
 

Functions/Subroutines

subroutine program_setup::calc_soil_params (num_soil_cats, smlow, smhigh, satdk, maxsmc, bb, satpsi, satdw, refsmc, drysmc, wltsmc)
 Compute soil parameters. More...
 
subroutine, public program_setup::calc_soil_params_driver (localpet)
 Driver routine to compute soil parameters for each soil type. More...
 
subroutine, public program_setup::get_var_cond (var_name, this_miss_var_method, this_miss_var_value, this_field_var_name, loc)
 Search the variable mapping table to find conditions for handling missing variables. More...
 
subroutine, public program_setup::read_setup_namelist (filename)
 Reads program configuration namelist. More...
 
subroutine, public program_setup::read_varmap
 Reads the variable mapping table, which is required for initializing with GRIB2 data. More...
 

Variables

character(len=500), dimension(7), public program_setup::atm_core_files_input_grid = "NULL"
 File names of input atmospheric restart core files. More...
 
character(len=500), dimension(6), public program_setup::atm_files_input_grid = "NULL"
 File names of input atmospheric data. More...
 
character(len=500), dimension(6), public program_setup::atm_tracer_files_input_grid = "NULL"
 File names of input atmospheric restart tracer files. More...
 
character(len=500), public program_setup::atm_weight_file ="NULL"
 File containing pre-computed weights to horizontally interpolate atmospheric fields. More...
 
real, dimension(:), allocatable, public program_setup::bb_target
 Soil 'b' parameter, target grid. More...
 
character(len=20), dimension(:), allocatable, public program_setup::chgres_var_names
 Varmap table variable name as recognized by this program. More...
 
logical, public program_setup::convert_atm = .false.
 Convert atmospheric data when true. More...
 
logical, public program_setup::convert_nst = .false.
 Convert nst data when true. More...
 
logical, public program_setup::convert_sfc = .false.
 Convert sfc data when true. More...
 
character(len=15), public program_setup::cres_target_grid = "NULL"
 Target grid resolution, i.e., C768. More...
 
integer, public program_setup::cycle_day = -999
 Cycle day. More...
 
integer, public program_setup::cycle_hour = -999
 Cycle hour. More...
 
integer, public program_setup::cycle_mon = -999
 Cycle month. More...
 
integer, public program_setup::cycle_year = -999
 Cycle year. More...
 
character(len=500), public program_setup::data_dir_input_grid = "NULL"
 Directory containing input atm or sfc files. More...
 
real, dimension(:), allocatable, public program_setup::drysmc_input
 Air dry soil moisture content input grid. More...
 
real, dimension(:), allocatable, public program_setup::drysmc_target
 Air dry soil moisture content target grid. More...
 
character(len=20), public program_setup::external_model ="GFS"
 The model that the input data is derived from. More...
 
character(len=20), dimension(:), allocatable, public program_setup::field_var_names
 The GRIB2 variable name in the varmap table. More...
 
character(len=500), public program_setup::fix_dir_target_grid = "NULL"
 Directory containing target grid pre-computed fixed data (ex: soil type). More...
 
character(len=500), public program_setup::geogrid_file_input_grid = "NULL"
 Name of "geogrid" file, which contains static surface fields on the input grid. More...
 
character(len=500), public program_setup::grib2_file_input_grid = "NULL"
 REQUIRED. More...
 
integer, public program_setup::halo_blend = 0
 Number of row/cols of blending halo, where model tendencies and lateral boundary tendencies are applied. More...
 
integer, public program_setup::halo_bndy = 0
 Number of row/cols of lateral halo, where pure lateral bndy conditions are applied (regional target grids). More...
 
character(len=25), public program_setup::input_type ="restart"
 Input data type: More...
 
logical, public program_setup::lai_from_climo = .true.
 If false, interpolate leaf area index from the input data to the target grid instead of using data from static data. More...
 
integer, parameter, public program_setup::max_tracers =100
 Maximum number of atmospheric tracers processed. More...
 
real, dimension(:), allocatable, public program_setup::maxsmc_input
 Maximum soil moisture content input grid. More...
 
real, dimension(:), allocatable, public program_setup::maxsmc_target
 Maximum soil moisture content target grid. More...
 
logical, public program_setup::minmax_vgfrc_from_climo = .true.
 If false, interpolate min/max vegetation fraction from the input data to the target grid instead of using data from static data. More...
 
character(len=20), dimension(:), allocatable, public program_setup::missing_var_methods
 Method to replace missing GRIB2 input records. More...
 
real(kind=esmf_kind_r4), dimension(:), allocatable, public program_setup::missing_var_values
 If input GRIB2 record is missing, the variable is set to this value. More...
 
character(len=500), public program_setup::mosaic_file_input_grid = "NULL"
 Input grid mosaic file. More...
 
character(len=500), public program_setup::mosaic_file_target_grid = "NULL"
 Target grid mosaic file. More...
 
integer, public program_setup::nsoill_out = 4
 Number of soil levels desired in the output data. More...
 
character(len=500), public program_setup::nst_files_input_grid = "NULL"
 File name of input nst data. More...
 
integer, public program_setup::num_tracers
 Number of atmospheric tracers to be processed. More...
 
integer, public program_setup::num_tracers_input
 Number of atmospheric tracers in input file. More...
 
character(len=500), public program_setup::orog_dir_input_grid = "NULL"
 Directory containing the input grid orography files. More...
 
character(len=500), public program_setup::orog_dir_target_grid = "NULL"
 Directory containing the target grid orography files. More...
 
character(len=500), dimension(6), public program_setup::orog_files_input_grid = "NULL"
 Input grid orography files. More...
 
character(len=500), dimension(6), public program_setup::orog_files_target_grid = "NULL"
 Target grid orography files. More...
 
logical, dimension(:), allocatable, public program_setup::read_from_input
 When false, variable was not read from GRIB2 input file. More...
 
real, dimension(:), allocatable, public program_setup::refsmc_input
 Reference soil moisture content input grid (onset of soil moisture stress). More...
 
real, dimension(:), allocatable, public program_setup::refsmc_target
 Reference soil moisture content target grid (onset of soil moisture stress). More...
 
integer, public program_setup::regional = 0
 For regional target grids. More...
 
real, dimension(:), allocatable, public program_setup::satpsi_target
 Saturated soil potential, target grid. More...
 
character(len=500), dimension(6), public program_setup::sfc_files_input_grid = "NULL"
 File names containing input surface data. More...
 
logical, public program_setup::sotyp_from_climo = .true.
 If false, interpolate soil type from the input data to the target grid instead of using data from static data. More...
 
logical, public program_setup::tg3_from_soil = .false.
 If false, use lowest level soil temperature for the base soil temperature instead of using data from static data. More...
 
character(len=500), public program_setup::thomp_mp_climo_file = "NULL"
 Path/name to the Thompson MP climatology file. More...
 
character(len=20), dimension(max_tracers), public program_setup::tracers ="NULL"
 Name of each atmos tracer to be processed. More...
 
character(len=20), dimension(max_tracers), public program_setup::tracers_input ="NULL"
 Name of each atmos tracer record in the input file. More...
 
logical, public program_setup::use_thomp_mp_climo =.false.
 When true, read and process Thompson MP climatological tracers. More...
 
character(len=500), public program_setup::varmap_file = "NULL"
 REQUIRED. More...
 
character(len=500), public program_setup::vcoord_file_target_grid = "NULL"
 Vertical coordinate definition file. More...
 
logical, public program_setup::vgfrc_from_climo = .true.
 If false, interpolate vegetation fraction from the input data to the target grid instead of using data from static data. More...
 
logical, public program_setup::vgtyp_from_climo = .true.
 If false, interpolate vegetation type from the input data to the target grid instead of using data from static data. More...
 
logical, public program_setup::wam_cold_start = .false.
 When true, cold start for whole atmosphere model. More...
 
character(len=500), public program_setup::wam_parm_file ="msis21.parm"
 Full path to msis21.parm for WAM initialization. More...
 
real, dimension(:), allocatable, public program_setup::wltsmc_input
 Plant wilting point soil moisture content input grid. More...
 
real, dimension(:), allocatable, public program_setup::wltsmc_target
 Plant wilting point soil moisture content target grid. More...
 

Detailed Description

Set up program execution.

Author
George Gayno NCEP/EMC

Definition in file program_setup.F90.