DemodulateBlockNL() публичный Метод

public DemodulateBlockNL ( Block b, DemodulationConfig config ) : DemodulatedBlock
b Data.EDM.Block
config DemodulationConfig
Результат DemodulatedBlock
Пример #1
0
 /* This is a convenient way to add a block, if you're using standard demodulation
  * configurations. This method is thread-safe.
  */
 public void AddBlock(Block b, string[] demodulationConfigs)
 {
     log("Adding block " + b.Config.Settings["cluster"] + " - " + b.Config.Settings["clusterIndex"]);
     BlockDemodulator blockDemodulator = new BlockDemodulator();
     foreach (string dcName in demodulationConfigs)
     {
         DemodulationConfig dc = DemodulationConfig.GetStandardDemodulationConfig(dcName, b);
         DemodulatedBlock dBlock = blockDemodulator.DemodulateBlockNL(b, dc);
         blockStore.AddDBlock(dBlock);
     }
 }
Пример #2
0
        // Somewhere for SirCachealot to store test results that's accessible by Mathematica.
        // Makes debugging easier and is needed as a workaround for the constant Mathematica
        // NET/Link errors.
        //        public TOFChannelSetGroup ChanSetGroup;
        // workarounds for NET/Link bugs
        //public TOFChannelSet GetAveragedChannelSet(bool eSign, bool bSign, bool rfSign)
        //{
        //    return ChanSetGroup.AverageChannelSetSignedByMachineState(eSign, bSign, rfSign);
        //}
        //public void LoadChannelSetGroup(string path)
        //{
        //    BinaryFormatter bf = new BinaryFormatter();
        //    FileStream fs = new FileStream(path, FileMode.Open);
        //    ChanSetGroup = (TOFChannelSetGroup)bf.Deserialize(fs);
        //    fs.Close();
        //}
        public void Test1()
        {
            BlockSerializer bs = new BlockSerializer();
            Block b = bs.DeserializeBlockFromZippedXML(
                "C:\\Users\\jony\\Files\\Data\\SEDM\\v3\\2009\\October2009\\01Oct0900_0.zip", "block.xml");

            BlockDemodulator bd = new BlockDemodulator();

            DemodulatedBlock db = bd.DemodulateBlockNL(b,
                DemodulationConfig.GetStandardDemodulationConfig("cgate11Fixed", b));

            //JsonSerializer serializer = new JsonSerializer();
            //using (StreamWriter sw = new StreamWriter("c:\\Users\\jony\\Desktop\\test.json"))
            //using (JsonWriter writer = new JsonTextWriter(sw))
            //{
            //    serializer.Serialize(writer, b.Config);
            //}

            //bs.SerializeBlockAsJSON("c:\\Users\\jony\\Desktop\\test.json", b);
        }