Commit ac96614d authored by Mario Chirinos's avatar Mario Chirinos

import .

parent 4bfd66e0
......@@ -10,22 +10,26 @@ import json
from collections import Counter
#from collections import OrderedDict
########### lee archivo de configuración ################
dirname = os.path.dirname(__file__)
configfile = os.path.join(dirname, '../config/config.json')
############ lee archivo de configuración ################
#dirname = os.path.dirname(__file__)
#configfile = os.path.join(dirname, '../config/config.json')
with open(configfile, 'r') as f:
config = json.load(f)
#with open(configfile, 'r') as f:
# config = json.load(f)
#print(config['PATHS']['PATH_GEOSENTINEL'])
##print(config['PATHS']['PATH_GEOSENTINEL'])
SENTINEL_PATH = config['PATHS']['PATH_GEOSENTINEL']
###########################################################
#SENTINEL_PATH = config['PATHS']['PATH_GEOSENTINEL']
############################################################
sys.path.append(SENTINEL_PATH)
#sys.path.append(SENTINEL_PATH)
from geosentinel import rasterWkt
#from geosentinel import rasterWkt
if __name__ == "__main__": # Local Run
import rasterWkt
else: # Module Run, When going production - delete if/else
from . import rasterWkt
CLASS_MAP = {0:0, 1:1, 2:2, 3:3, 4:4, 5:5, 6:6, 7:7, 8:8, 9:8, 10:8, 11:9}
#-------------------------------------------------------------------------------
def L2ASCLtoDict(filename, wkt):
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment