MISR Toolkit  1.5.1
Functions
MtkSomXYToBlsAry.c File Reference
#include "MisrCoordQuery.h"
#include "MisrError.h"
#include "misrproj.h"

Go to the source code of this file.

Functions

MTKt_status MtkSomXYToBlsAry (int path, int resolution_meters, int nelement, const double *som_x, const double *som_y, int *block, float *line, float *sample)
 Convert array of SOM X, SOM Y to array of block, line, sample. More...
 

Function Documentation

◆ MtkSomXYToBlsAry()

MTKt_status MtkSomXYToBlsAry ( int  path,
int  resolution_meters,
int  nelement,
const double *  som_x,
const double *  som_y,
int *  block,
float *  line,
float *  sample 
)

Convert array of SOM X, SOM Y to array of block, line, sample.

Returns
MTK_SUCCESS if successful.
Example:
In this example, we convert an array of SOM X and SOM Y values for path 1 at 1100 meter resolution to block, line, sample.
double som_x[2] = {10529200.016621, 10811900.026208};
double som_y[2] = {622600.018066, 623700.037609};
int block[2];
float line[2];
float sample[2];
status = MtkSomXYToBlsAry(1, 1100, 2, som_x, som_y, block, line, sample);
Parameters
[in]pathPath
[in]resolution_metersResolution
[in]nelementNumber of elements
[in]som_xSOM X
[in]som_ySOM Y
[out]blockBlock
[out]lineLine
[out]sampleSample

Definition at line 39 of file MtkSomXYToBlsAry.c.


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