DescribeΒΆ

from girs.rast.raster import info
r = RasterReader('D:/tmp/chirps/chirps-v2.0.2016.01.10.tif')
print info('D:/tmp/chirps/chirps-v2.0.2016.01.10.tif')
print r.info()
print info(r)
print info(r.dataset)
r0 = RasterReader('D:/tmp/chirps/chirps-v2.0.2016.01.10.tif')
print "filename: {}".format(r0.get_filename())
print "compressed filename: {}".format(r0.get_compressed_filename())
print "compressed: {}".format(r0.is_compressed())
print "parameters: {}".format(r0.get_parameters())
print "nodata: {}".format(r0.get_nodata())
print "array.shape: {}".format(r0.get_array().shape)
print "masked_array.shape: {}".format(r0.get_masked_array().shape)
print "geotransform: {}".format(r0.get_geotransform())
print "coordinate system: {}".format(r0.get_coordinate_system())
print "number of bands: {}".format(r0.get_number_of_bands())
print "raster size: {}".format(r0.get_raster_size())
print "pixel size: {}".format(r0.get_pixel_size())
print "extent: {}".format(r0.get_extent())
print "band data types: {}".format(r0.get_band_data_types())
print "band data type: {}".format(r0.get_band_data_type())

Outputs:

filename: D:/tmp/chirps/chirps-v2.0.2016.01.10.tif
compressed filename: D:/tmp/chirps/chirps-v2.0.2016.01.10.tif
compressed: False
parameters: DIM[1, 17, 13] ND[-9999.0] DT[Float32] DRV[GTiff] SRS[WGS 84] TRANS(-47.25, 0.25, 0.0, -18.0, 0.0, -0.25)
nodata: [-9999.0]
array.shape: (13L, 17L)
masked_array.shape: (13L, 17L)
geotransform: (-47.25, 0.25, 0.0, -18.0, 0.0, -0.25)
coordinate system: GEOGCS["WGS 84",DATUM["WGS_1984",SPHEROID["WGS 84",6378137,298.257223563,AUTHORITY["EPSG","7030"]],AUTHORITY["EPSG","6326"]],PRIMEM["Greenwich",0],UNIT["degree",0.0174532925199433],AUTHORITY["EPSG","4326"]]
number of bands: 1
raster size: (17, 13)
pixel size: (0.25, 0.25)
extent: (-47.25, -43.0, -21.25, -18.0)
band data types: [6]
band data type: 6