This file is indexed.

/usr/share/doc/python-pyresample-doc/html/API.html is in python-pyresample-doc 1.1.6-1.

This file is owned by root:root, with mode 0o644.

The actual contents of the file can be viewed below.

   1
   2
   3
   4
   5
   6
   7
   8
   9
  10
  11
  12
  13
  14
  15
  16
  17
  18
  19
  20
  21
  22
  23
  24
  25
  26
  27
  28
  29
  30
  31
  32
  33
  34
  35
  36
  37
  38
  39
  40
  41
  42
  43
  44
  45
  46
  47
  48
  49
  50
  51
  52
  53
  54
  55
  56
  57
  58
  59
  60
  61
  62
  63
  64
  65
  66
  67
  68
  69
  70
  71
  72
  73
  74
  75
  76
  77
  78
  79
  80
  81
  82
  83
  84
  85
  86
  87
  88
  89
  90
  91
  92
  93
  94
  95
  96
  97
  98
  99
 100
 101
 102
 103
 104
 105
 106
 107
 108
 109
 110
 111
 112
 113
 114
 115
 116
 117
 118
 119
 120
 121
 122
 123
 124
 125
 126
 127
 128
 129
 130
 131
 132
 133
 134
 135
 136
 137
 138
 139
 140
 141
 142
 143
 144
 145
 146
 147
 148
 149
 150
 151
 152
 153
 154
 155
 156
 157
 158
 159
 160
 161
 162
 163
 164
 165
 166
 167
 168
 169
 170
 171
 172
 173
 174
 175
 176
 177
 178
 179
 180
 181
 182
 183
 184
 185
 186
 187
 188
 189
 190
 191
 192
 193
 194
 195
 196
 197
 198
 199
 200
 201
 202
 203
 204
 205
 206
 207
 208
 209
 210
 211
 212
 213
 214
 215
 216
 217
 218
 219
 220
 221
 222
 223
 224
 225
 226
 227
 228
 229
 230
 231
 232
 233
 234
 235
 236
 237
 238
 239
 240
 241
 242
 243
 244
 245
 246
 247
 248
 249
 250
 251
 252
 253
 254
 255
 256
 257
 258
 259
 260
 261
 262
 263
 264
 265
 266
 267
 268
 269
 270
 271
 272
 273
 274
 275
 276
 277
 278
 279
 280
 281
 282
 283
 284
 285
 286
 287
 288
 289
 290
 291
 292
 293
 294
 295
 296
 297
 298
 299
 300
 301
 302
 303
 304
 305
 306
 307
 308
 309
 310
 311
 312
 313
 314
 315
 316
 317
 318
 319
 320
 321
 322
 323
 324
 325
 326
 327
 328
 329
 330
 331
 332
 333
 334
 335
 336
 337
 338
 339
 340
 341
 342
 343
 344
 345
 346
 347
 348
 349
 350
 351
 352
 353
 354
 355
 356
 357
 358
 359
 360
 361
 362
 363
 364
 365
 366
 367
 368
 369
 370
 371
 372
 373
 374
 375
 376
 377
 378
 379
 380
 381
 382
 383
 384
 385
 386
 387
 388
 389
 390
 391
 392
 393
 394
 395
 396
 397
 398
 399
 400
 401
 402
 403
 404
 405
 406
 407
 408
 409
 410
 411
 412
 413
 414
 415
 416
 417
 418
 419
 420
 421
 422
 423
 424
 425
 426
 427
 428
 429
 430
 431
 432
 433
 434
 435
 436
 437
 438
 439
 440
 441
 442
 443
 444
 445
 446
 447
 448
 449
 450
 451
 452
 453
 454
 455
 456
 457
 458
 459
 460
 461
 462
 463
 464
 465
 466
 467
 468
 469
 470
 471
 472
 473
 474
 475
 476
 477
 478
 479
 480
 481
 482
 483
 484
 485
 486
 487
 488
 489
 490
 491
 492
 493
 494
 495
 496
 497
 498
 499
 500
 501
 502
 503
 504
 505
 506
 507
 508
 509
 510
 511
 512
 513
 514
 515
 516
 517
 518
 519
 520
 521
 522
 523
 524
 525
 526
 527
 528
 529
 530
 531
 532
 533
 534
 535
 536
 537
 538
 539
 540
 541
 542
 543
 544
 545
 546
 547
 548
 549
 550
 551
 552
 553
 554
 555
 556
 557
 558
 559
 560
 561
 562
 563
 564
 565
 566
 567
 568
 569
 570
 571
 572
 573
 574
 575
 576
 577
 578
 579
 580
 581
 582
 583
 584
 585
 586
 587
 588
 589
 590
 591
 592
 593
 594
 595
 596
 597
 598
 599
 600
 601
 602
 603
 604
 605
 606
 607
 608
 609
 610
 611
 612
 613
 614
 615
 616
 617
 618
 619
 620
 621
 622
 623
 624
 625
 626
 627
 628
 629
 630
 631
 632
 633
 634
 635
 636
 637
 638
 639
 640
 641
 642
 643
 644
 645
 646
 647
 648
 649
 650
 651
 652
 653
 654
 655
 656
 657
 658
 659
 660
 661
 662
 663
 664
 665
 666
 667
 668
 669
 670
 671
 672
 673
 674
 675
 676
 677
 678
 679
 680
 681
 682
 683
 684
 685
 686
 687
 688
 689
 690
 691
 692
 693
 694
 695
 696
 697
 698
 699
 700
 701
 702
 703
 704
 705
 706
 707
 708
 709
 710
 711
 712
 713
 714
 715
 716
 717
 718
 719
 720
 721
 722
 723
 724
 725
 726
 727
 728
 729
 730
 731
 732
 733
 734
 735
 736
 737
 738
 739
 740
 741
 742
 743
 744
 745
 746
 747
 748
 749
 750
 751
 752
 753
 754
 755
 756
 757
 758
 759
 760
 761
 762
 763
 764
 765
 766
 767
 768
 769
 770
 771
 772
 773
 774
 775
 776
 777
 778
 779
 780
 781
 782
 783
 784
 785
 786
 787
 788
 789
 790
 791
 792
 793
 794
 795
 796
 797
 798
 799
 800
 801
 802
 803
 804
 805
 806
 807
 808
 809
 810
 811
 812
 813
 814
 815
 816
 817
 818
 819
 820
 821
 822
 823
 824
 825
 826
 827
 828
 829
 830
 831
 832
 833
 834
 835
 836
 837
 838
 839
 840
 841
 842
 843
 844
 845
 846
 847
 848
 849
 850
 851
 852
 853
 854
 855
 856
 857
 858
 859
 860
 861
 862
 863
 864
 865
 866
 867
 868
 869
 870
 871
 872
 873
 874
 875
 876
 877
 878
 879
 880
 881
 882
 883
 884
 885
 886
 887
 888
 889
 890
 891
 892
 893
 894
 895
 896
 897
 898
 899
 900
 901
 902
 903
 904
 905
 906
 907
 908
 909
 910
 911
 912
 913
 914
 915
 916
 917
 918
 919
 920
 921
 922
 923
 924
 925
 926
 927
 928
 929
 930
 931
 932
 933
 934
 935
 936
 937
 938
 939
 940
 941
 942
 943
 944
 945
 946
 947
 948
 949
 950
 951
 952
 953
 954
 955
 956
 957
 958
 959
 960
 961
 962
 963
 964
 965
 966
 967
 968
 969
 970
 971
 972
 973
 974
 975
 976
 977
 978
 979
 980
 981
 982
 983
 984
 985
 986
 987
 988
 989
 990
 991
 992
 993
 994
 995
 996
 997
 998
 999
1000
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
1013
1014
1015
1016
1017
1018
1019
1020
1021
1022
1023
1024
1025
1026
1027
1028
1029
1030
1031
1032
1033
1034
1035
1036
1037
1038
1039
1040
1041
1042
1043
1044
1045
1046
1047
1048
1049
1050
1051
1052
1053
1054
1055
1056
1057
1058
1059
1060
1061
1062
1063
1064
1065
1066
1067
1068
1069
1070
1071
1072
1073
1074
1075
1076
1077
1078
1079
1080
1081
1082
1083
1084
1085
1086
1087
1088
1089
1090
1091
1092
1093
1094
1095
1096
1097
1098
1099
1100
1101
1102
1103
1104
1105
1106
1107
1108
1109
1110
1111
1112
1113
1114
1115
1116
1117
1118
1119
1120
1121
1122
1123
1124
1125
1126
1127
1128
1129
1130
1131
1132
1133
1134
1135
1136
1137
1138
1139
1140
1141
1142
1143
1144
1145
1146
1147
1148
1149
1150
1151
1152
1153
1154
1155
1156
1157
1158
1159
1160
1161
1162
1163
1164
1165
1166
1167
1168
1169
1170
1171
1172
1173
1174
1175
1176
1177
1178
1179
1180
1181
1182
1183
1184
1185
1186
1187
1188
1189
1190
1191
1192
1193
1194
1195
1196
1197
1198
1199
1200
1201
1202
1203
1204
1205
1206
1207
1208
1209
1210
1211
1212
1213
1214
1215
1216
1217
1218
1219
1220
1221
1222
1223
1224
1225
1226
1227
1228
1229
1230
1231
1232
1233
1234
1235
1236
1237
1238
1239
1240
1241
1242
1243
1244
1245
1246
1247
1248
1249
1250
1251
1252
1253
1254
1255
1256
1257
1258
1259
1260
1261
1262
1263
1264
1265
1266
1267
1268
1269
1270
1271
1272
1273
1274
1275
1276
1277
1278
1279
1280
1281
1282
1283
1284
1285
1286
1287
1288
1289
1290
1291
1292
1293
1294
1295
1296
1297
1298
1299
1300
1301
1302
1303
1304
1305
1306
1307
1308
1309
1310
1311
1312
1313
1314
1315
1316
1317
1318
1319
1320
1321
1322
1323
1324
1325
1326
1327
1328
1329
1330
1331
1332
1333
1334
1335
1336
1337
1338
1339
1340
1341
1342
1343
1344
1345
1346
1347
1348
1349
1350
1351
1352
1353
1354
1355
1356
1357
1358
1359
1360
1361
1362
1363
1364
1365
1366
1367
1368
1369
1370
1371
1372
1373
1374
1375
1376
1377
1378
1379
1380
1381
1382
1383
1384
1385
1386
1387
1388
1389
1390
1391
1392
1393
1394
1395
1396
1397
1398
1399
1400
1401
1402
1403
1404
1405
1406
1407
1408
1409
1410
1411
1412
1413
1414
1415
1416
1417
1418
1419
1420
1421
1422
1423
1424
1425
1426
1427
1428
1429
1430
1431
1432
1433
1434
1435
1436
1437
1438
1439
1440
1441
1442
1443
1444
1445
1446
1447
1448
1449
1450
1451
1452
1453
1454
1455
1456
1457
1458
1459
1460
1461
1462
1463
1464
1465
1466
1467
1468
1469
1470
1471
1472
1473
1474
1475
1476
1477
1478
1479
1480
1481
1482
1483
1484
1485
1486
1487
1488
1489
1490
1491
1492
1493
1494
1495
1496
1497
1498
1499
1500
1501
1502
1503
1504
1505
1506
1507
1508
1509
1510
1511
1512
1513
1514
1515
1516
1517
1518
1519
1520
1521
1522
1523
1524
1525
1526
1527
1528
1529
1530
1531
1532
1533
1534
1535
1536
1537
1538
1539
1540
1541
1542
1543
1544
1545
1546
1547
1548
1549
1550
1551
1552
1553
1554
1555
1556
1557
1558
1559
1560
1561
1562
1563
1564
1565
1566
1567
1568
1569
1570
1571
1572
1573
1574
1575
1576
1577
1578
1579
1580
1581
1582
1583
1584
1585
1586
1587
1588
1589
1590
1591
1592
1593
1594
1595
1596
1597
1598
1599
1600
1601
1602
1603
1604
1605
1606
1607
1608
1609
1610
1611
1612
1613
1614
1615
1616
1617
1618
1619
1620
1621
1622
1623
1624
1625
1626
1627
1628
1629
1630
1631
1632
1633
1634
1635
1636
1637
1638
1639
1640
1641
1642
1643
1644
1645
1646
1647
1648
1649
1650
1651
1652
1653
1654
1655
1656
1657
1658
1659
1660
1661
1662
1663
1664
1665
1666
1667
1668
1669
1670
1671
1672
1673
1674
1675
1676
1677
1678
1679
1680
1681
1682
1683
1684
1685
1686
1687
1688
1689
1690
1691
1692
1693
1694
1695
1696
1697
1698
1699
1700
1701
1702
1703
1704
1705
1706
1707
1708
1709
1710
1711
1712
1713
1714
1715
1716
1717
1718
1719
1720
1721
1722
1723
1724
1725
1726
1727
1728
1729
1730
1731
1732
1733
1734
1735
1736
1737
1738
1739
1740
1741
1742
1743
1744
1745
1746
1747
1748
1749
1750
1751
1752
1753
1754
1755
1756
1757
1758
1759
1760
1761
1762
1763
1764
1765
1766
1767
1768
1769
1770
1771
1772
1773
1774
1775
1776
1777
1778
1779
1780
1781
1782
1783
1784
1785
1786
1787
1788
1789
1790
1791
1792
1793
1794
1795
1796
1797
1798
1799
1800
1801
1802
1803
1804
1805
1806
1807
1808
1809
1810
1811
1812
1813
1814
1815
1816
1817
1818
1819
1820
1821
1822
1823
1824
1825
1826
1827
1828
1829
1830
1831
1832
1833
1834
1835
1836
1837
1838
1839
1840
1841
1842
1843
1844
1845
1846
1847
1848
1849
1850
1851
1852
1853
1854
1855
1856
1857
1858
1859
1860
1861
1862
1863
1864
1865
1866
1867
1868
1869
1870
1871
1872
1873
1874
1875
1876
1877
1878
1879
1880
1881
1882
1883
1884
1885
1886
1887
1888
1889
1890
1891
1892
1893
1894
1895
1896
1897
1898
1899
1900
1901
1902
1903
1904
1905
1906
1907
1908
1909
1910
1911
1912
1913
1914
1915
1916
1917
1918
1919
1920
1921
1922
1923
1924
1925
1926
1927
1928
1929
1930
1931
1932
1933
1934
1935
1936
1937
1938
1939
1940
1941
1942
1943
1944
1945
1946
1947
1948
1949
1950
1951
1952
1953
1954
1955
1956
1957
1958
1959
1960
1961
1962
1963
1964
1965
1966
1967
1968
1969
1970
1971
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
  "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">


