<jupyter_start><jupyter_text>Limitation of scipy.ndimage and matplotlib.imageUsing imread() from either scipy.ndimage or maptplotlib.image results in importing only the first image of a tif (multichannel) time sequence.<jupyter_code>im=scipy.ndimage.imread("/home/dati/GBM_persson/data/15.02.05_cal-GBM5-pBJclop/ph633/1_20_40.tif")
print(im.ndim, im.shape, 'max = ', im.max())
plt.imshow(im)
im=mpl.image.imread("/home/dati/GBM_persson/data/15.02.05_cal-GBM5-pBJclop/ph633/1_20_40.tif")
print(im.ndim, im.shape, 'max = ', im.max())
plt.imshow(im)<jupyter_output>2 (1038, 1388) max =  3405<jupyter_text>scikit-image<jupyter_code>im = io.imread("/home/dati/GBM_persson/data/15.02.05_cal-GBM5-pBJclop/ph633/1_20_40.tif")
print(im.ndim, im.shape, 'max = ', im.max())
plt.imshow(im[0])<jupyter_output>3 (20, 1038, 1388) max =  3578
{'fraction_non_alphanumeric': 0.1682808716707022, 'fraction_numerical': 0.08958837772397095, 'mean_word_length': 5.891666666666667, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'chain_length': '2', 'dir': 'jupyter-structured-clean-dedup', 'id': '573924', 'license': 'BSD-3-Clause', 'n_tokens_mistral': 427, 'n_tokens_neox': 379, 'n_words': 50, 'path': 'content/posts/reading_image_data_with_python.ipynb', 'repo_name': 'darosio/datan', 'size': '826'}