) |
>>> r = MtkRegion()
path, start_block, end_block) |
>>> r = MtkRegion(37, 50, 60)
ulc_lat, ulc_lon, lrc_lat, lrc_lon) |
>>> r = MtkRegion(40.0, -120.0, 30.0, -110.0)
ctr_lat, ctr_lon, lat_extent, lon_extent, extent_units) |
The extent_units argument is a case insensitive string that can be set to one of the following values:
1. "degrees", "deg", "dd" for degrees;
2. "meters", "m" for meters;
3. "kilometers", "km" for kilometers; and
4. "275m", "275 meters", "1.1km", "1.1 kilometers" for pixels of a specified resolution per pixel.
>>> r = MtkRegion(35.0, -115.0, 1.5, 2.0, "deg") >>> r = MtkRegion(35.0, -115.0, 5000.0, 8000.0, "m") >>> r = MtkRegion(35.0, -115.0, 2.2, 1.1, "km") >>> r = MtkRegion(35.0, -115.0, 45.0, 100.0, "275m") >>> r = MtkRegion(35.0, -115.0, 35.0, 25.0, "1.1km")
path, ulc_som_x, ulc_som_y, lrc_som_x, lrc_som_y) |
>>> r = MtkRegion(27, 15600000.0, -300.0, 16800000.0, 2000.0)
path) |
>>> r.block_range(37) (59, 67)
>>> r.center (35.0, -115.0)
>>> r.extent (1113195.4314, 1113195.4314)
>>> r.path_list [33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45]
path, resolution) |
>>> r.snap_to_grid(37, 1100) <MisrToolkit.MtkMapInfo object at 0x1897a00>