I would like to simulate a solenoid using a field map provided by OPERA (and this is my first elegant simulation).
I have an ASCII field (field.txt) with 4 columns z,bz,r,br.
I have converted my field.txt into sdds format using this command :
plaindata2sdds field.txt field.sdds -inputMode=ascii -outputMode=binary -column=z,double,unit=m -column=Bz,double,unit=T -column=r,double,unit=m -column=Br,double,unit=T -noRowCount
I used this flag to incorporate the field map inside an elegante input file :
Sol: MAPSOLENOID, L=0.5,inputfile="field.sdds",ZColumn="z",BzColumn="Bz",RColumn="r",BrColumn="Br",dx=0,dy=0,etilt=0,eyaw=0,epitch=0
(I took the files given here http://tinyurl.com/brrsw5r)
When I run elegant I have this error:
Error: points are not monotonically increasing
Problem with z spacing of solenoid data from MAPSOLENOID file field.sdds (page 1)
Any ideas where this error comes from ?

by advance thank you
cheers
Olivier