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

Go to the source code of this file.

Functions

MTKt_status MtkCreateGeoGrid (double ulc_lat_dd, double ulc_lon_dd, double lrc_lat_dd, double lrc_lon_dd, double lat_cellsize_dd, double lon_cellsize_dd, MTKt_DataBuffer *latbuf, MTKt_DataBuffer *lonbuf)
 Creates a regularly spaced geographic 2-D grid consisting of a latitude buffer and a longitude buffer in decimal degrees, given upper left and lower right latitude/longitude coordinates and latitude/longitude cell size. More...
 

Function Documentation

◆ MtkCreateGeoGrid()

MTKt_status MtkCreateGeoGrid ( double  ulc_lat_dd,
double  ulc_lon_dd,
double  lrc_lat_dd,
double  lrc_lon_dd,
double  lat_cellsize_dd,
double  lon_cellsize_dd,
MTKt_DataBuffer latbuf,
MTKt_DataBuffer lonbuf 
)

Creates a regularly spaced geographic 2-D grid consisting of a latitude buffer and a longitude buffer in decimal degrees, given upper left and lower right latitude/longitude coordinates and latitude/longitude cell size.

Returns
MTK_SUCCESS if successful.
Example:
In this example, we create a regularly spaced geographic 2-D grid of lat/lon spanning the upper left latitude 40.0, longitude -120.0 and lower right latitude 30.0, longitude -110.0 with a cell size of 0.25 degrees in both lat/lon.
status = MtkCreateGeoGrid(40.0, -120.0, 30.0, -110.0, 0.25, 0.25, &latbuf, &lonbuf);
Note
The caller is responsible for using MtkDataBufferFree() to free the memory used by latbuf and lonbuf
Parameters
[in]ulc_lat_ddUpper left corner latitude
[in]ulc_lon_ddUpper left corner longitude
[in]lrc_lat_ddLower right corner latitude
[in]lrc_lon_ddLower right corner longitude
[in]lat_cellsize_ddLatitude cell size in decimal degrees
[in]lon_cellsize_ddLongitude cell size in decimal degrees
[out]latbufLatitude data buffer
[out]lonbufLongitue data buffer

Definition at line 36 of file MtkCreateGeoGrid.c.


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