Commit 5967f77e authored by Mario Chirinos's avatar Mario Chirinos

update

parent 840a3915
......@@ -6,17 +6,25 @@ import json
#===============================================================================
def getMinMax(clase):
polylist = []
for item in os.listdir("."):
if os.path.isdir(item):
print(item)
with open(os.getcwd()+"/"+item+"/scl_data.json") as json_file:
data = json.load(json_file)
values = []
for k, v in data.items():
values.append(v[clase])
minval = min(values)
maxval = max(values)
print(minval, maxval)
dataSCL = json.load(json_file)
with open(os.getcwd()+"/"+item+"/findProducts.json") as json_file:
dataWKT = json.load(json_file)
wkt = dataWKT["wkt"]
values = []
for k, v in dataSCL.items():
values.append(v[clase])
minval = min(values)
maxval = max(values)
polylist.append({"wkt":wkt, "min":minval}, "max":maxval)
print(polylist)
#===============================================================================
def main(argv):
......
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