def METHOD_NAME(inps):
    # read data
    data, atr = readfile.read(inps.file, datasetName=inps.dset)
    # default output file name
    if not inps.outfile:
        outbase = pp.auto_figure_title(inps.file, inps.dset, vars(inps))
        inps.outfile = f'{outbase}.grd'
    # write GMT *.grd file
    write_grd_file(data, atr, inps.outfile)
    print('Done.')
    return