17 #ifndef MISRMAPQUERY_H 18 #define MISRMAPQUERY_H 30 #define MTKT_GEOCOORD_INIT { 0.0, 0.0 } 38 #define MTKT_SOMCOORD_INIT { 0.0, 0.0 } 49 #define MTKT_GEOREGION_INIT { MTKT_GEOCOORD_INIT, MTKT_GEOCOORD_INIT, \ 50 MTKT_GEOCOORD_INIT, MTKT_GEOCOORD_INIT, \ 61 #define MTKT_SOMREGION_INIT { 0, MTKT_SOMCOORD_INIT, MTKT_SOMCOORD_INIT, \ 79 #define MTKT_MAPINFO_INIT { 0, 0, 0, 0, 0, 0, 0, MTK_TRUE, \ 80 MTKT_SOMREGION_INIT, MTKT_GEOREGION_INIT, \ 81 MTKT_MISRPROJPARAM_INIT } 120 #define MTKT_GENERICMAPINFO_INIT { 0, 0, 0, 0, 0, 0, 0, 0, {0,0,0}, {0,0,0}, MTKe_ORIGIN_UL, MTKe_PIX_REG_CENTER } 127 double proj_param[15];
130 #define MTKT_GCTPPROJINFO_INIT { 0, 0, 0, {0,0,0,0,0,0,0,0,0,0,0,0,0,0,0} } 166 const double *lat_dd,
167 const double *lon_dd,
203 double Proj_param[15],
213 const char *Filename,
218 const char *Filename,
MTKt_status MtkGCTPProjInfoRead(const char *Filename, MTKt_GCTPProjInfo *Proj_info)
Initialize a MTKt_GCTPProjInfo structure using data from an external file.
MTKt_PixRegCode pix_reg_code
MTKt_OriginCode
Origin code.
MTKt_OriginCode origin_code
MTKt_status MtkLSToLatLon(MTKt_MapInfo mapinfo, float line, float sample, double *lat_dd, double *lon_dd)
Convert line, sample to decimal degrees latitude and longitude.
MISR Projection Parameters.
GCTP projection information.
MTKt_status MtkLSToSomXY(MTKt_MapInfo mapinfo, float line, float sample, double *som_x, double *som_y)
Convert line, sample to SOM X, SOM Y.
MTKt_status MtkLatLonToLS(MTKt_MapInfo mapinfo, double lat_dd, double lon_dd, float *line, float *sample)
Convert decimal degrees latitude and longitude to line, sample.
MTKt_status MtkChangeMapResolution(const MTKt_MapInfo *Map_info_in, int Resolution, MTKt_MapInfo *Map_info_out)
Change resolution of an MTKt_MapInfo structure.
MTKt_status MtkGCTPProjInfo(int Proj_code, int Sphere_code, int Zone_code, double Proj_param[15], MTKt_GCTPProjInfo *Proj_info)
Initialize a MTKt_GCTPProjInfo structure.
MTKt_PixRegCode
Pixel registration code.
2-dimensional Data Buffer
MTKt_status MtkSomXYToLSAry(MTKt_MapInfo mapinfo, int nelement, const double *som_x, const double *som_y, float *line, float *sample)
Convert array of SOM X, SOM Y to array of line, sample.
MTKt_status MtkGCTPCreateLatLon(const MTKt_GenericMapInfo *Map_info, const MTKt_GCTPProjInfo *Proj_info, MTKt_DataBuffer *Latitude, MTKt_DataBuffer *Longitude)
Create an array of latitude and longitude values corresponding to each pixel in the given map...
MTKt_status MtkSomXYToLS(MTKt_MapInfo mapinfo, double som_x, double som_y, float *line, float *sample)
Convert SOM X, SOM Y to line, sample.
MTKt_status MtkLatLonToLSAry(MTKt_MapInfo mapinfo, int nelement, const double *lat_dd, const double *lon_dd, float *line, float *sample)
Convert array of decimal degrees latitude and longitude to array of line, sample. ...
MTKt_status MtkLSToLatLonAry(MTKt_MapInfo mapinfo, int nelement, const float *line, const float *sample, double *lat_dd, double *lon_dd)
Convert array of line, sample to array of decimal degrees latitude and longitude. ...
MTKt_status MtkGenericMapInfoRead(const char *Filename, MTKt_GenericMapInfo *Map_info)
Initialize a MTKt_GenericMapInfo structure using data from an external file.
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...
MTKt_status MtkLSToSomXYAry(MTKt_MapInfo mapinfo, int nelement, const float *line, const float *sample, double *som_x, double *som_y)
Convert array of line, sample to array of SOM X, SOM Y.
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.