MISR Toolkit  1.5.1
Functions
MtkLatLonToLSAry.c File Reference
#include "MisrMapQuery.h"
#include "MisrCoordQuery.h"
#include "MisrUnitConv.h"
#include "MisrError.h"
#include "proj.h"
#include "gctp_prototypes.h"
#include "math.h"

Go to the source code of this file.

Functions

MTKt_status MtkLatLonToLSAry (MTKt_MapInfo mapinfo, int nelement, const double *lat_dd, const double *lon_dd, float *line, float *sample)
 Convert array of decimal degrees latitude and longitude to array of line, sample. More...
 

Function Documentation

◆ MtkLatLonToLSAry()

MTKt_status MtkLatLonToLSAry ( MTKt_MapInfo  mapinfo,
int  nelement,
const double *  lat_dd,
const double *  lon_dd,
float *  line,
float *  sample 
)

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

Returns
MTK_SUCCESS if successful.
Example:
In this example, we convert an array of latitude and longitude to line, sample.
double lat_dd[2] = {44.322089, 45.0};
dobule lon_dd[2] = {-112.00821, -113.0};
float line[2];
float sample[2];
status = MtkLatLonToLSAry(mapinfo, 2, lat_dd, lon_dd, line, sample);
Parameters
[in]mapinfoMap Info
[in]nelementNumber of elements
[in]lat_ddLatitude
[in]lon_ddLongitude
[out]lineLine
[out]sampleSample

Definition at line 43 of file MtkLatLonToLSAry.c.


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