From 4d4a7e72b3e6192fb7b8b732a5aab67577398db9 Mon Sep 17 00:00:00 2001 From: gabe venberg Date: Fri, 5 Mar 2021 16:52:13 -0600 Subject: [PATCH] *changed info logging to print statements *fixed calculation of output files --- outputHightMap.py | 19 ++++++++++++------- 1 file changed, 12 insertions(+), 7 deletions(-) diff --git a/outputHightMap.py b/outputHightMap.py index 2c47025..a085a0b 100755 --- a/outputHightMap.py +++ b/outputHightMap.py @@ -5,13 +5,14 @@ # --output, -o, name of output file. if there are multiple input files, there will be a number prepended to this. # after all comamnd line arguments, file or files(space seperated) to process. +import os.path import numpy as np import sys, argparse, laspy, logging import seaborn as sns; sns.set_theme() import matplotlib.pyplot as plt from PIL import Image -logging.basicConfig(format='%(levelname)s:%(message)s', level=logging.INFO) +logging.basicConfig(format='%(asctime)s:%(levelname)s:%(message)s', level=logging.INFO) def sort(array): #sort by zDim column, first to last. @@ -43,14 +44,16 @@ def scale(array, xRange, yRange, maxX, maxY): def isInxyRange(xMin, xMax, yMin, yMax, xVal, yVal): return (xMin<=xVal) and (xVal