Grid
fio.Grid(band, chunk=None, mode='r')A source object for a specific raster band.
Acquired by indexing a GridSource object.
Parameters
| Name | Type | Description | Default |
|---|---|---|---|
| band | gdal.Band |
A band defined by GDAL. | required |
| chunk | tuple | Chunk size in x direction and y direction. | None |
| mode | str | The I/O mode. Either r for reading or w for writing. |
'r' |
Attributes
| Name | Description |
|---|---|
| chunk | Return the chunk size. |
| shape | Return the shape of the grid. |
| shape_xy | Return the shape of the grid. |
Methods
| Name | Description |
|---|---|
| close | Close the Grid object. |
| flush | Flush the grid object. |
| get_metadata_item | Get specific metadata item. |
| set_chunk_size | Set the chunking size. |
| write_chunk | Write a chunk of data to the band. |