Performs spatial interpolation between grids using inverse-distance-weighted scheme.
mpp_mod
fms_mod
constants_mod
horiz_interp_type_mod
call horiz_interp_spherical_init (Interp, lon_in,lat_in,lon_out,lat_out, num_nbrs, max_dist, src_modulo)
lon_in | Longitude (in radians) for source data grid. [real, dimension(:,:)] |
lat_in | Latitude (in radians) for source data grid. [real, dimension(:,:)] |
lon_out | Longitude (in radians) for source data grid. [real, dimension(:,:)] |
lat_out | Latitude (in radians) for source data grid. [real, dimension(:,:)] |
num_nbrs | Number of nearest neighbors for regridding. When number of neighbors within
the radius max_dist ( namelist variable) is less than num_nbrs, All the neighbors
will be used to interpolate onto destination grid. when number of neighbors within
the radius max_dist ( namelist variable) is greater than num_nbrs, at least "num_nbrs"
neighbors will be used to remap onto destination grid. [integer, optional] |
max_dist | Maximum region of influence around destination grid points. [real, optional] |
src_modulo | logical variable to indicate if the boundary condition along zonal boundary
is cyclic or not. When true, the zonal boundary condition is cyclic. [logical, optional] |
Interp | A derived-type variable containing indices and weights used for subsequent
interpolations. To reinitialize this variable for a different grid-to-grid
interpolation you must first use the "horiz_interp_end" interface. [type(horiz_interp_type)] |
call horiz_interp_spherical ( Interp, data_in, data_out, verbose, mask_in, mask_out, missing_value)
Interp | Derived-type variable containing interpolation indices and weights.
Returned by a previous call to horiz_interp_init. [type(horiz_interp_type)] |
data_in | Input data on source grid. [real, dimension(:,:)] |
verbose | flag for the amount of print output.
verbose = 0, no output; = 1, min,max,means; = 2, still more [integer, optional] |
mask_in | Input mask, must be the same size as the input data. The real value of
mask_in must be in the range (0.,1.). Set mask_in=0.0 for data points
that should not be used or have missing data. [real, dimension(:,:),optional] |
missing_value | Use the missing_value to indicate missing data. [real, optional] |
data_out | Output data on destination grid. [real, dimension(:,:)] |
mask_out | Output mask that specifies whether data was computed. [real, dimension(:,:),optional] |
call horiz_interp_spherical_end ( Interp )
Interp | A derived-type variable returned by previous call
to horiz_interp_init. The input variable must have
allocated arrays. The returned variable will contain
deallocated arrays. [horiz_interp_type] |