<html xmlns="http://www.w3.org/1999/xhtml">
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    
    <title>pyresample API &mdash; pyresample 1.1.6 documentation</title>
    
    <link rel="stylesheet" href="_static/classic.css" type="text/css" />
    <link rel="stylesheet" href="_static/pygments.css" type="text/css" />
    
    <script type="text/javascript">
      var DOCUMENTATION_OPTIONS = {
        URL_ROOT:    './',
        VERSION:     '1.1.6',
        COLLAPSE_INDEX: false,
        FILE_SUFFIX: '.html',
        HAS_SOURCE:  true
      };
    </script>
    <script type="text/javascript" src="_static/jquery.js"></script>
    <script type="text/javascript" src="_static/underscore.js"></script>
    <script type="text/javascript" src="_static/doctools.js"></script>
    <link rel="top" title="pyresample 1.1.6 documentation" href="index.html" />
    <link rel="prev" title="Reduction of swath data" href="data_reduce.html" /> 
  </head>
  <body role="document">
    <div class="related" role="navigation" aria-label="related navigation">
      <h3>Navigation</h3>
      <ul>
        <li class="right" style="margin-right: 10px">
          <a href="genindex.html" title="General Index"
             accesskey="I">index</a></li>
        <li class="right" >
          <a href="py-modindex.html" title="Python Module Index"
             >modules</a> |</li>
        <li class="right" >
          <a href="data_reduce.html" title="Reduction of swath data"
             accesskey="P">previous</a> |</li>
        <li class="nav-item nav-item-0"><a href="index.html">pyresample 1.1.6 documentation</a> &raquo;</li> 
      </ul>
    </div>  

    <div class="document">
      <div class="documentwrapper">
        <div class="bodywrapper">
          <div class="body" role="main">
            
  <div class="section" id="pyresample-api">
<h1>pyresample API<a class="headerlink" href="#pyresample-api" title="Permalink to this headline"></a></h1>
<div class="section" id="module-pyresample.geometry">
<span id="pyresample-geometry"></span><h2>pyresample.geometry<a class="headerlink" href="#module-pyresample.geometry" title="Permalink to this headline"></a></h2>
<p>Classes for geometry operations</p>
<dl class="class">
<dt id="pyresample.geometry.AreaDefinition">
<em class="property">class </em><code class="descclassname">pyresample.geometry.</code><code class="descname">AreaDefinition</code><span class="sig-paren">(</span><em>area_id</em>, <em>name</em>, <em>proj_id</em>, <em>proj_dict</em>, <em>x_size</em>, <em>y_size</em>, <em>area_extent</em>, <em>nprocs=1</em>, <em>lons=None</em>, <em>lats=None</em>, <em>dtype=&lt;Mock object&gt;</em><span class="sig-paren">)</span><a class="headerlink" href="#pyresample.geometry.AreaDefinition" title="Permalink to this definition"></a></dt>
<dd><p>Holds definition of an area.</p>
<table class="docutils field-list" frame="void" rules="none">
<col class="field-name" />
<col class="field-body" />
<tbody valign="top">
<tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"></td>
</tr>
</tbody>
</table>
<dl class="docutils">
<dt>area_id <span class="classifier-delimiter">:</span> <span class="classifier">str </span></dt>
<dd>ID of area</dd>
<dt>name <span class="classifier-delimiter">:</span> <span class="classifier">str</span></dt>
<dd>Name of area</dd>
<dt>proj_id <span class="classifier-delimiter">:</span> <span class="classifier">str </span></dt>
<dd>ID of projection</dd>
<dt>proj_dict <span class="classifier-delimiter">:</span> <span class="classifier">dict </span></dt>
<dd>Dictionary with Proj.4 parameters</dd>
<dt>x_size <span class="classifier-delimiter">:</span> <span class="classifier">int </span></dt>
<dd>x dimension in number of pixels</dd>
<dt>y_size <span class="classifier-delimiter">:</span> <span class="classifier">int     </span></dt>
<dd>y dimension in number of pixels</dd>
<dt>area_extent <span class="classifier-delimiter">:</span> <span class="classifier">list </span></dt>
<dd>Area extent as a list (LL_x, LL_y, UR_x, UR_y)</dd>
<dt>nprocs <span class="classifier-delimiter">:</span> <span class="classifier">int, optional </span></dt>
<dd>Number of processor cores to be used</dd>
<dt>lons <span class="classifier-delimiter">:</span> <span class="classifier">numpy array, optional</span></dt>
<dd>Grid lons</dd>
<dt>lats <span class="classifier-delimiter">:</span> <span class="classifier">numpy array, optional</span></dt>
<dd>Grid lats</dd>
</dl>
<table class="docutils field-list" frame="void" rules="none">
<col class="field-name" />
<col class="field-body" />
<tbody valign="top">
<tr class="field-odd field"><th class="field-name">Attributes:</th><td class="field-body"></td>
</tr>
</tbody>
</table>
<dl class="docutils">
<dt>area_id <span class="classifier-delimiter">:</span> <span class="classifier">str         </span></dt>
<dd>ID of area</dd>
<dt>name <span class="classifier-delimiter">:</span> <span class="classifier">str</span></dt>
<dd>Name of area</dd>
<dt>proj_id <span class="classifier-delimiter">:</span> <span class="classifier">str         </span></dt>
<dd>ID of projection</dd>
<dt>proj_dict <span class="classifier-delimiter">:</span> <span class="classifier">dict        </span></dt>
<dd>Dictionary with Proj.4 parameters</dd>
<dt>x_size <span class="classifier-delimiter">:</span> <span class="classifier">int          </span></dt>
<dd>x dimension in number of pixels</dd>
<dt>y_size <span class="classifier-delimiter">:</span> <span class="classifier">int          </span></dt>
<dd>y dimension in number of pixels</dd>
<dt>shape <span class="classifier-delimiter">:</span> <span class="classifier">tuple</span></dt>
<dd>Corresponding array shape as (rows, cols)</dd>
<dt>size <span class="classifier-delimiter">:</span> <span class="classifier">int</span></dt>
<dd>Number of points in grid</dd>
<dt>area_extent <span class="classifier-delimiter">:</span> <span class="classifier">tuple     </span></dt>
<dd>Area extent as a tuple (LL_x, LL_y, UR_x, UR_y)</dd>
<dt>area_extent_ll <span class="classifier-delimiter">:</span> <span class="classifier">tuple     </span></dt>
<dd>Area extent in lons lats as a tuple (LL_lon, LL_lat, UR_lon, UR_lat)</dd>
<dt>pixel_size_x <span class="classifier-delimiter">:</span> <span class="classifier">float    </span></dt>
<dd>Pixel width in projection units</dd>
<dt>pixel_size_y <span class="classifier-delimiter">:</span> <span class="classifier">float    </span></dt>
<dd>Pixel height in projection units</dd>
<dt>pixel_upper_left <span class="classifier-delimiter">:</span> <span class="classifier">list </span></dt>
<dd>Coordinates (x, y) of center of upper left pixel in projection units</dd>
<dt>pixel_offset_x <span class="classifier-delimiter">:</span> <span class="classifier">float </span></dt>
<dd>x offset between projection center and upper left corner of upper 
left pixel in units of pixels.</dd>
<dt>pixel_offset_y <span class="classifier-delimiter">:</span> <span class="classifier">float </span></dt>
<dd>y offset between projection center and upper left corner of upper 
left pixel in units of pixels..</dd>
</dl>
<p>Properties:
proj4_string : str</p>
<blockquote>
<div>Projection defined as Proj.4 string</div></blockquote>
<dl class="docutils">
<dt>lons <span class="classifier-delimiter">:</span> <span class="classifier">object</span></dt>
<dd>Grid lons</dd>
<dt>lats <span class="classifier-delimiter">:</span> <span class="classifier">object</span></dt>
<dd>Grid lats</dd>
<dt>cartesian_coords <span class="classifier-delimiter">:</span> <span class="classifier">object</span></dt>
<dd>Grid cartesian coordinates</dd>
<dt>projection_x_coords <span class="classifier-delimiter">:</span> <span class="classifier">object</span></dt>
<dd>Grid projection x coordinate</dd>
<dt>projection_y_coords <span class="classifier-delimiter">:</span> <span class="classifier">object</span></dt>
<dd>Grid projection y coordinate</dd>
</dl>
<dl class="method">
<dt id="pyresample.geometry.AreaDefinition.get_lonlat">
<code class="descname">get_lonlat</code><span class="sig-paren">(</span><em>row</em>, <em>col</em><span class="sig-paren">)</span><a class="headerlink" href="#pyresample.geometry.AreaDefinition.get_lonlat" title="Permalink to this definition"></a></dt>
<dd><p>Retrieves lon and lat values of single point in area grid</p>
<table class="docutils field-list" frame="void" rules="none">
<col class="field-name" />
<col class="field-body" />
<tbody valign="top">
<tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"></td>
</tr>
</tbody>
</table>
<p>row : int
col : int</p>
<table class="docutils field-list" frame="void" rules="none">
<col class="field-name" />
<col class="field-body" />
<tbody valign="top">
<tr class="field-odd field"><th class="field-name">Returns:</th><td class="field-body"></td>
</tr>
</tbody>
</table>
<p>(lon, lat) : tuple of floats</p>
</dd></dl>

<dl class="method">
<dt id="pyresample.geometry.AreaDefinition.get_lonlats">
<code class="descname">get_lonlats</code><span class="sig-paren">(</span><em>nprocs=None</em>, <em>data_slice=None</em>, <em>cache=False</em>, <em>dtype=None</em><span class="sig-paren">)</span><a class="headerlink" href="#pyresample.geometry.AreaDefinition.get_lonlats" title="Permalink to this definition"></a></dt>
<dd><p>Returns lon and lat arrays of area.</p>
<table class="docutils field-list" frame="void" rules="none">
<col class="field-name" />
<col class="field-body" />
<tbody valign="top">
<tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"></td>
</tr>
</tbody>
</table>
<dl class="docutils">
<dt>nprocs <span class="classifier-delimiter">:</span> <span class="classifier">int, optional </span></dt>
<dd>Number of processor cores to be used.
Defaults to the nprocs set when instantiating object</dd>
<dt>data_slice <span class="classifier-delimiter">:</span> <span class="classifier">slice object, optional</span></dt>
<dd>Calculate only coordinates for specified slice</dd>
<dt>cache <span class="classifier-delimiter">:</span> <span class="classifier">bool, optional</span></dt>
<dd>Store result the result. Requires data_slice to be None</dd>
</dl>
<table class="docutils field-list" frame="void" rules="none">
<col class="field-name" />
<col class="field-body" />
<tbody valign="top">
<tr class="field-odd field"><th class="field-name">Returns:</th><td class="field-body"></td>
</tr>
</tbody>
</table>
<dl class="docutils">
<dt>(lons, lats) <span class="classifier-delimiter">:</span> <span class="classifier">tuple of numpy arrays</span></dt>
<dd>Grids of area lons and and lats</dd>
</dl>
</dd></dl>

<dl class="method">
<dt id="pyresample.geometry.AreaDefinition.get_proj_coords">
<code class="descname">get_proj_coords</code><span class="sig-paren">(</span><em>data_slice=None</em>, <em>cache=False</em>, <em>dtype=None</em><span class="sig-paren">)</span><a class="headerlink" href="#pyresample.geometry.AreaDefinition.get_proj_coords" title="Permalink to this definition"></a></dt>
<dd><p>Get projection coordinates of grid</p>
<table class="docutils field-list" frame="void" rules="none">
<col class="field-name" />
<col class="field-body" />
<tbody valign="top">
<tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"></td>
</tr>
</tbody>
</table>
<dl class="docutils">
<dt>data_slice <span class="classifier-delimiter">:</span> <span class="classifier">slice object, optional</span></dt>
<dd>Calculate only coordinates for specified slice</dd>
<dt>cache <span class="classifier-delimiter">:</span> <span class="classifier">bool, optional</span></dt>
<dd>Store result the result. Requires data_slice to be None</dd>
</dl>
<table class="docutils field-list" frame="void" rules="none">
<col class="field-name" />
<col class="field-body" />
<tbody valign="top">
<tr class="field-odd field"><th class="field-name">Returns:</th><td class="field-body"></td>
</tr>
</tbody>
</table>
<dl class="docutils">
<dt>(target_x, target_y) <span class="classifier-delimiter">:</span> <span class="classifier">tuple of numpy arrays</span></dt>
<dd>Grids of area x- and y-coordinates in projection units</dd>
</dl>
</dd></dl>

<dl class="method">
<dt id="pyresample.geometry.AreaDefinition.get_xy_from_lonlat">
<code class="descname">get_xy_from_lonlat</code><span class="sig-paren">(</span><em>lon</em>, <em>lat</em><span class="sig-paren">)</span><a class="headerlink" href="#pyresample.geometry.AreaDefinition.get_xy_from_lonlat" title="Permalink to this definition"></a></dt>
<dd><p>Retrieve closest x and y coordinates (column, row indices) for the
specified geolocation (lon,lat) if inside area. If lon,lat is a point a
ValueError is raised if the return point is outside the area domain. If
lon,lat is a tuple of sequences of longitudes and latitudes, a tuple of
masked arrays are returned.</p>
<table class="docutils field-list" frame="void" rules="none">
<col class="field-name" />
<col class="field-body" />
<tbody valign="top">
<tr class="field-odd field"><th class="field-name">Input:</th><td class="field-body"></td>
</tr>
</tbody>
</table>
<p>lon : point or sequence (list or array) of longitudes
lat : point or sequence (list or array) of latitudes</p>
<table class="docutils field-list" frame="void" rules="none">
<col class="field-name" />
<col class="field-body" />
<tbody valign="top">
<tr class="field-odd field"><th class="field-name">Returns:</th><td class="field-body"></td>
</tr>
</tbody>
</table>
<p>(x, y) : tuple of integer points/arrays</p>
</dd></dl>

<dl class="attribute">
<dt id="pyresample.geometry.AreaDefinition.outer_boundary_corners">
<code class="descname">outer_boundary_corners</code><a class="headerlink" href="#pyresample.geometry.AreaDefinition.outer_boundary_corners" title="Permalink to this definition"></a></dt>
<dd><p>Returns the lon,lat of the outer edges of the corner points</p>
</dd></dl>

<dl class="attribute">
<dt id="pyresample.geometry.AreaDefinition.proj4_string">
<code class="descname">proj4_string</code><a class="headerlink" href="#pyresample.geometry.AreaDefinition.proj4_string" title="Permalink to this definition"></a></dt>
<dd><p>Returns projection definition as Proj.4 string</p>
</dd></dl>

</dd></dl>

