MISR Toolkit  1.5.1
Functions
MtkSmoothData.c File Reference
#include "MisrRegression.h"
#include "MisrUtil.h"
#include <stdlib.h>
#include <math.h>

Go to the source code of this file.

Functions

MTKt_status MtkSmoothData (const MTKt_DataBuffer *Data, const MTKt_DataBuffer *Valid_mask, int Width_line, int Width_sample, MTKt_DataBuffer *Data_smoothed)
 Smooth the given array with a boxcar average of the specified width. The algorithm is similar to the IDL smooth routine. Smoothed data is type float. More...
 

Function Documentation

◆ MtkSmoothData()

MTKt_status MtkSmoothData ( const MTKt_DataBuffer Data,
const MTKt_DataBuffer Valid_mask,
int  Width_line,
int  Width_sample,
MTKt_DataBuffer Data_smoothed 
)

Smooth the given array with a boxcar average of the specified width. The algorithm is similar to the IDL smooth routine. Smoothed data is type float.

Returns
MTK_SUCCESS if successful.
Example:
In this example we smooth data with mask valid_mask and smoothing window widths width_line and width_sample. Output is data_smoothed.
status = MtkSmoothData(&data, &valid_mask, width_line, width_sample, &data_smoothed);
Note
Parameters
[in]DataData. (float)
[in]Valid_maskMask inidicating where data is valid. (uint8)
[in]Width_lineWidth of smoothing window along line dimension. Must be and odd number.
[in]Width_sampleWidth of smoothing window along sample dimension. Must be an odd number.
[out]Data_smoothedSmoothed data. (float)

Definition at line 36 of file MtkSmoothData.c.


MISR Toolkit - Copyright © 2005 - 2020 Jet Propulsion Laboratory
Generated on Fri Jun 19 2020 22:49:53