forked from LSDtopotools/LSDMappingTools
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathTestMappingTools.py
49 lines (39 loc) · 1.4 KB
/
TestMappingTools.py
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
# -*- coding: utf-8 -*-
"""
Created on Tue May 05 14:08:16 2015
@author: smudd
"""
import numpy as np
import LSDMappingTools as LSDmt
def TestMappingTools():
#DataDirectory = "C://basin_data//Chile//lat26p0//"
#Filename = "Site_lat26p0_UTM19_DEM_FILL.bil"
DataDirectory = "C://basin_data//Model_results//June2015_Results//HighK//"
Filename = "InitialForCRN.asc"
#Filename = "CRNvariable_long_0_0_1var128.asc"
DrapeFileName = "CRNvariable_long_0_0_1var128_erosion.asc"
ThisFile = DataDirectory+Filename
DrapeFile =DataDirectory+DrapeFileName
#data = LSDmt.ReadRasterArrayBlocks(ThisFile)
#print "Data is: "
#print data
#print data.shape
NDV, xsize, ysize, GeoT, Projection, DataType = LSDmt.GetGeoInfo(ThisFile)
print "NDV: " + str(NDV)
print "xsize: " + str(xsize)
print "ysize: " + str(ysize)
print "GeoT: " + str(GeoT)
print "Projection: " + str(Projection)
print "DataType: " + str(DataType)
CellSize,XMin,XMax,YMin,YMax = LSDmt.GetUTMMaxMin(ThisFile)
print "CellSize: " + str(CellSize)
print "XMin: " + str(XMin)
print "XMax: " + str(XMax)
print "YMin: " + str(YMin)
print "YMax: " + str(YMax)
tcmap = 'bone'
LSDmt.BasicDensityPlot(ThisFile,tcmap)
#LSDmt.DrapedPlot(ThisFile,DrapeFile)
if __name__ == "__main__":
#fit_weibull_from_file(sys.argv[1])
TestMappingTools()