<dl class="class">
<dt id="pyresample.geometry.BaseDefinition">
<em class="property">class </em><code class="descclassname">pyresample.geometry.</code><code class="descname">BaseDefinition</code><span class="sig-paren">(</span><em>lons=None</em>, <em>lats=None</em>, <em>nprocs=1</em><span class="sig-paren">)</span><a class="headerlink" href="#pyresample.geometry.BaseDefinition" title="Permalink to this definition"></a></dt>
<dd><p>Base class for geometry definitions</p>
<dl class="attribute">
<dt id="pyresample.geometry.BaseDefinition.corners">
<code class="descname">corners</code><a class="headerlink" href="#pyresample.geometry.BaseDefinition.corners" title="Permalink to this definition"></a></dt>
<dd><p>Returns the corners of the current area.</p>
</dd></dl>

<dl class="method">
<dt id="pyresample.geometry.BaseDefinition.get_area">
<code class="descname">get_area</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="headerlink" href="#pyresample.geometry.BaseDefinition.get_area" title="Permalink to this definition"></a></dt>
<dd><p>Get the area of the convex area defined by the corners of the current
area.</p>
</dd></dl>

<dl class="method">
<dt id="pyresample.geometry.BaseDefinition.get_boundary_lonlats">
<code class="descname">get_boundary_lonlats</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="headerlink" href="#pyresample.geometry.BaseDefinition.get_boundary_lonlats" title="Permalink to this definition"></a></dt>
<dd><p>Returns Boundary objects</p>
</dd></dl>

<dl class="method">
<dt id="pyresample.geometry.BaseDefinition.get_cartesian_coords">
<code class="descname">get_cartesian_coords</code><span class="sig-paren">(</span><em>nprocs=None</em>, <em>data_slice=None</em>, <em>cache=False</em><span class="sig-paren">)</span><a class="headerlink" href="#pyresample.geometry.BaseDefinition.get_cartesian_coords" title="Permalink to this definition"></a></dt>
<dd><p>Retrieve cartesian coordinates of geometry definition</p>
<table class="docutils field-list" frame="void" rules="none">
<col class="field-name" />
<col class="field-body" />
<tbody valign="top">
<tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"></td>
</tr>
</tbody>
</table>
<dl class="docutils">
<dt>nprocs <span class="classifier-delimiter">:</span> <span class="classifier">int, optional</span></dt>
<dd>Number of processor cores to be used.
Defaults to the nprocs set when instantiating object</dd>
<dt>data_slice <span class="classifier-delimiter">:</span> <span class="classifier">slice object, optional</span></dt>
<dd>Calculate only cartesian coordnates for the defined slice</dd>
<dt>cache <span class="classifier-delimiter">:</span> <span class="classifier">bool, optional</span></dt>
<dd>Store result the result. Requires data_slice to be None</dd>
</dl>
<table class="docutils field-list" frame="void" rules="none">
<col class="field-name" />
<col class="field-body" />
<tbody valign="top">
<tr class="field-odd field"><th class="field-name">Returns:</th><td class="field-body"></td>
</tr>
</tbody>
</table>
<p>cartesian_coords : numpy array</p>
</dd></dl>

<dl class="method">
<dt id="pyresample.geometry.BaseDefinition.get_lonlat">
<code class="descname">get_lonlat</code><span class="sig-paren">(</span><em>row</em>, <em>col</em><span class="sig-paren">)</span><a class="headerlink" href="#pyresample.geometry.BaseDefinition.get_lonlat" title="Permalink to this definition"></a></dt>
<dd><p>Retrieve lon and lat of single pixel</p>
<table class="docutils field-list" frame="void" rules="none">
<col class="field-name" />
<col class="field-body" />
<tbody valign="top">
<tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"></td>
</tr>
</tbody>
</table>
<p>row : int
col : int</p>
<table class="docutils field-list" frame="void" rules="none">
<col class="field-name" />
<col class="field-body" />
<tbody valign="top">
<tr class="field-odd field"><th class="field-name">Returns:</th><td class="field-body"></td>
</tr>
</tbody>
</table>
<p>(lon, lat) : tuple of floats</p>
</dd></dl>

<dl class="method">
<dt id="pyresample.geometry.BaseDefinition.get_lonlats">
<code class="descname">get_lonlats</code><span class="sig-paren">(</span><em>data_slice=None</em>, <em>**kwargs</em><span class="sig-paren">)</span><a class="headerlink" href="#pyresample.geometry.BaseDefinition.get_lonlats" title="Permalink to this definition"></a></dt>
<dd><p>Base method for lon lat retrieval with slicing</p>
</dd></dl>

<dl class="method">
<dt id="pyresample.geometry.BaseDefinition.intersection">
<code class="descname">intersection</code><span class="sig-paren">(</span><em>other</em><span class="sig-paren">)</span><a class="headerlink" href="#pyresample.geometry.BaseDefinition.intersection" title="Permalink to this definition"></a></dt>
<dd><p>Returns the corners of the intersection polygon of the current area
with <em>other</em>.</p>
<table class="docutils field-list" frame="void" rules="none">
<col class="field-name" />
<col class="field-body" />
<tbody valign="top">
<tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"></td>
</tr>
</tbody>
</table>
<dl class="docutils">
<dt>other <span class="classifier-delimiter">:</span> <span class="classifier">object</span></dt>
<dd>Instance of subclass of BaseDefinition</dd>
</dl>
<table class="docutils field-list" frame="void" rules="none">
<col class="field-name" />
<col class="field-body" />
<tbody valign="top">
<tr class="field-odd field"><th class="field-name">Returns:</th><td class="field-body"></td>
</tr>
</tbody>
</table>
<p>(corner1, corner2, corner3, corner4) : tuple of points</p>
</dd></dl>

<dl class="method">
<dt id="pyresample.geometry.BaseDefinition.overlap_rate">
<code class="descname">overlap_rate</code><span class="sig-paren">(</span><em>other</em><span class="sig-paren">)</span><a class="headerlink" href="#pyresample.geometry.BaseDefinition.overlap_rate" title="Permalink to this definition"></a></dt>
<dd><p>Get how much the current area overlaps an <em>other</em> area.</p>
<table class="docutils field-list" frame="void" rules="none">
<col class="field-name" />
<col class="field-body" />
<tbody valign="top">
<tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"></td>
</tr>
</tbody>
</table>
<dl class="docutils">
<dt>other <span class="classifier-delimiter">:</span> <span class="classifier">object</span></dt>
<dd>Instance of subclass of BaseDefinition</dd>
</dl>
<table class="docutils field-list" frame="void" rules="none">
<col class="field-name" />
<col class="field-body" />
<tbody valign="top">
<tr class="field-odd field"><th class="field-name">Returns:</th><td class="field-body"></td>
</tr>
</tbody>
</table>
<p>overlap_rate : float</p>
</dd></dl>

<dl class="method">
<dt id="pyresample.geometry.BaseDefinition.overlaps">
<code class="descname">overlaps</code><span class="sig-paren">(</span><em>other</em><span class="sig-paren">)</span><a class="headerlink" href="#pyresample.geometry.BaseDefinition.overlaps" title="Permalink to this definition"></a></dt>
<dd><p>Tests if the current area overlaps the <em>other</em> area. This is based
solely on the corners of areas, assuming the boundaries to be great
circles.</p>
<table class="docutils field-list" frame="void" rules="none">
<col class="field-name" />
<col class="field-body" />
<tbody valign="top">
<tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"></td>
</tr>
</tbody>
</table>
<dl class="docutils">
<dt>other <span class="classifier-delimiter">:</span> <span class="classifier">object</span></dt>
<dd>Instance of subclass of BaseDefinition</dd>
</dl>
<table class="docutils field-list" frame="void" rules="none">
<col class="field-name" />
<col class="field-body" />
<tbody valign="top">
<tr class="field-odd field"><th class="field-name">Returns:</th><td class="field-body"></td>
</tr>
</tbody>
</table>
<p>overlaps : bool</p>
</dd></dl>

</dd></dl>

<dl class="class">
<dt id="pyresample.geometry.Boundary">
<em class="property">class </em><code class="descclassname">pyresample.geometry.</code><code class="descname">Boundary</code><span class="sig-paren">(</span><em>side1</em>, <em>side2</em>, <em>side3</em>, <em>side4</em><span class="sig-paren">)</span><a class="headerlink" href="#pyresample.geometry.Boundary" title="Permalink to this definition"></a></dt>
<dd><p>Container for geometry boundary.
Labelling starts in upper left corner and proceeds clockwise</p>
</dd></dl>

<dl class="class">
<dt id="pyresample.geometry.CoordinateDefinition">
<em class="property">class </em><code class="descclassname">pyresample.geometry.</code><code class="descname">CoordinateDefinition</code><span class="sig-paren">(</span><em>lons</em>, <em>lats</em>, <em>nprocs=1</em><span class="sig-paren">)</span><a class="headerlink" href="#pyresample.geometry.CoordinateDefinition" title="Permalink to this definition"></a></dt>
<dd><p>Base class for geometry definitions defined by lons and lats only</p>
</dd></dl>

<dl class="class">
<dt id="pyresample.geometry.GridDefinition">
<em class="property">class </em><code class="descclassname">pyresample.geometry.</code><code class="descname">GridDefinition</code><span class="sig-paren">(</span><em>lons</em>, <em>lats</em>, <em>nprocs=1</em><span class="sig-paren">)</span><a class="headerlink" href="#pyresample.geometry.GridDefinition" title="Permalink to this definition"></a></dt>
<dd><p>Grid defined by lons and lats</p>
<table class="docutils field-list" frame="void" rules="none">
<col class="field-name" />
<col class="field-body" />
<tbody valign="top">
<tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"></td>
</tr>
</tbody>
</table>
<p>lons : numpy array
lats : numpy array
nprocs : int, optional</p>
<blockquote>
<div>Number of processor cores to be used for calculations.</div></blockquote>
<table class="docutils field-list" frame="void" rules="none">
<col class="field-name" />
<col class="field-body" />
<tbody valign="top">
<tr class="field-odd field"><th class="field-name">Attributes:</th><td class="field-body"></td>
</tr>
</tbody>
</table>
<dl class="docutils">
<dt>shape <span class="classifier-delimiter">:</span> <span class="classifier">tuple</span></dt>
<dd>Grid shape as (rows, cols)</dd>
<dt>size <span class="classifier-delimiter">:</span> <span class="classifier">int</span></dt>
<dd>Number of elements in grid</dd>
</dl>
<p>Properties:
lons : object</p>
<blockquote>
<div>Grid lons</div></blockquote>
<dl class="docutils">
<dt>lats <span class="classifier-delimiter">:</span> <span class="classifier">object</span></dt>
<dd>Grid lats</dd>
<dt>cartesian_coords <span class="classifier-delimiter">:</span> <span class="classifier">object</span></dt>
<dd>Grid cartesian coordinates</dd>
</dl>
</dd></dl>

<dl class="class">
<dt id="pyresample.geometry.SwathDefinition">
<em class="property">class </em><code class="descclassname">pyresample.geometry.</code><code class="descname">SwathDefinition</code><span class="sig-paren">(</span><em>lons</em>, <em>lats</em>, <em>nprocs=1</em><span class="sig-paren">)</span><a class="headerlink" href="#pyresample.geometry.SwathDefinition" title="Permalink to this definition"></a></dt>
<dd><p>Swath defined by lons and lats</p>
<table class="docutils field-list" frame="void" rules="none">
<col class="field-name" />
<col class="field-body" />
<tbody valign="top">
<tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"></td>
</tr>
</tbody>
</table>
<p>lons : numpy array
lats : numpy array
nprocs : int, optional</p>
<blockquote>
<div>Number of processor cores to be used for calculations.</div></blockquote>
<table class="docutils field-list" frame="void" rules="none">
<col class="field-name" />
<col class="field-body" />
<tbody valign="top">
<tr class="field-odd field"><th class="field-name">Attributes:</th><td class="field-body"></td>
</tr>
</tbody>
</table>
<dl class="docutils">
<dt>shape <span class="classifier-delimiter">:</span> <span class="classifier">tuple</span></dt>
<dd>Swath shape</dd>
<dt>size <span class="classifier-delimiter">:</span> <span class="classifier">int</span></dt>
<dd>Number of elements in swath</dd>
<dt>ndims <span class="classifier-delimiter">:</span> <span class="classifier">int</span></dt>
<dd>Swath dimensions</dd>
</dl>
<p>Properties:
lons : object</p>
<blockquote>
<div>Swath lons</div></blockquote>
<dl class="docutils">
<dt>lats <span class="classifier-delimiter">:</span> <span class="classifier">object</span></dt>
<dd>Swath lats</dd>
<dt>cartesian_coords <span class="classifier-delimiter">:</span> <span class="classifier">object</span></dt>
<dd>Swath cartesian coordinates</dd>
</dl>
</dd></dl>

