{"metadata":{"kernelspec":{"language":"python","display_name":"Python 3","name":"python3"},"language_info":{"name":"python","version":"3.10.14","mimetype":"text/x-python","codemirror_mode":{"name":"ipython","version":3},"pygments_lexer":"ipython3","nbconvert_exporter":"python","file_extension":".py"},"kaggle":{"accelerator":"none","dataSources":[{"sourceId":5916,"databundleVersionId":45048,"sourceType":"competition"}],"dockerImageVersionId":30761,"isInternetEnabled":true,"language":"python","sourceType":"notebook","isGpuEnabled":false}},"nbformat_minor":4,"nbformat":4,"cells":[{"cell_type":"code","source":"import zipfile\n\nzip_file_path = '/kaggle/input/dstl-satellite-imagery-feature-detection/sixteen_band.zip'\nextract_directory = '/kaggle/working'\n\nwith zipfile.ZipFile(zip_file_path, 'r') as zip_ref:\n    zip_ref.extractall(extract_directory)","metadata":{"_uuid":"8f2839f25d086af736a60e9eeb907d3b93b6e0e5","_cell_guid":"b1076dfc-b9ad-4769-8c92-a6c4dae69d19","execution":{"iopub.status.busy":"2024-08-28T08:06:38.181258Z","iopub.execute_input":"2024-08-28T08:06:38.182236Z","iopub.status.idle":"2024-08-28T08:09:39.328684Z","shell.execute_reply.started":"2024-08-28T08:06:38.182174Z","shell.execute_reply":"2024-08-28T08:09:39.327461Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"!pip install tifffile","metadata":{"execution":{"iopub.status.busy":"2024-08-28T08:15:50.566845Z","iopub.execute_input":"2024-08-28T08:15:50.567439Z","iopub.status.idle":"2024-08-28T08:16:07.556068Z","shell.execute_reply.started":"2024-08-28T08:15:50.567381Z","shell.execute_reply":"2024-08-28T08:16:07.554652Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"import os\nlist_dir = os.listdir(\"/kaggle/working/sixteen_band\")","metadata":{"execution":{"iopub.status.busy":"2024-08-28T08:16:30.491114Z","iopub.execute_input":"2024-08-28T08:16:30.491526Z","iopub.status.idle":"2024-08-28T08:16:30.498187Z","shell.execute_reply.started":"2024-08-28T08:16:30.491487Z","shell.execute_reply":"2024-08-28T08:16:30.496944Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"list_dir[:10]","metadata":{"execution":{"iopub.status.busy":"2024-08-28T08:17:48.825391Z","iopub.execute_input":"2024-08-28T08:17:48.825838Z","iopub.status.idle":"2024-08-28T08:17:48.834309Z","shell.execute_reply.started":"2024-08-28T08:17:48.825794Z","shell.execute_reply":"2024-08-28T08:17:48.833126Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"import random\nrandom.choice(list_dir)","metadata":{"execution":{"iopub.status.busy":"2024-08-28T08:18:14.585418Z","iopub.execute_input":"2024-08-28T08:18:14.586261Z","iopub.status.idle":"2024-08-28T08:18:14.593008Z","shell.execute_reply.started":"2024-08-28T08:18:14.586214Z","shell.execute_reply":"2024-08-28T08:18:14.591888Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"import tifffile as tiff\nimport matplotlib.pyplot as plt\n# plt.figure(figsize=(20,20))\nfor i in range(9):\n#     plt.subplot(9,1,i+1)\n    image = tiff.imread(f\"/kaggle/working/sixteen_band/{random.choice(list_dir)}\")\n    tiff.imshow(image)","metadata":{"execution":{"iopub.status.busy":"2024-08-28T08:23:53.922676Z","iopub.execute_input":"2024-08-28T08:23:53.923088Z","iopub.status.idle":"2024-08-28T08:24:03.310031Z","shell.execute_reply.started":"2024-08-28T08:23:53.923049Z","shell.execute_reply":"2024-08-28T08:24:03.308634Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"","metadata":{},"execution_count":null,"outputs":[]}]}