MISR Toolkit  1.5.1
Functions
MtkApplyRegression.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 MtkApplyRegression (const MTKt_DataBuffer *Source, const MTKt_DataBuffer *Source_mask, const MTKt_MapInfo *Source_map_info, const MTKt_RegressionCoeff *Regression_coeff, const MTKt_MapInfo *Regression_coeff_map_info, MTKt_DataBuffer *Regressed, MTKt_DataBuffer *Regressed_mask)
 Apply regression to given data. Uses MtkResampleCubicConvolution to resample regression coefficients to resolution of the input data. Output data is the same size and resolution as the input data. More...
 

Function Documentation

◆ MtkApplyRegression()

MTKt_status MtkApplyRegression ( const MTKt_DataBuffer Source,
const MTKt_DataBuffer Source_mask,
const MTKt_MapInfo Source_map_info,
const MTKt_RegressionCoeff Regression_coeff,
const MTKt_MapInfo Regression_coeff_map_info,
MTKt_DataBuffer Regressed,
MTKt_DataBuffer Regressed_mask 
)

Apply regression to given data. Uses MtkResampleCubicConvolution to resample regression coefficients to resolution of the input data. Output data is the same size and resolution as the input data.

Returns
MTK_SUCCESS if successful.
Example:
In this example we apply a regression based on the supplied source, source_mask, and source_map_info using regression_coeff and regression_coeff_map_info. The result is regressed and regressed_mask.
status = MtkApplyRegression(&source, &source_mask, &source_map_info, &regression_coeff, &regression_coeff_map_info, &regressed, &regressed_mask);
Note
Parameters
[in]SourceInput data. (float)
[in]Source_maskValid mask for input data. (uint8)
[in]Source_map_infoMap info for input data
[in]Regression_coeffRegression coefficients
[in]Regression_coeff_map_infoMap info for regression coefficients
[out]RegressedOutput data. (float)
[out]Regressed_maskValid mask for output data. (uint8)

Definition at line 36 of file MtkApplyRegression.c.


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