global_cycle  1.13.0
utils Module Reference

Module containing utility routines. More...

Functions/Subroutines

subroutine, public remap_coef (is, ie, js, je, im, jm, lon, lat, id1, id2, jdc, s2c, agrid)
 Generate the weights and index of the grids used in the bilinear interpolation. More...
 

Detailed Description

Module containing utility routines.

Author
George Gayno NOAA/EMC

Function/Subroutine Documentation

◆ remap_coef()

subroutine, public utils::remap_coef ( integer, intent(in)  is,
integer, intent(in)  ie,
integer, intent(in)  js,
integer, intent(in)  je,
integer, intent(in)  im,
integer, intent(in)  jm,
real, dimension(im), intent(in)  lon,
real, dimension(jm), intent(in)  lat,
integer, dimension(is:ie,js:je), intent(out)  id1,
integer, dimension(is:ie,js:je), intent(out)  id2,
integer, dimension(is:ie,js:je), intent(out)  jdc,
real, dimension(is:ie,js:je,4), intent(out)  s2c,
real, dimension(is:ie,js:je,2), intent(in)  agrid 
)

Generate the weights and index of the grids used in the bilinear interpolation.

This routine was taken from the forecast model - ./atmos_cubed_sphere/tools/fv_treat_da_inc.f90.

Parameters
[in]isStart index in x-direction of the source array.
[in]ieEnd index in x-direction of the source array.
[in]jsStart index in y-direction of the source array.
[in]jeEnd index in y-direction of the source array.
[in]imx-dimension of the source array.
[in]jmy-dimension of the source array.
[in]lon1-d array of longitudes (in radians).
[in]lat1-d array of latitudes (in radians).
[in]agrid2-d array for lon [agrid(:,:,1)] & lat [agrid(:,:,2)] (in radians).
[out]s2cBi-linear interpolation weights of the four nearby grids of the source array.
[out]id1Index 1 in x-direction of the nearby grids of the source array.
[out]id2Index 2 in x-direction of the nearby grids of the source array.
[out]jdcIndex in y-direction of the nearby grid of the source array.
Author
Xu Li

Definition at line 40 of file utils.F90.

Referenced by adjust_nsst(), land_increments::gaussian_to_fv3_interp(), and intp_tile().