diag_grid_mod is a set of procedures to work with the model's global grid to allow regional output.
constants_mod
fms_mod
mpp_mod
mpp_domains_mod
SUBROUTINE diag_grid_init (domain, glo_lat, glo_lon, aglo_lat, aglo_lon)
domain |
The domain to which the grid data corresponds.
[INTEGER] |
glo_lat |
The latitude information for the grid tile.
[REAL, DIMENSION(:,:)] |
glo_lon |
The longitude information for the grid tile.
[REAL, DIMENSION(:,:)] |
aglo_lat |
The latitude information for the a-grid tile.
[REAL, DIMENSION(:,:)] |
aglo_lon |
The longitude information for the a-grid tile.
[REAL, DIMENSION(:,:)] |
SUBROUTINE diag_grid_end ()
SUBROUTINE get_local_indexes (latStart, latEnd, lonStart, lonEnd, istart, iend, jstart, jend)
latStart |
The minimum latitude value defining the region. This value
must be less than latEnd, and be in the range [-90,90]
[REAL] |
latEnd |
The maximum latitude value defining the region. This value
must be greater than latStart, and be in the range [-90,90]
[REAL] |
lonStart |
The western most longitude value defining the region.
Possible ranges are either [-180,180] or [0,360].
[REAL] |
lonEnd |
The eastern most longitude value defining the region.
Possible ranges are either [-180,180] or [0,360].
[REAL] |
istart |
The local start index on the local PE in the 'i' direction.
[INTEGER] |
iend |
The local end index on the local PE in the 'i' direction.
[INTEGER] |
jstart |
The local start index on the local PE in the 'j' direction.
[INTEGER] |
jend |
The local end index on the local PE in the 'j' direction.
[INTEGER] |
SUBROUTINE get_local_indexes2 (lat, lon, iindex, jindex)
lat |
The requested latitude. This value must be in the range [-90,90]
[REAL] |
lon |
The requested longitude.
Possible ranges are either [-180,180] or [0,360].
[REAL] |
iindex |
The local index on the local PE in the 'i' direction.
[INTEGER] |
jindex |
The local index on the local PE in the 'j' direction.
[INTEGER] |
PURE ELEMENTAL REAL FUNCTION gCirDistance (lat1, lon1, lat2, lon2)
lat1 | Latitude of the first point [REAL] |
lon1 | Longitude of the first point [REAL] |
lat2 | Latitude of the second point [REAL] |
lon2 | Longitude of the second point [REAL] |