Provides a set of subroutines for reading grid spec files
This module aims to isolate a casual user from the complexity of grid spec file parsing and to provide a unified interface for access to the grid data. At the same time, it allows the developers of the grid specifications to keep enhancing the internal structure transparently for the users of this module, as long as the interfaces of the module subroutines are preserved.
constants_mod fms_mod mosaic_mod mpp_domains_mod
subroutine get_grid_ntiles(component,ntiles)
component | A name of the component, 'ATM', 'OCN', or 'LND' [character(len=*)] |
ntiles | number of mosaic tiles for the component [integer] |
subroutine get_grid_size(component,nx,ny) subroutine get_grid_size(component,tile,nx,ny)
component | A name of the component: 'ATM', 'OCN', or 'LND' [character(len=*)] |
tile | Number of mosaic tile [integer] |
nx, ny | number of grid cell along respective axis, either for all mosaic tiles,
or for a specified mosaic tile [integer] [integer, dimension(:)] |
subroutine get_grid_cell_centers(component,tile,glon,glat)
component | A name of the component, 'ATM', 'OCN', or 'LND' [character(len=*)] |
tile | Number of mosaic tile [integer] |
glon | longitudes of grid cell centers, degree [real, dimension(:,:)] |
glat | latatitdes of grid cell centers, degree [real, dimension(:,:)] |
subroutine get_grid_cell_vertices(component,tile,glonb,glatb)
component | A name of the component, 'ATM', 'OCN', or 'LND' [character(len=*)] |
tile | Number of mosaic tile [integer] |
glonb | longitudes of grid cell vertices, degree [real, dimension(:,:)] |
glatb | latatitdes of grid cell vertices, degree [real, dimension(:,:)] |
subroutine get_grid_cell_area(component,tile,cellarea)
component | A name of the component, 'ATM', 'OCN', or 'LND' [character(len=*)] |
tile | Number of mosaic tile [integer] |
cellarea | array of grid cell areas, m2 [real, dimension(:,:)] |
subroutine get_grid_comp_area(component,tile,area)
component | A name of the component, 'ATM', 'OCN', or 'LND' [character(len=*)] |
tile | Number of mosaic tile [integer] |
area | array of grid cell areas, m2 [real, dimension(:,:)] |