parsing of grd5 header