easyidp.geotiff.get_imarray#
- easyidp.geotiff.get_imarray(tif_path)#
Read full map data as numpy array (time and RAM costy, not recommended, often requires
4 x file_size
of RAM)- 参数:
tif_path (str) – Geotiff文件的路径
- 返回:
data – the obtained image data
- 返回类型:
ndarray
示例
>>> import easyidp as idp >>> test_data = idp.data.TestData() >>> maize_part_np = idp.geotiff.get_imarray(test_data.pix4d.maize_dom) >>> maize_part_np.shape (722, 836, 4)