@@ -75,7 +75,7 @@ def apply(
7575 mean : Mean value of all the pixels in the band.
7676 stddev : Standard Deviation value of all the pixels in the band.
7777 valid_percent : Percentage of valid (not nodata) pixel.
78- """ # noqa
78+ """
7979 self .minimum = minimum
8080 self .maximum = maximum
8181 self .mean = mean
@@ -100,7 +100,7 @@ def create(
100100 mean : Mean value of all the pixels in the band.
101101 stddev : Standard Deviation value of all the pixels in the band.
102102 valid_percent : Percentage of valid (not nodata) pixel.
103- """ # noqa
103+ """
104104 b = cls ({})
105105 b .apply (
106106 minimum = minimum ,
@@ -236,7 +236,7 @@ def apply(
236236 Also the mean value of the last bucket.
237237 buckets : Array of integer indicating the number
238238 of pixels included in the bucket.
239- """ # noqa
239+ """
240240 self .count = count
241241 self .min = min
242242 self .max = max
@@ -261,7 +261,7 @@ def create(
261261 Also the mean value of the last bucket.
262262 buckets : Array of integer indicating the number
263263 of pixels included in the bucket.
264- """ # noqa
264+ """
265265 b = cls ({})
266266 b .apply (
267267 count = count ,
@@ -370,22 +370,26 @@ def apply(
370370
371371 Args:
372372 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.
375376 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>.
377379 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.
381384 statistics: Statistics of all the pixels in the band
382385 unit: unit denomination of the pixel value
383386 scale: multiplicator factor of the pixel value to transform into the value
384387 (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+ """
389393 self .nodata = nodata
390394 self .sampling = sampling
391395 self .data_type = data_type
@@ -416,22 +420,26 @@ def create(
416420
417421 Args:
418422 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.
421426 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>.
423429 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.
427434 statistics: Statistics of all the pixels in the band
428435 unit: unit denomination of the pixel value
429436 scale: multiplicator factor of the pixel value to transform into the value
430437 (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+ """
435443 b = cls ({})
436444 b .apply (
437445 nodata = nodata ,
@@ -471,7 +479,7 @@ def sampling(self) -> Optional[Sampling]:
471479
472480 Returns:
473481 Optional[Sampling]
474- """ # noqa
482+ """
475483 return self .properties .get ("sampling" )
476484
477485 @sampling .setter
0 commit comments