-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathprojection-debug.py
38 lines (31 loc) · 963 Bytes
/
projection-debug.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
#debug of projection
import argparse
import subprocess as sub
import shutil
import os
import geopandas as gpd
import pandas as pd
from time import sleep
import csv
import sys
import ogr
import gdal
import osr
#LSDTopoTools specific imports
#Loading the LSDTT setup configuration
setup_file = open('chi_automation.config','r')
LSDMT_PT = setup_file.readline().rstrip()
LSDMT_MF = setup_file.readline().rstrip()
Iguanodon = setup_file.readline().rstrip()
setup_file.close()
sys.path.append(LSDMT_PT)
sys.path.append(LSDMT_MF)
sys.path.append(Iguanodon)
import LSDPlottingTools as LSDPT
directory = "/exports/csce/datastore/geos/groups/LSDTopoData/Himalayan_Ksn_Concavity/cosmo_data/basin_shapefiles/"
fileList = os.listdir(directory)
for file in fileList:
if file.endswith('.shp'):
tempSource = ogr.Open(directory+file)
tempLayer = tempSource.GetLayer(0)
print(tempLayer.GetSpatialRef().ExportToProj4())