84 for (l = 0; l < mapinfo.
nline; l++) {
85 for (s = 0; s < mapinfo.
nsample; s++) {
86 lat.
data.
d[l][s] = -200.0;
87 lon.
data.
d[l][s] = -200.0;
97 for (l = 0; l < mapinfo.
pp.
nline; l++) {
98 for (s = 0; s < mapinfo.
pp.
nsample; s++) {
104 if (lp >= 0 && lp < mapinfo.
nline &&
105 sp >= 0 && sp < mapinfo.
nsample) {
107 &(lat.
data.
d[lp][sp]), &(lon.
data.
d[lp][sp]));
MTKt_status MtkDataBufferAllocate(int nline, int nsample, MTKt_DataType datatype, MTKt_DataBuffer *databuf)
Allocate Data Buffer.
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.
2-dimensional Data Buffer
#define MTKT_DATABUFFER_INIT
MTKt_status MtkDataBufferFree(MTKt_DataBuffer *databuf)
Free data buffer.
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 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 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.
#define MTK_ERR_COND_JUMP(code)