coastalimagelib/supportfunctions.py
def initFullFileName(infile, label, type="avi", return_all=False):
    """
    Function for conveniently creating an outfile name consistent with any
    naming convention, given an infile name that contains the naming style
    """

    front = infile.split("/")
    name = ".".join(front[-1].split(".")[:-1])
    folder = ""

    if len(front) > 1:
        folder = "/".join(front[0:-1]) + "/"

    outstr = folder + name + "." + label + "." + type

    if return_all:
        return outstr, name, folder
    else:
        return outstr

    Function for conveniently creating an outfile name consistent with any
    naming convention, given an infile name that contains the naming style
    
Function for conveniently creating an outfile name consistent with any
naming convention, given an infile name that contains the naming style
Function for conveniently creating an outfile name consistent with any naming convention given an infile name that contains the naming style
def initFullFileName(infile, label, type="avi", return_all=False):
    front = infile.split("/")
    name = ".".join(front[-1].split(".")[:-1])
    folder = ""
    if len(front) > 1:
        folder = "/".join(front[0:-1]) + "/"
    outstr = folder + name + "." + label + "." + type
    if return_all:
        return outstr, name, folder
    else:
        return outstr
def initFullFileName ( infile , label , type = "avi" , return_all = False ) : front = infile . split ( "/" ) name = "." . join ( front [ - 1 ] . split ( "." ) [ : - 1 ] ) folder = "" if len ( front ) > 1 : folder = "/" . join ( front [ 0 : - 1 ] ) + "/" outstr = folder + name + "." + label + "." + type if return_all : return outstr , name , folder else : return outstr
Function for conveniently creating an outfile name consistent with any
naming convention, given an infile name that contains the naming style
Function for conveniently creating an outfile name consistent with any naming convention given an infile name that contains the naming style
"""
    Function for conveniently creating an outfile name consistent with any
    naming convention, given an infile name that contains the naming style
    """
infile
label
type
return_all