Go to the source code of this file.
|
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. More...
|
|
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 degrees. More...
|
|
MTKt_status | MtkSetRegionByPathBlockRange (int path_number, int start_block, int end_block, MTKt_Region *region) |
| Select region by path and block range. More...
|
|
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, meters, kilometers, or pixels. More...
|
|
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. More...
|
|
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. More...
|
|
◆ MTKT_EXTENT_INIT
#define MTKT_EXTENT_INIT { 0.0, 0.0 } |
◆ MTKT_GEOCENTER_INIT
◆ MTKT_REGION_INIT
◆ MtkSetRegionByGenericMapInfo()
Create an MtkRegion structure that contains the given map.
- Returns
- MTK_SUCCESS if successful.
- Example:
- Note
- Parameters
-
[in] | Map_info | Map information. |
[in] | Proj_info | Projection information. |
[in] | Path | Orbit path number. |
[out] | Region | Region |
Definition at line 37 of file MtkSetRegionByGenericMapInfo.c.
◆ MtkSetRegionByLatLonExtent()
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, meters, kilometers, or pixels.
The parameter extent_units is a case insensitive string that can be set to one of the following values:
- "degrees", "deg", "dd" for degrees;
- "meters", "m" for meters;
- "kilometers", "km" for kilometers; and
- "275m", "275 meters", "1.1km", "1.1 kilometers" for pixels of a specified resolution per pixel.
- Returns
- MTK_SUCCESS if successful.
- Example 1:
- In this example, we select the region centered at latitude 35.0 and longitude -115.0. With a latitude extent of 1.5 degrees and longitude extent of 2 degrees.
- Example 2:
- In this example, we select the region centered at latitude 35.0 and longitude -115.0. With a latitude extent of 5000 meters and longitude extent of 8000 meters.
- Example 3:
- In this example, we select the region centered at latitude 35.0 and longitude -115.0. With a latitude extent of 2.2km and longitude extent of 1.1km.
- Example 4:
- In this example, we select the region centered at latitude 35.0 and longitude -115.0. With a latitude extent of 45 (275 meter per pixels) and longitude extent of 100 (275 meter per pixels).
- Example 5:
- In this example, we select the region centered at latitude 35.0 and longitude -115.0. With a latitude extent of 35 (1.1 km per pixels) and longitude extent of 25 (1.1 km per pixels).
- Parameters
-
[in] | ctr_lat_dd | Latitude |
[in] | ctr_lon_dd | Longitude |
[in] | lat_extent | Latitude Extent |
[in] | lon_extent | Longitude Extent |
[in] | extent_units | Extent Units (ex. degrees, deg, dd, meters, m, kilometer, km, 275m, 1.1km) |
[out] | region | Region |
Definition at line 77 of file MtkSetRegionByLatLonExtent.c.
◆ MtkSetRegionByPathBlockRange()
MTKt_status MtkSetRegionByPathBlockRange |
( |
int |
path_number, |
|
|
int |
start_block, |
|
|
int |
end_block, |
|
|
MTKt_Region * |
region |
|
) |
| |
Select region by path and block range.
- Returns
- MTK_SUCCESS if successful.
- Example:
- In this example, we select the region on path 39 starting at block 50 and ending at block 60.
- Parameters
-
[in] | path_number | Path |
[in] | start_block | Start Block |
[in] | end_block | End Block |
[out] | region | Region |
Definition at line 37 of file MtkSetRegionByPathBlockRange.c.
◆ MtkSetRegionByPathSomUlcLrc()
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.
- Returns
- MTK_SUCCESS if successful.
- Example:
- In this example, we select the region with upper left SOM X 15600000.0 meters, SOM Y -300.0 meters and lower right SOM X 16800000.0 meters, SOM Y 2000.0 meters for path 27.
- Parameters
-
[in] | path | Path |
[in] | ulc_som_x | Upper left corner SOM X |
[in] | ulc_som_y | Upper left corner SOM Y |
[in] | lrc_som_x | Lower right corner SOM X |
[in] | lrc_som_y | Lower right corner SOM Y |
[out] | region | Region |
Definition at line 37 of file MtkSetRegionByPathSomUlcLrc.c.
◆ MtkSetRegionByUlcLrc()
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 degrees.
- Returns
- MTK_SUCCESS if successful.
- Example:
- In this example, we select the region with upper left latitude 40.0, longitude -120.0 and lower right latitude 30.0, longitude -110.0.
- Parameters
-
[in] | ulc_lat_dd | Upper left corner latitude |
[in] | ulc_lon_dd | Upper left corner longitude |
[in] | lrc_lat_dd | Lower right corner latitude |
[in] | lrc_lon_dd | Lower right corner longitude |
[out] | region | Region |
Definition at line 37 of file MtkSetRegionByUlcLrc.c.
◆ MtkSnapToGrid()
Snap a region to a MISR grid based on path number and resolution.
- Returns
- MTK_SUCCESS if successful.
- Example:
- In this example, we snap a region to a SOM plane for path 37 at resolution 1100 meters.
- Special Note:
- Typically this function is not called directly. Instead use MtkReadData().
- Parameters
-
[in] | Path | Path |
[in] | Resolution | Resolution |
[in] | Region | Region |
[out] | Map_info | Map Info |
Definition at line 40 of file MtkSnapToGrid.c.