Hi all,
For problem of loading ps_mean.xy (generated by ps_output command) in one excel file so that it can be used in Arcmap (especially if you have too many ps-points that cannot fit in one single excel file), the following python code (developed by our colleague Kyle Chouinard) will transform the txt file (.xy) into csv format and it can directly be imported (added) on arcmap.
import csv
inputs = []
with open('ps_mean_v.xy', 'rb') as csvfile:
reader = csv.reader(csvfile, delimiter=' ')
for line in reader:
temp = []
for val in line:
if val:
temp.append(val)
inputs.append(temp)
with open('ps_mean_v.csv', 'wb') as csvfile:
spamwriter = csv.writer(csvfile, delimiter=',')
spamwriter.writerow(["x" ,"y","val"])
for row in range(len(inputs)):
spamwriter.writerow(inputs[row])
I hope this helps.
Regards,