Example #1
0
        public static void TestFromRaster(IRasterDataProvider raster)
        {
            string filename = Path.GetFileNameWithoutExtension(raster.fileName) + "_" + 1;

            filename = MifEnvironment.GetFullFileName(filename + ".ldf");
            IRasterDataProvider oraster = RasterMosaic.CreateRaster(filename, raster.CoordEnvelope, raster.ResolutionX * 2, raster.ResolutionY * 2, 1, raster);

            CloudsatToRaster.test(oraster);
            oraster.Dispose();
        }
Example #2
0
        /// <summary>
        /// 测试生成cloudsat栅格数据,这部分最后有界面调用。
        /// </summary>
        /// <param name="oraster"></param>
        public static void test(IRasterDataProvider oraster)
        {
            string        fullfilename = @"E:\Smart\CloudArgs\2007109075222_05184_CS_2B-GEOPROF_GRANULE_P_R04_E02.hdf";
            List <string> files        = new List <string>();

            files.Add(fullfilename);
            CloudsatToRaster r = new CloudsatToRaster();

            r.ToRaster(files.ToArray(), 1, 50, oraster);
        }