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)

Parameters:

tif_path (str) – the path to geotiff file

Returns:

data – the obtained image data

Return type:

ndarray

Example

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