os.mkdir(frpath) lg.info(" * Creating directory '%s'..." % (frpath)) lg.info("") ## The path to the cluster images. klpath = (dp.get_output_path() + "/clusters/").replace("//", "/") # if os.path.isdir(klpath): rmtree(klpath) lg.info(" * Removing directory '%s'..." % (klpath)) os.mkdir(klpath) lg.info(" * Creating directory '%s'..." % (klpath)) lg.info("") ## The dataset to process. ds = Dataset(dp.get_input_path() + "/ASCIIxyC/") # Get the metadata from the JSON. ## The frame metadata. fmd = None # with open(dp.get_input_path() + "/metadata.json", "r") as fmdf: fmd = json.load(fmdf, fmd) # ## Latitude of the dataset [deg.]. lat = fmd[0]['lat'] # [deg.] # ## Longitude of the dataset [deg.]. lon = fmd[0]['lon'] # [deg.] #
os.mkdir(frpath) lg.info(" * Creating directory '%s'..." % (frpath)) lg.info("") ## The path to the cluster images. klpath = outputpath + "/clusters/" # if os.path.isdir(klpath): rmtree(klpath) lg.info(" * Removing directory '%s'..." % (klpath)) os.mkdir(klpath) lg.info(" * Creating directory '%s'..." % (klpath)) lg.info("") ## The dataset to process. ds = Dataset(datapath) ## Latitude of the test dataset [deg.]. lat = 51.509915 ## Longitude of the test dataset [deg.]. lon = -0.142515 # [deg.] ## Altitude of the test dataset [m]. alt = 34.02 ## The frames from the dataset. frames = ds.getFrames((lat, lon, alt)) lg.info("* Found %d datafiles:" % (len(frames)))
os.mkdir(frpath) lg.info(" * Creating directory '%s'..." % (frpath)) lg.info("") ## The path to the cluster images. klpath = outputpath + "/clusters/" # if os.path.isdir(klpath): rmtree(klpath) lg.info(" * Removing directory '%s'..." % (klpath)) os.mkdir(klpath) lg.info(" * Creating directory '%s'..." % (klpath)) lg.info("") ## The dataset to process. ds = Dataset(datapath + "/ASCIIxyC/") # Get the metadata from the JSON. ## The frame metadata. fmd = None # with open(datapath + "/metadata.json", "r") as fmdf: fmd = json.load(fmdf, fmd) # ## Latitude of the dataset [deg.]. lat = fmd[0]['lat'] # [deg.] # ## Longitude of the dataset [deg.]. lon = fmd[0]['lon'] # [deg.] #