MISR Toolkit  1.5.1
Functions
MtkSomXYToLatLonAry.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 MtkSomXYToLatLonAry (int path, int nelement, const double *som_x, const double *som_y, double *lat_dd, double *lon_dd)
 Convert array of SOM X, SOM Y to array of latitude, longitude. More...
 

Function Documentation

◆ MtkSomXYToLatLonAry()

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

Convert array of SOM X, SOM Y to array of latitude, longitude.

Returns
MTK_SUCCESS if successful.
Example:
In this example, we convert an array of SOM X and SOM Y values for path 1 to latitude and longitude in decimal degrees.
double som_x[2] = {10529200.016621, 10811900.026208};
double som_y[2] = {622600.018066, 623700.037609};
double lat_dd[2];
double lon_dd[2];
status = MtkSomXYToLatLonAry(1, 2, som_x, som_y, lat_dd, lon_dd);
Parameters
[in]pathPath
[in]nelementNumber of elements
[in]som_xSOM X
[in]som_ySOM Y
[out]lat_ddLatitude
[out]lon_ddLongitude

Definition at line 41 of file MtkSomXYToLatLonAry.c.


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