UPP (develop)
Loading...
Searching...
No Matches
SMOOTH.f File Reference

smooth() smooths a meteorological field using Shapiro smoother. More...

Go to the source code of this file.

Functions/Subroutines

subroutine smooth (field, hold, ix, iy, smth)
 smooth() smooths a meteorological field using Shapiro smoother.
 
subroutine smoothc (field, hold, ix, iy, smth)
 smoothc() smooths a meteorological field using Shapiro smoother.
 

Detailed Description

smooth() smooths a meteorological field using Shapiro smoother.

Author
Stan Benjamin FSL/PROFS
Date
1990-06-15
Note
Reference: Shapiro, 1970: "Smoothing, filtering, and boundary effects", REV. GEOPHYS. SP. PHYS., 359-387. This filter is of the type
z(i) = (1-s)z(i) + s(z(i+1)+z(i-1))/2
For a filter which is supposed to damp 2DX waves completely but leave 4DX and longer with little damping, it should be run with 2 passes using SMTH (or s) of 0.5 and -0.5.
Parameters
[in,out]FIELDReal array FIELD(IX,IY) Meteorological field.
Note
FIELD is converted to smoothed meteorological field in this function.
Parameters
[in]HOLDReal array HOLD(IX,2) Holding the value for field.
[in]IXInteger X Coordinates of field.
[in]IYInteger Y Coordinates of field.
[in]SMTHReal Smoothing operator.

Program history log:

Date Programmer Comments
1990-06-15 S. Benjamin Initial
2014-03-03 S. Moorthi Threading and slight cleanup
Author
Stan Benjamin FSL/PROFS
Date
1990-06-15

Definition in file SMOOTH.f.

Function/Subroutine Documentation

◆ smooth()

subroutine smooth ( real, dimension(ix,iy)  field,
real, dimension (ix,2)  hold,
integer  ix,
integer  iy,
real  smth 
)

smooth() smooths a meteorological field using Shapiro smoother.

Parameters
[in,out]FIELDReal array FIELD(IX,IY) Meteorological field.
Note
FIELD is converted to smoothed meteorological field in this function.
Parameters
[in]HOLDReal array HOLD(IX,2) Holding the value for field.
[in]IXInteger X Coordinates of field.
[in]IYInteger Y Coordinates of field.
[in]SMTHReal Smoothing operator.

Definition at line 42 of file SMOOTH.f.

Referenced by mdl2p(), and mdlfld().

◆ smoothc()

subroutine smoothc ( real, dimension(ix,iy)  field,
real, dimension (ix,2)  hold,
integer  ix,
integer  iy,
real  smth 
)

smoothc() smooths a meteorological field using Shapiro smoother.

Author
Stan Benjamin FSL/PROFS
Date
1990-06-15
Note
Reference: Shapiro, 1970: "Smoothing, filtering, and boundary effects", REV. GEOPHYS. SP. PHYS., 359-387. This filter is of the type
z(i) = (1-s)z(i) + s(z(i+1)+z(i-1))/2
For a filter which is supposed to damp 2DX waves completely but leave 4DX and longer with little damping, it should be run with 2 passes using SMTH (or s) of 0.5 and -0.5.
Parameters
[in,out]FIELDReal array FIELD(IX,IY) Meteorological field.
Note
FIELD is converted to smoothed meteorological field in this function.
Parameters
[in]HOLDReal array HOLD(IX,2) Holding the value for field.
[in]IXInteger X Coordinates of field.
[in]IYInteger Y Coordinates of field.
[in]SMTHReal Smoothing operator.

Program history log:

Date Programmer Comments
1985-12-09 S. Benjamin Original version os smooth
2014-03-03 S. Moorthi Threading and slight cleanup
2016-08-08 S. Moorthi Modify for cyclic domain
Author
Stan Benjamin FSL/PROFS
Date
1990-06-15

Definition at line 134 of file SMOOTH.f.

Referenced by mdl2p().