@@ -75,7 +75,7 @@ def apply(
75
75
mean : Mean value of all the pixels in the band.
76
76
stddev : Standard Deviation value of all the pixels in the band.
77
77
valid_percent : Percentage of valid (not nodata) pixel.
78
- """ # noqa
78
+ """
79
79
self .minimum = minimum
80
80
self .maximum = maximum
81
81
self .mean = mean
@@ -100,7 +100,7 @@ def create(
100
100
mean : Mean value of all the pixels in the band.
101
101
stddev : Standard Deviation value of all the pixels in the band.
102
102
valid_percent : Percentage of valid (not nodata) pixel.
103
- """ # noqa
103
+ """
104
104
b = cls ({})
105
105
b .apply (
106
106
minimum = minimum ,
@@ -236,7 +236,7 @@ def apply(
236
236
Also the mean value of the last bucket.
237
237
buckets : Array of integer indicating the number
238
238
of pixels included in the bucket.
239
- """ # noqa
239
+ """
240
240
self .count = count
241
241
self .min = min
242
242
self .max = max
@@ -261,7 +261,7 @@ def create(
261
261
Also the mean value of the last bucket.
262
262
buckets : Array of integer indicating the number
263
263
of pixels included in the bucket.
264
- """ # noqa
264
+ """
265
265
b = cls ({})
266
266
b .apply (
267
267
count = count ,
@@ -370,22 +370,26 @@ def apply(
370
370
371
371
Args:
372
372
nodata : Pixel values used to identify pixels that are nodata in the assets.
373
- sampling : One of area or point. Indicates whether a pixel value should be assumed
374
- to represent a sampling over the region of the pixel or a point sample at the center of the pixel.
373
+ sampling : One of area or point. Indicates whether a pixel value should be
374
+ assumed to represent a sampling over the region of the pixel or a point
375
+ sample at the center of the pixel.
375
376
data_type :The data type of the band.
376
- One of the data types as described in <https://github.com/stac-extensions/raster/#data-types>.
377
+ One of the data types as described in
378
+ <https://github.com/stac-extensions/raster/#data-types>.
377
379
bits_per_sample : The actual number of bits used for this band.
378
- Normally only present when the number of bits is non-standard for the datatype,
379
- such as when a 1 bit TIFF is represented as byte
380
- spatial_resolution : Average spatial resolution (in meters) of the pixels in the band.
380
+ Normally only present when the number of bits is non-standard for the
381
+ datatype, such as when a 1 bit TIFF is represented as byte
382
+ spatial_resolution : Average spatial resolution (in meters) of the pixels in
383
+ the band.
381
384
statistics: Statistics of all the pixels in the band
382
385
unit: unit denomination of the pixel value
383
386
scale: multiplicator factor of the pixel value to transform into the value
384
387
(i.e. translate digital number to reflectance).
385
- offset: number to be added to the pixel value (after scaling) to transform into the value
386
- (i.e. translate digital number to reflectance).
387
- histogram: Histogram distribution information of the pixels values in the band
388
- """ # noqa
388
+ offset: number to be added to the pixel value (after scaling) to transform
389
+ into the value (i.e. translate digital number to reflectance).
390
+ histogram: Histogram distribution information of the pixels values in the
391
+ band
392
+ """
389
393
self .nodata = nodata
390
394
self .sampling = sampling
391
395
self .data_type = data_type
@@ -416,22 +420,26 @@ def create(
416
420
417
421
Args:
418
422
nodata : Pixel values used to identify pixels that are nodata in the assets.
419
- sampling : One of area or point. Indicates whether a pixel value should be assumed
420
- to represent a sampling over the region of the pixel or a point sample at the center of the pixel.
423
+ sampling : One of area or point. Indicates whether a pixel value should be
424
+ assumed to represent a sampling over the region of the pixel or a point
425
+ sample at the center of the pixel.
421
426
data_type :The data type of the band.
422
- One of the data types as described in <https://github.com/stac-extensions/raster/#data-types>.
427
+ One of the data types as described in
428
+ <https://github.com/stac-extensions/raster/#data-types>.
423
429
bits_per_sample : The actual number of bits used for this band.
424
- Normally only present when the number of bits is non-standard for the datatype,
425
- such as when a 1 bit TIFF is represented as byte
426
- spatial_resolution : Average spatial resolution (in meters) of the pixels in the band.
430
+ Normally only present when the number of bits is non-standard for the
431
+ datatype, such as when a 1 bit TIFF is represented as byte
432
+ spatial_resolution : Average spatial resolution (in meters) of the pixels in
433
+ the band.
427
434
statistics: Statistics of all the pixels in the band
428
435
unit: unit denomination of the pixel value
429
436
scale: multiplicator factor of the pixel value to transform into the value
430
437
(i.e. translate digital number to reflectance).
431
- offset: number to be added to the pixel value (after scaling) to transform into the value
432
- (i.e. translate digital number to reflectance).
433
- histogram: Histogram distribution information of the pixels values in the band
434
- """ # noqa
438
+ offset: number to be added to the pixel value (after scaling) to transform
439
+ into the value (i.e. translate digital number to reflectance).
440
+ histogram: Histogram distribution information of the pixels values in the
441
+ band
442
+ """
435
443
b = cls ({})
436
444
b .apply (
437
445
nodata = nodata ,
@@ -471,7 +479,7 @@ def sampling(self) -> Optional[Sampling]:
471
479
472
480
Returns:
473
481
Optional[Sampling]
474
- """ # noqa
482
+ """
475
483
return self .properties .get ("sampling" )
476
484
477
485
@sampling .setter
0 commit comments