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.]
    #