Skip to content

Commit

Permalink
Remove dependency on scipy, numexpr
Browse files Browse the repository at this point in the history
There were some hidden dependencies on scipy.ndimage and numexpr which
were not recorded in the documentation. This update removes those
dependencies, and replaces the calculation of the slope and aspect with
only numpy functions, based on numpy version 1.6 (which is the standard
packaged with ArcGIS 10.2).

Because of the way that the scipy.ndimage functions calculated the slope
(giving a slightly smoothed result), it was necessary to update the test
data sets. We chose this route to avoid the requirement of essentially
duplicating the scipy.ndimage.convolve2d code, using only Numpy.

Modifications were also made to the way the slope is calculated for cells
adjacent to nodata values. The updated approach gives a better
representation of the slope in these areas that is of a similar scale to
the neighbouring values.
  • Loading branch information
wcarthur committed May 8, 2017
1 parent 6c10a79 commit 3cae52c
Show file tree
Hide file tree
Showing 140 changed files with 225 additions and 886 deletions.
5 changes: 4 additions & 1 deletion docs/install.rst
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,11 @@ For detailed instructions on installation of these dependencies, please see the

* `Python <https://www.python.org/>`_ - v2.7 preferred
* `Numpy <http://www.numpy.org/>`_ - v1.6.2 preferred
* `Nose <http://nose.readthedocs.io/en/latest/index.html>`_
* `Arcpy in ArcGIS 10.2 <http://resources.arcgis.com/en/help/main/10.2/index.html#//000v000000v7000000/>`_

.. note:: ArcGIS 10.2 is packaged with a modified version of `Numpy`. In our experience, attempting to update the `Numpy` package will cause the `arcpy` library to fail catastrophically, and usually without reporting any error message. We recommend not trying to upgrade the version of `Numpy` linked to your `ArcGIS` installation.

Setting the environment
-----------------------
To enable BAL toolbox to run flawlessly, you may need to change some environment settings. The important variable to set is the ``PYTHONPATH`` variable. This should be set to the path where you have extracted the contents of the zip file. A complete discussion on environment variables in Python is given in the `Python documentation <https://docs.python.org/2/using/cmdline.html#environment-variables>`_.
Expand All @@ -35,7 +38,7 @@ The Python documentation contains some simple instructions for setting environme
Testing the installation
------------------------

The code includes a suite of unit tests that ensure elements of the code base work as expected. The code should be tested before running the toolbox.
The code includes a suite of unit tests that ensure elements of the code base work as expected. The code should be tested before running the toolbox. Users will need to install the `Nose <http://nose.readthedocs.io/en/latest/index.html>`_ package to run these tests.

The test suite can be run from the main directory. On Windows, run the ``run_test_all.cmd`` script from the main BAL directory.

