<jupyter_start><jupyter_text>Small shifted images to test pixel alignment code Load two images and display<jupyter_code>import matplotlib.pyplot as plt                      # import matplotlib
import numpy as np
img1 = plt.imread('MC20210606_2333_01_1933edt.jpg')  # load image into np array
plt.imshow(img1)                                     # display image
img2 = plt.imread('MC20210606_2233_01_1833edt.jpg')  # load second image
plt.imshow(img2)                                     # display image<jupyter_output><empty_output><jupyter_text>Crop the first image, display, and save as `small1.jpg`<jupyter_code>print("Size of image original:",np.shape(img1))
img1s = img1[100:700,700:1700,:]
print("Size of small image:",np.shape(img1s))
plt.imshow(img1s)
plt.imsave('small1.jpg',img1s)<jupyter_output>Size of image original: (1080, 1920, 3)
Size of small image: (600, 1000, 3)<jupyter_text>Save a cropped, shifted version of the first image as `small1_shifted.jpg`<jupyter_code>img1ss = img1[115:715,733:1733,:]
print("Size of shifted small image:",np.shape(img1ss))
plt.imshow(img1ss)
plt.imsave('small1_shifted.jpg',img1ss)<jupyter_output>Size of shifted small image: (600, 1000, 3)<jupyter_text>Save a cropped, shifted version of the second image as `small2_shifted.jpg`<jupyter_code>img2ss = img2[110:710,730:1730,:]
print("Size of shifted small image:",np.shape(img2ss))
plt.imshow(img2ss)
plt.imsave('small2_shifted.jpg',img2ss)<jupyter_output>Size of shifted small image: (600, 1000, 3)
{'fraction_non_alphanumeric': 0.11815754339118825, 'fraction_numerical': 0.08945260347129506, 'mean_word_length': 4.996, 'pattern_counts': {'":': 0, '<': 14, '<?xml version=': 0, '>': 14, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'chain_length': '4', 'dir': 'jupyter-structured-clean-dedup', 'id': '244962', 'license': 'CC0-1.0', 'n_tokens_mistral': 626, 'n_tokens_neox': 536, 'n_words': 122, 'path': 'make_test_images.ipynb', 'repo_name': 'csherwood-usgs/SSF_2021', 'size': '1498'}