 | CIMGAverage2 Method |
Reduce the dimensions in a 2D pager by a factor of 2
Namespace:
GeoEngine.Core.GXNetX
Assembly:
geoengine.core.gxnetx (in geoengine.core.gxnetx.dll) Version: 2024.2.0.25
Syntaxpublic static void Average2(
CGXNETCore gxNetShared,
string grid_in,
string grid_out
)
public static void Average2(
CGXNETCore gxNetShared,
string grid_in,
string grid_out
)
Public Shared Sub Average2 (
gxNetShared As CGXNETCore,
grid_in As String,
grid_out As String
)
Public Shared Sub Average2 (
gxNetShared As CGXNETCore,
grid_in As String,
grid_out As String
)
public:
static void Average2(
CGXNETCore^ gxNetShared,
String^ grid_in,
String^ grid_out
)
public:
static void Average2(
CGXNETCore^ gxNetShared,
String^ grid_in,
String^ grid_out
)
static member Average2 :
gxNetShared : CGXNETCore *
grid_in : string *
grid_out : string -> unit
static member Average2 :
gxNetShared : CGXNETCore *
grid_in : string *
grid_out : string -> unit
Parameters
- gxNetShared
- Type: GeoEngine.Core.GXNetXCGXNETCore
A shared CGXNETCore - grid_in
- Type: SystemString
Name of source Grid - grid_out
- Type: SystemString
Name of output Grid
Remarks
This method is useful for reducing the dimensions in a 2D pager by a factor of 2.
The output pager retains the same origin, but the X and Y spacing is double that of the original. Essentially,
the process removes all the even-indexed rows and columns, while leaving the locations of all the remaining
data points in the "odd" rows and columns unchanged.
The output values at the output data locations are created by performing an average of the original data point and
its valid surrounding data points; what is essentially a 3x3 smoothing filter.
See Also