def METHOD_NAME(fname_in, fname_out=None, output_complex=False):
    if not fname_out:
        fname_out = fname_in.replace(".h5",".txt")
    if fname_in == fname_out:
        print("Filenames identical, skipping text output")
        print("in = ",fname_in," out = ",fname_out)
    vp = read_from_hdf(fname_in)
    write_to_text(vp, fname_out, output_complex)