public static PrjBand[] GetPrjBands(IRasterDataProvider rasterDataProvider) { PrjBand[] prjBands = null; string fileType = new FileChecker().GetFileType(rasterDataProvider); switch (fileType) { case "VIRR_L1": prjBands = PrjBandTable.GetDefaultBandTable("FY3A", "VIRR", "1000M"); break; case "FY3C_VIRR_L1": prjBands = PrjBandTable.GetDefaultBandTable("FY3C", "VIRR", "1000M"); break; case "MERSI_1KM_L1": case "MERSI_QKM_L1": prjBands = PrjBandTable.GetDefaultBandTable("FY3A", "MERSI", "1000M"); break; case "FY3C_MERSI_1KM_L1": prjBands = PrjBandTable.GetDefaultBandTable("FY3C", "MERSI", "1000M"); break; case "FY3C_MERSI_QKM_L1": prjBands = PrjBandTable.GetDefaultBandTable("FY3C", "MERSI", "0250M"); break; case "MODIS_1KM_L1": prjBands = PrjBandTable.GetDefaultBandTable("EOS", "MODIS", "1000M"); break; case "NOAA_1BD": prjBands = PrjBandTable.GetDefaultBandTable("NOAA", "AVHRR", "1000M"); break; case "FY2NOM": prjBands = PrjBandTable.GetDefaultBandTable("FY2", "VISSR", "5000M"); break; case "FY1X_1A5": prjBands = PrjBandTable.GetDefaultBandTable("FY1D", "AVHRR", "4000M"); break; case "PROJECTED": break; default: break; } return(prjBands); }
private void AddBandsWithOrbit(IRasterDataProvider rasterDataProvider) { PrjBand[] prjBands = PrjBandTable.GetPrjBands(rasterDataProvider); if (prjBands == null || prjBands.Length == 0) { return; } tvBandList.Nodes.Clear(); for (int i = 0; i < prjBands.Length; i++) { TreeNode node = new TreeNode(prjBands[i].ToString()); node.Checked = true; node.Tag = prjBands[i]; tvBandList.Nodes.Add(node); } }