MISR Toolkit  1.5.1
Functions
MtkCreateLatLon.c File Reference
#include "MisrReadData.h"
#include "MisrProjParam.h"
#include "MisrMapQuery.h"
#include "MisrCoordQuery.h"
#include "MisrUtil.h"
#include "MisrError.h"

Go to the source code of this file.

Functions

MTKt_status MtkCreateLatLon (MTKt_MapInfo mapinfo, MTKt_DataBuffer *latbuf, MTKt_DataBuffer *lonbuf)
 Creates a 2-D latitude buffer and a 2-D longitude buffer in decimal degrees corresponding to the data plane described by the mapinfo argument given a mapinfo structure. More...
 

Function Documentation

◆ MtkCreateLatLon()

MTKt_status MtkCreateLatLon ( MTKt_MapInfo  mapinfo,
MTKt_DataBuffer latbuf,
MTKt_DataBuffer lonbuf 
)

Creates a 2-D latitude buffer and a 2-D longitude buffer in decimal degrees corresponding to the data plane described by the mapinfo argument given a mapinfo structure.

Returns
MTK_SUCCESS if successful.
Example:
In this example, we define a region centered at lat 35.0, lon -115.0 with a lat extent of 110.0km and lon extent 110.0km. We then read the Regional Best Estimate Spectral Optical Depth and create the corresponding latutide and longitude buffers for this dataplane described by mapinfo. This routine computes the latitude and longitude for every pixel in the dataplane for which there is MISR data. It does not preclude the use of the MapQuery routines MtkLSToLatLon or MtkLatLonToLS that compute latitude and longitude. In fact this routine makes use of those routines.
status = MtkSetRegionByLatLonExtent(35.0, -115.0, 110.0, 110.0, "km", &region);
status = MtkReadData("MISR_AM1_AS_AEROSOL_P037_O029058_F09_0017.hdf", "RegParamsAer", "RegBestEstimateSpectralOptDepth",
region, &databuf, &mapinfo);
status = MtkCreateLatLon(mapinfo, &latbuf, &lonbuf);
Note
The caller is responsible for using MtkDataBufferFree() to free the memory used by databuf, latbuf and lonbuf
Parameters
[in]mapinfoMapinfo
[out]latbufLatitude data buffer
[out]lonbufLongitue data buffer

Definition at line 48 of file MtkCreateLatLon.c.


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