</div>
<div class="section" id="module-pyresample.image">
<span id="pyresample-image"></span><h2>pyresample.image<a class="headerlink" href="#module-pyresample.image" title="Permalink to this headline"></a></h2>
<p>Handles resampling of images with assigned geometry definitions</p>
<dl class="class">
<dt id="pyresample.image.ImageContainer">
<em class="property">class </em><code class="descclassname">pyresample.image.</code><code class="descname">ImageContainer</code><span class="sig-paren">(</span><em>image_data</em>, <em>geo_def</em>, <em>fill_value=0</em>, <em>nprocs=1</em><span class="sig-paren">)</span><a class="headerlink" href="#pyresample.image.ImageContainer" title="Permalink to this definition"></a></dt>
<dd><p>Holds image with geometry definition. 
Allows indexing with linesample arrays.</p>
<table class="docutils field-list" frame="void" rules="none">
<col class="field-name" />
<col class="field-body" />
<tbody valign="top">
<tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"></td>
</tr>
</tbody>
</table>
<dl class="docutils">
<dt>image_data <span class="classifier-delimiter">:</span> <span class="classifier">numpy array </span></dt>
<dd>Image data</dd>
<dt>geo_def <span class="classifier-delimiter">:</span> <span class="classifier">object </span></dt>
<dd>Geometry definition</dd>
<dt>fill_value <span class="classifier-delimiter">:</span> <span class="classifier">{int, None} optional </span></dt>
<dd>Set undetermined pixels to this value.
If fill_value is None a masked array is returned 
with undetermined pixels masked</dd>
<dt>nprocs <span class="classifier-delimiter">:</span> <span class="classifier">int, optional </span></dt>
<dd>Number of processor cores to be used</dd>
</dl>
<table class="docutils field-list" frame="void" rules="none">
<col class="field-name" />
<col class="field-body" />
<tbody valign="top">
<tr class="field-odd field"><th class="field-name">Attributes:</th><td class="field-body"></td>
</tr>
</tbody>
</table>
<dl class="docutils">
<dt>image_data <span class="classifier-delimiter">:</span> <span class="classifier">numpy array </span></dt>
<dd>Image data</dd>
<dt>geo_def <span class="classifier-delimiter">:</span> <span class="classifier">object </span></dt>
<dd>Geometry definition</dd>
<dt>fill_value <span class="classifier-delimiter">:</span> <span class="classifier">{int, None}</span></dt>
<dd>Resample result fill value</dd>
<dt>nprocs <span class="classifier-delimiter">:</span> <span class="classifier">int</span></dt>
<dd>Number of processor cores to be used for geometry operations</dd>
</dl>
<dl class="method">
<dt id="pyresample.image.ImageContainer.get_array_from_linesample">
<code class="descname">get_array_from_linesample</code><span class="sig-paren">(</span><em>row_indices</em>, <em>col_indices</em><span class="sig-paren">)</span><a class="headerlink" href="#pyresample.image.ImageContainer.get_array_from_linesample" title="Permalink to this definition"></a></dt>
<dd><p>Samples from image based on index arrays.</p>
<table class="docutils field-list" frame="void" rules="none">
<col class="field-name" />
<col class="field-body" />
<tbody valign="top">
<tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"></td>
</tr>
</tbody>
</table>
<dl class="docutils">
<dt>row_indices <span class="classifier-delimiter">:</span> <span class="classifier">numpy array</span></dt>
<dd>Row indices. Dimensions must match col_indices</dd>
<dt>col_indices <span class="classifier-delimiter">:</span> <span class="classifier">numpy array </span></dt>
<dd>Col indices. Dimensions must match row_indices</dd>
</dl>
<table class="docutils field-list" frame="void" rules="none">
<col class="field-name" />
<col class="field-body" />
<tbody valign="top">
<tr class="field-odd field"><th class="field-name">Returns:</th><td class="field-body"></td>
</tr>
</tbody>
</table>
<dl class="docutils">
<dt>image_data <span class="classifier-delimiter">:</span> <span class="classifier">numpy_array</span></dt>
<dd>Resampled image data</dd>
</dl>
</dd></dl>

<dl class="method">
<dt id="pyresample.image.ImageContainer.get_array_from_neighbour_info">
<code class="descname">get_array_from_neighbour_info</code><span class="sig-paren">(</span><em>*args</em>, <em>**kwargs</em><span class="sig-paren">)</span><a class="headerlink" href="#pyresample.image.ImageContainer.get_array_from_neighbour_info" title="Permalink to this definition"></a></dt>
<dd><p>Base method for resampling from preprocessed data.</p>
</dd></dl>

<dl class="method">
<dt id="pyresample.image.ImageContainer.resample">
<code class="descname">resample</code><span class="sig-paren">(</span><em>target_geo_def</em><span class="sig-paren">)</span><a class="headerlink" href="#pyresample.image.ImageContainer.resample" title="Permalink to this definition"></a></dt>
<dd><p>Base method for resampling</p>
</dd></dl>

</dd></dl>

<dl class="class">
<dt id="pyresample.image.ImageContainerNearest">
<em class="property">class </em><code class="descclassname">pyresample.image.</code><code class="descname">ImageContainerNearest</code><span class="sig-paren">(</span><em>image_data</em>, <em>geo_def</em>, <em>radius_of_influence</em>, <em>epsilon=0</em>, <em>fill_value=0</em>, <em>reduce_data=True</em>, <em>nprocs=1</em>, <em>segments=None</em><span class="sig-paren">)</span><a class="headerlink" href="#pyresample.image.ImageContainerNearest" title="Permalink to this definition"></a></dt>
<dd><p>Holds image with geometry definition. 
Allows nearest neighbour resampling to new geometry definition.</p>
<table class="docutils field-list" frame="void" rules="none">
<col class="field-name" />
<col class="field-body" />
<tbody valign="top">
<tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"></td>
</tr>
</tbody>
</table>
<dl class="docutils">
<dt>image_data <span class="classifier-delimiter">:</span> <span class="classifier">numpy array </span></dt>
<dd>Image data</dd>
<dt>geo_def <span class="classifier-delimiter">:</span> <span class="classifier">object </span></dt>
<dd>Geometry definition</dd>
<dt>radius_of_influence <span class="classifier-delimiter">:</span> <span class="classifier">float </span></dt>
<dd>Cut off distance in meters</dd>
<dt>epsilon <span class="classifier-delimiter">:</span> <span class="classifier">float, optional</span></dt>
<dd>Allowed uncertainty in meters. Increasing uncertainty
reduces execution time</dd>
<dt>fill_value <span class="classifier-delimiter">:</span> <span class="classifier">{int, None} optional </span></dt>
<dd>Set undetermined pixels to this value.
If fill_value is None a masked array is returned 
with undetermined pixels masked</dd>
<dt>reduce_data <span class="classifier-delimiter">:</span> <span class="classifier">bool, optional</span></dt>
<dd>Perform coarse data reduction before resampling in order
to reduce execution time</dd>
<dt>nprocs <span class="classifier-delimiter">:</span> <span class="classifier">int, optional </span></dt>
<dd>Number of processor cores to be used for geometry operations</dd>
<dt>segments <span class="classifier-delimiter">:</span> <span class="classifier">{int, None}</span></dt>
<dd>Number of segments to use when resampling.
If set to None an estimate will be calculated</dd>
</dl>
<table class="docutils field-list" frame="void" rules="none">
<col class="field-name" />
<col class="field-body" />
<tbody valign="top">
<tr class="field-odd field"><th class="field-name">Attributes:</th><td class="field-body"></td>
</tr>
</tbody>
</table>
<dl class="docutils">
<dt>image_data <span class="classifier-delimiter">:</span> <span class="classifier">numpy array </span></dt>
<dd>Image data</dd>
<dt>geo_def <span class="classifier-delimiter">:</span> <span class="classifier">object </span></dt>
<dd>Geometry definition</dd>
<dt>radius_of_influence <span class="classifier-delimiter">:</span> <span class="classifier">float </span></dt>
<dd>Cut off distance in meters</dd>
<dt>epsilon <span class="classifier-delimiter">:</span> <span class="classifier">float</span></dt>
<dd>Allowed uncertainty in meters</dd>
<dt>fill_value <span class="classifier-delimiter">:</span> <span class="classifier">{int, None}</span></dt>
<dd>Resample result fill value</dd>
<dt>reduce_data <span class="classifier-delimiter">:</span> <span class="classifier">bool</span></dt>
<dd>Perform coarse data reduction before resampling</dd>
<dt>nprocs <span class="classifier-delimiter">:</span> <span class="classifier">int</span></dt>
<dd>Number of processor cores to be used</dd>
<dt>segments <span class="classifier-delimiter">:</span> <span class="classifier">{int, None}</span></dt>
<dd>Number of segments to use when resampling</dd>
</dl>
<dl class="method">
<dt id="pyresample.image.ImageContainerNearest.resample">
<code class="descname">resample</code><span class="sig-paren">(</span><em>target_geo_def</em><span class="sig-paren">)</span><a class="headerlink" href="#pyresample.image.ImageContainerNearest.resample" title="Permalink to this definition"></a></dt>
<dd><p>Resamples image to area definition using nearest neighbour 
approach</p>
<table class="docutils field-list" frame="void" rules="none">
<col class="field-name" />
<col class="field-body" />
<tbody valign="top">
<tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"></td>
</tr>
</tbody>
</table>
<dl class="docutils">
<dt>target_geo_def <span class="classifier-delimiter">:</span> <span class="classifier">object </span></dt>
<dd>Target geometry definition</dd>
</dl>
<table class="docutils field-list" frame="void" rules="none">
<col class="field-name" />
<col class="field-body" />
<tbody valign="top">
<tr class="field-odd field"><th class="field-name">Returns:</th><td class="field-body"></td>
</tr>
</tbody>
</table>
<dl class="docutils">
<dt>image_container <span class="classifier-delimiter">:</span> <span class="classifier">object</span></dt>
<dd>ImageContainerNearest object of resampled geometry</dd>
</dl>
</dd></dl>

</dd></dl>

<dl class="class">
<dt id="pyresample.image.ImageContainerQuick">
<em class="property">class </em><code class="descclassname">pyresample.image.</code><code class="descname">ImageContainerQuick</code><span class="sig-paren">(</span><em>image_data</em>, <em>geo_def</em>, <em>fill_value=0</em>, <em>nprocs=1</em>, <em>segments=None</em><span class="sig-paren">)</span><a class="headerlink" href="#pyresample.image.ImageContainerQuick" title="Permalink to this definition"></a></dt>
<dd><p>Holds image with area definition. &#8216;
Allows quick resampling within area.</p>
<table class="docutils field-list" frame="void" rules="none">
<col class="field-name" />
<col class="field-body" />
<tbody valign="top">
<tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"></td>
</tr>
</tbody>
</table>
<dl class="docutils">
<dt>image_data <span class="classifier-delimiter">:</span> <span class="classifier">numpy array </span></dt>
<dd>Image data</dd>
<dt>geo_def <span class="classifier-delimiter">:</span> <span class="classifier">object </span></dt>
<dd>Area definition as AreaDefinition object</dd>
<dt>fill_value <span class="classifier-delimiter">:</span> <span class="classifier">{int, None} optional </span></dt>
<dd>Set undetermined pixels to this value.
If fill_value is None a masked array is returned 
with undetermined pixels masked</dd>
<dt>nprocs <span class="classifier-delimiter">:</span> <span class="classifier">int, optional </span></dt>
<dd>Number of processor cores to be used for geometry operations</dd>
<dt>segments <span class="classifier-delimiter">:</span> <span class="classifier">{int, None}</span></dt>
<dd>Number of segments to use when resampling.
If set to None an estimate will be calculated</dd>
</dl>
<table class="docutils field-list" frame="void" rules="none">
<col class="field-name" />
<col class="field-body" />
<tbody valign="top">
<tr class="field-odd field"><th class="field-name">Attributes:</th><td class="field-body"></td>
</tr>
</tbody>
</table>
<dl class="docutils">
<dt>image_data <span class="classifier-delimiter">:</span> <span class="classifier">numpy array </span></dt>
<dd>Image data</dd>
<dt>geo_def <span class="classifier-delimiter">:</span> <span class="classifier">object </span></dt>
<dd>Area definition as AreaDefinition object</dd>
<dt>fill_value <span class="classifier-delimiter">:</span> <span class="classifier">{int, None}</span></dt>
<dd>Resample result fill value
If fill_value is None a masked array is returned 
with undetermined pixels masked</dd>
<dt>nprocs <span class="classifier-delimiter">:</span> <span class="classifier">int</span></dt>
<dd>Number of processor cores to be used</dd>
<dt>segments <span class="classifier-delimiter">:</span> <span class="classifier">{int, None}</span></dt>
<dd>Number of segments to use when resampling</dd>
</dl>
<dl class="method">
<dt id="pyresample.image.ImageContainerQuick.resample">
<code class="descname">resample</code><span class="sig-paren">(</span><em>target_area_def</em><span class="sig-paren">)</span><a class="headerlink" href="#pyresample.image.ImageContainerQuick.resample" title="Permalink to this definition"></a></dt>
<dd><p>Resamples image to area definition using nearest neighbour 
approach in projection coordinates.</p>
<table class="docutils field-list" frame="void" rules="none">
<col class="field-name" />
<col class="field-body" />
<tbody valign="top">
<tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"></td>
</tr>
</tbody>
</table>
<dl class="docutils">
<dt>target_area_def <span class="classifier-delimiter">:</span> <span class="classifier">object </span></dt>
<dd>Target area definition as AreaDefinition object</dd>
</dl>
<table class="docutils field-list" frame="void" rules="none">
<col class="field-name" />
<col class="field-body" />
<tbody valign="top">
<tr class="field-odd field"><th class="field-name">Returns:</th><td class="field-body"></td>
</tr>
</tbody>
</table>
<dl class="docutils">
<dt>image_container <span class="classifier-delimiter">:</span> <span class="classifier">object</span></dt>
<dd>ImageContainerQuick object of resampled area</dd>
</dl>
</dd></dl>

</dd></dl>

</div>
<div class="section" id="module-pyresample.grid">
<span id="pyresample-grid"></span><h2>pyresample.grid<a class="headerlink" href="#module-pyresample.grid" title="Permalink to this headline"></a></h2>
<p>Resample image from one projection to another 
using nearest neighbour method in cartesian projection coordinate systems</p>
<dl class="function">
<dt id="pyresample.grid.get_image_from_linesample">
<code class="descclassname">pyresample.grid.</code><code class="descname">get_image_from_linesample</code><span class="sig-paren">(</span><em>row_indices</em>, <em>col_indices</em>, <em>source_image</em>, <em>fill_value=0</em><span class="sig-paren">)</span><a class="headerlink" href="#pyresample.grid.get_image_from_linesample" title="Permalink to this definition"></a></dt>
<dd><p>Samples from image based on index arrays.</p>
<table class="docutils field-list" frame="void" rules="none">
<col class="field-name" />
<col class="field-body" />
<tbody valign="top">
<tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"></td>
</tr>
</tbody>
</table>
<dl class="docutils">
<dt>row_indices <span class="classifier-delimiter">:</span> <span class="classifier">numpy array </span></dt>
<dd>Row indices. Dimensions must match col_indices</dd>
<dt>col_indices <span class="classifier-delimiter">:</span> <span class="classifier">numpy array </span></dt>
<dd>Col indices. Dimensions must match row_indices</dd>
<dt>source_image <span class="classifier-delimiter">:</span> <span class="classifier">numpy array </span></dt>
<dd>Source image</dd>
<dt>fill_value <span class="classifier-delimiter">:</span> <span class="classifier">{int, None} optional </span></dt>
<dd>Set undetermined pixels to this value.
If fill_value is None a masked array is returned 
with undetermined pixels masked</dd>
</dl>
<table class="docutils field-list" frame="void" rules="none">
<col class="field-name" />
<col class="field-body" />
<tbody valign="top">
<tr class="field-odd field"><th class="field-name">Returns:</th><td class="field-body"></td>
</tr>
</tbody>
</table>
<dl class="docutils">
<dt>image_data <span class="classifier-delimiter">:</span> <span class="classifier">numpy array</span></dt>
<dd>Resampled image</dd>
</dl>
</dd></dl>

