21 #include "gctp_prototypes.h" 56 int (*inv_trans[
MAXPROJ+1])(double, double,
double*,
double*);
58 if (som_x == NULL || som_y == NULL || lat_dd == NULL || lon_dd == NULL)
68 NULL, NULL, &iflg, inv_trans);
72 for (i = 0; i < nelement; i++) {
73 iflg =
sominv(som_x[i], som_y[i], &lon_r, &lat_r);
MISR Projection Parameters.
#define MTK_ERR_CODE_JUMP(code)
int sominv(double y, double x, double *lon, double *lat)
MTKt_status MtkPathToProjParam(int path, int resolution_meters, MTKt_MisrProjParam *pp)
Get projection parameters.
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.
#define MTK_ERR_COND_JUMP(code)
MTKt_status MtkRadToDd(double rad, double *dd)
Convert radians to decimal degrees.
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 *))