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

Go to the source code of this file.

Functions

MTKt_status MtkRegressionCoeffAllocate (int nline, int nsample, MTKt_RegressionCoeff *regressbuf)
 Allocate buffer to contain regression coefficients. More...
 

Function Documentation

◆ MtkRegressionCoeffAllocate()

MTKt_status MtkRegressionCoeffAllocate ( int  nline,
int  nsample,
MTKt_RegressionCoeff regressbuf 
)

Allocate buffer to contain regression coefficients.

Returns
MTK_SUCCESS if successful.
Example:
In this example, we allocate a buffer with a size of 5 lines by 10 samples of type MTKe_int16
status = MtkRegressionCoeffAllocate(5, 10, &regressbuf);
Note
The caller is responsible for using MtkRegressionCoeffFree() to free the memory used by regressbuf
Parameters
[in]nlineNumber of lines
[in]nsampleNumber of samples
[out]regressbufData Buffer

Definition at line 36 of file MtkRegressionCoeffAllocate.c.


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