automatically generate both needed types of GMT input files