39 type(esmf_regridmethod_flag) :: method
47 print*,
"- INITIALIZE ESMF" 48 call esmf_initialize(rc=rc)
49 if(esmf_logfounderror(rctocheck=rc,msg=esmf_logerr_passthru,line=__line__,file=__file__)) &
52 print*,
"- CALL VMGetGlobal" 53 call esmf_vmgetglobal(vm, rc=rc)
54 if(esmf_logfounderror(rctocheck=rc,msg=esmf_logerr_passthru,line=__line__,file=__file__)) &
58 call esmf_vmget(vm, localpet=localpet, petcount=npets, rc=rc)
59 if(esmf_logfounderror(rctocheck=rc,msg=esmf_logerr_passthru,line=__line__,file=__file__)) &
62 print*,
'- NPETS IS ',npets
63 print*,
'- LOCAL PET ',localpet
84 print*,
'- WILL OUTPUT VEGETATION TYPE FRACTION AND DOMINANT CATEGORY.' 87 print*,
'- WILL OUTPUT DOMINANT VEGETATION TYPE.' 88 method=esmf_regridmethod_nearest_stod
97 method=esmf_regridmethod_bilinear
107 method=esmf_regridmethod_bilinear
118 method=esmf_regridmethod_bilinear
127 method=esmf_regridmethod_bilinear
136 method=esmf_regridmethod_nearest_stod
146 print*,
'- WILL OUTPUT SOIL TYPE FRACTION AND DOMINANT CATEGORY.' 149 print*,
'- WILL OUTPUT DOMINANT SOIL TYPE.' 150 method=esmf_regridmethod_nearest_stod
160 method=esmf_regridmethod_nearest_stod
170 method=esmf_regridmethod_bilinear
180 method=esmf_regridmethod_bilinear
188 print*,
"- CALL ESMF_finalize" 189 call esmf_finalize(endflag=esmf_end_keepmpi, rc=rc)
191 call mpi_finalize(rc)
Set up program execution.
subroutine, public model_grid_cleanup
Model grid cleanup.
subroutine, public define_model_grid(localpet, npets)
Define model grid.
character(len=50), public snowfree_albedo_method
Interpolation method for snowfree albedo.
character(len=500), public input_facsf_file
File containing input fractional coverage data for strong zenith angle dependent albedo.
character(len=500), public input_soil_type_file
File containing input soil type data.
logical, public fract_vegsoil_type
When true, output the percentage of each soil and vegetation type category, and the dominant category...
This module defines the model grid.
character(len=500), public input_snowfree_albedo_file
File containing input snow-free albedo data.
character(len=500), public input_maximum_snow_albedo_file
File containing input maximum snow albedo data.
subroutine, public read_setup_namelist(localpet)
Read program setup namelist.
Read grid specs, date information and land/sea mask for the source data that will be interpolated to ...
subroutine, public define_source_grid(localpet, npets, input_file)
Defines esmf grid object for source grid.
subroutine interp_frac_cats(localpet, input_file)
Read the input source data and interpolate it to the model grid.
subroutine, public source_grid_cleanup
Free up memory associated with this module.
program driver
Reads static surface data on a global lat/lon grid, interpolates the data to the fv3 model grid...
character(len=500), public input_leaf_area_index_file
File containing input leaf area index data.
subroutine, public error_handler(string, rc)
Handle errors.
subroutine interp(localpet, method, input_file)
Read the input source data and interpolate it to the model grid.
character(len=500), public input_vegetation_greenness_file
File containing input vegetation greenness data.
character(len=50), public leaf_area_index_method
Interpolation method for leaf area index.
character(len=500), public input_slope_type_file
File containing input slope type data.
character(len=50), public maximum_snow_albedo_method
Interpolation method for max snow albedo.
character(len=500), public input_soil_color_file
File containing input soil color data.
character(len=500), public input_vegetation_type_file
File containing input vegetation type data.
character(len=500), public input_substrate_temperature_file
File containing input soil substrate temperature data.
character(len=50), public vegetation_greenness_method
Interpolation method for vegetation greenness.