MISR Toolkit  1.5.1
Functions
MtkGenericMapInfo.c File Reference
#include "MisrMapQuery.h"
#include "MisrUtil.h"
#include <stdlib.h>
#include <math.h>

Go to the source code of this file.

Functions

MTKt_status MtkGenericMapInfo (double Min_x, double Min_y, double Resolution_x, double Resolution_y, int Number_pixel_x, int Number_pixel_y, MTKt_OriginCode Origin_code, MTKt_PixRegCode Pix_reg_code, MTKt_GenericMapInfo *Map_info)
 Initialize a MTKt_GenericMapInfo structure. More...
 

Function Documentation

◆ MtkGenericMapInfo()

MTKt_status MtkGenericMapInfo ( double  Min_x,
double  Min_y,
double  Resolution_x,
double  Resolution_y,
int  Number_pixel_x,
int  Number_pixel_y,
MTKt_OriginCode  Origin_code,
MTKt_PixRegCode  Pix_reg_code,
MTKt_GenericMapInfo Map_info 
)

Initialize a MTKt_GenericMapInfo structure.

Min_x and Min_y contains the minimum x,y coordinates at the edge of the map.

Resolution_x is the size of a pixel along the X-axis. Resolution_y is the size of a pixel along the Y-axis.

Number_pixel_x and number_pixel_y specifies the size of the map in pixels along the respective axes.

Origin_code defines the corner of the map at which pixel 0,0 is located. Possible values are: MTKe_ORIGIN_UL - Upper Left (min X, max Y) MTKe_ORIGIN_UR - Upper Right (max X, max Y) MTKe_ORIGIN_LL - Lower Left (min X, min Y) MTKe_ORIGIN_LR - Lower Right (max X, min Y)

Pix_reg_code defines whether a pixel value is related to the corner or center of the corresponding area of that pixel on the map. If the corner is used, then it is always the corner corresponding to the corner of the origin. Possible values are: MTKe_PIX_REG_CENTER - Center MTKe_PIX_REG_CORNER - Corner

Returns
MTK_SUCCESS if successful.
Example:
Note
Parameters
[in]Min_xMinimum X value in map units
[in]Min_yMinimum Y value in map units
[in]Resolution_xSize of a pixel along X-axis, in map units
[in]Resolution_ySize of a pixel along Y-axis, in map units
[in]Number_pixel_xNumber of pixels along X-axis.
[in]Number_pixel_yNumber of pixels along Y-axis.
[in]Origin_codeCorner of the map at which pixel 0,0 is located.
[in]Pix_reg_codeFlag indicating if pixel values correspond to the center or corner of the area of the pixel on the map.
[out]Map_infoMap information.

Definition at line 58 of file MtkGenericMapInfo.c.


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