コード例 #1
0
ファイル: EnsembleHelper.cs プロジェクト: Bobfrat/RTI
        /// <summary>
        /// Add a blank Beam velocity data set to
        /// the given ensemble.  This will use the number
        /// of bins and beams given to create the Beam
        /// Velocity array.  The array will be empty.
        /// </summary>
        /// <param name="ensemble">Ensemble to add the dataset.</param>
        /// <param name="numBins">Number of bins.</param>
        /// <param name="numBeams">Number of beams.</param>
        public static void AddBeamVelocity(ref DataSet.Ensemble ensemble, int numBins, int numBeams = DataSet.Ensemble.DEFAULT_NUM_BEAMS_BEAM)
        {
            // Check for null
            if (ensemble == null)
            {
                return;
            }

            // Add a blank Beam Velocity Data set
            ensemble.AddBeamVelocityData(DataSet.Ensemble.DATATYPE_FLOAT,              // Type of data stored (Float or Int)
                                            numBins,                                    // Number of bins
                                            numBeams,                                   // Number of beams
                                            DataSet.Ensemble.DEFAULT_IMAG,              // Default Image
                                            DataSet.Ensemble.DEFAULT_NAME_LENGTH,       // Default Image length
                                            DataSet.Ensemble.BeamVelocityID);               // Dataset ID
        }