Пример #1
0
        /// <summary>
        /// Initializes a new instance of the <see cref="ImagingDeviceBand" /> class.
        /// </summary>
        /// <param name="number">The number.</param>
        /// <param name="description">The description.</param>
        /// <param name="rangeResultion">The range resolution.</param>
        /// <param name="azimuthResolution">The azimuth resolution.</param>
        /// <param name="radiometricResolution">The radiometric resolution.</param>
        /// <param name="spectralDomain">The spectral domain of the band.</param>
        /// <param name="spectralRange">The spectral range of the band.</param>
        /// <exception cref="System.ArgumentOutOfRangeException">
        /// The range resolution is equal to or less than 0.
        /// or
        /// The azimuth resolution is equal to or less than 0.
        /// or
        /// The radiometric resolution is less than 1.
        /// or
        /// The radiometric resolution is grater than 64.
        /// </exception>
        /// <exception cref="System.ArgumentNullException">The spectral range is null.</exception>
        public ImagingDeviceBand(Int32 number, String description, Length rangeResultion, Length azimuthResolution, Int32 radiometricResolution, SpectralDomain spectralDomain, SpectralRange spectralRange)
        {
            if (rangeResultion <= Length.Zero)
            {
                throw new ArgumentOutOfRangeException("rangeResultion", "The range resolution is equal to or less than 0.");
            }
            if (azimuthResolution <= Length.Zero)
            {
                throw new ArgumentOutOfRangeException("azimuthResolution", "The azimuth resolution is equal to or less than 0.");
            }

            if (radiometricResolution < 1)
            {
                throw new ArgumentOutOfRangeException("radiometricResolution", "The radiometric resolution is less than 1.");
            }
            if (radiometricResolution > 64)
            {
                throw new ArgumentOutOfRangeException("radiometricResolution", "The radiometric resolution is grater than 64.");
            }
            if (spectralRange == null)
            {
                throw new ArgumentNullException("spectralRange", "The spectral range is null.");
            }

            Number                = number;
            Description           = description;
            RangeResolution       = rangeResultion;
            AzimuthResolution     = azimuthResolution;
            RadiometricResolution = radiometricResolution;
            SpectralDomain        = spectralDomain;
            SpectralRange         = spectralRange;
        }
Пример #2
0
        /// <summary>
        /// Initializes a new instance of the <see cref="RasterImagingBand" /> class.
        /// </summary>
        /// <param name="description">The band description.</param>
        /// <param name="physicalGain">The physical gain of the band.</param>
        /// <param name="physicalBias">The physical bias of the band.</param>
        /// <param name="solarIrradiance">The solar irradiance of the band.</param>
        /// <param name="spectralDomain">The spectral domain of the band.</param>
        /// <param name="spectralRange">The spectral range of the band.</param>
        /// <exception cref="System.ArgumentNullException">The description is null.</exception>
        /// <exception cref="System.ArgumentException">The description is empty, or consists of only whitespace characters.</exception>
        public RasterImagingBand(String description, Double physicalGain, Double physicalBias, Double solarIrradiance, SpectralDomain spectralDomain, SpectralRange spectralRange)
        {
            if (description == null)
            {
                throw new ArgumentNullException("description", "The description is null.");
            }
            if (String.IsNullOrWhiteSpace(description))
            {
                throw new ArgumentException("The description is empty, or consists of only whitespace characters.", "description");
            }

            Description     = description;
            PhysicalGain    = physicalGain;
            PhysicalBias    = physicalBias;
            SolarIrradiance = solarIrradiance;
            SpectralDomain  = spectralDomain;
            SpectralRange   = spectralRange;
        }