Beispiel #1
0
        public override object Create(Stream fileStream, BinaryReader binaryReader, int offset, int endOffset)
        {
            TBMInfoForNA141B tbdInfo = new TBMInfoForNA141B();

            fileStream.Seek(offset, SeekOrigin.Begin);
            tbdInfo.MinLat      = ToLocalEndian.ToDouble64FromBig(binaryReader.ReadBytes(3));
            tbdInfo.MaxLat      = ToLocalEndian.ToDouble64FromBig(binaryReader.ReadBytes(3));
            tbdInfo.MinLon      = ToLocalEndian.ToDouble64FromBig(binaryReader.ReadBytes(4));
            tbdInfo.MaxLon      = ToLocalEndian.ToDouble64FromBig(binaryReader.ReadBytes(4));
            tbdInfo.BeginHour   = ToLocalEndian.ToInt16FromBig(binaryReader.ReadBytes(2));
            tbdInfo.BeginMinite = ToLocalEndian.ToInt16FromBig(binaryReader.ReadBytes(2));
            tbdInfo.DataTime    = ToLocalEndian.ToInt32FromBig(binaryReader.ReadBytes(3));
            tbdInfo.IsAddData   = ToLocalEndian.ToInt16FromBig(binaryReader.ReadBytes(1)) == 1 ? true : false;
            base.Create(fileStream, binaryReader, offset, endOffset);
            return(tbdInfo);
        }
Beispiel #2
0
        public override object Create(Stream fileStream, BinaryReader binaryReader, int offset, int endOffset)
        {
            CommonInfoForNA141B commonInfo = new CommonInfoForNA141B();

            fileStream.Seek(offset, SeekOrigin.Begin);
            commonInfo.SatelliteIdentify     = binaryReader.ReadByte();
            commonInfo.InformationType       = binaryReader.ReadByte();
            commonInfo.OrbitBeginTime        = GetOrbitTime(binaryReader.ReadBytes(6));
            commonInfo.RecordCount           = ToLocalEndian.ToUInt16FromLittle(binaryReader.ReadBytes(2));
            commonInfo.OrbitFinishTime       = GetOrbitTime(binaryReader.ReadBytes(6));
            commonInfo.OrbitOrderCode        = ToLocalEndian.ReadString2(binaryReader.ReadChars(56));
            commonInfo.SlopeCorrection       = binaryReader.ReadByte();
            commonInfo.MissCount             = binaryReader.ReadByte();
            commonInfo.QualityCheckInfo      = GetAualityCheckInfo(binaryReader.ReadBytes(6));
            commonInfo.CalibrationParameters = ToLocalEndian.ToUInt16FromLittle(binaryReader.ReadBytes(2));
            return(commonInfo);
        }