change the data structure of aisline and grid putout files