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

Go to the source code of this file.

Functions

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

Function Documentation

◆ MtkLatLonToBls()

MTKt_status MtkLatLonToBls ( int  path,
int  resolution_meters,
double  lat_dd,
double  lon_dd,
int *  block,
float *  line,
float *  sample 
)

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

Returns
MTK_SUCCESS if successful.
Example:
In this example, we convert latitude 82.740690 and longitude -3.310459 for path 1 at 1100 meter resolution to block, line, sample.
status = MtkLatLonToBls(1, 1100, 82.740690, -3.310459, &block, &line, &sample);
Parameters
[in]pathPath
[in]resolution_metersResolution
[in]lat_ddLatitude
[in]lon_ddLongitude
[out]blockBlock number
[out]lineLine
[out]sampleSample

Definition at line 34 of file MtkLatLonToBls.c.


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