Expand Down
Binary file modified examples/input/info/arc.dir
Binary file not shown.
Binary file modified examples/output/bal_e.img
Binary file not shown.
8 changes: 4 additions & 4 deletions examples/output/bal_e.img.aux.xml
Original file line number Diff line number Diff line change
Expand Up @@ -11,17 +11,17 @@
<BucketCount>256</BucketCount>
<IncludeOutOfRange>1</IncludeOutOfRange>
<Approximate>0</Approximate>
<HistCounts>411|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|2154|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|253|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|1337|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|103</HistCounts>
<HistCounts>411|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|2186|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|221|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|1151|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|289</HistCounts>
</HistItem>
</Histograms>
<Metadata>
<MDI key="STATISTICS_COVARIANCES">234.665030108727</MDI>
<MDI key="STATISTICS_COVARIANCES">451.439340329464</MDI>
<MDI key="STATISTICS_MINIMUM">12.5</MDI>
<MDI key="STATISTICS_MAXIMUM">100</MDI>
<MDI key="STATISTICS_MEAN">27.520079849695</MDI>
<MDI key="STATISTICS_MEAN">30.065875998121</MDI>
<MDI key="STATISTICS_MEDIAN">0</MDI>
<MDI key="STATISTICS_MODE">0</MDI>
<MDI key="STATISTICS_STDDEV">15.318780307476</MDI>
<MDI key="STATISTICS_STDDEV">21.24710192778</MDI>
<MDI key="STATISTICS_SKIPFACTORX">1</MDI>
<MDI key="STATISTICS_SKIPFACTORY">1</MDI>
<MDI key="STATISTICS_EXCLUDEDVALUES"></MDI>
Expand Down
2 changes: 1 addition & 1 deletion examples/output/bal_e.img.xml
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
<?xml version="1.0" encoding="UTF-8"?>
<metadata xml:lang="en"><Esri><CreaDate>20160708</CreaDate><CreaTime>13565300</CreaTime><ArcGISFormat>1.0</ArcGISFormat><ArcGISstyle>ANZLIC</ArcGISstyle><SyncOnce>TRUE</SyncOnce><DataProperties><lineage><Process ToolSource="c:\program files (x86)\arcgis\desktop10.2\ArcToolbox\Toolboxes\Data Management Tools.tbx\DefineProjection" Date="20160708" Time="135653">DefineProjection bal_e.img PROJCS['GDA_1994_MGA_Zone_50',GEOGCS['GCS_GDA_1994',DATUM['D_GDA_1994',SPHEROID['GRS_1980',6378137.0,298.257222101]],PRIMEM['Greenwich',0.0],UNIT['Degree',0.0174532925199433]],PROJECTION['Transverse_Mercator'],PARAMETER['False_Easting',500000.0],PARAMETER['False_Northing',10000000.0],PARAMETER['Central_Meridian',117.0],PARAMETER['Scale_Factor',0.9996],PARAMETER['Latitude_Of_Origin',0.0],UNIT['Meter',1.0]]</Process></lineage></DataProperties></Esri></metadata>
<metadata xml:lang="en"><Esri><CreaDate>20170508</CreaDate><CreaTime>14473700</CreaTime><ArcGISFormat>1.0</ArcGISFormat><ArcGISstyle>ANZLIC</ArcGISstyle><SyncOnce>TRUE</SyncOnce><DataProperties><lineage><Process ToolSource="c:\program files (x86)\arcgis\desktop10.2\ArcToolbox\Toolboxes\Data Management Tools.tbx\DefineProjection" Date="20170508" Time="144737">DefineProjection bal_e.img PROJCS['GDA_1994_MGA_Zone_50',GEOGCS['GCS_GDA_1994',DATUM['D_GDA_1994',SPHEROID['GRS_1980',6378137.0,298.257222101]],PRIMEM['Greenwich',0.0],UNIT['Degree',0.0174532925199433]],PROJECTION['Transverse_Mercator'],PARAMETER['False_Easting',500000.0],PARAMETER['False_Northing',10000000.0],PARAMETER['Central_Meridian',117.0],PARAMETER['Scale_Factor',0.9996],PARAMETER['Latitude_Of_Origin',0.0],UNIT['Meter',1.0]]</Process></lineage></DataProperties></Esri></metadata>
Binary file modified examples/output/bal_e.rrd
Binary file not shown.
Binary file modified examples/output/bal_max.img
Binary file not shown.
8 changes: 4 additions & 4 deletions examples/output/bal_max.img.aux.xml
Original file line number Diff line number Diff line change
Expand Up @@ -11,17 +11,17 @@
<BucketCount>256</BucketCount>
<IncludeOutOfRange>1</IncludeOutOfRange>
<Approximate>0</Approximate>
<HistCounts>832|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|1461|0|0|0|0|0|0|0|0|0|0|0|0|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ANCES">766.286164255348</MDI>
<MDI key="STATISTICS_COVARIANCES">760.045107438503</MDI>
<MDI key="STATISTICS_MINIMUM">12.5</MDI>
<MDI key="STATISTICS_MAXIMUM">100</MDI>
<MDI key="STATISTICS_MEAN">35.632324779778</MDI>
<MDI key="STATISTICS_MEAN">35.444657219456</MDI>
<MDI key="STATISTICS_MEDIAN">0</MDI>
<MDI key="STATISTICS_MODE">0</MDI>
<MDI key="STATISTICS_STDDEV">27.681874290867</MDI>
<MDI key="STATISTICS_STDDEV">27.568915601425</MDI>
<MDI key="STATISTICS_SKIPFACTORX">1</MDI>
<MDI key="STATISTICS_SKIPFACTORY">1</MDI>
<MDI key="STATISTICS_EXCLUDEDVALUES"></MDI>
Expand Down
2 changes: 1 addition & 1 deletion examples/output/bal_max.img.xml
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
<?xml version="1.0" encoding="UTF-8"?>
<metadata xml:lang="en"><Esri><CreaDate>20160708</CreaDate><CreaTime>13565500</CreaTime><ArcGISFormat>1.0</ArcGISFormat><ArcGISstyle>ANZLIC</ArcGISstyle><SyncOnce>TRUE</SyncOnce><DataProperties><lineage><Process ToolSource="c:\program files (x86)\arcgis\desktop10.2\ArcToolbox\Toolboxes\Data Management Tools.tbx\DefineProjection" Date="20160708" Time="135655">DefineProjection bal_max.img PROJCS['GDA_1994_MGA_Zone_50',GEOGCS['GCS_GDA_1994',DATUM['D_GDA_1994',SPHEROID['GRS_1980',6378137.0,298.257222101]],PRIMEM['Greenwich',0.0],UNIT['Degree',0.0174532925199433]],PROJECTION['Transverse_Mercator'],PARAMETER['False_Easting',500000.0],PARAMETER['False_Northing',10000000.0],PARAMETER['Central_Meridian',117.0],PARAMETER['Scale_Factor',0.9996],PARAMETER['Latitude_Of_Origin',0.0],UNIT['Meter',1.0]]</Process></lineage></DataProperties></Esri></metadata>
<metadata xml:lang="en"><Esri><CreaDate>20170508</CreaDate><CreaTime>14474200</CreaTime><ArcGISFormat>1.0</ArcGISFormat><ArcGISstyle>ANZLIC</ArcGISstyle><SyncOnce>TRUE</SyncOnce><DataProperties><lineage><Process ToolSource="c:\program files (x86)\arcgis\desktop10.2\ArcToolbox\Toolboxes\Data Management Tools.tbx\DefineProjection" Date="20170508" Time="144742">DefineProjection bal_max.img PROJCS['GDA_1994_MGA_Zone_50',GEOGCS['GCS_GDA_1994',DATUM['D_GDA_1994',SPHEROID['GRS_1980',6378137.0,298.257222101]],PRIMEM['Greenwich',0.0],UNIT['Degree',0.0174532925199433]],PROJECTION['Transverse_Mercator'],PARAMETER['False_Easting',500000.0],PARAMETER['False_Northing',10000000.0],PARAMETER['Central_Meridian',117.0],PARAMETER['Scale_Factor',0.9996],PARAMETER['Latitude_Of_Origin',0.0],UNIT['Meter',1.0]]</Process></lineage></DataProperties></Esri></metadata>
Binary file modified examples/output/bal_max.rrd
Binary file not shown.
Binary file modified examples/output/bal_n.img
Binary file not shown.
8 changes: 4 additions & 4 deletions examples/output/bal_n.img.aux.xml
Original file line number Diff line number Diff line change
Expand Up @@ -11,17 +11,17 @@
<BucketCount>256</BucketCount>
<IncludeOutOfRange>1</IncludeOutOfRange>
<Approximate>0</Approximate>
<HistCounts>451|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|1897|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|520|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|1067|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|302</HistCounts>
<HistCounts>451|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|2154|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|271|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|1293|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|68</HistCounts>
</HistItem>
</Histograms>
<Metadata>
<MDI key="STATISTICS_COVARIANCES">461.086977736488</MDI>
<MDI key="STATISTICS_COVARIANCES">192.198080118645</MDI>
<MDI key="STATISTICS_MINIMUM">12.5</MDI>
<MDI key="STATISTICS_MAXIMUM">100</MDI>
<MDI key="STATISTICS_MEAN">30.597238612226</MDI>
<MDI key="STATISTICS_MEAN">26.656242624498</MDI>
<MDI key="STATISTICS_MEDIAN">0</MDI>
<MDI key="STATISTICS_MODE">0</MDI>
<MDI key="STATISTICS_STDDEV">21.47293593658</MDI>
<MDI key="STATISTICS_STDDEV">13.863552218629</MDI>
<MDI key="STATISTICS_SKIPFACTORX">1</MDI>
<MDI key="STATISTICS_SKIPFACTORY">1</MDI>
<MDI key="STATISTICS_EXCLUDEDVALUES"></MDI>
Expand Down
2 changes: 1 addition & 1 deletion examples/output/bal_n.img.xml
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
<?xml version="1.0" encoding="UTF-8"?>
<metadata xml:lang="en"><Esri><CreaDate>20160708</CreaDate><CreaTime>13565300</CreaTime><ArcGISFormat>1.0</ArcGISFormat><ArcGISstyle>ANZLIC</ArcGISstyle><SyncOnce>TRUE</SyncOnce><DataProperties><lineage><Process ToolSource="c:\program files (x86)\arcgis\desktop10.2\ArcToolbox\Toolboxes\Data Management Tools.tbx\DefineProjection" Date="20160708" Time="135653">DefineProjection bal_n.img PROJCS['GDA_1994_MGA_Zone_50',GEOGCS['GCS_GDA_1994',DATUM['D_GDA_1994',SPHEROID['GRS_1980',6378137.0,298.257222101]],PRIMEM['Greenwich',0.0],UNIT['Degree',0.0174532925199433]],PROJECTION['Transverse_Mercator'],PARAMETER['False_Easting',500000.0],PARAMETER['False_Northing',10000000.0],PARAMETER['Central_Meridian',117.0],PARAMETER['Scale_Factor',0.9996],PARAMETER['Latitude_Of_Origin',0.0],UNIT['Meter',1.0]]</Process></lineage></DataProperties></Esri></metadata>
<metadata xml:lang="en"><Esri><CreaDate>20170508</CreaDate><CreaTime>14473800</CreaTime><ArcGISFormat>1.0</ArcGISFormat><ArcGISstyle>ANZLIC</ArcGISstyle><SyncOnce>TRUE</SyncOnce><DataProperties><lineage><Process ToolSource="c:\program files (x86)\arcgis\desktop10.2\ArcToolbox\Toolboxes\Data Management Tools.tbx\DefineProjection" Date="20170508" Time="144738">DefineProjection bal_n.img PROJCS['GDA_1994_MGA_Zone_50',GEOGCS['GCS_GDA_1994',DATUM['D_GDA_1994',SPHEROID['GRS_1980',6378137.0,298.257222101]],PRIMEM['Greenwich',0.0],UNIT['Degree',0.0174532925199433]],PROJECTION['Transverse_Mercator'],PARAMETER['False_Easting',500000.0],PARAMETER['False_Northing',10000000.0],PARAMETER['Central_Meridian',117.0],PARAMETER['Scale_Factor',0.9996],PARAMETER['Latitude_Of_Origin',0.0],UNIT['Meter',1.0]]</Process></lineage></DataProperties></Esri></metadata>
Binary file modified examples/output/bal_n.rrd
Binary file not shown.
Binary file modified examples/output/bal_ne.img
Binary file not shown.
12 changes: 6 additions & 6 deletions examples/output/bal_ne.img.aux.xml
Original file line number Diff line number Diff line change
Expand Up @@ -7,21 +7,21 @@
<Histograms>
<HistItem>
<HistMin>12.5</HistMin>
<HistMax>40</HistMax>
<HistMax>29</HistMax>
<BucketCount>256</BucketCount>
<IncludeOutOfRange>1</IncludeOutOfRange>
<Approximate>0</Approximate>
<HistCounts>2492|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|370|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|1358|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|3</HistCounts>
<HistCounts>2572|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|289|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|1362</HistCounts>
</HistItem>
</Histograms>
<Metadata>
<MDI key="STATISTICS_COVARIANCES">57.0497805715985</MDI>
<MDI key="STATISTICS_COVARIANCES">57.4595693789834</MDI>
<MDI key="STATISTICS_MINIMUM">12.5</MDI>
<MDI key="STATISTICS_MAXIMUM">40</MDI>
<MDI key="STATISTICS_MEAN">18.394979872129</MDI>
<MDI key="STATISTICS_MAXIMUM">29</MDI>
<MDI key="STATISTICS_MEAN">18.266398295051</MDI>
<MDI key="STATISTICS_MEDIAN">0</MDI>
<MDI key="STATISTICS_MODE">0</MDI>
<MDI key="STATISTICS_STDDEV">7.5531305146673</MDI>
<MDI key="STATISTICS_STDDEV">7.5802090590553</MDI>
<MDI key="STATISTICS_SKIPFACTORX">1</MDI>
<MDI key="STATISTICS_SKIPFACTORY">1</MDI>
<MDI key="STATISTICS_EXCLUDEDVALUES"></MDI>
Expand Down
2 changes: 1 addition & 1 deletion examples/output/bal_ne.img.xml
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
<?xml version="1.0" encoding="UTF-8"?>
<metadata xml:lang="en"><Esri><CreaDate>20160708</CreaDate><CreaTime>13565500</CreaTime><ArcGISFormat>1.0</ArcGISFormat><ArcGISstyle>ANZLIC</ArcGISstyle><SyncOnce>TRUE</SyncOnce><DataProperties><lineage><Process ToolSource="c:\program files (x86)\arcgis\desktop10.2\ArcToolbox\Toolboxes\Data Management Tools.tbx\DefineProjection" Date="20160708" Time="135655">DefineProjection bal_ne.img PROJCS['GDA_1994_MGA_Zone_50',GEOGCS['GCS_GDA_1994',DATUM['D_GDA_1994',SPHEROID['GRS_1980',6378137.0,298.257222101]],PRIMEM['Greenwich',0.0],UNIT['Degree',0.0174532925199433]],PROJECTION['Transverse_Mercator'],PARAMETER['False_Easting',500000.0],PARAMETER['False_Northing',10000000.0],PARAMETER['Central_Meridian',117.0],PARAMETER['Scale_Factor',0.9996],PARAMETER['Latitude_Of_Origin',0.0],UNIT['Meter',1.0]]</Process></lineage></DataProperties></Esri></metadata>
<metadata xml:lang="en"><Esri><CreaDate>20170508</CreaDate><CreaTime>14474000</CreaTime><ArcGISFormat>1.0</ArcGISFormat><ArcGISstyle>ANZLIC</ArcGISstyle><SyncOnce>TRUE</SyncOnce><DataProperties><lineage><Process ToolSource="c:\program files (x86)\arcgis\desktop10.2\ArcToolbox\Toolboxes\Data Management Tools.tbx\DefineProjection" Date="20170508" Time="144740">DefineProjection bal_ne.img PROJCS['GDA_1994_MGA_Zone_50',GEOGCS['GCS_GDA_1994',DATUM['D_GDA_1994',SPHEROID['GRS_1980',6378137.0,298.257222101]],PRIMEM['Greenwich',0.0],UNIT['Degree',0.0174532925199433]],PROJECTION['Transverse_Mercator'],PARAMETER['False_Easting',500000.0],PARAMETER['False_Northing',10000000.0],PARAMETER['Central_Meridian',117.0],PARAMETER['Scale_Factor',0.9996],PARAMETER['Latitude_Of_Origin',0.0],UNIT['Meter',1.0]]</Process></lineage></DataProperties></Esri></metadata>
Binary file modified examples/output/bal_ne.rrd
Binary file not shown.
Binary file modified examples/output/bal_nw.img
Binary file not shown.
12 changes: 6 additions & 6 deletions examples/output/bal_nw.img.aux.xml
Original file line number Diff line number Diff line change
Expand Up @@ -7,21 +7,21 @@
<Histograms>
<HistItem>
<HistMin>12.5</HistMin>
<HistMax>29</HistMax>
<HistMax>40</HistMax>
<BucketCount>256</BucketCount>
<Includ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|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|2</HistCounts>
</HistItem>
</Histograms>
<Metadata>
<MDI key="STATISTICS_COVARIANCES">57.1946014196231</MDI>
<MDI key="STATISTICS_COVARIANCES">57.3046617124558</MDI>
<MDI key="STATISTICS_MINIMUM">12.5</MDI>
<MDI key="STATISTICS_MAXIMUM">29</MDI>
<MDI key="STATISTICS_MEAN">18.50339640951</MDI>
<MDI key="STATISTICS_MAXIMUM">40</MDI>
<MDI key="STATISTICS_MEAN">18.5269286754</MDI>
<MDI key="STATISTICS_MEDIAN">0</MDI>
<MDI key="STATISTICS_MODE">0</MDI>
<MDI key="STATISTICS_STDDEV">7.5627112479337</MDI>
<MDI key="STATISTICS_STDDEV">7.5699842610441</MDI>
<MDI key="STATISTICS_SKIPFACTORX">1</MDI>
<MDI key="STATISTICS_SKIPFACTORY">1</MDI>
<MDI key="STATISTICS_EXCLUDEDVALUES"></MDI>
Expand Down

0 comments on commit 3cae52c

Please sign in to comment.