##-------Operating instructions-----------+++++++++++
##Name:    GlacierCenterlines_Py27
##Version: 5.2.0
##Type:    Executable file (*.exe)
##Env:     ArcGIS 10.4 / Windows7/ Windows10
##Developer: ZDH/Zhang Dahong
##Email:   zhangdh_yx@163.com
##Time:    Feb.25, 2021

##----------------------------------------+++++++++++

1.Presetting the related environment for ArcGIS:

Modify the five elements in the configuration file using corresponding on local configuration about ArcGIS.
    (Path: \...\GlacierCenterlines_Py27_v5.2.0\site-packages\Desktop10.4_32bit.pth)

Content:
a.\...\ArcGIS\Desktop10.4\bin
b.\...\ArcGIS\Desktop10.4\arcpy
c.\...\ArcGIS\Desktop10.4\ArcToolbox\Scripts
d.\...\Python27\ArcGIS10.4\Lib
e.\...\Python27\ArcGIS10.4\Lib\site-packages



2.Running the GlacierCenterlines_Py27.exe 
(It is best to put shorter English path) 
(The folder (GlacierCenterlines_Py27_v5.2.0) is a whole and splitting is not allowed in running.)

Fill in the parameters in the GUI:
>> Glaciers (*.shp)
>> DEM (*.tif/Grid)
>> Glaciers' ID (char)
>> Result folder (optional)
>> Other parameters (Default parameters can be selected, or user-adjusted parameter files.)
       (Path: \...\GlacierCenterlines_Py27_v5.2.0\Other_parameters_T1.txt)

Click 'OK' to run...
------------------------------------------------------------------
Wait for the end of the program.
------------------------------------------------------------------

Tips:
## both the cache directory and the result directory can be automatically created in the directory where the script or the input data is located. temp" is the cache and "Resextracting" is the results.

## The result path can also be set by the user in the GUI.

## Files in "temp" are cleaned up automatically.

## Files contained in "ResExtracting" or the result folder set in the GUI are as follows:

##          log file (1); The Extreme points of glaciers(2);Glacier Length(4);
##          Characteristic lines of glacier surface(1);Glacier centerlines(1);
##          Glaciers of failed Running (if any) (1)
##------------------------------------------------------------------+++++++++++