SEG2 to SEGY files

Hello,

How can I read SEG2 files and save them to SEGY without loosing the header info?

Thank you,

Cecilia