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) -- the path to geotiff file

戻り値:

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)