Example #1
0
        public CloudSatRasterBand(IRasterDataProvider rasterDataProvider, H4SDS sds, int bandNo)
            : base(rasterDataProvider)
        {
            _rasterProvider = rasterDataProvider as CloudsatDataProvider;
            _sds            = sds;
            _bandNo         = bandNo;
            _attribute      = _attributes.CreateAttributeDomain("Attribute");
            int rank = sds.Rank;

            int[] dims = sds.Dimsizes;
            if (rank == 1)
            {
                _width  = 1;
                _height = dims[0];
            }
            else if (rank == 2)
            {
                _height = dims[0];
                _width  = dims[1];
            }
            _bandNmae = sds.Name;
            _dataType = enumDataType.Int16;
        }
Example #2
0
 protected override bool IsCompatible(string fileName, byte[] header1024, params object[] args)
 {
     return(CloudsatDataProvider.IsSupport(fileName, header1024));
 }