{"metadata":{"kernelspec":{"language":"python","display_name":"Python 3","name":"python3"},"language_info":{"name":"python","version":"3.10.13","mimetype":"text/x-python","codemirror_mode":{"name":"ipython","version":3},"pygments_lexer":"ipython3","nbconvert_exporter":"python","file_extension":".py"},"kaggle":{"accelerator":"none","dataSources":[{"sourceId":70367,"databundleVersionId":9188054,"sourceType":"competition"}],"dockerImageVersionId":30746,"isInternetEnabled":true,"language":"python","sourceType":"notebook","isGpuEnabled":false}},"nbformat_minor":4,"nbformat":4,"cells":[{"cell_type":"code","source":"import numpy as np # linear algebra\nimport pandas as pd # data processing, CSV file I/O (e.g. pd.read_csv)\nimport os\nimport matplotlib.pyplot as plt","metadata":{"_uuid":"8f2839f25d086af736a60e9eeb907d3b93b6e0e5","_cell_guid":"b1076dfc-b9ad-4769-8c92-a6c4dae69d19","execution":{"iopub.status.busy":"2024-08-01T22:12:17.506274Z","iopub.execute_input":"2024-08-01T22:12:17.506695Z","iopub.status.idle":"2024-08-01T22:12:17.512381Z","shell.execute_reply.started":"2024-08-01T22:12:17.506666Z","shell.execute_reply":"2024-08-01T22:12:17.511039Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"train_adc_info = pd.read_csv('/kaggle/input/ariel-data-challenge-2024/train_adc_info.csv')","metadata":{"execution":{"iopub.status.busy":"2024-08-01T22:10:37.368512Z","iopub.execute_input":"2024-08-01T22:10:37.368908Z","iopub.status.idle":"2024-08-01T22:10:37.380801Z","shell.execute_reply.started":"2024-08-01T22:10:37.368878Z","shell.execute_reply":"2024-08-01T22:10:37.379624Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"train_adc_info.info()","metadata":{"execution":{"iopub.status.busy":"2024-08-01T22:10:37.383042Z","iopub.execute_input":"2024-08-01T22:10:37.383539Z","iopub.status.idle":"2024-08-01T22:10:37.397683Z","shell.execute_reply.started":"2024-08-01T22:10:37.383499Z","shell.execute_reply":"2024-08-01T22:10:37.396354Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"train_labels = pd.read_csv('/kaggle/input/ariel-data-challenge-2024/train_labels.csv')","metadata":{"execution":{"iopub.status.busy":"2024-08-01T22:10:37.399772Z","iopub.execute_input":"2024-08-01T22:10:37.400205Z","iopub.status.idle":"2024-08-01T22:10:37.463226Z","shell.execute_reply.started":"2024-08-01T22:10:37.40017Z","shell.execute_reply":"2024-08-01T22:10:37.461716Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"train_labels.info()","metadata":{"execution":{"iopub.status.busy":"2024-08-01T22:10:37.464861Z","iopub.execute_input":"2024-08-01T22:10:37.465325Z","iopub.status.idle":"2024-08-01T22:10:37.488953Z","shell.execute_reply.started":"2024-08-01T22:10:37.465273Z","shell.execute_reply":"2024-08-01T22:10:37.487506Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"train_labels_adc_info = pd.merge(train_labels, train_adc_info, how = 'inner', on='planet_id')","metadata":{"execution":{"iopub.status.busy":"2024-08-01T22:10:37.491683Z","iopub.execute_input":"2024-08-01T22:10:37.492123Z","iopub.status.idle":"2024-08-01T22:10:37.501447Z","shell.execute_reply.started":"2024-08-01T22:10:37.49207Z","shell.execute_reply":"2024-08-01T22:10:37.500199Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"train_labels_adc_info.sort_values(by = 'planet_id')","metadata":{"execution":{"iopub.status.busy":"2024-08-01T22:10:37.502915Z","iopub.execute_input":"2024-08-01T22:10:37.503269Z","iopub.status.idle":"2024-08-01T22:10:37.539145Z","shell.execute_reply.started":"2024-08-01T22:10:37.503238Z","shell.execute_reply":"2024-08-01T22:10:37.538066Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"train_100468857 = pd.read_parquet('/kaggle/input/ariel-data-challenge-2024/train/100468857/AIRS-CH0_calibration/dark.parquet')","metadata":{"execution":{"iopub.status.busy":"2024-08-01T22:10:37.540624Z","iopub.execute_input":"2024-08-01T22:10:37.540945Z","iopub.status.idle":"2024-08-01T22:10:37.573329Z","shell.execute_reply.started":"2024-08-01T22:10:37.540917Z","shell.execute_reply":"2024-08-01T22:10:37.572158Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"train_100468857.info()\n\ntrain_100468857.head()","metadata":{"execution":{"iopub.status.busy":"2024-08-01T22:10:37.574755Z","iopub.execute_input":"2024-08-01T22:10:37.575091Z","iopub.status.idle":"2024-08-01T22:10:37.618678Z","shell.execute_reply.started":"2024-08-01T22:10:37.575061Z","shell.execute_reply":"2024-08-01T22:10:37.617582Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"data = train_100468857.values.reshape(32, 356)  # Reshape to 2D array\nplt.matshow(data)\nplt.show()","metadata":{"execution":{"iopub.status.busy":"2024-08-01T22:10:37.620292Z","iopub.execute_input":"2024-08-01T22:10:37.62063Z","iopub.status.idle":"2024-08-01T22:10:37.975709Z","shell.execute_reply.started":"2024-08-01T22:10:37.620603Z","shell.execute_reply":"2024-08-01T22:10:37.974453Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"train_100468857_dead = pd.read_parquet('/kaggle/input/ariel-data-challenge-2024/train/100468857/AIRS-CH0_calibration/dead.parquet')\ntrain_100468857_flat = pd.read_parquet('/kaggle/input/ariel-data-challenge-2024/train/100468857/AIRS-CH0_calibration/flat.parquet')\ntrain_100468857_linear_corr = pd.read_parquet('/kaggle/input/ariel-data-challenge-2024/train/100468857/AIRS-CH0_calibration/linear_corr.parquet')\ntrain_100468857_read = pd.read_parquet('/kaggle/input/ariel-data-challenge-2024/train/100468857/AIRS-CH0_calibration/read.parquet')\ntrain_100468857_fgs1 = pd.read_parquet('/kaggle/input/ariel-data-challenge-2024/train/100468857/FGS1_signal.parquet')\ntrain_100468857_airs = pd.read_parquet('/kaggle/input/ariel-data-challenge-2024/train/100468857/AIRS-CH0_signal.parquet')\n","metadata":{"execution":{"iopub.status.busy":"2024-08-01T22:10:37.980138Z","iopub.execute_input":"2024-08-01T22:10:37.981168Z","iopub.status.idle":"2024-08-01T22:10:39.619653Z","shell.execute_reply.started":"2024-08-01T22:10:37.981117Z","shell.execute_reply":"2024-08-01T22:10:39.617017Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"data = train_100468857_dead.values  \nplt.matshow(data)\nplt.show()","metadata":{"execution":{"iopub.status.busy":"2024-08-01T22:10:39.62173Z","iopub.execute_input":"2024-08-01T22:10:39.622079Z","iopub.status.idle":"2024-08-01T22:10:39.999983Z","shell.execute_reply.started":"2024-08-01T22:10:39.62205Z","shell.execute_reply":"2024-08-01T22:10:39.998799Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"data = train_100468857_flat.values  \nplt.matshow(data)\nplt.show()","metadata":{"execution":{"iopub.status.busy":"2024-08-01T22:10:40.001894Z","iopub.execute_input":"2024-08-01T22:10:40.003337Z","iopub.status.idle":"2024-08-01T22:10:40.3714Z","shell.execute_reply.started":"2024-08-01T22:10:40.003288Z","shell.execute_reply":"2024-08-01T22:10:40.370007Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"data = train_100468857_linear_corr.values \nplt.matshow(data)\nplt.show()","metadata":{"execution":{"iopub.status.busy":"2024-08-01T22:10:40.373461Z","iopub.execute_input":"2024-08-01T22:10:40.374925Z","iopub.status.idle":"2024-08-01T22:10:40.737565Z","shell.execute_reply.started":"2024-08-01T22:10:40.374873Z","shell.execute_reply":"2024-08-01T22:10:40.735999Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"data = train_100468857_read.values.reshape(32, 356)  # Reshape to 2D array\nplt.matshow(data)\nplt.show()","metadata":{"execution":{"iopub.status.busy":"2024-08-01T22:10:40.739531Z","iopub.execute_input":"2024-08-01T22:10:40.740352Z","iopub.status.idle":"2024-08-01T22:10:41.0058Z","shell.execute_reply.started":"2024-08-01T22:10:40.740306Z","shell.execute_reply":"2024-08-01T22:10:41.004616Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"data = train_100468857_airs.values\nplt.matshow(data)\nplt.show()","metadata":{"execution":{"iopub.status.busy":"2024-08-01T22:10:41.007562Z","iopub.execute_input":"2024-08-01T22:10:41.007964Z","iopub.status.idle":"2024-08-01T22:10:44.169545Z","shell.execute_reply.started":"2024-08-01T22:10:41.007926Z","shell.execute_reply":"2024-08-01T22:10:44.168277Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"train_100468857_airs.info()\ntrain_100468857_fgs1.info()","metadata":{"execution":{"iopub.status.busy":"2024-08-01T22:10:44.171021Z","iopub.execute_input":"2024-08-01T22:10:44.171435Z","iopub.status.idle":"2024-08-01T22:10:45.353063Z","shell.execute_reply.started":"2024-08-01T22:10:44.1714Z","shell.execute_reply":"2024-08-01T22:10:45.351473Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"import pandas as pd\nimport matplotlib.pyplot as plt\n\nfig, axes = plt.subplots(nrows=5, ncols=5, figsize=(20, 15))\n\nfor i in range(5):\n    for j in range(5):\n        start_row = i * 50\n        end_row = start_row + 50\n        start_col = j * 200\n        end_col = start_col + 200\n        \n        axes[i, j].matshow(train_100468857_fgs1.iloc[start_row:end_row, start_col:end_col])\n        axes[i, j].set_title(f\"Rows {start_row}-{end_row}, Columns {start_col}-{end_col}\")\n\nplt.tight_layout()\nplt.show()\n","metadata":{"execution":{"iopub.status.busy":"2024-08-01T22:10:45.35442Z","iopub.execute_input":"2024-08-01T22:10:45.354743Z","iopub.status.idle":"2024-08-01T22:10:53.16557Z","shell.execute_reply.started":"2024-08-01T22:10:45.354713Z","shell.execute_reply":"2024-08-01T22:10:53.164364Z"},"trusted":true},"execution_count":null,"outputs":[]}]}