These two python scripts produce .dat files when run. These files can be used as input for iphase.