FMS  2024.03
Flexible Modeling System
horiz_interp_type_mod

define derived data type that contains indices and weights used for subsequent interpolations. More...

Data Types

interface  assignment(=)
 
type  horiz_interp_type
 Holds data pointers and metadata for horizontal interpolations, passed between the horiz_interp modules. More...
 
interface  stats
 

Functions/Subroutines

subroutine horiz_interp_type_eq (horiz_interp_out, horiz_interp_in)
 horiz_interp_type_eq creates a copy of the horiz_interp_type object More...
 
subroutine stats_ (dat, low, high, avg, miss, missing_value, mask)
 

Detailed Description

define derived data type that contains indices and weights used for subsequent interpolations.

This statistics is for bilinear interpolation and spherical regrid.

Author
Zhi Liang

Data Type Documentation

◆ horiz_interp_type_mod::assignment(=)

interface horiz_interp_type_mod::assignment(=)

Definition at line 50 of file horiz_interp_type.F90.

Private Member Functions

subroutine horiz_interp_type_eq (horiz_interp_out, horiz_interp_in)
 horiz_interp_type_eq creates a copy of the horiz_interp_type object More...
 

Member Function/Subroutine Documentation

◆ horiz_interp_type_eq()

subroutine horiz_interp_type_eq ( type(horiz_interp_type), intent(inout)  horiz_interp_out,
type(horiz_interp_type), intent(in)  horiz_interp_in 
)
private

horiz_interp_type_eq creates a copy of the horiz_interp_type object

Parameters
[in,out]horiz_interp_outOutput object being set
[in]horiz_interp_inInput object being copied

Definition at line 159 of file horiz_interp_type.F90.

◆ horiz_interp_type_mod::horiz_interp_type

type horiz_interp_type_mod::horiz_interp_type

Holds data pointers and metadata for horizontal interpolations, passed between the horiz_interp modules.

Definition at line 117 of file horiz_interp_type.F90.

Collaboration diagram for horiz_interp_type:
[legend]

Private Attributes

logical, dimension(:,:), allocatable found_neighbors
 indicate whether destination grid has some source grid around it.
 
type(horizinterpreals4_typehorizinterpreals4_type
 derived type holding kind 4 real data pointers if compiled with r8_kind
 
type(horizinterpreals8_typehorizinterpreals8_type
 derived type holding kind 8 real data pointers if compiled with r8_kind
 
logical i_am_initialized =.false.
 
integer, dimension(:), allocatable i_dst
 indices in destination grid.
 
integer, dimension(:,:,:), allocatable i_lon
 indices for bilinear interpolation and spherical regrid
 
integer, dimension(:), allocatable i_src
 indices in source grid.
 
integer, dimension(:,:), allocatable ilon
 indices for conservative scheme
 
integer interp_method
 interpolation method. =1, conservative scheme =2, bilinear interpolation =3, spherical regrid =4, bicubic regrid
 
integer, dimension(:), allocatable j_dst
 indices in destination grid.
 
integer, dimension(:,:,:), allocatable j_lat
 indices for bilinear interpolation and spherical regrid
 
integer, dimension(:), allocatable j_src
 indices in source grid.
 
integer, dimension(:,:), allocatable jlat
 indices for conservative scheme wti ist used for derivative "weights" in bicubic
 
integer nlat_dst
 size of destination grid
 
integer nlat_src
 size of source grid
 
integer nlon_dst
 size of destination grid
 
integer nlon_src
 size of source grid
 
integer, dimension(:,:), allocatable num_found
 
integer nxgrid
 number of exchange grid between src and dst grid.
 
integer version
 indicate conservative interpolation version with value 1 or 2
 

◆ horiz_interp_type_mod::stats

interface horiz_interp_type_mod::stats

Definition at line 55 of file horiz_interp_type.F90.

Private Member Functions

 stats_r4
 
 stats_r8
 

Function/Subroutine Documentation

◆ horiz_interp_type_eq()

subroutine horiz_interp_type_mod::horiz_interp_type_eq ( type(horiz_interp_type), intent(inout)  horiz_interp_out,
type(horiz_interp_type), intent(in)  horiz_interp_in 
)
private

horiz_interp_type_eq creates a copy of the horiz_interp_type object

Parameters
[in,out]horiz_interp_outOutput object being set
[in]horiz_interp_inInput object being copied

Definition at line 159 of file horiz_interp_type.F90.