MISR Toolkit  1.5.1
Functions
MtkTransformCoordinates.c File Reference
#include "MisrReProject.h"
#include "MisrError.h"
#include "MisrUtil.h"

Go to the source code of this file.

Functions

MTKt_status MtkTransformCoordinates (MTKt_MapInfo mapinfo, MTKt_DataBuffer latbuf, MTKt_DataBuffer lonbuf, MTKt_DataBuffer *linebuf, MTKt_DataBuffer *samplebuf)
 Transforms latitude/longitude coordinates into line/sample coordinates for a given mapinfo. More...
 

Function Documentation

◆ MtkTransformCoordinates()

MTKt_status MtkTransformCoordinates ( MTKt_MapInfo  mapinfo,
MTKt_DataBuffer  latbuf,
MTKt_DataBuffer  lonbuf,
MTKt_DataBuffer linebuf,
MTKt_DataBuffer samplebuf 
)

Transforms latitude/longitude coordinates into line/sample coordinates for a given mapinfo.

Returns
MTK_SUCCESS if successful.
Example:
In this example, we tranform latitude and longitude 2-D grid into line and sample represented by the given mapinfo.
status = MtkTransformCoordinates(mapinfo, latbuf, latbuf, &linebuf, &samplebuf);
Note
The caller is responsible for using MtkDataBufferFree() to free the memory used by linebuf and samplebuf
Parameters
[in]mapinfoMapinfo structure
[in]latbufLatitude data buffer
[in]lonbufLongitue data buffer
[out]linebufLine data buffer
[out]samplebufSample data buffer

Definition at line 36 of file MtkTransformCoordinates.c.


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