MISR Toolkit  1.5.1
MtkLSToLatLonAry.c
Go to the documentation of this file.
1 /*===========================================================================
2 = =
3 = MtkLSToLatLonAry =
4 = =
5 =============================================================================
6 
7  Jet Propulsion Laboratory
8  MISR
9  MISR Toolkit
10 
11  Copyright 2005, California Institute of Technology.
12  ALL RIGHTS RESERVED.
13  U.S. Government Sponsorship acknowledged.
14 
15 ============================================================================*/
16 
17 #include "MisrMapQuery.h"
18 #include "MisrError.h"
19 
39  MTKt_MapInfo mapinfo,
40  int nelement,
41  const float *line,
42  const float *sample,
43  double *lat_dd,
44  double *lon_dd )
45 {
46  MTKt_status status_code; /* Return status of this function */
47  MTKt_status status; /* Return status */
48  int i; /* Loop index */
49 
50  if (line == NULL || sample == NULL || lat_dd == NULL || lon_dd == NULL)
52 
53  if (nelement < 0)
55 
56  status_code = MTK_SUCCESS;
57 
58  for (i = 0; i < nelement; i++) {
59  status = MtkLSToLatLon(mapinfo, line[i], sample[i], &lat_dd[i], &lon_dd[i]);
60  if (status) status_code = status;
61  }
62 
63  return status_code;
64 
65 ERROR_HANDLE:
66  return status_code;
67 }
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.
Definition: MtkLSToLatLon.c:33
#define MTK_ERR_CODE_JUMP(code)
Definition: MisrError.h:175
Map Information.
Definition: MisrMapQuery.h:65
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
Definition: MisrError.h:11

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