sfc_climo_gen  1.13.0
search.f90 File Reference

Replace undefined values on the model grid with a valid value at a nearby neighbor. More...

Go to the source code of this file.

Functions/Subroutines

subroutine search (field, mask, idim, jdim, tile, field_name)
 Replace undefined values on the model grid with a valid value at a nearby neighbor. More...
 

Detailed Description

Replace undefined values on the model grid with a valid value at a nearby neighbor.

Author
George Gayno
Date
2018

Definition in file search.f90.

Function/Subroutine Documentation

◆ search()

subroutine search ( real(esmf_kind_r4), dimension(idim,jdim), intent(inout)  field,
integer(esmf_kind_i4), dimension(idim,jdim), intent(in)  mask,
integer, intent(in)  idim,
integer, intent(in)  jdim,
integer, intent(in)  tile,
character(len=*)  field_name 
)

Replace undefined values on the model grid with a valid value at a nearby neighbor.

Undefined values are typically associated with isolated islands where there is no source data. Routine searches a neighborhood with a radius of 100 grid points. If no valid value is found, a default value is used. This routine works for one tile of a cubed sphere grid. It does not consider valid values at adjacent faces. That is a future upgrade.

Parameters
[in,out]field- input: field before missing values are replaced
  • output: field after missing values are replaced
[in]maskfield bitmap. Field defined where mask=1
[in,out]idimi dimension of tile
[in,out]jdimj dimension of tile
[in]tiletile number
[in]field_namefield name
Author
George Gayno
Date
2018

Definition at line 24 of file search.f90.

Referenced by interp().