MISR Toolkit  1.5.1
Functions
MtkLatLonToBlsAry.c File Reference
#include "MisrCoordQuery.h"
#include "MisrError.h"
#include "proj.h"

Go to the source code of this file.

Functions

MTKt_status MtkLatLonToBlsAry (int path, int resolution_meters, int nelement, const double *lat_dd, const double *lon_dd, int *block, float *line, float *sample)
 Convert array of decimal degrees latitude and longitude to array of block, line, sample. More...
 

Function Documentation

◆ MtkLatLonToBlsAry()

MTKt_status MtkLatLonToBlsAry ( int  path,
int  resolution_meters,
int  nelement,
const double *  lat_dd,
const double *  lon_dd,
int *  block,
float *  line,
float *  sample 
)

Convert array of decimal degrees latitude and longitude to array of block, line, sample.

Returns
MTK_SUCCESS if successful.
Example:
In this example, we convert an array of latitude and longitude values for path 1 at 1100 meter resolution to block, line, sample.
double lat_dd[2] = {82.740690, 81.057280};
double lon_dd[2] = {-3.310459, -16.810591};
int block[2];
float line[2];
float sample[2];
status = MtkLatLonToBlsAry(1, 1100, 2, lat_dd, lon_dd, block, line, sample);
Parameters
[in]pathPath
[in]resolution_metersResolution
[in]nelementNumber of elements
[in]lat_ddLatitude
[in]lon_ddLongitude
[out]blockBlock number
[out]lineLine
[out]sampleSample

Definition at line 40 of file MtkLatLonToBlsAry.c.


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