17 #ifndef MISRCOORDQUERY_H 18 #define MISRCOORDQUERY_H 35 #define MTKT_GEOBLOCK_INIT { -1, MTKT_GEOCOORD_INIT, \ 36 MTKT_GEOCOORD_INIT, MTKT_GEOCOORD_INIT, \ 37 MTKT_GEOCOORD_INIT, MTKT_GEOCOORD_INIT } 47 #define MTKT_BLOCKCORNERS_INIT { 0, 0, 0, { MTKT_GEOBLOCK_INIT }} 51 int resolution_meters,
81 int resolution_meters,
89 int resolution_meters,
98 int resolution_meters,
106 int resolution_meters,
115 int resolution_meters,
123 int resolution_meters,
125 const double *lat_dd,
126 const double *lon_dd,
132 int resolution_meters,
140 int resolution_meters,
161 const double *inparm,
166 int (*inv_trans[])(
double,
double,
double*,
double*));
170 const double *outparm,
175 int (*for_trans[])(
double,
double,
double *,
double *));
177 extern int sominv(
double y,
182 extern int somfor(
double lon,
MTKt_status MtkBlsToLatLon(int path, int resolution_meters, int block, float line, float sample, double *lat_dd, double *lon_dd)
Convert from Block, Line, Sample, to Latitude and Longitude in decimal degrees.
MTKt_status MtkLatLonToBls(int path, int resolution_meters, double lat_dd, double lon_dd, int *block, float *line, float *sample)
Convert decimal degrees latitude and longitude to block, line, sample.
MTKt_status MtkPathBlockRangeToBlockCorners(int path, int start_block, int end_block, MTKt_BlockCorners *block_corners)
Compute block corner coordinates in decimal degrees of latitude and longitude for a given path and bl...
MISR Projection Parameters.
MTKt_status MtkSomXYToBls(int path, int resolution_meters, double som_x, double som_y, int *block, float *line, float *sample)
Convert SOM X, SOM Y to block, line, sample.
MTKt_status MtkSomXYToLatLon(int path, double som_x, double som_y, double *lat_dd, double *lon_dd)
Convert SOM X, SOM Y to decimal degrees latitude and longitude.
MTKt_status MtkSomXYToBlsAry(int path, int resolution_meters, int nelement, const double *som_x, const double *som_y, int *block, float *line, float *sample)
Convert array of SOM X, SOM Y to array of block, line, sample.
MTKt_status MtkBlsToSomXYAry(int path, int resolution_meters, int nelement, const int *block, const float *line, const float *sample, double *som_x, double *som_y)
Convert array from Block, Line, Sample, to SOM Coordinates.
MTKt_status MtkLatLonToBlsAry(int path, int resolution_meters, int nelement, const double *lat_dd, const double *lon_dd, int *block, float *line, float *sample)
Convert array of decimal degrees latitude and longitude to array of block, line, sample.
int sominv(double y, double x, double *lon, double *lat)
Geographic Block Coordinates.
MTKt_status MtkPathToProjParam(int path, int resolution_meters, MTKt_MisrProjParam *pp)
Get projection parameters.
MTKt_status MtkLatLonToSomXYAry(int path, int nelement, const double *lat_dd, const double *lon_dd, double *som_x, double *som_y)
Convert array of decimal degrees latitude and longitude to array of SOM X, SOM Y. ...
MTKt_status MtkSomXYToLatLonAry(int path, int nelement, const double *som_x, const double *som_y, double *lat_dd, double *lon_dd)
Convert array of SOM X, SOM Y to array of latitude, longitude.
int for_init(int outsys, int outzone, const double *outparm, int outdatum, char *fn27, char *fn83, int *iflg, int(*for_trans[])(double, double, double *, double *))
MTKt_status MtkBlsToSomXY(int path, int resolution_meters, int block, float line, float sample, double *som_x, double *som_y)
Convert from Block, Line, Sample, to SOM Coordinates.
MTKt_status MtkBlsToLatLonAry(int path, int resolution_meters, int nelement, const int *block, const float *line, const float *sample, double *lat_dd, double *lon_dd)
Convert array from Block, Line, Sample, to Latitude and Longitude.
MTKt_status MtkPixelTime(MTKt_TimeMetaData time_metadata, double som_x, double som_y, char pixel_time[MTKd_DATETIME_LEN])
Given SOM Coordinates compute pixel time.
int somfor(double lon, double lat, double *y, double *x)
int inv_init(int insys, int inzone, const double *inparm, int indatum, char *fn27, char *fn83, int *iflg, int(*inv_trans[])(double, double, double *, double *))
#define MTKd_DATETIME_LEN
MTKt_status MtkLatLonToSomXY(int path, double lat_dd, double lon_dd, double *som_x, double *som_y)
Convert decimal degrees latitude and longitude to SOM X, SOM Y.