sfc_climo_gen  1.13.0
 All Data Structures Files Functions Variables Pages
output_frac_cats Module Reference

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

Public Member Functions

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

Definition at line 10 of file output_frac_cats.F90.

Member Function/Subroutine Documentation

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 31 of file output_frac_cats.F90.

References writeit().

Referenced by interp_frac_cats().

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 112 of file output_frac_cats.F90.

References utils::netcdf_err().

Referenced by output_driver().


The documentation for this module was generated from the following file: