MISR Toolkit  1.5.1
MisrSetRegion.h
Go to the documentation of this file.
1 /*===========================================================================
2 = =
3 = MisrSetRegion =
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 #ifndef MISRSETREGION_H
18 #define MISRSETREGION_H
19 
20 #include "MisrError.h"
21 #include "MisrProjParam.h"
22 #include "MisrMapQuery.h"
23 
24 
26 typedef struct {
29 
30 #define MTKT_GEOCENTER_INIT { MTKT_GEOCOORD_INIT }
31 
33 typedef struct {
34  double xlat;
35  double ylon;
36 } MTKt_Extent;
37 
38 #define MTKT_EXTENT_INIT { 0.0, 0.0 }
39 
41 typedef struct {
44 } MTKt_Region;
45 
46 #define MTKT_REGION_INIT { MTKT_GEOCENTER_INIT, MTKT_EXTENT_INIT }
47 
48 
49 MTKt_status MtkSnapToGrid( int path,
50  int resolution,
51  MTKt_Region region,
52  MTKt_MapInfo *mapinfo );
53 
54 MTKt_status MtkSetRegionByUlcLrc( double ulc_lat_dd,
55  double ulc_lon_dd,
56  double lrc_lat_dd,
57  double lrc_lon_dd,
58  MTKt_Region *region );
59 
61  int start_block,
62  int end_block,
63  MTKt_Region *region );
64 
65 MTKt_status MtkSetRegionByLatLonExtent( double ctr_lat_dd,
66  double ctr_lon_dd,
67  double lat_extent,
68  double lon_extent,
69  const char *extent_units,
70  MTKt_Region *region );
71 
73  int path,
74  double ulc_som_x,
75  double ulc_som_y,
76  double lrc_som_x,
77  double lrc_som_y,
78  MTKt_Region *region);
79 
81  const MTKt_GenericMapInfo *Map_info,
82  const MTKt_GCTPProjInfo *Proj_info,
83  int Path,
84  MTKt_Region *Region
85  );
86 
87 #endif /* MISRSETREGION_H */
MTKt_status MtkSetRegionByGenericMapInfo(const MTKt_GenericMapInfo *Map_info, const MTKt_GCTPProjInfo *Proj_info, int Path, MTKt_Region *Region)
Create an MtkRegion structure that contains the given map.
Generic map information.
Definition: MisrMapQuery.h:98
MTKt_status MtkSetRegionByPathSomUlcLrc(int path, double ulc_som_x, double ulc_som_y, double lrc_som_x, double lrc_som_y, MTKt_Region *region)
Select region by Path and SOM X/Y of upper left corner and lower right corner in meters.
MTKt_GeoCenter geo
Definition: MisrSetRegion.h:42
GCTP projection information.
Definition: MisrMapQuery.h:123
Map Information.
Definition: MisrMapQuery.h:65
MTKt_GeoCoord ctr
Definition: MisrSetRegion.h:27
Geographic Center.
Definition: MisrSetRegion.h:26
MTKt_Extent hextent
Definition: MisrSetRegion.h:43
MTKt_status MtkSetRegionByUlcLrc(double ulc_lat_dd, double ulc_lon_dd, double lrc_lat_dd, double lrc_lon_dd, MTKt_Region *region)
Select region by latitude and longitude of upper left corner and lower right corner in decimal degree...
MTKt_status MtkSetRegionByLatLonExtent(double ctr_lat_dd, double ctr_lon_dd, double lat_extent, double lon_extent, const char *extent_units, MTKt_Region *region)
Select region by latitude, longitude in decimal degrees, and extent in specified units of degrees...
MTKt_status MtkSnapToGrid(int path, int resolution, MTKt_Region region, MTKt_MapInfo *mapinfo)
Snap a region to a MISR grid based on path number and resolution.
Definition: MtkSnapToGrid.c:40
MTKt_status
Definition: MisrError.h:11
Geographic Extent.
Definition: MisrSetRegion.h:33
Region of interest.
Definition: MisrSetRegion.h:41
Geographic Coordinates.
Definition: MisrMapQuery.h:25
MTKt_status MtkSetRegionByPathBlockRange(int path_number, int start_block, int end_block, MTKt_Region *region)
Select region by path and block range.

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