tilezilla.core module¶
Classes, functions, etc. core to the module
-
class
tilezilla.core.
Band
(path, bidx=1, standard_name='', long_name='', friendly_name='', units='', fill=<Mock name='mock.nan' id='140629135282016'>, valid_min=None, valid_max=None, scale_factor=1)[source]¶ Bases:
object
Basically just a rasterio dataset with extra metadata
Basically just benefit from composition by sitting on top of
rasterio
over re-implementing any related methods.Metadata will, when relevant, try to follow the variable names suggested by the NetCDF Climate and Forecast (CF) Metadata Conventions.
Parameters: - path (str) – the path of the raster image to use
- bidx (int) – 1-indexed band from within the dataset to use
- standard_name (str) – a standard name that references a description of the variable
- long_name (str) – a descriptive, but not standardized, description of the variable
- friendly_name (str) – a cross-sensor friendly name to refer to (e.g., ‘blue’ instead of band1)
- units (str) – unit of variable
- fill (int or float) – fill value for NoData or NaN
- valid_min (int or float) – smallest valid value of band data
- valid_max (int or float) – largest valid value of band data
- scale_factor (int or float) – if present, data will be scaled by this number
-
band
¶ rasterio.Band: The band from
self.src
opened with rasterio
-
src
¶ rasterio._io.RasterReader: the Band dataset opened with rasterio
-
class
tilezilla.core.
BoundingBox
(left, bottom, right, top)¶ Bases:
tuple
easy access container for a bounding box
-
__getnewargs__
()¶ Return self as a plain tuple. Used by copy and pickle.
-
__getstate__
()¶ Exclude the OrderedDict from pickling
-
static
__new__
(_cls, left, bottom, right, top)¶ Create new instance of BoundingBox(left, bottom, right, top)
-
__repr__
()¶ Return a nicely formatted representation string
-
bottom
¶ Alias for field number 1
-
left
¶ Alias for field number 0
-
right
¶ Alias for field number 2
-
top
¶ Alias for field number 3
-