MISR Toolkit  1.5.1
Functions
MtkLatLonToSomXYAry.c File Reference
#include "MisrCoordQuery.h"
#include "MisrUnitConv.h"
#include "MisrError.h"
#include "proj.h"
#include "gctp_prototypes.h"
#include <stddef.h>

Go to the source code of this file.

Functions

MTKt_status MtkLatLonToSomXYAry (int path, int nelement, const double *lat_dd, const double *lon_dd, double *som_x, double *som_y)
 Convert array of decimal degrees latitude and longitude to array of SOM X, SOM Y. More...
 

Function Documentation

◆ MtkLatLonToSomXYAry()

MTKt_status MtkLatLonToSomXYAry ( int  path,
int  nelement,
const double *  lat_dd,
const double *  lon_dd,
double *  som_x,
double *  som_y 
)

Convert array of decimal degrees latitude and longitude to array of SOM X, SOM Y.

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};
double som_x[2];
double som_y[2];
status = MtkLatLonToSomXYAry(1, 1100, 2, lat_dd, lon_dd, som_x, som_y);
Parameters
[in]pathPath
[in]nelementNumber of elements
[in]lat_ddLatitude
[in]lon_ddLongitude
[out]som_xSOM X
[out]som_ySOM Y

Definition at line 42 of file MtkLatLonToSomXYAry.c.


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