easyidp.geotiff.get_imarray¶
- easyidp.geotiff.get_imarray(tif_path: str | Path) ndarray¶
Read full map data as numpy array (time and RAM costy, not recommended, often requires
4 x file_sizeof RAM)- Parameters:
tif_path (str | Path) – the path to geotiff file
- Returns:
data – the obtained image data, in shape of ()
- Return type:
ndarray
Example
>>> import easyidp as idp >>> test_data = idp.data.TestData() >>> maize_dom = idp.GeoTiff(test_data.pix4d.maize_dom) >>> maize_part_np = maize_dom.get_imarray() >>> maize_part_np.shape (722, 836, 4)