public void LdfToMvgFileWithName()
        {
            string ldfName    = @"E:\气象局项目\MAS二期\mvg文件\FY3B_VIRRX_GBAL_L1_20101128_0500_1000M_MS_PRJ_Whole.LDF";
            string mvgName    = @"e:\ldfToMvg.mvg";
            Int16  valueCount = 2;
            string values     = "{ 0, 1 }";
            string valueNames = "{120,99}";

            MvgDataProvider.FromLDF(ldfName, mvgName, 1, "VALUECOUNT=" + valueCount, "VALUES=" + values, "VALUENAMES=" + valueNames);

            Assert.True(File.Exists(@"e:\ldfToMvg.hdr"));
            Console.WriteLine("Ldf header informations:");
            using (StreamReader sr = new StreamReader(@"E:\气象局项目\MAS二期\mvg文件\FY3B_VIRRX_GBAL_L1_20101128_0500_1000M_MS_PRJ_Whole.hdr"))
            {
                string ldfHeaderInfo = sr.ReadToEnd();
                Console.Write(ldfHeaderInfo);
            }

            Console.WriteLine("********************************************************");
            Console.WriteLine("Mvg header informations:");
            using (StreamReader sr = new StreamReader(@"e:\ldfToMvg.hdr"))
            {
                string mvgHeaderInfo = sr.ReadToEnd();
                Console.Write(mvgHeaderInfo);
            }
        }
        public void LdfToMvgFile()
        {
            string ldfName    = @"E:\气象局项目\MAS二期\mvg文件\FY3A_MERSI_GBAL_L1_20090505_0200_1000M_MS_PRJ_DXX.LDF";
            Int16  valueCount = 2;
            string values     = "{ 0, 1 }";
            string valueNames = "{120,99}";

            MvgDataProvider.FromLDF(ldfName, 1, "VALUECOUNT=" + valueCount, "VALUES=" + values, "VALUENAMES=" + valueNames);
        }