converting SU file to ASCII format in seismic unix using OpenSeaSeis I have tried to convert a Seismic SU file to ASCII format in seismic unix using openseaseis module named "sutoascii".

I have already tested the SU file by opening it in SeaView Seismic Viewer and then tried to convert it to "ASCII" format using the following command:

sutoascii &lt;inputSUFilename &gt;outputASCIIFilename bare=0 index=1


The ASCII file is created as an output file but it gives an error while converting that "number of samples in header differs from number for first trace"

Now to check whether the Resulting ASCIIFile is valid and working, I have tried to open it in SeaView Seismic Viewer again to cross-check but it shows an error and is unable to open the file.

Can anybody tell me how to correct this?
The number of samples in the input binary header from the SEGY file does not match the NSAMP trace header.  I would first confirm: 


What # of samples is in the binary SEG-Y header. 
The number of samples you expect in each trace
Dump the su trace header for     number of samples. You can use
SUGETHW and the keyword for # of samples is "ns".


If the error is in an individual trace header, you can overwrite that with SUSETHW.