sfc_climo_gen  1.10.0
output_frac_cats Module Reference

Output categorical data such as vegetation type. More...

Functions/Subroutines

subroutine, public output_driver (data_one_tile, dom_cat_one_tile, lat_one_tile, lon_one_tile, i_mdl, j_mdl, num_categories, tile)
 Driver routine to output model categorical data. More...
 
subroutine writeit (out_file, iout, jout, num_categories, latitude, longitude, data_pct, dominant_cat)
 Write data to a netcdf file. More...
 

Detailed Description

Output categorical data such as vegetation type.

Include percentage of each category within a model grid box and the dominant category.

Author
George Gayno NCEP/EMC
Date
2022

Function/Subroutine Documentation

◆ output_driver()

subroutine, public output_frac_cats::output_driver ( real(esmf_kind_r4), dimension(i_mdl,j_mdl,num_categories), intent(in)  data_one_tile,
real(esmf_kind_r4), dimension(i_mdl,j_mdl), intent(in)  dom_cat_one_tile,
real(esmf_kind_r4), dimension(i_mdl,j_mdl), intent(in)  lat_one_tile,
real(esmf_kind_r4), dimension(i_mdl,j_mdl), intent(in)  lon_one_tile,
integer, intent(in)  i_mdl,
integer, intent(in)  j_mdl,
integer, intent(in)  num_categories,
integer, intent(in)  tile 
)

Driver routine to output model categorical data.

Parameters
[in]data_one_tileThe percentage of each category within a model grid cell.
[in]dom_cat_one_tileThe dominant category within a model grid cell.
[in]lat_one_tileLatitude of each model grid cell.
[in]lon_one_tileLongitude of each model grid cell.
[in]i_mdli dimension of model grid.
[in]j_mdlj dimension of model grid.
[in]num_categoriesNumber of categories.
[in]tileTile number.
Author
George Gayno
Date
2022

Definition at line 33 of file output_frac_cats.F90.

References source_grid::field_names, model_grid::grid_tiles, program_setup::halo, and writeit().

Referenced by interp_frac_cats().

◆ writeit()

subroutine output_frac_cats::writeit ( character(len=*), intent(in)  out_file,
integer, intent(in)  iout,
integer, intent(in)  jout,
integer, intent(in)  num_categories,
real(esmf_kind_r4), dimension(iout,jout), intent(in)  latitude,
real(esmf_kind_r4), dimension(iout,jout), intent(in)  longitude,
real(esmf_kind_r4), dimension(iout,jout,num_categories), intent(in)  data_pct,
real(esmf_kind_r4), dimension(iout,jout), intent(in)  dominant_cat 
)

Write data to a netcdf file.

Parameters
[in]out_fileOutput file name.
[in]iouti-dimension of data.
[in]joutj-dimension of data.
[in]num_categoriesNumber of categories.
[in]latitudeLatitude of data.
[in]longitudeLongitude of data.
[in]data_pctPercentage of each category in each model grid cell.
[in]dominant_catDominant category in each model grid cell.

Definition at line 114 of file output_frac_cats.F90.

References source_grid::day_of_rec, source_grid::field_names, utils::netcdf_err(), source_grid::num_time_recs, and source_grid::source.

Referenced by output_driver().