<dl class="function">
<dt id="pyresample.grid.get_image_from_lonlats">
<code class="descclassname">pyresample.grid.</code><code class="descname">get_image_from_lonlats</code><span class="sig-paren">(</span><em>lons</em>, <em>lats</em>, <em>source_area_def</em>, <em>source_image_data</em>, <em>fill_value=0</em>, <em>nprocs=1</em><span class="sig-paren">)</span><a class="headerlink" href="#pyresample.grid.get_image_from_lonlats" title="Permalink to this definition"></a></dt>
<dd><p>Samples from image based on lon lat arrays 
using nearest neighbour method in cartesian projection coordinate systems.</p>
<table class="docutils field-list" frame="void" rules="none">
<col class="field-name" />
<col class="field-body" />
<tbody valign="top">
<tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"></td>
</tr>
</tbody>
</table>
<dl class="docutils">
<dt>lons <span class="classifier-delimiter">:</span> <span class="classifier">numpy array </span></dt>
<dd>Lons. Dimensions must match lats</dd>
<dt>lats <span class="classifier-delimiter">:</span> <span class="classifier">numpy array   </span></dt>
<dd>Lats. Dimensions must match lons</dd>
<dt>source_area_def <span class="classifier-delimiter">:</span> <span class="classifier">object </span></dt>
<dd>Source definition as AreaDefinition object</dd>
<dt>source_image_data <span class="classifier-delimiter">:</span> <span class="classifier">numpy array </span></dt>
<dd>Source image data</dd>
<dt>fill_value <span class="classifier-delimiter">:</span> <span class="classifier">{int, None} optional </span></dt>
<dd>Set undetermined pixels to this value.
If fill_value is None a masked array is returned 
with undetermined pixels masked</dd>
<dt>nprocs <span class="classifier-delimiter">:</span> <span class="classifier">int, optional </span></dt>
<dd>Number of processor cores to be used</dd>
</dl>
<table class="docutils field-list" frame="void" rules="none">
<col class="field-name" />
<col class="field-body" />
<tbody valign="top">
<tr class="field-odd field"><th class="field-name">Returns:</th><td class="field-body"></td>
</tr>
</tbody>
</table>
<dl class="docutils">
<dt>image_data <span class="classifier-delimiter">:</span> <span class="classifier">numpy array </span></dt>
<dd>Resampled image data</dd>
</dl>
</dd></dl>

<dl class="function">
<dt id="pyresample.grid.get_linesample">
<code class="descclassname">pyresample.grid.</code><code class="descname">get_linesample</code><span class="sig-paren">(</span><em>lons</em>, <em>lats</em>, <em>source_area_def</em>, <em>nprocs=1</em><span class="sig-paren">)</span><a class="headerlink" href="#pyresample.grid.get_linesample" title="Permalink to this definition"></a></dt>
<dd><p>Returns index row and col arrays for resampling</p>
<table class="docutils field-list" frame="void" rules="none">
<col class="field-name" />
<col class="field-body" />
<tbody valign="top">
<tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"></td>
</tr>
</tbody>
</table>
<dl class="docutils">
<dt>lons <span class="classifier-delimiter">:</span> <span class="classifier">numpy array </span></dt>
<dd>Lons. Dimensions must match lats</dd>
<dt>lats <span class="classifier-delimiter">:</span> <span class="classifier">numpy array   </span></dt>
<dd>Lats. Dimensions must match lons</dd>
<dt>source_area_def <span class="classifier-delimiter">:</span> <span class="classifier">object </span></dt>
<dd>Source definition as AreaDefinition object</dd>
<dt>nprocs <span class="classifier-delimiter">:</span> <span class="classifier">int, optional </span></dt>
<dd>Number of processor cores to be used</dd>
</dl>
<table class="docutils field-list" frame="void" rules="none">
<col class="field-name" />
<col class="field-body" />
<tbody valign="top">
<tr class="field-odd field"><th class="field-name">Returns:</th><td class="field-body"></td>
</tr>
</tbody>
</table>
<dl class="docutils">
<dt>(row_indices, col_indices) <span class="classifier-delimiter">:</span> <span class="classifier">tuple of numpy arrays</span></dt>
<dd>Arrays for resampling area by array indexing</dd>
</dl>
</dd></dl>

<dl class="function">
<dt id="pyresample.grid.get_resampled_image">
<code class="descclassname">pyresample.grid.</code><code class="descname">get_resampled_image</code><span class="sig-paren">(</span><em>target_area_def</em>, <em>source_area_def</em>, <em>source_image_data</em>, <em>fill_value=0</em>, <em>nprocs=1</em>, <em>segments=None</em><span class="sig-paren">)</span><a class="headerlink" href="#pyresample.grid.get_resampled_image" title="Permalink to this definition"></a></dt>
<dd><p>Resamples image using nearest neighbour method in cartesian 
projection coordinate systems.</p>
<table class="docutils field-list" frame="void" rules="none">
<col class="field-name" />
<col class="field-body" />
<tbody valign="top">
<tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"></td>
</tr>
</tbody>
</table>
<dl class="docutils">
<dt>target_area_def <span class="classifier-delimiter">:</span> <span class="classifier">object </span></dt>
<dd>Target definition as AreaDefinition object</dd>
<dt>source_area_def <span class="classifier-delimiter">:</span> <span class="classifier">object </span></dt>
<dd>Source definition as AreaDefinition object</dd>
<dt>source_image_data <span class="classifier-delimiter">:</span> <span class="classifier">numpy array </span></dt>
<dd>Source image data</dd>
<dt>fill_value <span class="classifier-delimiter">:</span> <span class="classifier">{int, None} optional </span></dt>
<dd>Set undetermined pixels to this value.
If fill_value is None a masked array is returned 
with undetermined pixels masked</dd>
<dt>nprocs <span class="classifier-delimiter">:</span> <span class="classifier">int, optional </span></dt>
<dd>Number of processor cores to be used</dd>
<dt>segments <span class="classifier-delimiter">:</span> <span class="classifier">{int, None} optional</span></dt>
<dd>Number of segments to use when resampling.
If set to None an estimate will be calculated.</dd>
</dl>
<table class="docutils field-list" frame="void" rules="none">
<col class="field-name" />
<col class="field-body" />
<tbody valign="top">
<tr class="field-odd field"><th class="field-name">Returns:</th><td class="field-body"></td>
</tr>
</tbody>
</table>
<dl class="docutils">
<dt>image_data <span class="classifier-delimiter">:</span> <span class="classifier">numpy array </span></dt>
<dd>Resampled image data</dd>
</dl>
</dd></dl>

</div>
<div class="section" id="module-pyresample.kd_tree">
<span id="pyresample-kd-tree"></span><h2>pyresample.kd_tree<a class="headerlink" href="#module-pyresample.kd_tree" title="Permalink to this headline"></a></h2>
<p>Handles reprojection of geolocated data. Several types of resampling are
supported</p>
<dl class="function">
<dt id="pyresample.kd_tree.get_neighbour_info">
<code class="descclassname">pyresample.kd_tree.</code><code class="descname">get_neighbour_info</code><span class="sig-paren">(</span><em>source_geo_def</em>, <em>target_geo_def</em>, <em>radius_of_influence</em>, <em>neighbours=8</em>, <em>epsilon=0</em>, <em>reduce_data=True</em>, <em>nprocs=1</em>, <em>segments=None</em><span class="sig-paren">)</span><a class="headerlink" href="#pyresample.kd_tree.get_neighbour_info" title="Permalink to this definition"></a></dt>
<dd><p>Returns neighbour info</p>
<table class="docutils field-list" frame="void" rules="none">
<col class="field-name" />
<col class="field-body" />
<tbody valign="top">
<tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"></td>
</tr>
</tbody>
</table>
<dl class="docutils">
<dt>source_geo_def <span class="classifier-delimiter">:</span> <span class="classifier">object</span></dt>
<dd>Geometry definition of source</dd>
<dt>target_geo_def <span class="classifier-delimiter">:</span> <span class="classifier">object</span></dt>
<dd>Geometry definition of target</dd>
<dt>radius_of_influence <span class="classifier-delimiter">:</span> <span class="classifier">float </span></dt>
<dd>Cut off distance in meters</dd>
<dt>neighbours <span class="classifier-delimiter">:</span> <span class="classifier">int, optional </span></dt>
<dd>The number of neigbours to consider for each grid point</dd>
<dt>epsilon <span class="classifier-delimiter">:</span> <span class="classifier">float, optional</span></dt>
<dd>Allowed uncertainty in meters. Increasing uncertainty
reduces execution time</dd>
<dt>fill_value <span class="classifier-delimiter">:</span> <span class="classifier">{int, None}, optional </span></dt>
<dd>Set undetermined pixels to this value.
If fill_value is None a masked array is returned 
with undetermined pixels masked</dd>
<dt>reduce_data <span class="classifier-delimiter">:</span> <span class="classifier">bool, optional</span></dt>
<dd>Perform initial coarse reduction of source dataset in order
to reduce execution time</dd>
<dt>nprocs <span class="classifier-delimiter">:</span> <span class="classifier">int, optional</span></dt>
<dd>Number of processor cores to be used</dd>
<dt>segments <span class="classifier-delimiter">:</span> <span class="classifier">{int, None}</span></dt>
<dd>Number of segments to use when resampling.
If set to None an estimate will be calculated</dd>
</dl>
<table class="docutils field-list" frame="void" rules="none">
<col class="field-name" />
<col class="field-body" />
<tbody valign="top">
<tr class="field-odd field"><th class="field-name">Returns:</th><td class="field-body"></td>
</tr>
</tbody>
</table>
<p>(valid_input_index, valid_output_index, 
index_array, distance_array) : tuple of numpy arrays</p>
<blockquote>
<div>Neighbour resampling info</div></blockquote>
</dd></dl>

