public GridDefinition(byte[] rawBytes) : base(rawBytes) { SourceOfGridDefinition = SectionReader.ReadByte(); NumberOfDataPoints = SectionReader.ReadGribInt(); NumberOfOctetsForOptionalListOfNumbersDefiningNumberOfPoints = SectionReader.ReadByte(); InterpretationOfOptionalList = SectionReader.ReadByte(); GridDefintionTemplateNumber = SectionReader.ReadGribShort(); if (GridDefintionTemplateNumber == Constants.Section3.GridDefinitionTemplateNumber.LatitudeLongitude) { var def = new LatLonGridDefinitionTemplate(); } GridDefinitionTemplateAndStuff = SectionReader.ReadBytes(Length - 14); }