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_size of RAM)

パラメータ:

tif_path (str | Path) -- the path to geotiff file

戻り値:

data -- the obtained image data, in shape of ()

戻り値の型:

ndarray

サンプル

>>> 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)