<dl class="function">
<dt id="pyresample.kd_tree.get_sample_from_neighbour_info">
<code class="descclassname">pyresample.kd_tree.</code><code class="descname">get_sample_from_neighbour_info</code><span class="sig-paren">(</span><em>resample_type</em>, <em>output_shape</em>, <em>data</em>, <em>valid_input_index</em>, <em>valid_output_index</em>, <em>index_array</em>, <em>distance_array=None</em>, <em>weight_funcs=None</em>, <em>fill_value=0</em>, <em>with_uncert=False</em><span class="sig-paren">)</span><a class="headerlink" href="#pyresample.kd_tree.get_sample_from_neighbour_info" title="Permalink to this definition"></a></dt>
<dd><p>Resamples swath based on neighbour info</p>
<table class="docutils field-list" frame="void" rules="none">
<col class="field-name" />
<col class="field-body" />
<tbody valign="top">
<tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"></td>
</tr>
</tbody>
</table>
<dl class="docutils">
<dt>resample_type <span class="classifier-delimiter">:</span> <span class="classifier">{&#8216;nn&#8217;, &#8216;custom&#8217;}</span></dt>
<dd>&#8216;nn&#8217;: Use nearest neighbour resampling
&#8216;custom&#8217;: Resample based on weight_funcs</dd>
<dt>output_shape <span class="classifier-delimiter">:</span> <span class="classifier">(int, int)</span></dt>
<dd>Shape of output as (rows, cols)</dd>
<dt>data <span class="classifier-delimiter">:</span> <span class="classifier">numpy array</span></dt>
<dd>Source data</dd>
<dt>valid_input_index <span class="classifier-delimiter">:</span> <span class="classifier">numpy array</span></dt>
<dd>valid_input_index from get_neighbour_info</dd>
<dt>valid_output_index <span class="classifier-delimiter">:</span> <span class="classifier">numpy array</span></dt>
<dd>valid_output_index from get_neighbour_info</dd>
<dt>index_array <span class="classifier-delimiter">:</span> <span class="classifier">numpy array</span></dt>
<dd>index_array from get_neighbour_info</dd>
<dt>distance_array <span class="classifier-delimiter">:</span> <span class="classifier">numpy array, optional</span></dt>
<dd>distance_array from get_neighbour_info
Not needed for &#8216;nn&#8217; resample type</dd>
<dt>weight_funcs <span class="classifier-delimiter">:</span> <span class="classifier">list of function objects or function object, optional       </span></dt>
<dd>List of weight functions f(dist) to use for the weighting 
of each channel 1 to k.
If only one channel is resampled weight_funcs is
a single function object.
Must be supplied when using &#8216;custom&#8217; resample type</dd>
<dt>fill_value <span class="classifier-delimiter">:</span> <span class="classifier">{int, None}, optional </span></dt>
<dd>Set undetermined pixels to this value.
If fill_value is None a masked array is returned 
with undetermined pixels masked</dd>
</dl>
<table class="docutils field-list" frame="void" rules="none">
<col class="field-name" />
<col class="field-body" />
<tbody valign="top">
<tr class="field-odd field"><th class="field-name">Returns:</th><td class="field-body"></td>
</tr>
</tbody>
</table>
<dl class="docutils">
<dt>result <span class="classifier-delimiter">:</span> <span class="classifier">numpy array </span></dt>
<dd>Source data resampled to target geometry</dd>
</dl>
</dd></dl>

<dl class="function">
<dt id="pyresample.kd_tree.resample_custom">
<code class="descclassname">pyresample.kd_tree.</code><code class="descname">resample_custom</code><span class="sig-paren">(</span><em>source_geo_def</em>, <em>data</em>, <em>target_geo_def</em>, <em>radius_of_influence</em>, <em>weight_funcs</em>, <em>neighbours=8</em>, <em>epsilon=0</em>, <em>fill_value=0</em>, <em>reduce_data=True</em>, <em>nprocs=1</em>, <em>segments=None</em>, <em>with_uncert=False</em><span class="sig-paren">)</span><a class="headerlink" href="#pyresample.kd_tree.resample_custom" title="Permalink to this definition"></a></dt>
<dd><p>Resamples data using kd-tree custom radial weighting neighbour approach</p>
<table class="docutils field-list" frame="void" rules="none">
<col class="field-name" />
<col class="field-body" />
<tbody valign="top">
<tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"></td>
</tr>
</tbody>
</table>
<dl class="docutils">
<dt>source_geo_def <span class="classifier-delimiter">:</span> <span class="classifier">object</span></dt>
<dd>Geometry definition of source</dd>
<dt>data <span class="classifier-delimiter">:</span> <span class="classifier">numpy array               </span></dt>
<dd>Array of single channel data points or
(source_geo_def.shape, k) array of k channels of datapoints</dd>
<dt>target_geo_def <span class="classifier-delimiter">:</span> <span class="classifier">object</span></dt>
<dd>Geometry definition of target</dd>
<dt>radius_of_influence <span class="classifier-delimiter">:</span> <span class="classifier">float </span></dt>
<dd>Cut off distance in meters</dd>
<dt>weight_funcs <span class="classifier-delimiter">:</span> <span class="classifier">list of function objects or function object       </span></dt>
<dd>List of weight functions f(dist) to use for the weighting 
of each channel 1 to k.
If only one channel is resampled weight_funcs is
a single function object.</dd>
<dt>neighbours <span class="classifier-delimiter">:</span> <span class="classifier">int, optional </span></dt>
<dd>The number of neigbours to consider for each grid point</dd>
<dt>epsilon <span class="classifier-delimiter">:</span> <span class="classifier">float, optional</span></dt>
<dd>Allowed uncertainty in meters. Increasing uncertainty
reduces execution time</dd>
<dt>fill_value <span class="classifier-delimiter">:</span> <span class="classifier">{int, None}, optional </span></dt>
<dd>Set undetermined pixels to this value.
If fill_value is None a masked array is returned 
with undetermined pixels masked</dd>
<dt>reduce_data <span class="classifier-delimiter">:</span> <span class="classifier">bool, optional</span></dt>
<dd>Perform initial coarse reduction of source dataset in order
to reduce execution time</dd>
<dt>nprocs <span class="classifier-delimiter">:</span> <span class="classifier">int, optional</span></dt>
<dd>Number of processor cores to be used</dd>
<dt>segments <span class="classifier-delimiter">:</span> <span class="classifier">{int, None}</span></dt>
<dd>Number of segments to use when resampling.
If set to None an estimate will be calculated</dd>
</dl>
<table class="docutils field-list" frame="void" rules="none">
<col class="field-name" />
<col class="field-body" />
<tbody valign="top">
<tr class="field-odd field"><th class="field-name">Returns:</th><td class="field-body"></td>
</tr>
</tbody>
</table>
<dl class="docutils">
<dt>data <span class="classifier-delimiter">:</span> <span class="classifier">numpy array (default)</span></dt>
<dd>Source data resampled to target geometry</dd>
<dt>data, stddev, counts <span class="classifier-delimiter">:</span> <span class="classifier">numpy array, numpy array, numpy array (if with_uncert == True)</span></dt>
<dd>Source data resampled to target geometry.
Weighted standard devaition for all pixels having more than one source value
Counts of number of source values used in weighting per pixel</dd>
</dl>
</dd></dl>

<dl class="function">
<dt id="pyresample.kd_tree.resample_gauss">
<code class="descclassname">pyresample.kd_tree.</code><code class="descname">resample_gauss</code><span class="sig-paren">(</span><em>source_geo_def</em>, <em>data</em>, <em>target_geo_def</em>, <em>radius_of_influence</em>, <em>sigmas</em>, <em>neighbours=8</em>, <em>epsilon=0</em>, <em>fill_value=0</em>, <em>reduce_data=True</em>, <em>nprocs=1</em>, <em>segments=None</em>, <em>with_uncert=False</em><span class="sig-paren">)</span><a class="headerlink" href="#pyresample.kd_tree.resample_gauss" title="Permalink to this definition"></a></dt>
<dd><p>Resamples data using kd-tree gaussian weighting neighbour approach</p>
<table class="docutils field-list" frame="void" rules="none">
<col class="field-name" />
<col class="field-body" />
<tbody valign="top">
<tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"></td>
</tr>
</tbody>
</table>
<dl class="docutils">
<dt>source_geo_def <span class="classifier-delimiter">:</span> <span class="classifier">object</span></dt>
<dd>Geometry definition of source</dd>
<dt>data <span class="classifier-delimiter">:</span> <span class="classifier">numpy array               </span></dt>
<dd>Array of single channel data points or
(source_geo_def.shape, k) array of k channels of datapoints</dd>
<dt>target_geo_def <span class="classifier-delimiter">:</span> <span class="classifier">object</span></dt>
<dd>Geometry definition of target</dd>
<dt>radius_of_influence <span class="classifier-delimiter">:</span> <span class="classifier">float </span></dt>
<dd>Cut off distance in meters</dd>
<dt>sigmas <span class="classifier-delimiter">:</span> <span class="classifier">list of floats or float            </span></dt>
<dd>List of sigmas to use for the gauss weighting of each 
channel 1 to k, w_k = exp(-dist^2/sigma_k^2).
If only one channel is resampled sigmas is a single float value.</dd>
<dt>neighbours <span class="classifier-delimiter">:</span> <span class="classifier">int, optional </span></dt>
<dd>The number of neigbours to consider for each grid point</dd>
<dt>epsilon <span class="classifier-delimiter">:</span> <span class="classifier">float, optional</span></dt>
<dd>Allowed uncertainty in meters. Increasing uncertainty
reduces execution time</dd>
<dt>fill_value <span class="classifier-delimiter">:</span> <span class="classifier">{int, None}, optional </span></dt>
<dd>Set undetermined pixels to this value.
If fill_value is None a masked array is returned 
with undetermined pixels masked</dd>
<dt>reduce_data <span class="classifier-delimiter">:</span> <span class="classifier">bool, optional</span></dt>
<dd>Perform initial coarse reduction of source dataset in order
to reduce execution time</dd>
<dt>nprocs <span class="classifier-delimiter">:</span> <span class="classifier">int, optional</span></dt>
<dd>Number of processor cores to be used</dd>
<dt>segments <span class="classifier-delimiter">:</span> <span class="classifier">{int, None}</span></dt>
<dd>Number of segments to use when resampling.
If set to None an estimate will be calculated</dd>
<dt>with_uncert <span class="classifier-delimiter">:</span> <span class="classifier">bool, optional</span></dt>
<dd>Calculate uncertainty estimates</dd>
</dl>
<table class="docutils field-list" frame="void" rules="none">
<col class="field-name" />
<col class="field-body" />
<tbody valign="top">
<tr class="field-odd field"><th class="field-name">Returns:</th><td class="field-body"></td>
</tr>
</tbody>
</table>
<dl class="docutils">
<dt>data <span class="classifier-delimiter">:</span> <span class="classifier">numpy array (default)</span></dt>
<dd>Source data resampled to target geometry</dd>
<dt>data, stddev, counts <span class="classifier-delimiter">:</span> <span class="classifier">numpy array, numpy array, numpy array (if with_uncert == True)</span></dt>
<dd>Source data resampled to target geometry.
Weighted standard devaition for all pixels having more than one source value
Counts of number of source values used in weighting per pixel</dd>
</dl>
</dd></dl>

<dl class="function">
<dt id="pyresample.kd_tree.resample_nearest">
<code class="descclassname">pyresample.kd_tree.</code><code class="descname">resample_nearest</code><span class="sig-paren">(</span><em>source_geo_def</em>, <em>data</em>, <em>target_geo_def</em>, <em>radius_of_influence</em>, <em>epsilon=0</em>, <em>fill_value=0</em>, <em>reduce_data=True</em>, <em>nprocs=1</em>, <em>segments=None</em><span class="sig-paren">)</span><a class="headerlink" href="#pyresample.kd_tree.resample_nearest" title="Permalink to this definition"></a></dt>
<dd><p>Resamples data using kd-tree nearest neighbour approach</p>
<table class="docutils field-list" frame="void" rules="none">
<col class="field-name" />
<col class="field-body" />
<tbody valign="top">
<tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"></td>
</tr>
</tbody>
</table>
<dl class="docutils">
<dt>source_geo_def <span class="classifier-delimiter">:</span> <span class="classifier">object</span></dt>
<dd>Geometry definition of source</dd>
<dt>data <span class="classifier-delimiter">:</span> <span class="classifier">numpy array               </span></dt>
<dd>1d array of single channel data points or
(source_size, k) array of k channels of datapoints</dd>
<dt>target_geo_def <span class="classifier-delimiter">:</span> <span class="classifier">object</span></dt>
<dd>Geometry definition of target</dd>
<dt>radius_of_influence <span class="classifier-delimiter">:</span> <span class="classifier">float </span></dt>
<dd>Cut off distance in meters</dd>
<dt>epsilon <span class="classifier-delimiter">:</span> <span class="classifier">float, optional</span></dt>
<dd>Allowed uncertainty in meters. Increasing uncertainty
reduces execution time</dd>
<dt>fill_value <span class="classifier-delimiter">:</span> <span class="classifier">{int, None}, optional </span></dt>
<dd>Set undetermined pixels to this value.
If fill_value is None a masked array is returned 
with undetermined pixels masked</dd>
<dt>reduce_data <span class="classifier-delimiter">:</span> <span class="classifier">bool, optional</span></dt>
<dd>Perform initial coarse reduction of source dataset in order
to reduce execution time</dd>
<dt>nprocs <span class="classifier-delimiter">:</span> <span class="classifier">int, optional</span></dt>
<dd>Number of processor cores to be used</dd>
<dt>segments <span class="classifier-delimiter">:</span> <span class="classifier">{int, None}</span></dt>
<dd>Number of segments to use when resampling.
If set to None an estimate will be calculated</dd>
</dl>
<table class="docutils field-list" frame="void" rules="none">
<col class="field-name" />
<col class="field-body" />
<tbody valign="top">
<tr class="field-odd field"><th class="field-name">Returns:</th><td class="field-body"></td>
</tr>
</tbody>
</table>
<dl class="docutils">
<dt>data <span class="classifier-delimiter">:</span> <span class="classifier">numpy array </span></dt>
<dd>Source data resampled to target geometry</dd>
</dl>
</dd></dl>

<dl class="function">
<dt id="pyresample.kd_tree.which_kdtree">
<code class="descclassname">pyresample.kd_tree.</code><code class="descname">which_kdtree</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="headerlink" href="#pyresample.kd_tree.which_kdtree" title="Permalink to this definition"></a></dt>
<dd><p>Returns the name of the kdtree used for resampling</p>
</dd></dl>

</div>
<div class="section" id="module-pyresample.utils">
<span id="pyresample-utils"></span><h2>pyresample.utils<a class="headerlink" href="#module-pyresample.utils" title="Permalink to this headline"></a></h2>
<p>Utility functions for pyresample</p>
<dl class="exception">
<dt id="pyresample.utils.AreaNotFound">
<em class="property">exception </em><code class="descclassname">pyresample.utils.</code><code class="descname">AreaNotFound</code><a class="headerlink" href="#pyresample.utils.AreaNotFound" title="Permalink to this definition"></a></dt>
<dd><p>Exception raised when specified are is no found in file</p>
</dd></dl>

<dl class="function">
<dt id="pyresample.utils.fwhm2sigma">
<code class="descclassname">pyresample.utils.</code><code class="descname">fwhm2sigma</code><span class="sig-paren">(</span><em>fwhm</em><span class="sig-paren">)</span><a class="headerlink" href="#pyresample.utils.fwhm2sigma" title="Permalink to this definition"></a></dt>
<dd><p>Calculate sigma for gauss function from FWHM (3 dB level)</p>
<table class="docutils field-list" frame="void" rules="none">
<col class="field-name" />
<col class="field-body" />
<tbody valign="top">
<tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"></td>
</tr>
</tbody>
</table>
<dl class="docutils">
<dt>fwhm <span class="classifier-delimiter">:</span> <span class="classifier">float </span></dt>
<dd>FWHM of gauss function (3 dB level of beam footprint)</dd>
</dl>
<table class="docutils field-list" frame="void" rules="none">
<col class="field-name" />
<col class="field-body" />
<tbody valign="top">
<tr class="field-odd field"><th class="field-name">Returns:</th><td class="field-body"></td>
</tr>
</tbody>
</table>
<dl class="docutils">
<dt>sigma <span class="classifier-delimiter">:</span> <span class="classifier">float</span></dt>
<dd>sigma for use in resampling gauss function</dd>
</dl>
</dd></dl>

<dl class="function">
<dt id="pyresample.utils.generate_nearest_neighbour_linesample_arrays">
<code class="descclassname">pyresample.utils.</code><code class="descname">generate_nearest_neighbour_linesample_arrays</code><span class="sig-paren">(</span><em>source_area_def</em>, <em>target_area_def</em>, <em>radius_of_influence</em>, <em>nprocs=1</em><span class="sig-paren">)</span><a class="headerlink" href="#pyresample.utils.generate_nearest_neighbour_linesample_arrays" title="Permalink to this definition"></a></dt>
<dd><p>Generate linesample arrays for nearest neighbour grid resampling</p>
<table class="docutils field-list" frame="void" rules="none">
<col class="field-name" />
<col class="field-body" />
<tbody valign="top">
<tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"></td>
</tr>
</tbody>
</table>
<dl class="docutils">
<dt>source_area_def <span class="classifier-delimiter">:</span> <span class="classifier">object </span></dt>
<dd>Source area definition as AreaDefinition object</dd>
<dt>target_area_def <span class="classifier-delimiter">:</span> <span class="classifier">object </span></dt>
<dd>Target area definition as AreaDefinition object</dd>
<dt>radius_of_influence <span class="classifier-delimiter">:</span> <span class="classifier">float </span></dt>
<dd>Cut off distance in meters</dd>
<dt>nprocs <span class="classifier-delimiter">:</span> <span class="classifier">int, optional </span></dt>
<dd>Number of processor cores to be used</dd>
</dl>
<table class="docutils field-list" frame="void" rules="none">
<col class="field-name" />
<col class="field-body" />
<tbody valign="top">
<tr class="field-odd field"><th class="field-name">Returns:</th><td class="field-body"></td>
</tr>
</tbody>
</table>
<p>(row_indices, col_indices) : tuple of numpy arrays</p>
</dd></dl>

<dl class="function">
<dt id="pyresample.utils.generate_quick_linesample_arrays">
<code class="descclassname">pyresample.utils.</code><code class="descname">generate_quick_linesample_arrays</code><span class="sig-paren">(</span><em>source_area_def</em>, <em>target_area_def</em>, <em>nprocs=1</em><span class="sig-paren">)</span><a class="headerlink" href="#pyresample.utils.generate_quick_linesample_arrays" title="Permalink to this definition"></a></dt>
<dd><p>Generate linesample arrays for quick grid resampling</p>
<table class="docutils field-list" frame="void" rules="none">
<col class="field-name" />
<col class="field-body" />
<tbody valign="top">
<tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"></td>
</tr>
</tbody>
</table>
<dl class="docutils">
<dt>source_area_def <span class="classifier-delimiter">:</span> <span class="classifier">object </span></dt>
<dd>Source area definition as AreaDefinition object</dd>
<dt>target_area_def <span class="classifier-delimiter">:</span> <span class="classifier">object </span></dt>
<dd>Target area definition as AreaDefinition object</dd>
<dt>nprocs <span class="classifier-delimiter">:</span> <span class="classifier">int, optional </span></dt>
<dd>Number of processor cores to be used</dd>
</dl>
<table class="docutils field-list" frame="void" rules="none">
<col class="field-name" />
<col class="field-body" />
<tbody valign="top">
<tr class="field-odd field"><th class="field-name">Returns:</th><td class="field-body"></td>
</tr>
</tbody>
</table>
<p>(row_indices, col_indices) : tuple of numpy arrays</p>
</dd></dl>

<dl class="function">
<dt id="pyresample.utils.get_area_def">
<code class="descclassname">pyresample.utils.</code><code class="descname">get_area_def</code><span class="sig-paren">(</span><em>area_id</em>, <em>area_name</em>, <em>proj_id</em>, <em>proj4_args</em>, <em>x_size</em>, <em>y_size</em>, <em>area_extent</em><span class="sig-paren">)</span><a class="headerlink" href="#pyresample.utils.get_area_def" title="Permalink to this definition"></a></dt>
<dd><p>Construct AreaDefinition object from arguments</p>
<table class="docutils field-list" frame="void" rules="none">
<col class="field-name" />
<col class="field-body" />
<tbody valign="top">
<tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"></td>
</tr>
</tbody>
</table>
<dl class="docutils">
<dt>area_id <span class="classifier-delimiter">:</span> <span class="classifier">str</span></dt>
<dd>ID of area</dd>
<dt>proj_id <span class="classifier-delimiter">:</span> <span class="classifier">str</span></dt>
<dd>ID of projection</dd>
<dt>area_name :str</dt>
<dd>Description of area</dd>
<dt>proj4_args <span class="classifier-delimiter">:</span> <span class="classifier">list or str</span></dt>
<dd>Proj4 arguments as list of arguments or string</dd>
<dt>x_size <span class="classifier-delimiter">:</span> <span class="classifier">int</span></dt>
<dd>Number of pixel in x dimension</dd>
<dt>y_size <span class="classifier-delimiter">:</span> <span class="classifier">int  </span></dt>
<dd>Number of pixel in y dimension</dd>
<dt>area_extent <span class="classifier-delimiter">:</span> <span class="classifier">list </span></dt>
<dd>Area extent as a list of ints (LL_x, LL_y, UR_x, UR_y)</dd>
</dl>
<table class="docutils field-list" frame="void" rules="none">
<col class="field-name" />
<col class="field-body" />
<tbody valign="top">
<tr class="field-odd field"><th class="field-name">Returns:</th><td class="field-body"></td>
</tr>
</tbody>
</table>
<dl class="docutils">
<dt>area_def <span class="classifier-delimiter">:</span> <span class="classifier">object</span></dt>
<dd>AreaDefinition object</dd>
</dl>
</dd></dl>

<dl class="function">
<dt id="pyresample.utils.load_area">
<code class="descclassname">pyresample.utils.</code><code class="descname">load_area</code><span class="sig-paren">(</span><em>area_file_name</em>, <em>*regions</em><span class="sig-paren">)</span><a class="headerlink" href="#pyresample.utils.load_area" title="Permalink to this definition"></a></dt>
<dd><p>Load area(s) from area file</p>
<table class="docutils field-list" frame="void" rules="none">
<col class="field-name" />
<col class="field-body" />
<tbody valign="top">
<tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"></td>
</tr>
</tbody>
</table>
<dl class="docutils">
<dt>area_file_name <span class="classifier-delimiter">:</span> <span class="classifier">str</span></dt>
<dd>Path to area definition file</dd>
<dt>regions <span class="classifier-delimiter">:</span> <span class="classifier">str argument list </span></dt>
<dd>Regions to parse. If no regions are specified all 
regions in the file are returned</dd>
</dl>
<table class="docutils field-list" frame="void" rules="none">
<col class="field-name" />
<col class="field-body" />
<tbody valign="top">
<tr class="field-odd field"><th class="field-name">Returns:</th><td class="field-body"></td>
</tr>
</tbody>
</table>
<dl class="docutils">
<dt>area_defs <span class="classifier-delimiter">:</span> <span class="classifier">object or list</span></dt>
<dd>If one area name is specified a single AreaDefinition object is returned
If several area names are specified a list of AreaDefinition objects is returned</dd>
</dl>
<table class="docutils field-list" frame="void" rules="none">
<col class="field-name" />
<col class="field-body" />
<tbody valign="top">
<tr class="field-odd field"><th class="field-name">Raises:</th><td class="field-body"></td>
</tr>
</tbody>
</table>
<dl class="docutils">
<dt>AreaNotFound</dt>
<dd>If a specified area name is not found</dd>
</dl>
</dd></dl>

<dl class="function">
<dt id="pyresample.utils.parse_area_file">
<code class="descclassname">pyresample.utils.</code><code class="descname">parse_area_file</code><span class="sig-paren">(</span><em>area_file_name</em>, <em>*regions</em><span class="sig-paren">)</span><a class="headerlink" href="#pyresample.utils.parse_area_file" title="Permalink to this definition"></a></dt>
<dd><p>Parse area information from area file</p>
<table class="docutils field-list" frame="void" rules="none">
<col class="field-name" />
<col class="field-body" />
<tbody valign="top">
<tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"></td>
</tr>
</tbody>
</table>
<dl class="docutils">
<dt>area_file_name <span class="classifier-delimiter">:</span> <span class="classifier">str</span></dt>
<dd>Path to area definition file</dd>
<dt>regions <span class="classifier-delimiter">:</span> <span class="classifier">str argument list </span></dt>
<dd>Regions to parse. If no regions are specified all 
regions in the file are returned</dd>
</dl>
<table class="docutils field-list" frame="void" rules="none">
<col class="field-name" />
<col class="field-body" />
<tbody valign="top">
<tr class="field-odd field"><th class="field-name">Returns:</th><td class="field-body"></td>
</tr>
</tbody>
</table>
<dl class="docutils">
<dt>area_defs <span class="classifier-delimiter">:</span> <span class="classifier">list</span></dt>
<dd>List of AreaDefinition objects</dd>
</dl>
<table class="docutils field-list" frame="void" rules="none">
<col class="field-name" />
<col class="field-body" />
<tbody valign="top">
<tr class="field-odd field"><th class="field-name">Raises:</th><td class="field-body"></td>
</tr>
</tbody>
</table>
<dl class="docutils">
<dt>AreaNotFound</dt>
<dd>If a specified area is not found</dd>
</dl>
</dd></dl>

<dl class="function">
<dt id="pyresample.utils.wrap_longitudes">
<code class="descclassname">pyresample.utils.</code><code class="descname">wrap_longitudes</code><span class="sig-paren">(</span><em>lons</em><span class="sig-paren">)</span><a class="headerlink" href="#pyresample.utils.wrap_longitudes" title="Permalink to this definition"></a></dt>
<dd><p>Wrap longitudes to the [-180:+180[ validity range (preserves dtype)</p>
<table class="docutils field-list" frame="void" rules="none">
<col class="field-name" />
<col class="field-body" />
<tbody valign="top">
<tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"></td>
</tr>
</tbody>
</table>
<dl class="docutils">
<dt>lons <span class="classifier-delimiter">:</span> <span class="classifier">numpy array</span></dt>
<dd>Longitudes in degrees</dd>
</dl>
<table class="docutils field-list" frame="void" rules="none">
<col class="field-name" />
<col class="field-body" />
<tbody valign="top">
<tr class="field-odd field"><th class="field-name">Returns:</th><td class="field-body"></td>
</tr>
</tbody>
</table>
<dl class="docutils">
<dt>lons <span class="classifier-delimiter">:</span> <span class="classifier">numpy array</span></dt>
<dd>Longitudes wrapped into [-180:+180[ validity range</dd>
</dl>
</dd></dl>

</div>
<div class="section" id="module-pyresample.data_reduce">
<span id="pyresample-data-reduce"></span><h2>pyresample.data_reduce<a class="headerlink" href="#module-pyresample.data_reduce" title="Permalink to this headline"></a></h2>
<p>Reduce data sets based on geographical information</p>
<dl class="function">
<dt id="pyresample.data_reduce.get_valid_index_from_cartesian_grid">
<code class="descclassname">pyresample.data_reduce.</code><code class="descname">get_valid_index_from_cartesian_grid</code><span class="sig-paren">(</span><em>cart_grid</em>, <em>lons</em>, <em>lats</em>, <em>radius_of_influence</em><span class="sig-paren">)</span><a class="headerlink" href="#pyresample.data_reduce.get_valid_index_from_cartesian_grid" title="Permalink to this definition"></a></dt>
<dd><p>Calculates relevant data indices using coarse data reduction of swath 
data by comparison with cartesian grid</p>
<table class="docutils field-list" frame="void" rules="none">
<col class="field-name" />
<col class="field-body" />
<tbody valign="top">
<tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"></td>
</tr>
</tbody>
</table>
<dl class="docutils">
<dt>chart_grid <span class="classifier-delimiter">:</span> <span class="classifier">numpy array          </span></dt>
<dd>Grid of area cartesian coordinates</dd>
<dt>lons <span class="classifier-delimiter">:</span> <span class="classifier">numpy array                </span></dt>
<dd>Swath lons</dd>
<dt>lats <span class="classifier-delimiter">:</span> <span class="classifier">numpy array                </span></dt>
<dd>Swath lats</dd>
<dt>data <span class="classifier-delimiter">:</span> <span class="classifier">numpy array                </span></dt>
<dd>Swath data</dd>
<dt>radius_of_influence <span class="classifier-delimiter">:</span> <span class="classifier">float </span></dt>
<dd>Cut off distance in meters</dd>
</dl>
<table class="docutils field-list" frame="void" rules="none">
<col class="field-name" />
<col class="field-body" />
<tbody valign="top">
<tr class="field-odd field"><th class="field-name">Returns:</th><td class="field-body"></td>
</tr>
</tbody>
</table>
<dl class="docutils">
<dt>valid_index <span class="classifier-delimiter">:</span> <span class="classifier">numpy array</span></dt>
<dd>Boolean array of same size as lons and lats indicating relevant indices</dd>
</dl>
</dd></dl>

<dl class="function">
<dt id="pyresample.data_reduce.get_valid_index_from_lonlat_boundaries">
<code class="descclassname">pyresample.data_reduce.</code><code class="descname">get_valid_index_from_lonlat_boundaries</code><span class="sig-paren">(</span><em>boundary_lons</em>, <em>boundary_lats</em>, <em>lons</em>, <em>lats</em>, <em>radius_of_influence</em><span class="sig-paren">)</span><a class="headerlink" href="#pyresample.data_reduce.get_valid_index_from_lonlat_boundaries" title="Permalink to this definition"></a></dt>
<dd><p>Find relevant indices from grid boundaries using the 
winding number theorem</p>
</dd></dl>

<dl class="function">
<dt id="pyresample.data_reduce.get_valid_index_from_lonlat_grid">
<code class="descclassname">pyresample.data_reduce.</code><code class="descname">get_valid_index_from_lonlat_grid</code><span class="sig-paren">(</span><em>grid_lons</em>, <em>grid_lats</em>, <em>lons</em>, <em>lats</em>, <em>radius_of_influence</em><span class="sig-paren">)</span><a class="headerlink" href="#pyresample.data_reduce.get_valid_index_from_lonlat_grid" title="Permalink to this definition"></a></dt>
<dd><p>Calculates relevant data indices using coarse data reduction of swath 
data by comparison with lon lat grid</p>
<table class="docutils field-list" frame="void" rules="none">
<col class="field-name" />
<col class="field-body" />
<tbody valign="top">
<tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"></td>
</tr>
</tbody>
</table>
<dl class="docutils">
<dt>chart_grid <span class="classifier-delimiter">:</span> <span class="classifier">numpy array          </span></dt>
<dd>Grid of area cartesian coordinates</dd>
<dt>lons <span class="classifier-delimiter">:</span> <span class="classifier">numpy array                </span></dt>
<dd>Swath lons</dd>
<dt>lats <span class="classifier-delimiter">:</span> <span class="classifier">numpy array                </span></dt>
<dd>Swath lats</dd>
<dt>data <span class="classifier-delimiter">:</span> <span class="classifier">numpy array                </span></dt>
<dd>Swath data</dd>
<dt>radius_of_influence <span class="classifier-delimiter">:</span> <span class="classifier">float </span></dt>
<dd>Cut off distance in meters</dd>
</dl>
<table class="docutils field-list" frame="void" rules="none">
<col class="field-name" />
<col class="field-body" />
<tbody valign="top">
<tr class="field-odd field"><th class="field-name">Returns:</th><td class="field-body"></td>
</tr>
</tbody>
</table>
<dl class="docutils">
<dt>valid_index <span class="classifier-delimiter">:</span> <span class="classifier">numpy array</span></dt>
<dd>Boolean array of same size as lon and lat indicating relevant indices</dd>
</dl>
</dd></dl>

<dl class="function">
<dt id="pyresample.data_reduce.swath_from_cartesian_grid">
<code class="descclassname">pyresample.data_reduce.</code><code class="descname">swath_from_cartesian_grid</code><span class="sig-paren">(</span><em>cart_grid</em>, <em>lons</em>, <em>lats</em>, <em>data</em>, <em>radius_of_influence</em><span class="sig-paren">)</span><a class="headerlink" href="#pyresample.data_reduce.swath_from_cartesian_grid" title="Permalink to this definition"></a></dt>
<dd><p>Makes coarse data reduction of swath data by comparison with 
cartesian grid</p>
<table class="docutils field-list" frame="void" rules="none">
<col class="field-name" />
<col class="field-body" />
<tbody valign="top">
<tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"></td>
</tr>
</tbody>
</table>
<dl class="docutils">
<dt>chart_grid <span class="classifier-delimiter">:</span> <span class="classifier">numpy array          </span></dt>
<dd>Grid of area cartesian coordinates</dd>
<dt>lons <span class="classifier-delimiter">:</span> <span class="classifier">numpy array                </span></dt>
<dd>Swath lons</dd>
<dt>lats <span class="classifier-delimiter">:</span> <span class="classifier">numpy array                </span></dt>
<dd>Swath lats</dd>
<dt>data <span class="classifier-delimiter">:</span> <span class="classifier">numpy array                </span></dt>
<dd>Swath data</dd>
<dt>radius_of_influence <span class="classifier-delimiter">:</span> <span class="classifier">float </span></dt>
<dd>Cut off distance in meters</dd>
</dl>
<table class="docutils field-list" frame="void" rules="none">
<col class="field-name" />
<col class="field-body" />
<tbody valign="top">
<tr class="field-odd field"><th class="field-name">Returns:</th><td class="field-body"></td>
</tr>
</tbody>
</table>
<dl class="docutils">
<dt>(lons, lats, data) <span class="classifier-delimiter">:</span> <span class="classifier">list of numpy arrays</span></dt>
<dd>Reduced swath data and coordinate set</dd>
</dl>
</dd></dl>

<dl class="function">
<dt id="pyresample.data_reduce.swath_from_lonlat_boundaries">
<code class="descclassname">pyresample.data_reduce.</code><code class="descname">swath_from_lonlat_boundaries</code><span class="sig-paren">(</span><em>boundary_lons</em>, <em>boundary_lats</em>, <em>lons</em>, <em>lats</em>, <em>data</em>, <em>radius_of_influence</em><span class="sig-paren">)</span><a class="headerlink" href="#pyresample.data_reduce.swath_from_lonlat_boundaries" title="Permalink to this definition"></a></dt>
<dd><p>Makes coarse data reduction of swath data by comparison with 
lon lat boundary</p>
<table class="docutils field-list" frame="void" rules="none">
<col class="field-name" />
<col class="field-body" />
<tbody valign="top">
<tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"></td>
</tr>
</tbody>
</table>
<dl class="docutils">
<dt>boundary_lons <span class="classifier-delimiter">:</span> <span class="classifier">numpy array          </span></dt>
<dd>Grid of area lons</dd>
<dt>boundary_lats <span class="classifier-delimiter">:</span> <span class="classifier">numpy array           </span></dt>
<dd>Grid of area lats</dd>
<dt>lons <span class="classifier-delimiter">:</span> <span class="classifier">numpy array                </span></dt>
<dd>Swath lons</dd>
<dt>lats <span class="classifier-delimiter">:</span> <span class="classifier">numpy array                </span></dt>
<dd>Swath lats</dd>
<dt>data <span class="classifier-delimiter">:</span> <span class="classifier">numpy array                </span></dt>
<dd>Swath data</dd>
<dt>radius_of_influence <span class="classifier-delimiter">:</span> <span class="classifier">float </span></dt>
<dd>Cut off distance in meters</dd>
</dl>
<table class="docutils field-list" frame="void" rules="none">
<col class="field-name" />
<col class="field-body" />
<tbody valign="top">
<tr class="field-odd field"><th class="field-name">Returns:</th><td class="field-body"></td>
</tr>
</tbody>
</table>
<dl class="docutils">
<dt>(lons, lats, data) <span class="classifier-delimiter">:</span> <span class="classifier">list of numpy arrays</span></dt>
<dd>Reduced swath data and coordinate set</dd>
</dl>
</dd></dl>

<dl class="function">
<dt id="pyresample.data_reduce.swath_from_lonlat_grid">
<code class="descclassname">pyresample.data_reduce.</code><code class="descname">swath_from_lonlat_grid</code><span class="sig-paren">(</span><em>grid_lons</em>, <em>grid_lats</em>, <em>lons</em>, <em>lats</em>, <em>data</em>, <em>radius_of_influence</em><span class="sig-paren">)</span><a class="headerlink" href="#pyresample.data_reduce.swath_from_lonlat_grid" title="Permalink to this definition"></a></dt>
<dd><p>Makes coarse data reduction of swath data by comparison with 
lon lat grid</p>
<table class="docutils field-list" frame="void" rules="none">
<col class="field-name" />
<col class="field-body" />
<tbody valign="top">
<tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"></td>
</tr>
</tbody>
</table>
<dl class="docutils">
<dt>grid_lons <span class="classifier-delimiter">:</span> <span class="classifier">numpy array          </span></dt>
<dd>Grid of area lons</dd>
<dt>grid_lats <span class="classifier-delimiter">:</span> <span class="classifier">numpy array           </span></dt>
<dd>Grid of area lats</dd>
<dt>lons <span class="classifier-delimiter">:</span> <span class="classifier">numpy array                </span></dt>
<dd>Swath lons</dd>
<dt>lats <span class="classifier-delimiter">:</span> <span class="classifier">numpy array                </span></dt>
<dd>Swath lats</dd>
<dt>data <span class="classifier-delimiter">:</span> <span class="classifier">numpy array                </span></dt>
<dd>Swath data</dd>
<dt>radius_of_influence <span class="classifier-delimiter">:</span> <span class="classifier">float </span></dt>
<dd>Cut off distance in meters</dd>
</dl>
<table class="docutils field-list" frame="void" rules="none">
<col class="field-name" />
<col class="field-body" />
<tbody valign="top">
<tr class="field-odd field"><th class="field-name">Returns:</th><td class="field-body"></td>
</tr>
</tbody>
</table>
<dl class="docutils">
<dt>(lons, lats, data) <span class="classifier-delimiter">:</span> <span class="classifier">list of numpy arrays</span></dt>
<dd>Reduced swath data and coordinate set</dd>
</dl>
</dd></dl>

</div>
<div class="section" id="module-plot">
<span id="pyresample-plot"></span><h2>pyresample.plot<a class="headerlink" href="#module-plot" title="Permalink to this headline"></a></h2>
<dl class="function">
<dt id="plot.area_def2basemap">
<code class="descclassname">plot.</code><code class="descname">area_def2basemap</code><span class="sig-paren">(</span><em>area_def</em>, <em>**kwargs</em><span class="sig-paren">)</span><a class="headerlink" href="#plot.area_def2basemap" title="Permalink to this definition"></a></dt>
<dd><p>Get Basemap object from AreaDefinition</p>
<table class="docutils field-list" frame="void" rules="none">
<col class="field-name" />
<col class="field-body" />
<tbody valign="top">
<tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"></td>
</tr>
</tbody>
</table>
<dl class="docutils">
<dt>area_def <span class="classifier-delimiter">:</span> <span class="classifier">object</span></dt>
<dd>geometry.AreaDefinition object</dd>
<dt><a href="#id1"><span class="problematic" id="id2">**</span></a>kwargs: Keyword arguments</dt>
<dd>Additional initialization arguments for Basemap</dd>
</dl>
<table class="docutils field-list" frame="void" rules="none">
<col class="field-name" />
<col class="field-body" />
<tbody valign="top">
<tr class="field-odd field"><th class="field-name">Returns:</th><td class="field-body"></td>
</tr>
</tbody>
</table>
<p>bmap : Basemap object</p>
</dd></dl>

<dl class="function">
<dt id="plot.ellps2axis">
<code class="descclassname">plot.</code><code class="descname">ellps2axis</code><span class="sig-paren">(</span><em>ellps_name</em><span class="sig-paren">)</span><a class="headerlink" href="#plot.ellps2axis" title="Permalink to this definition"></a></dt>
<dd><p>Get semi-major and semi-minor axis from ellipsis definition</p>
<table class="docutils field-list" frame="void" rules="none">
<col class="field-name" />
<col class="field-body" />
<tbody valign="top">
<tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"></td>
</tr>
</tbody>
</table>
<dl class="docutils">
<dt>ellps_name <span class="classifier-delimiter">:</span> <span class="classifier">str</span></dt>
<dd>Standard name of ellipsis</dd>
</dl>
<table class="docutils field-list" frame="void" rules="none">
<col class="field-name" />
<col class="field-body" />
<tbody valign="top">
<tr class="field-odd field"><th class="field-name">Returns:</th><td class="field-body"></td>
</tr>
</tbody>
</table>
<p>(a, b) : semi-major and semi-minor axis</p>
</dd></dl>

<dl class="function">
<dt id="plot.save_quicklook">
<code class="descclassname">plot.</code><code class="descname">save_quicklook</code><span class="sig-paren">(</span><em>filename</em>, <em>area_def</em>, <em>data</em>, <em>vmin=None</em>, <em>vmax=None</em>, <em>label='Variable (units)'</em>, <em>num_meridians=45</em>, <em>num_parallels=10</em>, <em>coast_res='c'</em>, <em>backend='AGG'</em><span class="sig-paren">)</span><a class="headerlink" href="#plot.save_quicklook" title="Permalink to this definition"></a></dt>
<dd><p>Display default quicklook plot</p>
<table class="docutils field-list" frame="void" rules="none">
<col class="field-name" />
<col class="field-body" />
<tbody valign="top">
<tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"></td>
</tr>
</tbody>
</table>
<dl class="docutils">
<dt>filename <span class="classifier-delimiter">:</span> <span class="classifier">str</span></dt>
<dd>path to output file</dd>
<dt>area_def <span class="classifier-delimiter">:</span> <span class="classifier">object</span></dt>
<dd>geometry.AreaDefinition object</dd>
<dt>data <span class="classifier-delimiter">:</span> <span class="classifier">numpy array | numpy masked array</span></dt>
<dd>2D array matching area_def. Use masked array for transparent values</dd>
<dt>vmin <span class="classifier-delimiter">:</span> <span class="classifier">float, optional</span></dt>
<dd>Min value for luminescence scaling</dd>
<dt>vmax <span class="classifier-delimiter">:</span> <span class="classifier">float, optional</span></dt>
<dd>Max value for luminescence scaling</dd>
<dt>label <span class="classifier-delimiter">:</span> <span class="classifier">str, optional</span></dt>
<dd>Label for data</dd>
<dt>num_meridians <span class="classifier-delimiter">:</span> <span class="classifier">int, optional</span></dt>
<dd>Number of meridians to plot on the globe</dd>
<dt>num_parallels <span class="classifier-delimiter">:</span> <span class="classifier">int, optional</span></dt>
<dd>Number of parallels to plot on the globe</dd>
<dt>coast_res <span class="classifier-delimiter">:</span> <span class="classifier">{&#8216;c&#8217;, &#8216;l&#8217;, &#8216;i&#8217;, &#8216;h&#8217;, &#8216;f&#8217;}, optional</span></dt>
<dd>Resolution of coastlines</dd>
<dt>backend <span class="classifier-delimiter">:</span> <span class="classifier">str, optional</span></dt>
<dd>matplotlib backend to use&#8217;</dd>
</dl>
</dd></dl>

<dl class="function">
<dt id="plot.show_quicklook">
<code class="descclassname">plot.</code><code class="descname">show_quicklook</code><span class="sig-paren">(</span><em>area_def</em>, <em>data</em>, <em>vmin=None</em>, <em>vmax=None</em>, <em>label='Variable (units)'</em>, <em>num_meridians=45</em>, <em>num_parallels=10</em>, <em>coast_res='c'</em><span class="sig-paren">)</span><a class="headerlink" href="#plot.show_quicklook" title="Permalink to this definition"></a></dt>
<dd><p>Display default quicklook plot</p>
<table class="docutils field-list" frame="void" rules="none">
<col class="field-name" />
<col class="field-body" />
<tbody valign="top">
<tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"></td>
</tr>
</tbody>
</table>
<dl class="docutils">
<dt>area_def <span class="classifier-delimiter">:</span> <span class="classifier">object</span></dt>
<dd>geometry.AreaDefinition object</dd>
<dt>data <span class="classifier-delimiter">:</span> <span class="classifier">numpy array | numpy masked array</span></dt>
<dd>2D array matching area_def. Use masked array for transparent values</dd>
<dt>vmin <span class="classifier-delimiter">:</span> <span class="classifier">float, optional</span></dt>
<dd>Min value for luminescence scaling</dd>
<dt>vmax <span class="classifier-delimiter">:</span> <span class="classifier">float, optional</span></dt>
<dd>Max value for luminescence scaling</dd>
<dt>label <span class="classifier-delimiter">:</span> <span class="classifier">str, optional</span></dt>
<dd>Label for data</dd>
<dt>num_meridians <span class="classifier-delimiter">:</span> <span class="classifier">int, optional</span></dt>
<dd>Number of meridians to plot on the globe</dd>
<dt>num_parallels <span class="classifier-delimiter">:</span> <span class="classifier">int, optional</span></dt>
<dd>Number of parallels to plot on the globe</dd>
<dt>coast_res <span class="classifier-delimiter">:</span> <span class="classifier">{&#8216;c&#8217;, &#8216;l&#8217;, &#8216;i&#8217;, &#8216;h&#8217;, &#8216;f&#8217;}, optional</span></dt>
<dd>Resolution of coastlines</dd>
</dl>
<table class="docutils field-list" frame="void" rules="none">
<col class="field-name" />
<col class="field-body" />
<tbody valign="top">
<tr class="field-odd field"><th class="field-name">Returns:</th><td class="field-body"></td>
</tr>
</tbody>
</table>
<p>bmap : Basemap object</p>
</dd></dl>

</div>
</div>


          </div>
        </div>
      </div>
      <div class="sphinxsidebar" role="navigation" aria-label="main navigation">
        <div class="sphinxsidebarwrapper">
  <h3><a href="index.html">Table Of Contents</a></h3>
  <ul>
<li><a class="reference internal" href="#">pyresample API</a><ul>
<li><a class="reference internal" href="#module-pyresample.geometry">pyresample.geometry</a></li>
<li><a class="reference internal" href="#module-pyresample.image">pyresample.image</a></li>
<li><a class="reference internal" href="#module-pyresample.grid">pyresample.grid</a></li>
<li><a class="reference internal" href="#module-pyresample.kd_tree">pyresample.kd_tree</a></li>
<li><a class="reference internal" href="#module-pyresample.utils">pyresample.utils</a></li>
<li><a class="reference internal" href="#module-pyresample.data_reduce">pyresample.data_reduce</a></li>
<li><a class="reference internal" href="#module-plot">pyresample.plot</a></li>
</ul>
</li>
</ul>

  <h4>Previous topic</h4>
  <p class="topless"><a href="data_reduce.html"
                        title="previous chapter">Reduction of swath data</a></p>
  <div role="note" aria-label="source link">
    <h3>This Page</h3>
    <ul class="this-page-menu">
      <li><a href="_sources/API.txt"
            rel="nofollow">Show Source</a></li>
    </ul>
   </div>
<div id="searchbox" style="display: none" role="search">
  <h3>Quick search</h3>
    <form class="search" action="search.html" method="get">
      <input type="text" name="q" />
      <input type="submit" value="Go" />
      <input type="hidden" name="check_keywords" value="yes" />
      <input type="hidden" name="area" value="default" />
    </form>
    <p class="searchtip" style="font-size: 90%">
    Enter search terms or a module, class or function name.
    </p>
</div>
<script type="text/javascript">$('#searchbox').show(0);</script>
        </div>
      </div>
      <div class="clearer"></div>
    </div>
    <div class="related" role="navigation" aria-label="related navigation">
      <h3>Navigation</h3>
      <ul>
        <li class="right" style="margin-right: 10px">
          <a href="genindex.html" title="General Index"
             >index</a></li>
        <li class="right" >
          <a href="py-modindex.html" title="Python Module Index"
             >modules</a> |</li>
        <li class="right" >
          <a href="data_reduce.html" title="Reduction of swath data"
             >previous</a> |</li>
        <li class="nav-item nav-item-0"><a href="index.html">pyresample 1.1.6 documentation</a> &raquo;</li> 
      </ul>
    </div>
    <div class="footer" role="contentinfo">
        &copy; Copyright 2013, Esben S. Nielsen.
      Created using <a href="http://sphinx-doc.org/">Sphinx</a> 1.3.6.
    </div>
  </body>
</html>