Files
CSIROBoeingPhase5-Vietnam/processMask-test.ipynb
T

4606 lines
1.3 MiB
Plaintext
Raw Normal View History

2024-09-09 07:09:26 +00:00
{
"cells": [
{
"cell_type": "code",
"execution_count": 3,
"id": "9eec2a86-1783-4f9d-8c2c-243142be5c35",
"metadata": {
"tags": []
},
"outputs": [
{
"data": {
"application/javascript": [
"(function(root) {\n",
" function now() {\n",
" return new Date();\n",
" }\n",
"\n",
" var force = true;\n",
" var py_version = '3.2.2'.replace('rc', '-rc.').replace('.dev', '-dev.');\n",
" var is_dev = py_version.indexOf(\"+\") !== -1 || py_version.indexOf(\"-\") !== -1;\n",
" var reloading = false;\n",
" var Bokeh = root.Bokeh;\n",
" var bokeh_loaded = Bokeh != null && (Bokeh.version === py_version || (Bokeh.versions !== undefined && Bokeh.versions.has(py_version)));\n",
"\n",
" if (typeof (root._bokeh_timeout) === \"undefined\" || force) {\n",
" root._bokeh_timeout = Date.now() + 5000;\n",
" root._bokeh_failed_load = false;\n",
" }\n",
"\n",
" function run_callbacks() {\n",
" try {\n",
" root._bokeh_onload_callbacks.forEach(function(callback) {\n",
" if (callback != null)\n",
" callback();\n",
" });\n",
" } finally {\n",
" delete root._bokeh_onload_callbacks;\n",
" }\n",
" console.debug(\"Bokeh: all callbacks have finished\");\n",
" }\n",
"\n",
" function load_libs(css_urls, js_urls, js_modules, js_exports, callback) {\n",
" if (css_urls == null) css_urls = [];\n",
" if (js_urls == null) js_urls = [];\n",
" if (js_modules == null) js_modules = [];\n",
" if (js_exports == null) js_exports = {};\n",
"\n",
" root._bokeh_onload_callbacks.push(callback);\n",
"\n",
" if (root._bokeh_is_loading > 0) {\n",
" console.debug(\"Bokeh: BokehJS is being loaded, scheduling callback at\", now());\n",
" return null;\n",
" }\n",
" if (js_urls.length === 0 && js_modules.length === 0 && Object.keys(js_exports).length === 0) {\n",
" run_callbacks();\n",
" return null;\n",
" }\n",
" if (!reloading) {\n",
" console.debug(\"Bokeh: BokehJS not loaded, scheduling load and callback at\", now());\n",
" }\n",
"\n",
" function on_load() {\n",
" root._bokeh_is_loading--;\n",
" if (root._bokeh_is_loading === 0) {\n",
" console.debug(\"Bokeh: all BokehJS libraries/stylesheets loaded\");\n",
" run_callbacks()\n",
" }\n",
" }\n",
" window._bokeh_on_load = on_load\n",
"\n",
" function on_error() {\n",
" console.error(\"failed to load \" + url);\n",
" }\n",
"\n",
" var skip = [];\n",
" if (window.requirejs) {\n",
" window.requirejs.config({'packages': {}, 'paths': {'jspanel': 'https://cdn.jsdelivr.net/npm/jspanel4@4.12.0/dist/jspanel', 'jspanel-modal': 'https://cdn.jsdelivr.net/npm/jspanel4@4.12.0/dist/extensions/modal/jspanel.modal', 'jspanel-tooltip': 'https://cdn.jsdelivr.net/npm/jspanel4@4.12.0/dist/extensions/tooltip/jspanel.tooltip', 'jspanel-hint': 'https://cdn.jsdelivr.net/npm/jspanel4@4.12.0/dist/extensions/hint/jspanel.hint', 'jspanel-layout': 'https://cdn.jsdelivr.net/npm/jspanel4@4.12.0/dist/extensions/layout/jspanel.layout', 'jspanel-contextmenu': 'https://cdn.jsdelivr.net/npm/jspanel4@4.12.0/dist/extensions/contextmenu/jspanel.contextmenu', 'jspanel-dock': 'https://cdn.jsdelivr.net/npm/jspanel4@4.12.0/dist/extensions/dock/jspanel.dock', 'gridstack': 'https://cdn.jsdelivr.net/npm/gridstack@7.2.3/dist/gridstack-all', 'notyf': 'https://cdn.jsdelivr.net/npm/notyf@3/notyf.min'}, 'shim': {'jspanel': {'exports': 'jsPanel'}, 'gridstack': {'exports': 'GridStack'}}});\n",
" require([\"jspanel\"], function(jsPanel) {\n",
"\twindow.jsPanel = jsPanel\n",
"\ton_load()\n",
" })\n",
" require([\"jspanel-modal\"], function() {\n",
"\ton_load()\n",
" })\n",
" require([\"jspanel-tooltip\"], function() {\n",
"\ton_load()\n",
" })\n",
" require([\"jspanel-hint\"], function() {\n",
"\ton_load()\n",
" })\n",
" require([\"jspanel-layout\"], function() {\n",
"\ton_load()\n",
" })\n",
" require([\"jspanel-contextmenu\"], function() {\n",
"\ton_load()\n",
" })\n",
" require([\"jspanel-dock\"], function() {\n",
"\ton_load()\n",
" })\n",
" require([\"gridstack\"], function(GridStack) {\n",
"\twindow.GridStack = GridStack\n",
"\ton_load()\n",
" })\n",
" require([\"notyf\"], function() {\n",
"\ton_load()\n",
" })\n",
" root._bokeh_is_loading = css_urls.length + 9;\n",
" } else {\n",
" root._bokeh_is_loading = css_urls.length + js_urls.length + js_modules.length + Object.keys(js_exports).length;\n",
" }\n",
"\n",
" var existing_stylesheets = []\n",
" var links = document.getElementsByTagName('link')\n",
" for (var i = 0; i < links.length; i++) {\n",
" var link = links[i]\n",
" if (link.href != null) {\n",
"\texisting_stylesheets.push(link.href)\n",
" }\n",
" }\n",
" for (var i = 0; i < css_urls.length; i++) {\n",
" var url = css_urls[i];\n",
" if (existing_stylesheets.indexOf(url) !== -1) {\n",
"\ton_load()\n",
"\tcontinue;\n",
" }\n",
" const element = document.createElement(\"link\");\n",
" element.onload = on_load;\n",
" element.onerror = on_error;\n",
" element.rel = \"stylesheet\";\n",
" element.type = \"text/css\";\n",
" element.href = url;\n",
" console.debug(\"Bokeh: injecting link tag for BokehJS stylesheet: \", url);\n",
" document.body.appendChild(element);\n",
" } if (((window['jsPanel'] !== undefined) && (!(window['jsPanel'] instanceof HTMLElement))) || window.requirejs) {\n",
" var urls = ['https://cdn.holoviz.org/panel/1.2.3/dist/bundled/floatpanel/jspanel4@4.12.0/dist/jspanel.js', 'https://cdn.holoviz.org/panel/1.2.3/dist/bundled/floatpanel/jspanel4@4.12.0/dist/extensions/modal/jspanel.modal.js', 'https://cdn.holoviz.org/panel/1.2.3/dist/bundled/floatpanel/jspanel4@4.12.0/dist/extensions/tooltip/jspanel.tooltip.js', 'https://cdn.holoviz.org/panel/1.2.3/dist/bundled/floatpanel/jspanel4@4.12.0/dist/extensions/hint/jspanel.hint.js', 'https://cdn.holoviz.org/panel/1.2.3/dist/bundled/floatpanel/jspanel4@4.12.0/dist/extensions/layout/jspanel.layout.js', 'https://cdn.holoviz.org/panel/1.2.3/dist/bundled/floatpanel/jspanel4@4.12.0/dist/extensions/contextmenu/jspanel.contextmenu.js', 'https://cdn.holoviz.org/panel/1.2.3/dist/bundled/floatpanel/jspanel4@4.12.0/dist/extensions/dock/jspanel.dock.js'];\n",
" for (var i = 0; i < urls.length; i++) {\n",
" skip.push(urls[i])\n",
" }\n",
" } if (((window['GridStack'] !== undefined) && (!(window['GridStack'] instanceof HTMLElement))) || window.requirejs) {\n",
" var urls = ['https://cdn.holoviz.org/panel/1.2.3/dist/bundled/gridstack/gridstack@7.2.3/dist/gridstack-all.js'];\n",
" for (var i = 0; i < urls.length; i++) {\n",
" skip.push(urls[i])\n",
" }\n",
" } if (((window['Notyf'] !== undefined) && (!(window['Notyf'] instanceof HTMLElement))) || window.requirejs) {\n",
" var urls = ['https://cdn.holoviz.org/panel/1.2.3/dist/bundled/notificationarea/notyf@3/notyf.min.js'];\n",
" for (var i = 0; i < urls.length; i++) {\n",
" skip.push(urls[i])\n",
" }\n",
" } var existing_scripts = []\n",
" var scripts = document.getElementsByTagName('script')\n",
" for (var i = 0; i < scripts.length; i++) {\n",
" var script = scripts[i]\n",
" if (script.src != null) {\n",
"\texisting_scripts.push(script.src)\n",
" }\n",
" }\n",
" for (var i = 0; i < js_urls.length; i++) {\n",
" var url = js_urls[i];\n",
" if (skip.indexOf(url) !== -1 || existing_scripts.indexOf(url) !== -1) {\n",
"\tif (!window.requirejs) {\n",
"\t on_load();\n",
"\t}\n",
"\tcontinue;\n",
" }\n",
" var element = document.createElement('script');\n",
" element.onload = on_load;\n",
" element.onerror = on_error;\n",
" element.async = false;\n",
" element.src = url;\n",
" console.debug(\"Bokeh: injecting script tag for BokehJS library: \", url);\n",
" document.head.appendChild(element);\n",
" }\n",
" for (var i = 0; i < js_modules.length; i++) {\n",
" var url = js_modules[i];\n",
" if (skip.indexOf(url) !== -1 || existing_scripts.indexOf(url) !== -1) {\n",
"\tif (!window.requirejs) {\n",
"\t on_load();\n",
"\t}\n",
"\tcontinue;\n",
" }\n",
" var element = document.createElement('script');\n",
" element.onload = on_load;\n",
" element.onerror = on_error;\n",
" element.async = false;\n",
" element.src = url;\n",
" element.type = \"module\";\n",
" console.debug(\"Bokeh: injecting script tag for BokehJS library: \", url);\n",
" document.head.appendChild(element);\n",
" }\n",
" for (const name in js_exports) {\n",
" var url = js_exports[name];\n",
" if (skip.indexOf(url) >= 0 || root[name] != null) {\n",
"\tif (!window.requirejs) {\n",
"\t on_load();\n",
"\t}\n",
"\tcontinue;\n",
" }\n",
" var element = document.createElement('script');\n",
" element.onerror = on_error;\n",
" element.async = false;\n",
" element.type = \"module\";\n",
" console.debug(\"Bokeh: injecting script tag for BokehJS library: \", url);\n",
" element.textContent = `\n",
" import ${name} from \"${url}\"\n",
" window.${name} = ${name}\n",
" window._bokeh_on_load()\n",
" `\n",
" document.head.appendChild(element);\n",
" }\n",
" if (!js_urls.length && !js_modules.length) {\n",
" on_load()\n",
" }\n",
" };\n",
"\n",
" function inject_raw_css(css) {\n",
" const element = document.createElement(\"style\");\n",
" element.appendChild(document.createTextNode(css));\n",
" document.body.appendChild(element);\n",
" }\n",
"\n",
" var js_urls = [\"https://cdn.bokeh.org/bokeh/release/bokeh-3.2.2.min.js\", \"https://cdn.bokeh.org/bokeh/release/bokeh-gl-3.2.2.min.js\", \"https://cdn.bokeh.org/bokeh/release/bokeh-widgets-3.2.2.min.js\", \"https://cdn.bokeh.org/bokeh/release/bokeh-tables-3.2.2.min.js\", \"https://cdn.holoviz.org/panel/1.2.3/dist/panel.min.js\"];\n",
" var js_modules = [];\n",
" var js_exports = {};\n",
" var css_urls = [];\n",
" var inline_js = [ function(Bokeh) {\n",
" Bokeh.set_log_level(\"info\");\n",
" },\n",
"function(Bokeh) {} // ensure no trailing comma for IE\n",
" ];\n",
"\n",
" function run_inline_js() {\n",
" if ((root.Bokeh !== undefined) || (force === true)) {\n",
" for (var i = 0; i < inline_js.length; i++) {\n",
" inline_js[i].call(root, root.Bokeh);\n",
" }\n",
" // Cache old bokeh versions\n",
" if (Bokeh != undefined && !reloading) {\n",
"\tvar NewBokeh = root.Bokeh;\n",
"\tif (Bokeh.versions === undefined) {\n",
"\t Bokeh.versions = new Map();\n",
"\t}\n",
"\tif (NewBokeh.version !== Bokeh.version) {\n",
"\t Bokeh.versions.set(NewBokeh.version, NewBokeh)\n",
"\t}\n",
"\troot.Bokeh = Bokeh;\n",
" }} else if (Date.now() < root._bokeh_timeout) {\n",
" setTimeout(run_inline_js, 100);\n",
" } else if (!root._bokeh_failed_load) {\n",
" console.log(\"Bokeh: BokehJS failed to load within specified timeout.\");\n",
" root._bokeh_failed_load = true;\n",
" }\n",
" root._bokeh_is_initializing = false\n",
" }\n",
"\n",
" function load_or_wait() {\n",
" // Implement a backoff loop that tries to ensure we do not load multiple\n",
" // versions of Bokeh and its dependencies at the same time.\n",
" // In recent versions we use the root._bokeh_is_initializing flag\n",
" // to determine whether there is an ongoing attempt to initialize\n",
" // bokeh, however for backward compatibility we also try to ensure\n",
" // that we do not start loading a newer (Panel>=1.0 and Bokeh>3) version\n",
" // before older versions are fully initialized.\n",
" if (root._bokeh_is_initializing && Date.now() > root._bokeh_timeout) {\n",
" root._bokeh_is_initializing = false;\n",
" root._bokeh_onload_callbacks = undefined;\n",
" console.log(\"Bokeh: BokehJS was loaded multiple times but one version failed to initialize.\");\n",
" load_or_wait();\n",
" } else if (root._bokeh_is_initializing || (typeof root._bokeh_is_initializing === \"undefined\" && root._bokeh_onload_callbacks !== undefined)) {\n",
" setTimeout(load_or_wait, 100);\n",
" } else {\n",
" Bokeh = root.Bokeh;\n",
" bokeh_loaded = Bokeh != null && (Bokeh.version === py_version || (Bokeh.versions !== undefined && Bokeh.versions.has(py_version)));\n",
" root._bokeh_is_initializing = true\n",
" root._bokeh_onload_callbacks = []\n",
" if (!reloading && (!bokeh_loaded || is_dev)) {\n",
"\troot.Bokeh = undefined;\n",
" }\n",
" load_libs(css_urls, js_urls, js_modules, js_exports, function() {\n",
"\tconsole.debug(\"Bokeh: BokehJS plotting callback run at\", now());\n",
"\trun_inline_js();\n",
" });\n",
" }\n",
" }\n",
" // Give older versions of the autoload script a head-start to ensure\n",
" // they initialize before we start loading newer version.\n",
" setTimeout(load_or_wait, 100)\n",
"}(window));"
],
"application/vnd.holoviews_load.v0+json": "(function(root) {\n function now() {\n return new Date();\n }\n\n var force = true;\n var py_version = '3.2.2'.replace('rc', '-rc.').replace('.dev', '-dev.');\n var is_dev = py_version.indexOf(\"+\") !== -1 || py_version.indexOf(\"-\") !== -1;\n var reloading = false;\n var Bokeh = root.Bokeh;\n var bokeh_loaded = Bokeh != null && (Bokeh.version === py_version || (Bokeh.versions !== undefined && Bokeh.versions.has(py_version)));\n\n if (typeof (root._bokeh_timeout) === \"undefined\" || force) {\n root._bokeh_timeout = Date.now() + 5000;\n root._bokeh_failed_load = false;\n }\n\n function run_callbacks() {\n try {\n root._bokeh_onload_callbacks.forEach(function(callback) {\n if (callback != null)\n callback();\n });\n } finally {\n delete root._bokeh_onload_callbacks;\n }\n console.debug(\"Bokeh: all callbacks have finished\");\n }\n\n function load_libs(css_urls, js_urls, js_modules, js_exports, callback) {\n if (css_urls == null) css_urls = [];\n if (js_urls == null) js_urls = [];\n if (js_modules == null) js_modules = [];\n if (js_exports == null) js_exports = {};\n\n root._bokeh_onload_callbacks.push(callback);\n\n if (root._bokeh_is_loading > 0) {\n console.debug(\"Bokeh: BokehJS is being loaded, scheduling callback at\", now());\n return null;\n }\n if (js_urls.length === 0 && js_modules.length === 0 && Object.keys(js_exports).length === 0) {\n run_callbacks();\n return null;\n }\n if (!reloading) {\n console.debug(\"Bokeh: BokehJS not loaded, scheduling load and callback at\", now());\n }\n\n function on_load() {\n root._bokeh_is_loading--;\n if (root._bokeh_is_loading === 0) {\n console.debug(\"Bokeh: all BokehJS libraries/stylesheets loaded\");\n run_callbacks()\n }\n }\n window._bokeh_on_load = on_load\n\n function on_error() {\n console.error(\"failed to load \" + url);\n }\n\n var skip = [];\n if (window.requirejs) {\n window.requirejs.config({'packages': {}, 'paths': {'jspanel': 'https://cdn.jsdelivr.net/npm/jspanel4@4.12.0/dist/jspanel', 'jspanel-modal': 'https://cdn.jsdelivr.net/npm/jspanel4@4.12.0/dist/extensions/modal/jspanel.modal', 'jspanel-tooltip': 'https://cdn.jsdelivr.net/npm/jspanel4@4.12.0/dist/extensions/tooltip/jspanel.tooltip', 'jspanel-hint': 'https://cdn.jsdelivr.net/npm/jspanel4@4.12.0/dist/extensions/hint/jspanel.hint', 'jspanel-layout': 'https://cdn.jsdelivr.net/npm/jspanel4@4.12.0/dist/extensions/layout/jspanel.layout', 'jspanel-contextmenu': 'https://cdn.jsdelivr.net/npm/jspanel4@4.12.0/dist/extensions/contextmenu/jspanel.contextmenu', 'jspanel-dock': 'https://cdn.jsdelivr.net/npm/jspanel4@4.12.0/dist/extensions/dock/jspanel.dock', 'gridstack': 'https://cdn.jsdelivr.net/npm/gridstack@7.2.3/dist/gridstack-all', 'notyf': 'https://cdn.jsdelivr.net/npm/notyf@3/notyf.min'}, 'shim': {'jspanel': {'exports': 'jsPanel'}, 'gridstack': {'exports': 'GridStack'}}});\n require([\"jspanel\"], function(jsPanel) {\n\twindow.jsPanel = jsPanel\n\ton_load()\n })\n require([\"jspanel-modal\"], function() {\n\ton_load()\n })\n require([\"jspanel-tooltip\"], function() {\n\ton_load()\n })\n require([\"jspanel-hint\"], function() {\n\ton_load()\n })\n require([\"jspanel-layout\"], function() {\n\ton_load()\n })\n require([\"jspanel-contextmenu\"], function() {\n\ton_load()\n })\n require([\"jspanel-dock\"], function() {\n\ton_load()\n })\n require([\"gridstack\"], function(GridStack) {\n\twindow.GridStack = GridStack\n\ton_load()\n })\n require([\"notyf\"], function() {\n\ton_load()\n })\n root._bokeh_is_loading = css_urls.length + 9;\n } else {\n root._bokeh_is_loading = css_urls.length + js_urls.length + js_modules.length + Object.keys(js_exports).length;\n }\n\n var existing_stylesheets = []\n var links = document.getElementsByTagName('link')\n for (var i = 0; i < li
},
"metadata": {},
"output_type": "display_data"
},
{
"data": {
"application/javascript": [
"\n",
"if ((window.PyViz === undefined) || (window.PyViz instanceof HTMLElement)) {\n",
" window.PyViz = {comms: {}, comm_status:{}, kernels:{}, receivers: {}, plot_index: []}\n",
"}\n",
"\n",
"\n",
" function JupyterCommManager() {\n",
" }\n",
"\n",
" JupyterCommManager.prototype.register_target = function(plot_id, comm_id, msg_handler) {\n",
" if (window.comm_manager || ((window.Jupyter !== undefined) && (Jupyter.notebook.kernel != null))) {\n",
" var comm_manager = window.comm_manager || Jupyter.notebook.kernel.comm_manager;\n",
" comm_manager.register_target(comm_id, function(comm) {\n",
" comm.on_msg(msg_handler);\n",
" });\n",
" } else if ((plot_id in window.PyViz.kernels) && (window.PyViz.kernels[plot_id])) {\n",
" window.PyViz.kernels[plot_id].registerCommTarget(comm_id, function(comm) {\n",
" comm.onMsg = msg_handler;\n",
" });\n",
" } else if (typeof google != 'undefined' && google.colab.kernel != null) {\n",
" google.colab.kernel.comms.registerTarget(comm_id, (comm) => {\n",
" var messages = comm.messages[Symbol.asyncIterator]();\n",
" function processIteratorResult(result) {\n",
" var message = result.value;\n",
" console.log(message)\n",
" var content = {data: message.data, comm_id};\n",
" var buffers = []\n",
" for (var buffer of message.buffers || []) {\n",
" buffers.push(new DataView(buffer))\n",
" }\n",
" var metadata = message.metadata || {};\n",
" var msg = {content, buffers, metadata}\n",
" msg_handler(msg);\n",
" return messages.next().then(processIteratorResult);\n",
" }\n",
" return messages.next().then(processIteratorResult);\n",
" })\n",
" }\n",
" }\n",
"\n",
" JupyterCommManager.prototype.get_client_comm = function(plot_id, comm_id, msg_handler) {\n",
" if (comm_id in window.PyViz.comms) {\n",
" return window.PyViz.comms[comm_id];\n",
" } else if (window.comm_manager || ((window.Jupyter !== undefined) && (Jupyter.notebook.kernel != null))) {\n",
" var comm_manager = window.comm_manager || Jupyter.notebook.kernel.comm_manager;\n",
" var comm = comm_manager.new_comm(comm_id, {}, {}, {}, comm_id);\n",
" if (msg_handler) {\n",
" comm.on_msg(msg_handler);\n",
" }\n",
" } else if ((plot_id in window.PyViz.kernels) && (window.PyViz.kernels[plot_id])) {\n",
" var comm = window.PyViz.kernels[plot_id].connectToComm(comm_id);\n",
" comm.open();\n",
" if (msg_handler) {\n",
" comm.onMsg = msg_handler;\n",
" }\n",
" } else if (typeof google != 'undefined' && google.colab.kernel != null) {\n",
" var comm_promise = google.colab.kernel.comms.open(comm_id)\n",
" comm_promise.then((comm) => {\n",
" window.PyViz.comms[comm_id] = comm;\n",
" if (msg_handler) {\n",
" var messages = comm.messages[Symbol.asyncIterator]();\n",
" function processIteratorResult(result) {\n",
" var message = result.value;\n",
" var content = {data: message.data};\n",
" var metadata = message.metadata || {comm_id};\n",
" var msg = {content, metadata}\n",
" msg_handler(msg);\n",
" return messages.next().then(processIteratorResult);\n",
" }\n",
" return messages.next().then(processIteratorResult);\n",
" }\n",
" }) \n",
" var sendClosure = (data, metadata, buffers, disposeOnDone) => {\n",
" return comm_promise.then((comm) => {\n",
" comm.send(data, metadata, buffers, disposeOnDone);\n",
" });\n",
" };\n",
" var comm = {\n",
" send: sendClosure\n",
" };\n",
" }\n",
" window.PyViz.comms[comm_id] = comm;\n",
" return comm;\n",
" }\n",
" window.PyViz.comm_manager = new JupyterCommManager();\n",
" \n",
"\n",
"\n",
"var JS_MIME_TYPE = 'application/javascript';\n",
"var HTML_MIME_TYPE = 'text/html';\n",
"var EXEC_MIME_TYPE = 'application/vnd.holoviews_exec.v0+json';\n",
"var CLASS_NAME = 'output';\n",
"\n",
"/**\n",
" * Render data to the DOM node\n",
" */\n",
"function render(props, node) {\n",
" var div = document.createElement(\"div\");\n",
" var script = document.createElement(\"script\");\n",
" node.appendChild(div);\n",
" node.appendChild(script);\n",
"}\n",
"\n",
"/**\n",
" * Handle when a new output is added\n",
" */\n",
"function handle_add_output(event, handle) {\n",
" var output_area = handle.output_area;\n",
" var output = handle.output;\n",
" if ((output.data == undefined) || (!output.data.hasOwnProperty(EXEC_MIME_TYPE))) {\n",
" return\n",
" }\n",
" var id = output.metadata[EXEC_MIME_TYPE][\"id\"];\n",
" var toinsert = output_area.element.find(\".\" + CLASS_NAME.split(' ')[0]);\n",
" if (id !== undefined) {\n",
" var nchildren = toinsert.length;\n",
" var html_node = toinsert[nchildren-1].children[0];\n",
" html_node.innerHTML = output.data[HTML_MIME_TYPE];\n",
" var scripts = [];\n",
" var nodelist = html_node.querySelectorAll(\"script\");\n",
" for (var i in nodelist) {\n",
" if (nodelist.hasOwnProperty(i)) {\n",
" scripts.push(nodelist[i])\n",
" }\n",
" }\n",
"\n",
" scripts.forEach( function (oldScript) {\n",
" var newScript = document.createElement(\"script\");\n",
" var attrs = [];\n",
" var nodemap = oldScript.attributes;\n",
" for (var j in nodemap) {\n",
" if (nodemap.hasOwnProperty(j)) {\n",
" attrs.push(nodemap[j])\n",
" }\n",
" }\n",
" attrs.forEach(function(attr) { newScript.setAttribute(attr.name, attr.value) });\n",
" newScript.appendChild(document.createTextNode(oldScript.innerHTML));\n",
" oldScript.parentNode.replaceChild(newScript, oldScript);\n",
" });\n",
" if (JS_MIME_TYPE in output.data) {\n",
" toinsert[nchildren-1].children[1].textContent = output.data[JS_MIME_TYPE];\n",
" }\n",
" output_area._hv_plot_id = id;\n",
" if ((window.Bokeh !== undefined) && (id in Bokeh.index)) {\n",
" window.PyViz.plot_index[id] = Bokeh.index[id];\n",
" } else {\n",
" window.PyViz.plot_index[id] = null;\n",
" }\n",
" } else if (output.metadata[EXEC_MIME_TYPE][\"server_id\"] !== undefined) {\n",
" var bk_div = document.createElement(\"div\");\n",
" bk_div.innerHTML = output.data[HTML_MIME_TYPE];\n",
" var script_attrs = bk_div.children[0].attributes;\n",
" for (var i = 0; i < script_attrs.length; i++) {\n",
" toinsert[toinsert.length - 1].childNodes[1].setAttribute(script_attrs[i].name, script_attrs[i].value);\n",
" }\n",
" // store reference to server id on output_area\n",
" output_area._bokeh_server_id = output.metadata[EXEC_MIME_TYPE][\"server_id\"];\n",
" }\n",
"}\n",
"\n",
"/**\n",
" * Handle when an output is cleared or removed\n",
" */\n",
"function handle_clear_output(event, handle) {\n",
" var id = handle.cell.output_area._hv_plot_id;\n",
" var server_id = handle.cell.output_area._bokeh_server_id;\n",
" if (((id === undefined) || !(id in PyViz.plot_index)) && (server_id !== undefined)) { return; }\n",
" var comm = window.PyViz.comm_manager.get_client_comm(\"hv-extension-comm\", \"hv-extension-comm\", function () {});\n",
" if (server_id !== null) {\n",
" comm.send({event_type: 'server_delete', 'id': server_id});\n",
" return;\n",
" } else if (comm !== null) {\n",
" comm.send({event_type: 'delete', 'id': id});\n",
" }\n",
" delete PyViz.plot_index[id];\n",
" if ((window.Bokeh !== undefined) & (id in window.Bokeh.index)) {\n",
" var doc = window.Bokeh.index[id].model.document\n",
" doc.clear();\n",
" const i = window.Bokeh.documents.indexOf(doc);\n",
" if (i > -1) {\n",
" window.Bokeh.documents.splice(i, 1);\n",
" }\n",
" }\n",
"}\n",
"\n",
"/**\n",
" * Handle kernel restart event\n",
" */\n",
"function handle_kernel_cleanup(event, handle) {\n",
" delete PyViz.comms[\"hv-extension-comm\"];\n",
" window.PyViz.plot_index = {}\n",
"}\n",
"\n",
"/**\n",
" * Handle update_display_data messages\n",
" */\n",
"function handle_update_output(event, handle) {\n",
" handle_clear_output(event, {cell: {output_area: handle.output_area}})\n",
" handle_add_output(event, handle)\n",
"}\n",
"\n",
"function register_renderer(events, OutputArea) {\n",
" function append_mime(data, metadata, element) {\n",
" // create a DOM node to render to\n",
" var toinsert = this.create_output_subarea(\n",
" metadata,\n",
" CLASS_NAME,\n",
" EXEC_MIME_TYPE\n",
" );\n",
" this.keyboard_manager.register_events(toinsert);\n",
" // Render to node\n",
" var props = {data: data, metadata: metadata[EXEC_MIME_TYPE]};\n",
" render(props, toinsert[0]);\n",
" element.append(toinsert);\n",
" return toinsert\n",
" }\n",
"\n",
" events.on('output_added.OutputArea', handle_add_output);\n",
" events.on('output_updated.OutputArea', handle_update_output);\n",
" events.on('clear_output.CodeCell', handle_clear_output);\n",
" events.on('delete.Cell', handle_clear_output);\n",
" events.on('kernel_ready.Kernel', handle_kernel_cleanup);\n",
"\n",
" OutputArea.prototype.register_mime_type(EXEC_MIME_TYPE, append_mime, {\n",
" safe: true,\n",
" index: 0\n",
" });\n",
"}\n",
"\n",
"if (window.Jupyter !== undefined) {\n",
" try {\n",
" var events = require('base/js/events');\n",
" var OutputArea = require('notebook/js/outputarea').OutputArea;\n",
" if (OutputArea.prototype.mime_types().indexOf(EXEC_MIME_TYPE) == -1) {\n",
" register_renderer(events, OutputArea);\n",
" }\n",
" } catch(err) {\n",
" }\n",
"}\n"
],
"application/vnd.holoviews_load.v0+json": "\nif ((window.PyViz === undefined) || (window.PyViz instanceof HTMLElement)) {\n window.PyViz = {comms: {}, comm_status:{}, kernels:{}, receivers: {}, plot_index: []}\n}\n\n\n function JupyterCommManager() {\n }\n\n JupyterCommManager.prototype.register_target = function(plot_id, comm_id, msg_handler) {\n if (window.comm_manager || ((window.Jupyter !== undefined) && (Jupyter.notebook.kernel != null))) {\n var comm_manager = window.comm_manager || Jupyter.notebook.kernel.comm_manager;\n comm_manager.register_target(comm_id, function(comm) {\n comm.on_msg(msg_handler);\n });\n } else if ((plot_id in window.PyViz.kernels) && (window.PyViz.kernels[plot_id])) {\n window.PyViz.kernels[plot_id].registerCommTarget(comm_id, function(comm) {\n comm.onMsg = msg_handler;\n });\n } else if (typeof google != 'undefined' && google.colab.kernel != null) {\n google.colab.kernel.comms.registerTarget(comm_id, (comm) => {\n var messages = comm.messages[Symbol.asyncIterator]();\n function processIteratorResult(result) {\n var message = result.value;\n console.log(message)\n var content = {data: message.data, comm_id};\n var buffers = []\n for (var buffer of message.buffers || []) {\n buffers.push(new DataView(buffer))\n }\n var metadata = message.metadata || {};\n var msg = {content, buffers, metadata}\n msg_handler(msg);\n return messages.next().then(processIteratorResult);\n }\n return messages.next().then(processIteratorResult);\n })\n }\n }\n\n JupyterCommManager.prototype.get_client_comm = function(plot_id, comm_id, msg_handler) {\n if (comm_id in window.PyViz.comms) {\n return window.PyViz.comms[comm_id];\n } else if (window.comm_manager || ((window.Jupyter !== undefined) && (Jupyter.notebook.kernel != null))) {\n var comm_manager = window.comm_manager || Jupyter.notebook.kernel.comm_manager;\n var comm = comm_manager.new_comm(comm_id, {}, {}, {}, comm_id);\n if (msg_handler) {\n comm.on_msg(msg_handler);\n }\n } else if ((plot_id in window.PyViz.kernels) && (window.PyViz.kernels[plot_id])) {\n var comm = window.PyViz.kernels[plot_id].connectToComm(comm_id);\n comm.open();\n if (msg_handler) {\n comm.onMsg = msg_handler;\n }\n } else if (typeof google != 'undefined' && google.colab.kernel != null) {\n var comm_promise = google.colab.kernel.comms.open(comm_id)\n comm_promise.then((comm) => {\n window.PyViz.comms[comm_id] = comm;\n if (msg_handler) {\n var messages = comm.messages[Symbol.asyncIterator]();\n function processIteratorResult(result) {\n var message = result.value;\n var content = {data: message.data};\n var metadata = message.metadata || {comm_id};\n var msg = {content, metadata}\n msg_handler(msg);\n return messages.next().then(processIteratorResult);\n }\n return messages.next().then(processIteratorResult);\n }\n }) \n var sendClosure = (data, metadata, buffers, disposeOnDone) => {\n return comm_promise.then((comm) => {\n comm.send(data, metadata, buffers, disposeOnDone);\n });\n };\n var comm = {\n send: sendClosure\n };\n }\n window.PyViz.comms[comm_id] = comm;\n return comm;\n }\n window.PyViz.comm_manager = new JupyterCommManager();\n \n\n\nvar JS_MIME_TYPE = 'application/javascript';\nvar HTML_MIME_TYPE = 'text/html';\nvar EXEC_MIME_TYPE = 'application/vnd.holoviews_exec.v0+json';\nvar CLASS_NAME = 'output';\n\n/**\n * Render data to the DOM node\n */\nfunction render(props, node) {\n var div = document.createElement(\"div\");\n var script = document.creat
},
"metadata": {},
"output_type": "display_data"
},
{
"data": {
"text/html": [
"<style>*[data-root-id],\n",
"*[data-root-id] > * {\n",
" box-sizing: border-box;\n",
" font-family: var(--jp-ui-font-family);\n",
" font-size: var(--jp-ui-font-size1);\n",
" color: var(--vscode-editor-foreground, var(--jp-ui-font-color1));\n",
"}\n",
"\n",
"/* Override VSCode background color */\n",
".cell-output-ipywidget-background:has(\n",
" > .cell-output-ipywidget-background > .lm-Widget > *[data-root-id]\n",
" ),\n",
".cell-output-ipywidget-background:has(> .lm-Widget > *[data-root-id]) {\n",
" background-color: transparent !important;\n",
"}\n",
"</style>"
]
},
"metadata": {},
"output_type": "display_data"
},
{
"data": {
"application/javascript": [
"(function(root) {\n",
" function now() {\n",
" return new Date();\n",
" }\n",
"\n",
" var force = true;\n",
" var py_version = '3.2.2'.replace('rc', '-rc.').replace('.dev', '-dev.');\n",
" var is_dev = py_version.indexOf(\"+\") !== -1 || py_version.indexOf(\"-\") !== -1;\n",
" var reloading = true;\n",
" var Bokeh = root.Bokeh;\n",
" var bokeh_loaded = Bokeh != null && (Bokeh.version === py_version || (Bokeh.versions !== undefined && Bokeh.versions.has(py_version)));\n",
"\n",
" if (typeof (root._bokeh_timeout) === \"undefined\" || force) {\n",
" root._bokeh_timeout = Date.now() + 5000;\n",
" root._bokeh_failed_load = false;\n",
" }\n",
"\n",
" function run_callbacks() {\n",
" try {\n",
" root._bokeh_onload_callbacks.forEach(function(callback) {\n",
" if (callback != null)\n",
" callback();\n",
" });\n",
" } finally {\n",
" delete root._bokeh_onload_callbacks;\n",
" }\n",
" console.debug(\"Bokeh: all callbacks have finished\");\n",
" }\n",
"\n",
" function load_libs(css_urls, js_urls, js_modules, js_exports, callback) {\n",
" if (css_urls == null) css_urls = [];\n",
" if (js_urls == null) js_urls = [];\n",
" if (js_modules == null) js_modules = [];\n",
" if (js_exports == null) js_exports = {};\n",
"\n",
" root._bokeh_onload_callbacks.push(callback);\n",
"\n",
" if (root._bokeh_is_loading > 0) {\n",
" console.debug(\"Bokeh: BokehJS is being loaded, scheduling callback at\", now());\n",
" return null;\n",
" }\n",
" if (js_urls.length === 0 && js_modules.length === 0 && Object.keys(js_exports).length === 0) {\n",
" run_callbacks();\n",
" return null;\n",
" }\n",
" if (!reloading) {\n",
" console.debug(\"Bokeh: BokehJS not loaded, scheduling load and callback at\", now());\n",
" }\n",
"\n",
" function on_load() {\n",
" root._bokeh_is_loading--;\n",
" if (root._bokeh_is_loading === 0) {\n",
" console.debug(\"Bokeh: all BokehJS libraries/stylesheets loaded\");\n",
" run_callbacks()\n",
" }\n",
" }\n",
" window._bokeh_on_load = on_load\n",
"\n",
" function on_error() {\n",
" console.error(\"failed to load \" + url);\n",
" }\n",
"\n",
" var skip = [];\n",
" if (window.requirejs) {\n",
" window.requirejs.config({'packages': {}, 'paths': {'jspanel': 'https://cdn.jsdelivr.net/npm/jspanel4@4.12.0/dist/jspanel', 'jspanel-modal': 'https://cdn.jsdelivr.net/npm/jspanel4@4.12.0/dist/extensions/modal/jspanel.modal', 'jspanel-tooltip': 'https://cdn.jsdelivr.net/npm/jspanel4@4.12.0/dist/extensions/tooltip/jspanel.tooltip', 'jspanel-hint': 'https://cdn.jsdelivr.net/npm/jspanel4@4.12.0/dist/extensions/hint/jspanel.hint', 'jspanel-layout': 'https://cdn.jsdelivr.net/npm/jspanel4@4.12.0/dist/extensions/layout/jspanel.layout', 'jspanel-contextmenu': 'https://cdn.jsdelivr.net/npm/jspanel4@4.12.0/dist/extensions/contextmenu/jspanel.contextmenu', 'jspanel-dock': 'https://cdn.jsdelivr.net/npm/jspanel4@4.12.0/dist/extensions/dock/jspanel.dock', 'gridstack': 'https://cdn.jsdelivr.net/npm/gridstack@7.2.3/dist/gridstack-all', 'notyf': 'https://cdn.jsdelivr.net/npm/notyf@3/notyf.min'}, 'shim': {'jspanel': {'exports': 'jsPanel'}, 'gridstack': {'exports': 'GridStack'}}});\n",
" require([\"jspanel\"], function(jsPanel) {\n",
"\twindow.jsPanel = jsPanel\n",
"\ton_load()\n",
" })\n",
" require([\"jspanel-modal\"], function() {\n",
"\ton_load()\n",
" })\n",
" require([\"jspanel-tooltip\"], function() {\n",
"\ton_load()\n",
" })\n",
" require([\"jspanel-hint\"], function() {\n",
"\ton_load()\n",
" })\n",
" require([\"jspanel-layout\"], function() {\n",
"\ton_load()\n",
" })\n",
" require([\"jspanel-contextmenu\"], function() {\n",
"\ton_load()\n",
" })\n",
" require([\"jspanel-dock\"], function() {\n",
"\ton_load()\n",
" })\n",
" require([\"gridstack\"], function(GridStack) {\n",
"\twindow.GridStack = GridStack\n",
"\ton_load()\n",
" })\n",
" require([\"notyf\"], function() {\n",
"\ton_load()\n",
" })\n",
" root._bokeh_is_loading = css_urls.length + 9;\n",
" } else {\n",
" root._bokeh_is_loading = css_urls.length + js_urls.length + js_modules.length + Object.keys(js_exports).length;\n",
" }\n",
"\n",
" var existing_stylesheets = []\n",
" var links = document.getElementsByTagName('link')\n",
" for (var i = 0; i < links.length; i++) {\n",
" var link = links[i]\n",
" if (link.href != null) {\n",
"\texisting_stylesheets.push(link.href)\n",
" }\n",
" }\n",
" for (var i = 0; i < css_urls.length; i++) {\n",
" var url = css_urls[i];\n",
" if (existing_stylesheets.indexOf(url) !== -1) {\n",
"\ton_load()\n",
"\tcontinue;\n",
" }\n",
" const element = document.createElement(\"link\");\n",
" element.onload = on_load;\n",
" element.onerror = on_error;\n",
" element.rel = \"stylesheet\";\n",
" element.type = \"text/css\";\n",
" element.href = url;\n",
" console.debug(\"Bokeh: injecting link tag for BokehJS stylesheet: \", url);\n",
" document.body.appendChild(element);\n",
" } if (((window['jsPanel'] !== undefined) && (!(window['jsPanel'] instanceof HTMLElement))) || window.requirejs) {\n",
" var urls = ['https://cdn.holoviz.org/panel/1.2.3/dist/bundled/floatpanel/jspanel4@4.12.0/dist/jspanel.js', 'https://cdn.holoviz.org/panel/1.2.3/dist/bundled/floatpanel/jspanel4@4.12.0/dist/extensions/modal/jspanel.modal.js', 'https://cdn.holoviz.org/panel/1.2.3/dist/bundled/floatpanel/jspanel4@4.12.0/dist/extensions/tooltip/jspanel.tooltip.js', 'https://cdn.holoviz.org/panel/1.2.3/dist/bundled/floatpanel/jspanel4@4.12.0/dist/extensions/hint/jspanel.hint.js', 'https://cdn.holoviz.org/panel/1.2.3/dist/bundled/floatpanel/jspanel4@4.12.0/dist/extensions/layout/jspanel.layout.js', 'https://cdn.holoviz.org/panel/1.2.3/dist/bundled/floatpanel/jspanel4@4.12.0/dist/extensions/contextmenu/jspanel.contextmenu.js', 'https://cdn.holoviz.org/panel/1.2.3/dist/bundled/floatpanel/jspanel4@4.12.0/dist/extensions/dock/jspanel.dock.js'];\n",
" for (var i = 0; i < urls.length; i++) {\n",
" skip.push(urls[i])\n",
" }\n",
" } if (((window['GridStack'] !== undefined) && (!(window['GridStack'] instanceof HTMLElement))) || window.requirejs) {\n",
" var urls = ['https://cdn.holoviz.org/panel/1.2.3/dist/bundled/gridstack/gridstack@7.2.3/dist/gridstack-all.js'];\n",
" for (var i = 0; i < urls.length; i++) {\n",
" skip.push(urls[i])\n",
" }\n",
" } if (((window['Notyf'] !== undefined) && (!(window['Notyf'] instanceof HTMLElement))) || window.requirejs) {\n",
" var urls = ['https://cdn.holoviz.org/panel/1.2.3/dist/bundled/notificationarea/notyf@3/notyf.min.js'];\n",
" for (var i = 0; i < urls.length; i++) {\n",
" skip.push(urls[i])\n",
" }\n",
" } var existing_scripts = []\n",
" var scripts = document.getElementsByTagName('script')\n",
" for (var i = 0; i < scripts.length; i++) {\n",
" var script = scripts[i]\n",
" if (script.src != null) {\n",
"\texisting_scripts.push(script.src)\n",
" }\n",
" }\n",
" for (var i = 0; i < js_urls.length; i++) {\n",
" var url = js_urls[i];\n",
" if (skip.indexOf(url) !== -1 || existing_scripts.indexOf(url) !== -1) {\n",
"\tif (!window.requirejs) {\n",
"\t on_load();\n",
"\t}\n",
"\tcontinue;\n",
" }\n",
" var element = document.createElement('script');\n",
" element.onload = on_load;\n",
" element.onerror = on_error;\n",
" element.async = false;\n",
" element.src = url;\n",
" console.debug(\"Bokeh: injecting script tag for BokehJS library: \", url);\n",
" document.head.appendChild(element);\n",
" }\n",
" for (var i = 0; i < js_modules.length; i++) {\n",
" var url = js_modules[i];\n",
" if (skip.indexOf(url) !== -1 || existing_scripts.indexOf(url) !== -1) {\n",
"\tif (!window.requirejs) {\n",
"\t on_load();\n",
"\t}\n",
"\tcontinue;\n",
" }\n",
" var element = document.createElement('script');\n",
" element.onload = on_load;\n",
" element.onerror = on_error;\n",
" element.async = false;\n",
" element.src = url;\n",
" element.type = \"module\";\n",
" console.debug(\"Bokeh: injecting script tag for BokehJS library: \", url);\n",
" document.head.appendChild(element);\n",
" }\n",
" for (const name in js_exports) {\n",
" var url = js_exports[name];\n",
" if (skip.indexOf(url) >= 0 || root[name] != null) {\n",
"\tif (!window.requirejs) {\n",
"\t on_load();\n",
"\t}\n",
"\tcontinue;\n",
" }\n",
" var element = document.createElement('script');\n",
" element.onerror = on_error;\n",
" element.async = false;\n",
" element.type = \"module\";\n",
" console.debug(\"Bokeh: injecting script tag for BokehJS library: \", url);\n",
" element.textContent = `\n",
" import ${name} from \"${url}\"\n",
" window.${name} = ${name}\n",
" window._bokeh_on_load()\n",
" `\n",
" document.head.appendChild(element);\n",
" }\n",
" if (!js_urls.length && !js_modules.length) {\n",
" on_load()\n",
" }\n",
" };\n",
"\n",
" function inject_raw_css(css) {\n",
" const element = document.createElement(\"style\");\n",
" element.appendChild(document.createTextNode(css));\n",
" document.body.appendChild(element);\n",
" }\n",
"\n",
" var js_urls = [];\n",
" var js_modules = [];\n",
" var js_exports = {};\n",
" var css_urls = [];\n",
" var inline_js = [ function(Bokeh) {\n",
" Bokeh.set_log_level(\"info\");\n",
" },\n",
"function(Bokeh) {} // ensure no trailing comma for IE\n",
" ];\n",
"\n",
" function run_inline_js() {\n",
" if ((root.Bokeh !== undefined) || (force === true)) {\n",
" for (var i = 0; i < inline_js.length; i++) {\n",
" inline_js[i].call(root, root.Bokeh);\n",
" }\n",
" // Cache old bokeh versions\n",
" if (Bokeh != undefined && !reloading) {\n",
"\tvar NewBokeh = root.Bokeh;\n",
"\tif (Bokeh.versions === undefined) {\n",
"\t Bokeh.versions = new Map();\n",
"\t}\n",
"\tif (NewBokeh.version !== Bokeh.version) {\n",
"\t Bokeh.versions.set(NewBokeh.version, NewBokeh)\n",
"\t}\n",
"\troot.Bokeh = Bokeh;\n",
" }} else if (Date.now() < root._bokeh_timeout) {\n",
" setTimeout(run_inline_js, 100);\n",
" } else if (!root._bokeh_failed_load) {\n",
" console.log(\"Bokeh: BokehJS failed to load within specified timeout.\");\n",
" root._bokeh_failed_load = true;\n",
" }\n",
" root._bokeh_is_initializing = false\n",
" }\n",
"\n",
" function load_or_wait() {\n",
" // Implement a backoff loop that tries to ensure we do not load multiple\n",
" // versions of Bokeh and its dependencies at the same time.\n",
" // In recent versions we use the root._bokeh_is_initializing flag\n",
" // to determine whether there is an ongoing attempt to initialize\n",
" // bokeh, however for backward compatibility we also try to ensure\n",
" // that we do not start loading a newer (Panel>=1.0 and Bokeh>3) version\n",
" // before older versions are fully initialized.\n",
" if (root._bokeh_is_initializing && Date.now() > root._bokeh_timeout) {\n",
" root._bokeh_is_initializing = false;\n",
" root._bokeh_onload_callbacks = undefined;\n",
" console.log(\"Bokeh: BokehJS was loaded multiple times but one version failed to initialize.\");\n",
" load_or_wait();\n",
" } else if (root._bokeh_is_initializing || (typeof root._bokeh_is_initializing === \"undefined\" && root._bokeh_onload_callbacks !== undefined)) {\n",
" setTimeout(load_or_wait, 100);\n",
" } else {\n",
" Bokeh = root.Bokeh;\n",
" bokeh_loaded = Bokeh != null && (Bokeh.version === py_version || (Bokeh.versions !== undefined && Bokeh.versions.has(py_version)));\n",
" root._bokeh_is_initializing = true\n",
" root._bokeh_onload_callbacks = []\n",
" if (!reloading && (!bokeh_loaded || is_dev)) {\n",
"\troot.Bokeh = undefined;\n",
" }\n",
" load_libs(css_urls, js_urls, js_modules, js_exports, function() {\n",
"\tconsole.debug(\"Bokeh: BokehJS plotting callback run at\", now());\n",
"\trun_inline_js();\n",
" });\n",
" }\n",
" }\n",
" // Give older versions of the autoload script a head-start to ensure\n",
" // they initialize before we start loading newer version.\n",
" setTimeout(load_or_wait, 100)\n",
"}(window));"
],
"application/vnd.holoviews_load.v0+json": "(function(root) {\n function now() {\n return new Date();\n }\n\n var force = true;\n var py_version = '3.2.2'.replace('rc', '-rc.').replace('.dev', '-dev.');\n var is_dev = py_version.indexOf(\"+\") !== -1 || py_version.indexOf(\"-\") !== -1;\n var reloading = true;\n var Bokeh = root.Bokeh;\n var bokeh_loaded = Bokeh != null && (Bokeh.version === py_version || (Bokeh.versions !== undefined && Bokeh.versions.has(py_version)));\n\n if (typeof (root._bokeh_timeout) === \"undefined\" || force) {\n root._bokeh_timeout = Date.now() + 5000;\n root._bokeh_failed_load = false;\n }\n\n function run_callbacks() {\n try {\n root._bokeh_onload_callbacks.forEach(function(callback) {\n if (callback != null)\n callback();\n });\n } finally {\n delete root._bokeh_onload_callbacks;\n }\n console.debug(\"Bokeh: all callbacks have finished\");\n }\n\n function load_libs(css_urls, js_urls, js_modules, js_exports, callback) {\n if (css_urls == null) css_urls = [];\n if (js_urls == null) js_urls = [];\n if (js_modules == null) js_modules = [];\n if (js_exports == null) js_exports = {};\n\n root._bokeh_onload_callbacks.push(callback);\n\n if (root._bokeh_is_loading > 0) {\n console.debug(\"Bokeh: BokehJS is being loaded, scheduling callback at\", now());\n return null;\n }\n if (js_urls.length === 0 && js_modules.length === 0 && Object.keys(js_exports).length === 0) {\n run_callbacks();\n return null;\n }\n if (!reloading) {\n console.debug(\"Bokeh: BokehJS not loaded, scheduling load and callback at\", now());\n }\n\n function on_load() {\n root._bokeh_is_loading--;\n if (root._bokeh_is_loading === 0) {\n console.debug(\"Bokeh: all BokehJS libraries/stylesheets loaded\");\n run_callbacks()\n }\n }\n window._bokeh_on_load = on_load\n\n function on_error() {\n console.error(\"failed to load \" + url);\n }\n\n var skip = [];\n if (window.requirejs) {\n window.requirejs.config({'packages': {}, 'paths': {'jspanel': 'https://cdn.jsdelivr.net/npm/jspanel4@4.12.0/dist/jspanel', 'jspanel-modal': 'https://cdn.jsdelivr.net/npm/jspanel4@4.12.0/dist/extensions/modal/jspanel.modal', 'jspanel-tooltip': 'https://cdn.jsdelivr.net/npm/jspanel4@4.12.0/dist/extensions/tooltip/jspanel.tooltip', 'jspanel-hint': 'https://cdn.jsdelivr.net/npm/jspanel4@4.12.0/dist/extensions/hint/jspanel.hint', 'jspanel-layout': 'https://cdn.jsdelivr.net/npm/jspanel4@4.12.0/dist/extensions/layout/jspanel.layout', 'jspanel-contextmenu': 'https://cdn.jsdelivr.net/npm/jspanel4@4.12.0/dist/extensions/contextmenu/jspanel.contextmenu', 'jspanel-dock': 'https://cdn.jsdelivr.net/npm/jspanel4@4.12.0/dist/extensions/dock/jspanel.dock', 'gridstack': 'https://cdn.jsdelivr.net/npm/gridstack@7.2.3/dist/gridstack-all', 'notyf': 'https://cdn.jsdelivr.net/npm/notyf@3/notyf.min'}, 'shim': {'jspanel': {'exports': 'jsPanel'}, 'gridstack': {'exports': 'GridStack'}}});\n require([\"jspanel\"], function(jsPanel) {\n\twindow.jsPanel = jsPanel\n\ton_load()\n })\n require([\"jspanel-modal\"], function() {\n\ton_load()\n })\n require([\"jspanel-tooltip\"], function() {\n\ton_load()\n })\n require([\"jspanel-hint\"], function() {\n\ton_load()\n })\n require([\"jspanel-layout\"], function() {\n\ton_load()\n })\n require([\"jspanel-contextmenu\"], function() {\n\ton_load()\n })\n require([\"jspanel-dock\"], function() {\n\ton_load()\n })\n require([\"gridstack\"], function(GridStack) {\n\twindow.GridStack = GridStack\n\ton_load()\n })\n require([\"notyf\"], function() {\n\ton_load()\n })\n root._bokeh_is_loading = css_urls.length + 9;\n } else {\n root._bokeh_is_loading = css_urls.length + js_urls.length + js_modules.length + Object.keys(js_exports).length;\n }\n\n var existing_stylesheets = []\n var links = document.getElementsByTagName('link')\n for (var i = 0; i < lin
},
"metadata": {},
"output_type": "display_data"
},
{
"data": {
"application/javascript": [
"\n",
"if ((window.PyViz === undefined) || (window.PyViz instanceof HTMLElement)) {\n",
" window.PyViz = {comms: {}, comm_status:{}, kernels:{}, receivers: {}, plot_index: []}\n",
"}\n",
"\n",
"\n",
" function JupyterCommManager() {\n",
" }\n",
"\n",
" JupyterCommManager.prototype.register_target = function(plot_id, comm_id, msg_handler) {\n",
" if (window.comm_manager || ((window.Jupyter !== undefined) && (Jupyter.notebook.kernel != null))) {\n",
" var comm_manager = window.comm_manager || Jupyter.notebook.kernel.comm_manager;\n",
" comm_manager.register_target(comm_id, function(comm) {\n",
" comm.on_msg(msg_handler);\n",
" });\n",
" } else if ((plot_id in window.PyViz.kernels) && (window.PyViz.kernels[plot_id])) {\n",
" window.PyViz.kernels[plot_id].registerCommTarget(comm_id, function(comm) {\n",
" comm.onMsg = msg_handler;\n",
" });\n",
" } else if (typeof google != 'undefined' && google.colab.kernel != null) {\n",
" google.colab.kernel.comms.registerTarget(comm_id, (comm) => {\n",
" var messages = comm.messages[Symbol.asyncIterator]();\n",
" function processIteratorResult(result) {\n",
" var message = result.value;\n",
" console.log(message)\n",
" var content = {data: message.data, comm_id};\n",
" var buffers = []\n",
" for (var buffer of message.buffers || []) {\n",
" buffers.push(new DataView(buffer))\n",
" }\n",
" var metadata = message.metadata || {};\n",
" var msg = {content, buffers, metadata}\n",
" msg_handler(msg);\n",
" return messages.next().then(processIteratorResult);\n",
" }\n",
" return messages.next().then(processIteratorResult);\n",
" })\n",
" }\n",
" }\n",
"\n",
" JupyterCommManager.prototype.get_client_comm = function(plot_id, comm_id, msg_handler) {\n",
" if (comm_id in window.PyViz.comms) {\n",
" return window.PyViz.comms[comm_id];\n",
" } else if (window.comm_manager || ((window.Jupyter !== undefined) && (Jupyter.notebook.kernel != null))) {\n",
" var comm_manager = window.comm_manager || Jupyter.notebook.kernel.comm_manager;\n",
" var comm = comm_manager.new_comm(comm_id, {}, {}, {}, comm_id);\n",
" if (msg_handler) {\n",
" comm.on_msg(msg_handler);\n",
" }\n",
" } else if ((plot_id in window.PyViz.kernels) && (window.PyViz.kernels[plot_id])) {\n",
" var comm = window.PyViz.kernels[plot_id].connectToComm(comm_id);\n",
" comm.open();\n",
" if (msg_handler) {\n",
" comm.onMsg = msg_handler;\n",
" }\n",
" } else if (typeof google != 'undefined' && google.colab.kernel != null) {\n",
" var comm_promise = google.colab.kernel.comms.open(comm_id)\n",
" comm_promise.then((comm) => {\n",
" window.PyViz.comms[comm_id] = comm;\n",
" if (msg_handler) {\n",
" var messages = comm.messages[Symbol.asyncIterator]();\n",
" function processIteratorResult(result) {\n",
" var message = result.value;\n",
" var content = {data: message.data};\n",
" var metadata = message.metadata || {comm_id};\n",
" var msg = {content, metadata}\n",
" msg_handler(msg);\n",
" return messages.next().then(processIteratorResult);\n",
" }\n",
" return messages.next().then(processIteratorResult);\n",
" }\n",
" }) \n",
" var sendClosure = (data, metadata, buffers, disposeOnDone) => {\n",
" return comm_promise.then((comm) => {\n",
" comm.send(data, metadata, buffers, disposeOnDone);\n",
" });\n",
" };\n",
" var comm = {\n",
" send: sendClosure\n",
" };\n",
" }\n",
" window.PyViz.comms[comm_id] = comm;\n",
" return comm;\n",
" }\n",
" window.PyViz.comm_manager = new JupyterCommManager();\n",
" \n",
"\n",
"\n",
"var JS_MIME_TYPE = 'application/javascript';\n",
"var HTML_MIME_TYPE = 'text/html';\n",
"var EXEC_MIME_TYPE = 'application/vnd.holoviews_exec.v0+json';\n",
"var CLASS_NAME = 'output';\n",
"\n",
"/**\n",
" * Render data to the DOM node\n",
" */\n",
"function render(props, node) {\n",
" var div = document.createElement(\"div\");\n",
" var script = document.createElement(\"script\");\n",
" node.appendChild(div);\n",
" node.appendChild(script);\n",
"}\n",
"\n",
"/**\n",
" * Handle when a new output is added\n",
" */\n",
"function handle_add_output(event, handle) {\n",
" var output_area = handle.output_area;\n",
" var output = handle.output;\n",
" if ((output.data == undefined) || (!output.data.hasOwnProperty(EXEC_MIME_TYPE))) {\n",
" return\n",
" }\n",
" var id = output.metadata[EXEC_MIME_TYPE][\"id\"];\n",
" var toinsert = output_area.element.find(\".\" + CLASS_NAME.split(' ')[0]);\n",
" if (id !== undefined) {\n",
" var nchildren = toinsert.length;\n",
" var html_node = toinsert[nchildren-1].children[0];\n",
" html_node.innerHTML = output.data[HTML_MIME_TYPE];\n",
" var scripts = [];\n",
" var nodelist = html_node.querySelectorAll(\"script\");\n",
" for (var i in nodelist) {\n",
" if (nodelist.hasOwnProperty(i)) {\n",
" scripts.push(nodelist[i])\n",
" }\n",
" }\n",
"\n",
" scripts.forEach( function (oldScript) {\n",
" var newScript = document.createElement(\"script\");\n",
" var attrs = [];\n",
" var nodemap = oldScript.attributes;\n",
" for (var j in nodemap) {\n",
" if (nodemap.hasOwnProperty(j)) {\n",
" attrs.push(nodemap[j])\n",
" }\n",
" }\n",
" attrs.forEach(function(attr) { newScript.setAttribute(attr.name, attr.value) });\n",
" newScript.appendChild(document.createTextNode(oldScript.innerHTML));\n",
" oldScript.parentNode.replaceChild(newScript, oldScript);\n",
" });\n",
" if (JS_MIME_TYPE in output.data) {\n",
" toinsert[nchildren-1].children[1].textContent = output.data[JS_MIME_TYPE];\n",
" }\n",
" output_area._hv_plot_id = id;\n",
" if ((window.Bokeh !== undefined) && (id in Bokeh.index)) {\n",
" window.PyViz.plot_index[id] = Bokeh.index[id];\n",
" } else {\n",
" window.PyViz.plot_index[id] = null;\n",
" }\n",
" } else if (output.metadata[EXEC_MIME_TYPE][\"server_id\"] !== undefined) {\n",
" var bk_div = document.createElement(\"div\");\n",
" bk_div.innerHTML = output.data[HTML_MIME_TYPE];\n",
" var script_attrs = bk_div.children[0].attributes;\n",
" for (var i = 0; i < script_attrs.length; i++) {\n",
" toinsert[toinsert.length - 1].childNodes[1].setAttribute(script_attrs[i].name, script_attrs[i].value);\n",
" }\n",
" // store reference to server id on output_area\n",
" output_area._bokeh_server_id = output.metadata[EXEC_MIME_TYPE][\"server_id\"];\n",
" }\n",
"}\n",
"\n",
"/**\n",
" * Handle when an output is cleared or removed\n",
" */\n",
"function handle_clear_output(event, handle) {\n",
" var id = handle.cell.output_area._hv_plot_id;\n",
" var server_id = handle.cell.output_area._bokeh_server_id;\n",
" if (((id === undefined) || !(id in PyViz.plot_index)) && (server_id !== undefined)) { return; }\n",
" var comm = window.PyViz.comm_manager.get_client_comm(\"hv-extension-comm\", \"hv-extension-comm\", function () {});\n",
" if (server_id !== null) {\n",
" comm.send({event_type: 'server_delete', 'id': server_id});\n",
" return;\n",
" } else if (comm !== null) {\n",
" comm.send({event_type: 'delete', 'id': id});\n",
" }\n",
" delete PyViz.plot_index[id];\n",
" if ((window.Bokeh !== undefined) & (id in window.Bokeh.index)) {\n",
" var doc = window.Bokeh.index[id].model.document\n",
" doc.clear();\n",
" const i = window.Bokeh.documents.indexOf(doc);\n",
" if (i > -1) {\n",
" window.Bokeh.documents.splice(i, 1);\n",
" }\n",
" }\n",
"}\n",
"\n",
"/**\n",
" * Handle kernel restart event\n",
" */\n",
"function handle_kernel_cleanup(event, handle) {\n",
" delete PyViz.comms[\"hv-extension-comm\"];\n",
" window.PyViz.plot_index = {}\n",
"}\n",
"\n",
"/**\n",
" * Handle update_display_data messages\n",
" */\n",
"function handle_update_output(event, handle) {\n",
" handle_clear_output(event, {cell: {output_area: handle.output_area}})\n",
" handle_add_output(event, handle)\n",
"}\n",
"\n",
"function register_renderer(events, OutputArea) {\n",
" function append_mime(data, metadata, element) {\n",
" // create a DOM node to render to\n",
" var toinsert = this.create_output_subarea(\n",
" metadata,\n",
" CLASS_NAME,\n",
" EXEC_MIME_TYPE\n",
" );\n",
" this.keyboard_manager.register_events(toinsert);\n",
" // Render to node\n",
" var props = {data: data, metadata: metadata[EXEC_MIME_TYPE]};\n",
" render(props, toinsert[0]);\n",
" element.append(toinsert);\n",
" return toinsert\n",
" }\n",
"\n",
" events.on('output_added.OutputArea', handle_add_output);\n",
" events.on('output_updated.OutputArea', handle_update_output);\n",
" events.on('clear_output.CodeCell', handle_clear_output);\n",
" events.on('delete.Cell', handle_clear_output);\n",
" events.on('kernel_ready.Kernel', handle_kernel_cleanup);\n",
"\n",
" OutputArea.prototype.register_mime_type(EXEC_MIME_TYPE, append_mime, {\n",
" safe: true,\n",
" index: 0\n",
" });\n",
"}\n",
"\n",
"if (window.Jupyter !== undefined) {\n",
" try {\n",
" var events = require('base/js/events');\n",
" var OutputArea = require('notebook/js/outputarea').OutputArea;\n",
" if (OutputArea.prototype.mime_types().indexOf(EXEC_MIME_TYPE) == -1) {\n",
" register_renderer(events, OutputArea);\n",
" }\n",
" } catch(err) {\n",
" }\n",
"}\n"
],
"application/vnd.holoviews_load.v0+json": "\nif ((window.PyViz === undefined) || (window.PyViz instanceof HTMLElement)) {\n window.PyViz = {comms: {}, comm_status:{}, kernels:{}, receivers: {}, plot_index: []}\n}\n\n\n function JupyterCommManager() {\n }\n\n JupyterCommManager.prototype.register_target = function(plot_id, comm_id, msg_handler) {\n if (window.comm_manager || ((window.Jupyter !== undefined) && (Jupyter.notebook.kernel != null))) {\n var comm_manager = window.comm_manager || Jupyter.notebook.kernel.comm_manager;\n comm_manager.register_target(comm_id, function(comm) {\n comm.on_msg(msg_handler);\n });\n } else if ((plot_id in window.PyViz.kernels) && (window.PyViz.kernels[plot_id])) {\n window.PyViz.kernels[plot_id].registerCommTarget(comm_id, function(comm) {\n comm.onMsg = msg_handler;\n });\n } else if (typeof google != 'undefined' && google.colab.kernel != null) {\n google.colab.kernel.comms.registerTarget(comm_id, (comm) => {\n var messages = comm.messages[Symbol.asyncIterator]();\n function processIteratorResult(result) {\n var message = result.value;\n console.log(message)\n var content = {data: message.data, comm_id};\n var buffers = []\n for (var buffer of message.buffers || []) {\n buffers.push(new DataView(buffer))\n }\n var metadata = message.metadata || {};\n var msg = {content, buffers, metadata}\n msg_handler(msg);\n return messages.next().then(processIteratorResult);\n }\n return messages.next().then(processIteratorResult);\n })\n }\n }\n\n JupyterCommManager.prototype.get_client_comm = function(plot_id, comm_id, msg_handler) {\n if (comm_id in window.PyViz.comms) {\n return window.PyViz.comms[comm_id];\n } else if (window.comm_manager || ((window.Jupyter !== undefined) && (Jupyter.notebook.kernel != null))) {\n var comm_manager = window.comm_manager || Jupyter.notebook.kernel.comm_manager;\n var comm = comm_manager.new_comm(comm_id, {}, {}, {}, comm_id);\n if (msg_handler) {\n comm.on_msg(msg_handler);\n }\n } else if ((plot_id in window.PyViz.kernels) && (window.PyViz.kernels[plot_id])) {\n var comm = window.PyViz.kernels[plot_id].connectToComm(comm_id);\n comm.open();\n if (msg_handler) {\n comm.onMsg = msg_handler;\n }\n } else if (typeof google != 'undefined' && google.colab.kernel != null) {\n var comm_promise = google.colab.kernel.comms.open(comm_id)\n comm_promise.then((comm) => {\n window.PyViz.comms[comm_id] = comm;\n if (msg_handler) {\n var messages = comm.messages[Symbol.asyncIterator]();\n function processIteratorResult(result) {\n var message = result.value;\n var content = {data: message.data};\n var metadata = message.metadata || {comm_id};\n var msg = {content, metadata}\n msg_handler(msg);\n return messages.next().then(processIteratorResult);\n }\n return messages.next().then(processIteratorResult);\n }\n }) \n var sendClosure = (data, metadata, buffers, disposeOnDone) => {\n return comm_promise.then((comm) => {\n comm.send(data, metadata, buffers, disposeOnDone);\n });\n };\n var comm = {\n send: sendClosure\n };\n }\n window.PyViz.comms[comm_id] = comm;\n return comm;\n }\n window.PyViz.comm_manager = new JupyterCommManager();\n \n\n\nvar JS_MIME_TYPE = 'application/javascript';\nvar HTML_MIME_TYPE = 'text/html';\nvar EXEC_MIME_TYPE = 'application/vnd.holoviews_exec.v0+json';\nvar CLASS_NAME = 'output';\n\n/**\n * Render data to the DOM node\n */\nfunction render(props, node) {\n var div = document.createElement(\"div\");\n var script = document.creat
},
"metadata": {},
"output_type": "display_data"
},
{
"data": {
"text/html": [
"<style>*[data-root-id],\n",
"*[data-root-id] > * {\n",
" box-sizing: border-box;\n",
" font-family: var(--jp-ui-font-family);\n",
" font-size: var(--jp-ui-font-size1);\n",
" color: var(--vscode-editor-foreground, var(--jp-ui-font-color1));\n",
"}\n",
"\n",
"/* Override VSCode background color */\n",
".cell-output-ipywidget-background:has(\n",
" > .cell-output-ipywidget-background > .lm-Widget > *[data-root-id]\n",
" ),\n",
".cell-output-ipywidget-background:has(> .lm-Widget > *[data-root-id]) {\n",
" background-color: transparent !important;\n",
"}\n",
"</style>"
]
},
"metadata": {},
"output_type": "display_data"
},
{
"name": "stdout",
"output_type": "stream",
"text": [
"CPU times: user 12.9 s, sys: 4.39 s, total: 17.3 s\n",
"Wall time: 10.8 s\n"
]
}
],
"source": [
"%%time\n",
"%matplotlib inline\n",
"from new_import import *"
]
},
{
"cell_type": "code",
"execution_count": 14,
"id": "20e98f76-f879-4999-9caa-9698c4c40b0f",
"metadata": {
"tags": []
},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"An existing cluster was found. Connecting to: easihub.9f2f42f40c134601a68634913d891637\n",
"CPU times: user 45.6 ms, sys: 5.11 ms, total: 50.7 ms\n",
"Wall time: 282 ms\n"
]
},
{
"data": {
"text/html": [
"<div>\n",
" <div style=\"width: 24px; height: 24px; background-color: #e1e1e1; border: 3px solid #9D9D9D; border-radius: 5px; position: absolute;\"> </div>\n",
" <div style=\"margin-left: 48px;\">\n",
" <h3 style=\"margin-bottom: 0px;\">Client</h3>\n",
" <p style=\"color: #9D9D9D; margin-bottom: 0px;\">Client-3f237e50-6e75-11ef-8269-d24f7674e586</p>\n",
" <table style=\"width: 100%; text-align: left;\">\n",
"\n",
" <tr>\n",
" \n",
" <td style=\"text-align: left;\"><strong>Connection method:</strong> Cluster object</td>\n",
" <td style=\"text-align: left;\"><strong>Cluster type:</strong> dask_gateway.GatewayCluster</td>\n",
" \n",
" </tr>\n",
"\n",
" \n",
" <tr>\n",
" <td style=\"text-align: left;\">\n",
" <strong>Dashboard: </strong> <a href=\"https://hub.asia.easi-eo.solutions/services/dask-gateway/clusters/easihub.9f2f42f40c134601a68634913d891637/status\" target=\"_blank\">https://hub.asia.easi-eo.solutions/services/dask-gateway/clusters/easihub.9f2f42f40c134601a68634913d891637/status</a>\n",
" </td>\n",
" <td style=\"text-align: left;\"></td>\n",
" </tr>\n",
" \n",
"\n",
" </table>\n",
"\n",
" \n",
" <button style=\"margin-bottom: 12px;\" data-commandlinker-command=\"dask:populate-and-launch-layout\" data-commandlinker-args='{\"url\": \"https://hub.asia.easi-eo.solutions/services/dask-gateway/clusters/easihub.9f2f42f40c134601a68634913d891637/status\" }'>\n",
" Launch dashboard in JupyterLab\n",
" </button>\n",
" \n",
"\n",
" \n",
" <details>\n",
" <summary style=\"margin-bottom: 20px;\"><h3 style=\"display: inline;\">Cluster Info</h3></summary>\n",
" <div style='background-color: #f2f2f2; display: inline-block; padding: 10px; border: 1px solid #999999;'>\n",
" <h3>GatewayCluster</h3>\n",
" <ul>\n",
" <li><b>Name: </b>easihub.9f2f42f40c134601a68634913d891637\n",
" <li><b>Dashboard: </b><a href='https://hub.asia.easi-eo.solutions/services/dask-gateway/clusters/easihub.9f2f42f40c134601a68634913d891637/status' target='_blank'>https://hub.asia.easi-eo.solutions/services/dask-gateway/clusters/easihub.9f2f42f40c134601a68634913d891637/status</a>\n",
" </ul>\n",
"</div>\n",
"\n",
" </details>\n",
" \n",
"\n",
" </div>\n",
"</div>"
],
"text/plain": [
"<Client: 'tls://10.0.63.187:8786' processes=4 threads=32, memory=112.00 GiB>"
]
},
"execution_count": 14,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"%%time\n",
"# Dask gateway\n",
"cluster, client = notebook_utils.initialize_dask(use_gateway=True, workers=(1,4))\n",
"dc = datacube.Datacube()\n",
"\n",
"# Configure s3 access\n",
"configure_s3_access(aws_unsigned=False, requester_pays=True, client=client)\n",
"\n",
"client"
]
},
{
"cell_type": "code",
"execution_count": 15,
"id": "bdd90d49-48ad-4aa3-b2c5-d81c4cfd3127",
"metadata": {
"tags": []
},
"outputs": [],
"source": [
"## cấu hình thời gian lấy ảnh và tọa độ\n",
"# date_range = ('2022-09-01', '2023-10-01')\n",
"# longtitude_range = (105.86575, 105.94120)\n",
"# latitude_range = (9.65070, 9.69850)\n",
"date_range = ('2022-09-01', '2023-10-01')\n",
"longtitude_range = (105.5, 106.4)\n",
"latitude_range = (9.2, 10.0) "
]
},
{
"cell_type": "code",
"execution_count": 16,
"id": "307e0fd1-0030-47bd-9a1d-3a42c0c7c9a1",
"metadata": {
"tags": []
},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"Most common native CRS: EPSG:32648\n",
"No datasets require offset correction\n",
"The valid_data_mask and scale (no offset) have been applied to the reflectance bands\n"
]
},
{
"data": {
"text/html": [
"<h4>Dataset size: 210.07 GB</h4>"
],
"text/plain": [
"<IPython.core.display.HTML object>"
]
},
"metadata": {},
"output_type": "display_data"
},
{
"data": {
"text/html": [
"<div><svg style=\"position: absolute; width: 0; height: 0; overflow: hidden\">\n",
"<defs>\n",
"<symbol id=\"icon-database\" viewBox=\"0 0 32 32\">\n",
"<path d=\"M16 0c-8.837 0-16 2.239-16 5v4c0 2.761 7.163 5 16 5s16-2.239 16-5v-4c0-2.761-7.163-5-16-5z\"></path>\n",
"<path d=\"M16 17c-8.837 0-16-2.239-16-5v6c0 2.761 7.163 5 16 5s16-2.239 16-5v-6c0 2.761-7.163 5-16 5z\"></path>\n",
"<path d=\"M16 26c-8.837 0-16-2.239-16-5v6c0 2.761 7.163 5 16 5s16-2.239 16-5v-6c0 2.761-7.163 5-16 5z\"></path>\n",
"</symbol>\n",
"<symbol id=\"icon-file-text2\" viewBox=\"0 0 32 32\">\n",
"<path d=\"M28.681 7.159c-0.694-0.947-1.662-2.053-2.724-3.116s-2.169-2.030-3.116-2.724c-1.612-1.182-2.393-1.319-2.841-1.319h-15.5c-1.378 0-2.5 1.121-2.5 2.5v27c0 1.378 1.122 2.5 2.5 2.5h23c1.378 0 2.5-1.122 2.5-2.5v-19.5c0-0.448-0.137-1.23-1.319-2.841zM24.543 5.457c0.959 0.959 1.712 1.825 2.268 2.543h-4.811v-4.811c0.718 0.556 1.584 1.309 2.543 2.268zM28 29.5c0 0.271-0.229 0.5-0.5 0.5h-23c-0.271 0-0.5-0.229-0.5-0.5v-27c0-0.271 0.229-0.5 0.5-0.5 0 0 15.499-0 15.5 0v7c0 0.552 0.448 1 1 1h7v19.5z\"></path>\n",
"<path d=\"M23 26h-14c-0.552 0-1-0.448-1-1s0.448-1 1-1h14c0.552 0 1 0.448 1 1s-0.448 1-1 1z\"></path>\n",
"<path d=\"M23 22h-14c-0.552 0-1-0.448-1-1s0.448-1 1-1h14c0.552 0 1 0.448 1 1s-0.448 1-1 1z\"></path>\n",
"<path d=\"M23 18h-14c-0.552 0-1-0.448-1-1s0.448-1 1-1h14c0.552 0 1 0.448 1 1s-0.448 1-1 1z\"></path>\n",
"</symbol>\n",
"</defs>\n",
"</svg>\n",
"<style>/* CSS stylesheet for displaying xarray objects in jupyterlab.\n",
" *\n",
" */\n",
"\n",
":root {\n",
" --xr-font-color0: var(--jp-content-font-color0, rgba(0, 0, 0, 1));\n",
" --xr-font-color2: var(--jp-content-font-color2, rgba(0, 0, 0, 0.54));\n",
" --xr-font-color3: var(--jp-content-font-color3, rgba(0, 0, 0, 0.38));\n",
" --xr-border-color: var(--jp-border-color2, #e0e0e0);\n",
" --xr-disabled-color: var(--jp-layout-color3, #bdbdbd);\n",
" --xr-background-color: var(--jp-layout-color0, white);\n",
" --xr-background-color-row-even: var(--jp-layout-color1, white);\n",
" --xr-background-color-row-odd: var(--jp-layout-color2, #eeeeee);\n",
"}\n",
"\n",
"html[theme=dark],\n",
"body[data-theme=dark],\n",
"body.vscode-dark {\n",
" --xr-font-color0: rgba(255, 255, 255, 1);\n",
" --xr-font-color2: rgba(255, 255, 255, 0.54);\n",
" --xr-font-color3: rgba(255, 255, 255, 0.38);\n",
" --xr-border-color: #1F1F1F;\n",
" --xr-disabled-color: #515151;\n",
" --xr-background-color: #111111;\n",
" --xr-background-color-row-even: #111111;\n",
" --xr-background-color-row-odd: #313131;\n",
"}\n",
"\n",
".xr-wrap {\n",
" display: block !important;\n",
" min-width: 300px;\n",
" max-width: 700px;\n",
"}\n",
"\n",
".xr-text-repr-fallback {\n",
" /* fallback to plain text repr when CSS is not injected (untrusted notebook) */\n",
" display: none;\n",
"}\n",
"\n",
".xr-header {\n",
" padding-top: 6px;\n",
" padding-bottom: 6px;\n",
" margin-bottom: 4px;\n",
" border-bottom: solid 1px var(--xr-border-color);\n",
"}\n",
"\n",
".xr-header > div,\n",
".xr-header > ul {\n",
" display: inline;\n",
" margin-top: 0;\n",
" margin-bottom: 0;\n",
"}\n",
"\n",
".xr-obj-type,\n",
".xr-array-name {\n",
" margin-left: 2px;\n",
" margin-right: 10px;\n",
"}\n",
"\n",
".xr-obj-type {\n",
" color: var(--xr-font-color2);\n",
"}\n",
"\n",
".xr-sections {\n",
" padding-left: 0 !important;\n",
" display: grid;\n",
" grid-template-columns: 150px auto auto 1fr 20px 20px;\n",
"}\n",
"\n",
".xr-section-item {\n",
" display: contents;\n",
"}\n",
"\n",
".xr-section-item input {\n",
" display: none;\n",
"}\n",
"\n",
".xr-section-item input + label {\n",
" color: var(--xr-disabled-color);\n",
"}\n",
"\n",
".xr-section-item input:enabled + label {\n",
" cursor: pointer;\n",
" color: var(--xr-font-color2);\n",
"}\n",
"\n",
".xr-section-item input:enabled + label:hover {\n",
" color: var(--xr-font-color0);\n",
"}\n",
"\n",
".xr-section-summary {\n",
" grid-column: 1;\n",
" color: var(--xr-font-color2);\n",
" font-weight: 500;\n",
"}\n",
"\n",
".xr-section-summary > span {\n",
" display: inline-block;\n",
" padding-left: 0.5em;\n",
"}\n",
"\n",
".xr-section-summary-in:disabled + label {\n",
" color: var(--xr-font-color2);\n",
"}\n",
"\n",
".xr-section-summary-in + label:before {\n",
" display: inline-block;\n",
" content: '►';\n",
" font-size: 11px;\n",
" width: 15px;\n",
" text-align: center;\n",
"}\n",
"\n",
".xr-section-summary-in:disabled + label:before {\n",
" color: var(--xr-disabled-color);\n",
"}\n",
"\n",
".xr-section-summary-in:checked + label:before {\n",
" content: '▼';\n",
"}\n",
"\n",
".xr-section-summary-in:checked + label > span {\n",
" display: none;\n",
"}\n",
"\n",
".xr-section-summary,\n",
".xr-section-inline-details {\n",
" padding-top: 4px;\n",
" padding-bottom: 4px;\n",
"}\n",
"\n",
".xr-section-inline-details {\n",
" grid-column: 2 / -1;\n",
"}\n",
"\n",
".xr-section-details {\n",
" display: none;\n",
" grid-column: 1 / -1;\n",
" margin-bottom: 5px;\n",
"}\n",
"\n",
".xr-section-summary-in:checked ~ .xr-section-details {\n",
" display: contents;\n",
"}\n",
"\n",
".xr-array-wrap {\n",
" grid-column: 1 / -1;\n",
" display: grid;\n",
" grid-template-columns: 20px auto;\n",
"}\n",
"\n",
".xr-array-wrap > label {\n",
" grid-column: 1;\n",
" vertical-align: top;\n",
"}\n",
"\n",
".xr-preview {\n",
" color: var(--xr-font-color3);\n",
"}\n",
"\n",
".xr-array-preview,\n",
".xr-array-data {\n",
" padding: 0 5px !important;\n",
" grid-column: 2;\n",
"}\n",
"\n",
".xr-array-data,\n",
".xr-array-in:checked ~ .xr-array-preview {\n",
" display: none;\n",
"}\n",
"\n",
".xr-array-in:checked ~ .xr-array-data,\n",
".xr-array-preview {\n",
" display: inline-block;\n",
"}\n",
"\n",
".xr-dim-list {\n",
" display: inline-block !important;\n",
" list-style: none;\n",
" padding: 0 !important;\n",
" margin: 0;\n",
"}\n",
"\n",
".xr-dim-list li {\n",
" display: inline-block;\n",
" padding: 0;\n",
" margin: 0;\n",
"}\n",
"\n",
".xr-dim-list:before {\n",
" content: '(';\n",
"}\n",
"\n",
".xr-dim-list:after {\n",
" content: ')';\n",
"}\n",
"\n",
".xr-dim-list li:not(:last-child):after {\n",
" content: ',';\n",
" padding-right: 5px;\n",
"}\n",
"\n",
".xr-has-index {\n",
" font-weight: bold;\n",
"}\n",
"\n",
".xr-var-list,\n",
".xr-var-item {\n",
" display: contents;\n",
"}\n",
"\n",
".xr-var-item > div,\n",
".xr-var-item label,\n",
".xr-var-item > .xr-var-name span {\n",
" background-color: var(--xr-background-color-row-even);\n",
" margin-bottom: 0;\n",
"}\n",
"\n",
".xr-var-item > .xr-var-name:hover span {\n",
" padding-right: 5px;\n",
"}\n",
"\n",
".xr-var-list > li:nth-child(odd) > div,\n",
".xr-var-list > li:nth-child(odd) > label,\n",
".xr-var-list > li:nth-child(odd) > .xr-var-name span {\n",
" background-color: var(--xr-background-color-row-odd);\n",
"}\n",
"\n",
".xr-var-name {\n",
" grid-column: 1;\n",
"}\n",
"\n",
".xr-var-dims {\n",
" grid-column: 2;\n",
"}\n",
"\n",
".xr-var-dtype {\n",
" grid-column: 3;\n",
" text-align: right;\n",
" color: var(--xr-font-color2);\n",
"}\n",
"\n",
".xr-var-preview {\n",
" grid-column: 4;\n",
"}\n",
"\n",
".xr-index-preview {\n",
" grid-column: 2 / 5;\n",
" color: var(--xr-font-color2);\n",
"}\n",
"\n",
".xr-var-name,\n",
".xr-var-dims,\n",
".xr-var-dtype,\n",
".xr-preview,\n",
".xr-attrs dt {\n",
" white-space: nowrap;\n",
" overflow: hidden;\n",
" text-overflow: ellipsis;\n",
" padding-right: 10px;\n",
"}\n",
"\n",
".xr-var-name:hover,\n",
".xr-var-dims:hover,\n",
".xr-var-dtype:hover,\n",
".xr-attrs dt:hover {\n",
" overflow: visible;\n",
" width: auto;\n",
" z-index: 1;\n",
"}\n",
"\n",
".xr-var-attrs,\n",
".xr-var-data,\n",
".xr-index-data {\n",
" display: none;\n",
" background-color: var(--xr-background-color) !important;\n",
" padding-bottom: 5px !important;\n",
"}\n",
"\n",
".xr-var-attrs-in:checked ~ .xr-var-attrs,\n",
".xr-var-data-in:checked ~ .xr-var-data,\n",
".xr-index-data-in:checked ~ .xr-index-data {\n",
" display: block;\n",
"}\n",
"\n",
".xr-var-data > table {\n",
" float: right;\n",
"}\n",
"\n",
".xr-var-name span,\n",
".xr-var-data,\n",
".xr-index-name div,\n",
".xr-index-data,\n",
".xr-attrs {\n",
" padding-left: 25px !important;\n",
"}\n",
"\n",
".xr-attrs,\n",
".xr-var-attrs,\n",
".xr-var-data,\n",
".xr-index-data {\n",
" grid-column: 1 / -1;\n",
"}\n",
"\n",
"dl.xr-attrs {\n",
" padding: 0;\n",
" margin: 0;\n",
" display: grid;\n",
" grid-template-columns: 125px auto;\n",
"}\n",
"\n",
".xr-attrs dt,\n",
".xr-attrs dd {\n",
" padding: 0;\n",
" margin: 0;\n",
" float: left;\n",
" padding-right: 10px;\n",
" width: auto;\n",
"}\n",
"\n",
".xr-attrs dt {\n",
" font-weight: normal;\n",
" grid-column: 1;\n",
"}\n",
"\n",
".xr-attrs dt:hover span {\n",
" display: inline-block;\n",
" background: var(--xr-background-color);\n",
" padding-right: 10px;\n",
"}\n",
"\n",
".xr-attrs dd {\n",
" grid-column: 2;\n",
" white-space: pre-wrap;\n",
" word-break: break-all;\n",
"}\n",
"\n",
".xr-icon-database,\n",
".xr-icon-file-text2,\n",
".xr-no-icon {\n",
" display: inline-block;\n",
" vertical-align: middle;\n",
" width: 1em;\n",
" height: 1.5em !important;\n",
" stroke-width: 0;\n",
" stroke: currentColor;\n",
" fill: currentColor;\n",
"}\n",
"</style><pre class='xr-text-repr-fallback'>&lt;xarray.Dataset&gt;\n",
"Dimensions: (time: 151, y: 8874, x: 9902)\n",
"Coordinates:\n",
" * time (time) datetime64[ns] 2022-09-02T03:35:23.960000 ... 2023-09...\n",
" * y (y) float64 1.106e+06 1.106e+06 ... 1.017e+06 1.017e+06\n",
" * x (x) float64 5.548e+05 5.548e+05 ... 6.538e+05 6.538e+05\n",
" spatial_ref int32 32648\n",
"Data variables:\n",
" blue (time, y, x) float32 dask.array&lt;chunksize=(1, 2048, 2048), meta=np.ndarray&gt;\n",
" green (time, y, x) float32 dask.array&lt;chunksize=(1, 2048, 2048), meta=np.ndarray&gt;\n",
" red (time, y, x) float32 dask.array&lt;chunksize=(1, 2048, 2048), meta=np.ndarray&gt;\n",
" nir (time, y, x) float32 dask.array&lt;chunksize=(1, 2048, 2048), meta=np.ndarray&gt;\n",
" scl (time, y, x) uint8 dask.array&lt;chunksize=(1, 2048, 2048), meta=np.ndarray&gt;\n",
"Attributes:\n",
" crs: EPSG:32648\n",
" grid_mapping: spatial_ref</pre><div class='xr-wrap' style='display:none'><div class='xr-header'><div class='xr-obj-type'>xarray.Dataset</div></div><ul class='xr-sections'><li class='xr-section-item'><input id='section-da674d15-3013-4ae4-ab07-0f5b6806a0a9' class='xr-section-summary-in' type='checkbox' disabled ><label for='section-da674d15-3013-4ae4-ab07-0f5b6806a0a9' class='xr-section-summary' title='Expand/collapse section'>Dimensions:</label><div class='xr-section-inline-details'><ul class='xr-dim-list'><li><span class='xr-has-index'>time</span>: 151</li><li><span class='xr-has-index'>y</span>: 8874</li><li><span class='xr-has-index'>x</span>: 9902</li></ul></div><div class='xr-section-details'></div></li><li class='xr-section-item'><input id='section-351bb29f-b14a-495b-b502-51190856f061' class='xr-section-summary-in' type='checkbox' checked><label for='section-351bb29f-b14a-495b-b502-51190856f061' class='xr-section-summary' >Coordinates: <span>(4)</span></label><div class='xr-section-inline-details'></div><div class='xr-section-details'><ul class='xr-var-list'><li class='xr-var-item'><div class='xr-var-name'><span class='xr-has-index'>time</span></div><div class='xr-var-dims'>(time)</div><div class='xr-var-dtype'>datetime64[ns]</div><div class='xr-var-preview xr-preview'>2022-09-02T03:35:23.960000 ... 2...</div><input id='attrs-46195ef2-7260-4966-a9ed-cab20a5d9cfa' class='xr-var-attrs-in' type='checkbox' ><label for='attrs-46195ef2-7260-4966-a9ed-cab20a5d9cfa' title='Show/Hide attributes'><svg class='icon xr-icon-file-text2'><use xlink:href='#icon-file-text2'></use></svg></label><input id='data-231a2cd0-ada9-4c51-af6a-6915c136a830' class='xr-var-data-in' type='checkbox'><label for='data-231a2cd0-ada9-4c51-af6a-6915c136a830' title='Show/Hide data repr'><svg class='icon xr-icon-database'><use xlink:href='#icon-database'></use></svg></label><div class='xr-var-attrs'><dl class='xr-attrs'><dt><span>units :</span></dt><dd>seconds since 1970-01-01 00:00:00</dd></dl></div><div class='xr-var-data'><pre>array([&#x27;2022-09-02T03:35:23.960000000&#x27;, &#x27;2022-09-04T03:25:18.037000000&#x27;,\n",
" &#x27;2022-09-07T03:35:13.646000000&#x27;, &#x27;2022-09-09T03:25:27.617000000&#x27;,\n",
" &#x27;2022-09-12T03:35:22.247000000&#x27;, &#x27;2022-09-14T03:25:18.529000000&#x27;,\n",
" &#x27;2022-09-17T03:35:13.648000000&#x27;, &#x27;2022-09-19T03:25:24.773000000&#x27;,\n",
" &#x27;2022-09-22T03:35:18.931000000&#x27;, &#x27;2022-09-24T03:25:17.431000000&#x27;,\n",
" &#x27;2022-09-27T03:35:12.140000000&#x27;, &#x27;2022-09-29T03:25:23.829000000&#x27;,\n",
" &#x27;2022-10-02T03:35:19.048000000&#x27;, &#x27;2022-10-07T03:35:09.133000000&#x27;,\n",
" &#x27;2022-10-09T03:25:22.746000000&#x27;, &#x27;2022-10-12T03:35:17.151000000&#x27;,\n",
" &#x27;2022-10-14T03:25:15.533000000&#x27;, &#x27;2022-10-17T03:35:11.148000000&#x27;,\n",
" &#x27;2022-10-19T03:25:18.808000000&#x27;, &#x27;2022-10-22T03:35:13.746000000&#x27;,\n",
" &#x27;2022-10-24T03:25:15.878000000&#x27;, &#x27;2022-10-27T03:35:10.923000000&#x27;,\n",
" &#x27;2022-10-29T03:25:20.127000000&#x27;, &#x27;2022-11-01T03:35:15.818000000&#x27;,\n",
" &#x27;2022-11-03T03:25:14.204000000&#x27;, &#x27;2022-11-06T03:35:10.096000000&#x27;,\n",
" &#x27;2022-11-11T03:35:15.334000000&#x27;, &#x27;2022-11-13T03:25:16.056000000&#x27;,\n",
" &#x27;2022-11-16T03:35:11.542000000&#x27;, &#x27;2022-11-18T03:25:18.155000000&#x27;,\n",
" &#x27;2022-11-21T03:35:12.396000000&#x27;, &#x27;2022-11-23T03:25:16.067000000&#x27;,\n",
" &#x27;2022-11-26T03:35:11.063000000&#x27;, &#x27;2022-11-28T03:25:16.297000000&#x27;,\n",
" &#x27;2022-12-01T03:35:12.009000000&#x27;, &#x27;2022-12-03T03:25:14.366000000&#x27;,\n",
" &#x27;2022-12-06T03:35:10.293000000&#x27;, &#x27;2022-12-08T03:25:17.072000000&#x27;,\n",
" &#x27;2022-12-11T03:35:12.184000000&#x27;, &#x27;2022-12-16T03:35:10.130000000&#x27;,\n",
" &#x27;2022-12-18T03:25:15.584000000&#x27;, &#x27;2022-12-21T03:35:09.988000000&#x27;,\n",
" &#x27;2022-12-23T03:25:15.763000000&#x27;, &#x27;2022-12-26T03:35:11.128000000&#x27;,\n",
" &#x27;2022-12-28T03:25:15.151000000&#x27;, &#x27;2022-12-31T03:35:10.753000000&#x27;,\n",
" &#x27;2023-01-02T03:25:15.152000000&#x27;, &#x27;2023-01-05T03:35:09.844000000&#x27;,\n",
" &#x27;2023-01-07T03:25:15.343000000&#x27;, &#x27;2023-01-10T03:35:10.149000000&#x27;,\n",
" &#x27;2023-01-12T03:25:12.066000000&#x27;, &#x27;2023-01-15T03:35:08.140000000&#x27;,\n",
" &#x27;2023-01-17T03:25:12.454000000&#x27;, &#x27;2023-01-20T03:35:06.593000000&#x27;,\n",
" &#x27;2023-01-22T03:25:14.446000000&#x27;, &#x27;2023-01-25T03:35:09.824000000&#x27;,\n",
" &#x27;2023-01-27T03:25:13.987000000&#x27;, &#x27;2023-01-30T03:35:09.963000000&#x27;,\n",
" &#x27;2023-02-01T03:25:13.595000000&#x27;, &#x27;2023-02-04T03:35:09.008000000&#x27;,\n",
" &#x27;2023-02-06T03:25:15.471000000&#x27;, &#x27;2023-02-09T03:35:10.646000000&#x27;,\n",
" &#x27;2023-02-11T03:25:15.100000000&#x27;, &#x27;2023-02-14T03:35:10.240000000&#x27;,\n",
" &#x27;2023-02-16T03:25:28.099000000&#x27;, &#x27;2023-02-24T03:35:12.118000000&#x27;,\n",
" &#x27;2023-02-26T03:25:14.146000000&#x27;, &#x27;2023-03-01T03:35:09.182000000&#x27;,\n",
" &#x27;2023-03-03T03:25:17.841000000&#x27;, &#x27;2023-03-06T03:35:14.717000000&#x27;,\n",
" &#x27;2023-03-08T03:25:12.032000000&#x27;, &#x27;2023-03-11T03:35:07.230000000&#x27;,\n",
" &#x27;2023-03-13T03:25:20.837000000&#x27;, &#x27;2023-03-16T03:35:15.940000000&#x27;,\n",
" &#x27;2023-03-18T03:25:14.467000000&#x27;, &#x27;2023-03-21T03:35:10.279000000&#x27;,\n",
" &#x27;2023-03-23T03:25:18.795000000&#x27;, &#x27;2023-03-26T03:35:14.570000000&#x27;,\n",
" &#x27;2023-03-28T03:25:14.536000000&#x27;, &#x27;2023-03-31T03:35:10.140000000&#x27;,\n",
" &#x27;2023-04-02T03:25:19.945000000&#x27;, &#x27;2023-04-05T03:35:14.925000000&#x27;,\n",
" &#x27;2023-04-07T03:25:16.518000000&#x27;, &#x27;2023-04-10T03:35:12.000000000&#x27;,\n",
" &#x27;2023-04-15T03:35:12.743000000&#x27;, &#x27;2023-04-20T03:35:10.328000000&#x27;,\n",
" &#x27;2023-04-22T03:25:18.572000000&#x27;, &#x27;2023-04-25T03:35:13.748000000&#x27;,\n",
" &#x27;2023-04-27T03:25:16.567000000&#x27;, &#x27;2023-04-30T03:35:12.151000000&#x27;,\n",
" &#x27;2023-05-02T03:25:18.866000000&#x27;, &#x27;2023-05-05T03:35:14.433000000&#x27;,\n",
" &#x27;2023-05-07T03:25:16.583000000&#x27;, &#x27;2023-05-10T03:35:11.284000000&#x27;,\n",
" &#x27;2023-05-12T03:25:19.200000000&#x27;, &#x27;2023-05-15T03:35:15.683000000&#x27;,\n",
" &#x27;2023-05-17T03:25:17.911000000&#x27;, &#x27;2023-05-20T03:35:14.193000000&#x27;,\n",
" &#x27;2023-05-22T03:25:36.378000000&#x27;, &#x27;2023-05-25T03:35:16.657000000&#x27;,\n",
" &#x27;2023-05-27T03:25:20.078000000&#x27;, &#x27;2023-05-30T03:35:15.642000000&#x27;,\n",
" &#x27;2023-06-01T03:25:20.268000000&#x27;, &#x27;2023-06-04T03:35:16.047000000&#x27;,\n",
" &#x27;2023-06-06T03:25:20.180000000&#x27;, &#x27;2023-06-09T03:35:15.534000000&#x27;,\n",
" &#x27;2023-06-11T03:25:21.573000000&#x27;, &#x27;2023-06-14T03:35:16.859000000&#x27;,\n",
" &#x27;2023-06-16T03:25:20.769000000&#x27;, &#x27;2023-06-19T03:35:15.908000000&#x27;,\n",
" &#x27;2023-06-21T03:25:20.640000000&#x27;, &#x27;2023-06-24T03:35:15.972000000&#x27;,\n",
" &#x27;2023-06-26T03:25:19.927000000&#x27;, &#x27;2023-06-29T03:35:15.752000000&#x27;,\n",
" &#x27;2023-07-01T03:25:21.763000000&#x27;, &#x27;2023-07-04T03:35:17.227000000&#x27;,\n",
" &#x27;2023-07-06T03:25:21.702000000&#x27;, &#x27;2023-07-09T03:35:17.102000000&#x27;,\n",
" &#x27;2023-07-11T03:25:21.515000000&#x27;, &#x27;2023-07-14T03:35:16.582000000&#x27;,\n",
" &#x27;2023-07-16T03:25:21.326000000&#x27;, &#x27;2023-07-19T03:35:16.050000000&#x27;,\n",
" &#x27;2023-07-21T03:25:22.444000000&#x27;, &#x27;2023-07-24T03:35:17.845000000&#x27;,\n",
" &#x27;2023-07-26T03:25:21.503000000&#x27;, &#x27;2023-07-29T03:35:17.083000000&#x27;,\n",
" &#x27;2023-07-31T03:25:36.753000000&#x27;, &#x27;2023-08-03T03:35:16.494000000&#x27;,\n",
" &#x27;2023-08-05T03:25:21.570000000&#x27;, &#x27;2023-08-08T03:35:16.313000000&#x27;,\n",
" &#x27;2023-08-10T03:25:22.024000000&#x27;, &#x27;2023-08-13T03:35:17.448000000&#x27;,\n",
" &#x27;2023-08-15T03:25:22.075000000&#x27;, &#x27;2023-08-18T03:35:17.812000000&#x27;,\n",
" &#x27;2023-08-20T03:25:21.568000000&#x27;, &#x27;2023-08-23T03:35:16.224000000&#x27;,\n",
" &#x27;2023-08-25T03:25:22.592000000&#x27;, &#x27;2023-08-28T03:35:17.571000000&#x27;,\n",
" &#x27;2023-08-30T03:25:21.212000000&#x27;, &#x27;2023-09-02T03:35:16.627000000&#x27;,\n",
" &#x27;2023-09-04T03:25:21.856000000&#x27;, &#x27;2023-09-07T03:35:17.134000000&#x27;,\n",
" &#x27;2023-09-09T03:25:20.648000000&#x27;, &#x27;2023-09-12T03:35:15.326000000&#x27;,\n",
" &#x27;2023-09-14T03:25:35.755000000&#x27;, &#x27;2023-09-17T03:35:15.269000000&#x27;,\n",
" &#x27;2023-09-19T03:25:24.089000000&#x27;, &#x27;2023-09-22T03:35:15.439000000&#x27;,\n",
" &#x27;2023-09-24T03:25:18.524000000&#x27;, &#x27;2023-09-27T03:35:14.112000000&#x27;,\n",
" &#x27;2023-09-29T03:25:19.046000000&#x27;], dtype=&#x27;datetime64[ns]&#x27;)</pre></div></li><li class='xr-var-item'><div class='xr-var-name'><span class='xr-has-index'>y</span></div><div class='xr-var-dims'>(y)</div><div class='xr-var-dtype'>float64</div><div class='xr-var-preview xr-preview'>1.106e+06 1.106e+06 ... 1.017e+06</div><input id='attrs-9bb7afde-7c66-4f3a-8a80-fadf2fb22e86' class='xr-var-attrs-in' type='checkbox' ><label for='attrs-9bb7afde-7c66-4f3a-8a80-fadf2fb22e86' title='Show/Hide attributes'><svg class='icon xr-icon-file-text2'><use xlink:href='#icon-file-text2'></use></svg></label><input id='data-592f79b8-72af-497e-b87a-32db40ab5af8' class='xr-var-data-in' type='checkbox'><label for='data-592f79b8-72af-497e-b87a-32db40ab5af8' title='Show/Hide data repr'><svg class='icon xr-icon-database'><use xlink:href='#icon-database'></use></svg></label><div class='xr-var-attrs'><dl class='xr-attrs'><dt><span>units :</span></dt><dd>metre</dd><dt><span>resolution :</span></dt><dd>-10.0</dd><dt><span>crs :</span></dt><dd>EPSG:32648</dd></dl></div><div class='xr-var-data'><pre>array([1105735., 1105725., 1105715., ..., 1017025., 1017015., 1017005.])</pre></div></li><li class='xr-var-item'><div class='xr-var-name'><span class='xr-has-index'>x</span></div><div class='xr-var-dims'>(x)</div><div class='xr-var-dtype'>float64</div><div class='xr-var-preview xr-preview'>5.548e+05 5.548e+05 ... 6.538e+05</div><input id='attrs-827be90a-ee9e-4b58-b214-1b25db3d2943' class='xr-var-attrs-in' type='checkbox' ><label for='attrs-827be90a-ee9e-4b58-b214-1b25db3d2943' title='Show/Hide attributes'><svg class='icon xr-icon-file-text2'><use xlink:href='#icon-file-text2'></use></svg></label><input id='data-81f69f9c-1b82-4f1e-b331-b8aa7c1f8af0' class='xr-var-data-in' type='checkbox'><label for='data-81f69f9c-1b82-4f1e-b331-b8aa7c1f8af0' title='Show/Hide data repr'><svg class='icon xr-icon-database'><use xlink:href='#icon-database'></use></svg></label><div class='xr-var-attrs'><dl class='xr-attrs'><dt><span>units :</span></dt><dd>metre</dd><dt><span>resolution :</span></dt><dd>10.0</dd><dt><span>crs :</span></dt><dd>EPSG:32648</dd></dl></div><div class='xr-var-data'><pre>array([554795., 554805., 554815., ..., 653785., 653795., 653805.])</pre></div></li><li class='xr-var-item'><div class='xr-var-name'><span>spatial_ref</span></div><div class='xr-var-dims'>()</div><div class='xr-var-dtype'>int32</div><div class='xr-var-preview xr-preview'>32648</div><input id='attrs-251eb9e5-bc42-49c2-9eb3-d976260e7970' class='xr-var-attrs-in' type='checkbox' ><label for='attrs-251eb9e5-bc42-49c2-9eb3-d976260e7970' title='Show/Hide attributes'><svg class='icon xr-icon-file-text2'><use xlink:href='#icon-file-text2'></use></svg></label><input id='data-d491c5c5-ee7f-42c3-8222-170ace1959f3' class='xr-var-data-in' type='checkbox'><label for='data-d491c5c5-ee7f-42c3-8222-170ace1959f3' title='Show/Hide data repr'><svg class='icon xr-icon-database'><use xlink:href='#icon-database'></use></svg></label><div class='xr-var-attrs'><dl class='xr-attrs'><dt><span>spatial_ref :</span></dt><dd>PROJCS[&quot;WGS 84 / UTM zone 48N&quot;,GEOGCS[&quot;WGS 84&quot;,DATUM[&quot;WGS_1984&quot;,SPHEROID[&quot;WGS 84&quot;,6378137,298.257223563,AUTHORITY[&quot;EPSG&quot;,&quot;7030&quot;]],AUTHORITY[&quot;EPSG&quot;,&quot;6326&quot;]],PRIMEM[&quot;Greenwich&quot;,0,AUTHORITY[&quot;EPSG&quot;,&quot;8901&quot;]],UNIT[&quot;degree&quot;,0.0174532925199433,AUTHORITY[&quot;EPSG&quot;,&quot;9122&quot;]],AUTHORITY[&quot;EPSG&quot;,&quot;4326&quot;]],PROJECTION[&quot;Transverse_Mercator&quot;],PARAMETER[&quot;latitude_of_origin&quot;,0],PARAMETER[&quot;central_meridian&quot;,105],PARAMETER[&quot;scale_factor&quot;,0.9996],PARAMETER[&quot;false_easting&quot;,500000],PARAMETER[&quot;false_northing&quot;,0],UNIT[&quot;metre&quot;,1,AUTHORITY[&quot;EPSG&quot;,&quot;9001&quot;]],AXIS[&quot;Easting&quot;,EAST],AXIS[&quot;Northing&quot;,NORTH],AUTHORITY[&quot;EPSG&quot;,&quot;32648&quot;]]</dd><dt><span>grid_mapping_name :</span></dt><dd>transverse_mercator</dd></dl></div><div class='xr
" <tr>\n",
" <td>\n",
" <table style=\"border-collapse: collapse;\">\n",
" <thead>\n",
" <tr>\n",
" <td> </td>\n",
" <th> Array </th>\n",
" <th> Chunk </th>\n",
" </tr>\n",
" </thead>\n",
" <tbody>\n",
" \n",
" <tr>\n",
" <th> Bytes </th>\n",
" <td> 49.43 GiB </td>\n",
" <td> 16.00 MiB </td>\n",
" </tr>\n",
" \n",
" <tr>\n",
" <th> Shape </th>\n",
" <td> (151, 8874, 9902) </td>\n",
" <td> (1, 2048, 2048) </td>\n",
" </tr>\n",
" <tr>\n",
" <th> Dask graph </th>\n",
" <td colspan=\"2\"> 3775 chunks in 8 graph layers </td>\n",
" </tr>\n",
" <tr>\n",
" <th> Data type </th>\n",
" <td colspan=\"2\"> float32 numpy.ndarray </td>\n",
" </tr>\n",
" </tbody>\n",
" </table>\n",
" </td>\n",
" <td>\n",
" <svg width=\"196\" height=\"173\" style=\"stroke:rgb(0,0,0);stroke-width:1\" >\n",
"\n",
" <!-- Horizontal lines -->\n",
" <line x1=\"10\" y1=\"0\" x2=\"26\" y2=\"16\" style=\"stroke-width:2\" />\n",
" <line x1=\"10\" y1=\"24\" x2=\"26\" y2=\"41\" />\n",
" <line x1=\"10\" y1=\"49\" x2=\"26\" y2=\"65\" />\n",
" <line x1=\"10\" y1=\"74\" x2=\"26\" y2=\"90\" />\n",
" <line x1=\"10\" y1=\"99\" x2=\"26\" y2=\"115\" />\n",
" <line x1=\"10\" y1=\"107\" x2=\"26\" y2=\"123\" style=\"stroke-width:2\" />\n",
"\n",
" <!-- Vertical lines -->\n",
" <line x1=\"10\" y1=\"0\" x2=\"10\" y2=\"107\" style=\"stroke-width:2\" />\n",
" <line x1=\"10\" y1=\"0\" x2=\"10\" y2=\"108\" />\n",
" <line x1=\"11\" y1=\"1\" x2=\"11\" y2=\"109\" />\n",
" <line x1=\"12\" y1=\"2\" x2=\"12\" y2=\"110\" />\n",
" <line x1=\"13\" y1=\"3\" x2=\"13\" y2=\"110\" />\n",
" <line x1=\"14\" y1=\"4\" x2=\"14\" y2=\"111\" />\n",
" <line x1=\"15\" y1=\"5\" x2=\"15\" y2=\"112\" />\n",
" <line x1=\"15\" y1=\"5\" x2=\"15\" y2=\"113\" />\n",
" <line x1=\"16\" y1=\"6\" x2=\"16\" y2=\"114\" />\n",
" <line x1=\"17\" y1=\"7\" x2=\"17\" y2=\"115\" />\n",
" <line x1=\"18\" y1=\"8\" x2=\"18\" y2=\"116\" />\n",
" <line x1=\"19\" y1=\"9\" x2=\"19\" y2=\"116\" />\n",
" <line x1=\"20\" y1=\"10\" x2=\"20\" y2=\"117\" />\n",
" <line x1=\"21\" y1=\"11\" x2=\"21\" y2=\"118\" />\n",
" <line x1=\"21\" y1=\"11\" x2=\"21\" y2=\"119\" />\n",
" <line x1=\"22\" y1=\"12\" x2=\"22\" y2=\"120\" />\n",
" <line x1=\"23\" y1=\"13\" x2=\"23\" y2=\"121\" />\n",
" <line x1=\"24\" y1=\"14\" x2=\"24\" y2=\"122\" />\n",
" <line x1=\"25\" y1=\"15\" x2=\"25\" y2=\"122\" />\n",
" <line x1=\"26\" y1=\"16\" x2=\"26\" y2=\"123\" style=\"stroke-width:2\" />\n",
"\n",
" <!-- Colored Rectangle -->\n",
" <polygon points=\"10.0,0.0 26.20332950438934,16.20332950438934 26.20332950438934,123.74524022949538 10.0,107.54191072510604\" style=\"fill:#8B4903A0;stroke-width:0\"/>\n",
"\n",
" <!-- Horizontal lines -->\n",
" <line x1=\"10\" y1=\"0\" x2=\"130\" y2=\"0\" style=\"stroke-width:2\" />\n",
" <line x1=\"10\" y1=\"0\" x2=\"130\" y2=\"0\" />\n",
" <line x1=\"11\" y1=\"1\" x2=\"131\" y2=\"1\" />\n",
" <line x1=\"12\" y1=\"2\" x2=\"132\" y2=\"2\" />\n",
" <line x1=\"13\" y1=\"3\" x2=\"133\" y2=\"3\" />\n",
" <line x1=\"14\" y1=\"4\" x2=\"134\" y2=\"4\" />\n",
" <line x1=\"15\" y1=\"5\" x2=\"135\" y2=\"5\" />\n",
" <line x1=\"15\" y1=\"5\" x2=\"135\" y2=\"5\" />\n",
" <line x1=\"16\" y1=\"6\" x2=\"136\" y2=\"6\" />\n",
" <line x1=\"17\" y1=\"7\" x2=\"137\" y2=\"7\" />\n",
" <line x1=\"18\" y1=\"8\" x2=\"138\" y2=\"8\" />\n",
" <line x1=\"19\" y1=\"9\" x2=\"139\" y2=\"9\" />\n",
" <line x1=\"20\" y1=\"10\" x2=\"140\" y2=\"10\" />\n",
" <line x1=\"21\" y1=\"11\" x2=\"141\" y2=\"11\" />\n",
" <line x1=\"21\" y1=\"11\" x2=\"141\" y2=\"11\" />\n",
" <line x1=\"22\" y1=\"12\" x2=\"142\" y2=\"12\" />\n",
" <line x1=\"23\" y1=\"13\" x2=\"143\" y2=\"13\" />\n",
" <line x1=\"24\" y1=\"14\" x2=\"144\" y2=\"14\" />\n",
" <line x1=\"25\" y1=\"15\" x2=\"145\" y2=\"15\" />\n",
" <line x1=\"26\" y1=\"16\" x2=\"146\" y2=\"16\" style=\"stroke-width:2\" />\n",
"\n",
" <!-- Vertical lines -->\n",
" <line x1=\"10\" y1=\"0\" x2=\"26\" y2=\"16\" style=\"stroke-width:2\" />\n",
" <line x1=\"34\" y1=\"0\" x2=\"51\" y2=\"16\" />\n",
" <line x1=\"59\" y1=\"0\" x2=\"75\" y2=\"16\" />\n",
" <line x1=\"84\" y1=\"0\" x2=\"100\" y2=\"16\" />\n",
" <line x1=\"109\" y1=\"0\" x2=\"125\" y2=\"16\" />\n",
" <line x1=\"130\" y1=\"0\" x2=\"146\" y2=\"16\" style=\"stroke-width:2\" />\n",
"\n",
" <!-- Colored Rectangle -->\n",
" <polygon points=\"10.0,0.0 130.0,0.0 146.20332950438933,16.20332950438934 26.20332950438934,16.20332950438934\" style=\"fill:#8B4903A0;stroke-width:0\"/>\n",
"\n",
" <!-- Horizontal lines -->\n",
" <line x1=\"26\" y1=\"16\" x2=\"146\" y2=\"16\" style=\"stroke-width:2\" />\n",
" <line x1=\"26\" y1=\"41\" x2=\"146\" y2=\"41\" />\n",
" <line x1=\"26\" y1=\"65\" x2=\"146\" y2=\"65\" />\n",
" <line x1=\"26\" y1=\"90\" x2=\"146\" y2=\"90\" />\n",
" <line x1=\"26\" y1=\"115\" x2=\"146\" y2=\"115\" />\n",
" <line x1=\"26\" y1=\"123\" x2=\"146\" y2=\"123\" style=\"stroke-width:2\" />\n",
"\n",
" <!-- Vertical lines -->\n",
" <line x1=\"26\" y1=\"16\" x2=\"26\" y2=\"123\" style=\"stroke-width:2\" />\n",
" <line x1=\"51\" y1=\"16\" x2=\"51\" y2=\"123\" />\n",
" <line x1=\"75\" y1=\"16\" x2=\"75\" y2=\"123\" />\n",
" <line x1=\"100\" y1=\"16\" x2=\"100\" y2=\"123\" />\n",
" <line x1=\"125\" y1=\"16\" x2=\"125\" y2=\"123\" />\n",
" <line x1=\"146\" y1=\"16\" x2=\"146\" y2=\"123\" style=\"stroke-width:2\" />\n",
"\n",
" <!-- Colored Rectangle -->\n",
" <polygon points=\"26.20332950438934,16.20332950438934 146.20332950438933,16.20332950438934 146.20332950438933,123.74524022949538 26.20332950438934,123.74524022949538\" style=\"fill:#ECB172A0;stroke-width:0\"/>\n",
"\n",
" <!-- Text -->\n",
" <text x=\"86.203330\" y=\"143.745240\" font-size=\"1.0rem\" font-weight=\"100\" text-anchor=\"middle\" >9902</text>\n",
" <text x=\"166.203330\" y=\"69.974285\" font-size=\"1.0rem\" font-weight=\"100\" text-anchor=\"middle\" transform=\"rotate(-90,166.203330,69.974285)\">8874</text>\n",
" <text x=\"8.101665\" y=\"135.643575\" font-size=\"1.0rem\" font-weight=\"100\" text-anchor=\"middle\" transform=\"rotate(45,8.101665,135.643575)\">151</text>\n",
"</svg>\n",
" </td>\n",
" </tr>\n",
"</table></div></li><li class='xr-var-item'><div class='xr-var-name'><span>green</span></div><div class='xr-var-dims'>(time, y, x)</div><div class='xr-var-dtype'>float32</div><div class='xr-var-preview xr-preview'>dask.array&lt;chunksize=(1, 2048, 2048), meta=np.ndarray&gt;</div><input id='attrs-b80c2d72-8d5c-41a5-9338-d88bec395d96' class='xr-var-attrs-in' type='checkbox' disabled><label for='attrs-b80c2d72-8d5c-41a5-9338-d88bec395d96' title='Show/Hide attributes'><svg class='icon xr-icon-file-text2'><use xlink:href='#icon-file-text2'></use></svg></label><input id='data-6da3c2ec-f1d9-498d-ae5b-3c43923d1865' class='xr-var-data-in' type='checkbox'><label for='data-6da3c2ec-f1d9-498d-ae5b-3c43923d1865' title='Show/Hide data repr'><svg class='icon xr-icon-database'><use xlink:href='#icon-database'></use></svg></label><div class='xr-var-attrs'><dl class='xr-attrs'></dl></div><div class='xr-var-data'><table>\n",
" <tr>\n",
" <td>\n",
" <table style=\"border-collapse: collapse;\">\n",
" <thead>\n",
" <tr>\n",
" <td> </td>\n",
" <th> Array </th>\n",
" <th> Chunk </th>\n",
" </tr>\n",
" </thead>\n",
" <tbody>\n",
" \n",
" <tr>\n",
" <th> Bytes </th>\n",
" <td> 49.43 GiB </td>\n",
" <td> 16.00 MiB </td>\n",
" </tr>\n",
" \n",
" <tr>\n",
" <th> Shape </th>\n",
" <td> (151, 8874, 9902) </td>\n",
" <td> (1, 2048, 2048) </td>\n",
" </tr>\n",
" <tr>\n",
" <th> Dask graph </th>\n",
" <td colspan=\"2\"> 3775 chunks in 8 graph layers </td>\n",
" </tr>\n",
" <tr>\n",
" <th> Data type </th>\n",
" <td colspan=\"2\"> float32 numpy.ndarray </td>\n",
" </tr>\n",
" </tbody>\n",
" </table>\n",
" </td>\n",
" <td>\n",
" <svg width=\"196\" height=\"173\" style=\"stroke:rgb(0,0,0);stroke-width:1\" >\n",
"\n",
" <!-- Horizontal lines -->\n",
" <line x1=\"10\" y1=\"0\" x2=\"26\" y2=\"16\" style=\"stroke-width:2\" />\n",
" <line x1=\"10\" y1=\"24\" x2=\"26\" y2=\"41\" />\n",
" <line x1=\"10\" y1=\"49\" x2=\"26\" y2=\"65\" />\n",
" <line x1=\"10\" y1=\"74\" x2=\"26\" y2=\"90\" />\n",
" <line x1=\"10\" y1=\"99\" x2=\"26\" y2=\"115\" />\n",
" <line x1=\"10\" y1=\"107\" x2=\"26\" y2=\"123\" style=\"stroke-width:2\" />\n",
"\n",
" <!-- Vertical lines -->\n",
" <line x1=\"10\" y1=\"0\" x2=\"10\" y2=\"107\" style=\"stroke-width:2\" />\n",
" <line x1=\"10\" y1=\"0\" x2=\"10\" y2=\"108\" />\n",
" <line x1=\"11\" y1=\"1\" x2=\"11\" y2=\"109\" />\n",
" <line x1=\"12\" y1=\"2\" x2=\"12\" y2=\"110\" />\n",
" <line x1=\"13\" y1=\"3\" x2=\"13\" y2=\"110\" />\n",
" <line x1=\"14\" y1=\"4\" x2=\"14\" y2=\"111\" />\n",
" <line x1=\"15\" y1=\"5\" x2=\"15\" y2=\"112\" />\n",
" <line x1=\"15\" y1=\"5\" x2=\"15\" y2=\"113\" />\n",
" <line x1=\"16\" y1=\"6\" x2=\"16\" y2=\"114\" />\n",
" <line x1=\"17\" y1=\"7\" x2=\"17\" y2=\"115\" />\n",
" <line x1=\"18\" y1=\"8\" x2=\"18\" y2=\"116\" />\n",
" <line x1=\"19\" y1=\"9\" x2=\"19\" y2=\"116\" />\n",
" <line x1=\"20\" y1=\"10\" x2=\"20\" y2=\"117\" />\n",
" <line x1=\"21\" y1=\"11\" x2=\"21\" y2=\"118\" />\n",
" <line x1=\"21\" y1=\"11\" x2=\"21\" y2=\"119\" />\n",
" <line x1=\"22\" y1=\"12\" x2=\"22\" y2=\"120\" />\n",
" <line x1=\"23\" y1=\"13\" x2=\"23\" y2=\"121\" />\n",
" <line x1=\"24\" y1=\"14\" x2=\"24\" y2=\"122\" />\n",
" <line x1=\"25\" y1=\"15\" x2=\"25\" y2=\"122\" />\n",
" <line x1=\"26\" y1=\"16\" x2=\"26\" y2=\"123\" style=\"stroke-width:2\" />\n",
"\n",
" <!-- Colored Rectangle -->\n",
" <polygon points=\"10.0,0.0 26.20332950438934,16.20332950438934 26.20332950438934,123.74524022949538 10.0,107.54191072510604\" style=\"fill:#8B4903A0;stroke-width:0\"/>\n",
"\n",
" <!-- Horizontal lines -->\n",
" <line x1=\"10\" y1=\"0\" x2=\"130\" y2=\"0\" style=\"stroke-width:2\" />\n",
" <line x1=\"10\" y1=\"0\" x2=\"130\" y2=\"0\" />\n",
" <line x1=\"11\" y1=\"1\" x2=\"131\" y2=\"1\" />\n",
" <line x1=\"12\" y1=\"2\" x2=\"132\" y2=\"2\" />\n",
" <line x1=\"13\" y1=\"3\" x2=\"133\" y2=\"3\" />\n",
" <line x1=\"14\" y1=\"4\" x2=\"134\" y2=\"4\" />\n",
" <line x1=\"15\" y1=\"5\" x2=\"135\" y2=\"5\" />\n",
" <line x1=\"15\" y1=\"5\" x2=\"135\" y2=\"5\" />\n",
" <line x1=\"16\" y1=\"6\" x2=\"136\" y2=\"6\" />\n",
" <line x1=\"17\" y1=\"7\" x2=\"137\" y2=\"7\" />\n",
" <line x1=\"18\" y1=\"8\" x2=\"138\" y2=\"8\" />\n",
" <line x1=\"19\" y1=\"9\" x2=\"139\" y2=\"9\" />\n",
" <line x1=\"20\" y1=\"10\" x2=\"140\" y2=\"10\" />\n",
" <line x1=\"21\" y1=\"11\" x2=\"141\" y2=\"11\" />\n",
" <line x1=\"21\" y1=\"11\" x2=\"141\" y2=\"11\" />\n",
" <line x1=\"22\" y1=\"12\" x2=\"142\" y2=\"12\" />\n",
" <line x1=\"23\" y1=\"13\" x2=\"143\" y2=\"13\" />\n",
" <line x1=\"24\" y1=\"14\" x2=\"144\" y2=\"14\" />\n",
" <line x1=\"25\" y1=\"15\" x2=\"145\" y2=\"15\" />\n",
" <line x1=\"26\" y1=\"16\" x2=\"146\" y2=\"16\" style=\"stroke-width:2\" />\n",
"\n",
" <!-- Vertical lines -->\n",
" <line x1=\"10\" y1=\"0\" x2=\"26\" y2=\"16\" style=\"stroke-width:2\" />\n",
" <line x1=\"34\" y1=\"0\" x2=\"51\" y2=\"16\" />\n",
" <line x1=\"59\" y1=\"0\" x2=\"75\" y2=\"16\" />\n",
" <line x1=\"84\" y1=\"0\" x2=\"100\" y2=\"16\" />\n",
" <line x1=\"109\" y1=\"0\" x2=\"125\" y2=\"16\" />\n",
" <line x1=\"130\" y1=\"0\" x2=\"146\" y2=\"16\" style=\"stroke-width:2\" />\n",
"\n",
" <!-- Colored Rectangle -->\n",
" <polygon points=\"10.0,0.0 130.0,0.0 146.20332950438933,16.20332950438934 26.20332950438934,16.20332950438934\" style=\"fill:#8B4903A0;stroke-width:0\"/>\n",
"\n",
" <!-- Horizontal lines -->\n",
" <line x1=\"26\" y1=\"16\" x2=\"146\" y2=\"16\" style=\"stroke-width:2\" />\n",
" <line x1=\"26\" y1=\"41\" x2=\"146\" y2=\"41\" />\n",
" <line x1=\"26\" y1=\"65\" x2=\"146\" y2=\"65\" />\n",
" <line x1=\"26\" y1=\"90\" x2=\"146\" y2=\"90\" />\n",
" <line x1=\"26\" y1=\"115\" x2=\"146\" y2=\"115\" />\n",
" <line x1=\"26\" y1=\"123\" x2=\"146\" y2=\"123\" style=\"stroke-width:2\" />\n",
"\n",
" <!-- Vertical lines -->\n",
" <line x1=\"26\" y1=\"16\" x2=\"26\" y2=\"123\" style=\"stroke-width:2\" />\n",
" <line x1=\"51\" y1=\"16\" x2=\"51\" y2=\"123\" />\n",
" <line x1=\"75\" y1=\"16\" x2=\"75\" y2=\"123\" />\n",
" <line x1=\"100\" y1=\"16\" x2=\"100\" y2=\"123\" />\n",
" <line x1=\"125\" y1=\"16\" x2=\"125\" y2=\"123\" />\n",
" <line x1=\"146\" y1=\"16\" x2=\"146\" y2=\"123\" style=\"stroke-width:2\" />\n",
"\n",
" <!-- Colored Rectangle -->\n",
" <polygon points=\"26.20332950438934,16.20332950438934 146.20332950438933,16.20332950438934 146.20332950438933,123.74524022949538 26.20332950438934,123.74524022949538\" style=\"fill:#ECB172A0;stroke-width:0\"/>\n",
"\n",
" <!-- Text -->\n",
" <text x=\"86.203330\" y=\"143.745240\" font-size=\"1.0rem\" font-weight=\"100\" text-anchor=\"middle\" >9902</text>\n",
" <text x=\"166.203330\" y=\"69.974285\" font-size=\"1.0rem\" font-weight=\"100\" text-anchor=\"middle\" transform=\"rotate(-90,166.203330,69.974285)\">8874</text>\n",
" <text x=\"8.101665\" y=\"135.643575\" font-size=\"1.0rem\" font-weight=\"100\" text-anchor=\"middle\" transform=\"rotate(45,8.101665,135.643575)\">151</text>\n",
"</svg>\n",
" </td>\n",
" </tr>\n",
"</table></div></li><li class='xr-var-item'><div class='xr-var-name'><span>red</span></div><div class='xr-var-dims'>(time, y, x)</div><div class='xr-var-dtype'>float32</div><div class='xr-var-preview xr-preview'>dask.array&lt;chunksize=(1, 2048, 2048), meta=np.ndarray&gt;</div><input id='attrs-ddf82a17-9b2c-492c-8856-c2b22d75a66a' class='xr-var-attrs-in' type='checkbox' disabled><label for='attrs-ddf82a17-9b2c-492c-8856-c2b22d75a66a' title='Show/Hide attributes'><svg class='icon xr-icon-file-text2'><use xlink:href='#icon-file-text2'></use></svg></label><input id='data-14ccfc01-e42f-423e-98d6-e07ee2456541' class='xr-var-data-in' type='checkbox'><label for='data-14ccfc01-e42f-423e-98d6-e07ee2456541' title='Show/Hide data repr'><svg class='icon xr-icon-database'><use xlink:href='#icon-database'></use></svg></label><div class='xr-var-attrs'><dl class='xr-attrs'></dl></div><div class='xr-var-data'><table>\n",
" <tr>\n",
" <td>\n",
" <table style=\"border-collapse: collapse;\">\n",
" <thead>\n",
" <tr>\n",
" <td> </td>\n",
" <th> Array </th>\n",
" <th> Chunk </th>\n",
" </tr>\n",
" </thead>\n",
" <tbody>\n",
" \n",
" <tr>\n",
" <th> Bytes </th>\n",
" <td> 49.43 GiB </td>\n",
" <td> 16.00 MiB </td>\n",
" </tr>\n",
" \n",
" <tr>\n",
" <th> Shape </th>\n",
" <td> (151, 8874, 9902) </td>\n",
" <td> (1, 2048, 2048) </td>\n",
" </tr>\n",
" <tr>\n",
" <th> Dask graph </th>\n",
" <td colspan=\"2\"> 3775 chunks in 8 graph layers </td>\n",
" </tr>\n",
" <tr>\n",
" <th> Data type </th>\n",
" <td colspan=\"2\"> float32 numpy.ndarray </td>\n",
" </tr>\n",
" </tbody>\n",
" </table>\n",
" </td>\n",
" <td>\n",
" <svg width=\"196\" height=\"173\" style=\"stroke:rgb(0,0,0);stroke-width:1\" >\n",
"\n",
" <!-- Horizontal lines -->\n",
" <line x1=\"10\" y1=\"0\" x2=\"26\" y2=\"16\" style=\"stroke-width:2\" />\n",
" <line x1=\"10\" y1=\"24\" x2=\"26\" y2=\"41\" />\n",
" <line x1=\"10\" y1=\"49\" x2=\"26\" y2=\"65\" />\n",
" <line x1=\"10\" y1=\"74\" x2=\"26\" y2=\"90\" />\n",
" <line x1=\"10\" y1=\"99\" x2=\"26\" y2=\"115\" />\n",
" <line x1=\"10\" y1=\"107\" x2=\"26\" y2=\"123\" style=\"stroke-width:2\" />\n",
"\n",
" <!-- Vertical lines -->\n",
" <line x1=\"10\" y1=\"0\" x2=\"10\" y2=\"107\" style=\"stroke-width:2\" />\n",
" <line x1=\"10\" y1=\"0\" x2=\"10\" y2=\"108\" />\n",
" <line x1=\"11\" y1=\"1\" x2=\"11\" y2=\"109\" />\n",
" <line x1=\"12\" y1=\"2\" x2=\"12\" y2=\"110\" />\n",
" <line x1=\"13\" y1=\"3\" x2=\"13\" y2=\"110\" />\n",
" <line x1=\"14\" y1=\"4\" x2=\"14\" y2=\"111\" />\n",
" <line x1=\"15\" y1=\"5\" x2=\"15\" y2=\"112\" />\n",
" <line x1=\"15\" y1=\"5\" x2=\"15\" y2=\"113\" />\n",
" <line x1=\"16\" y1=\"6\" x2=\"16\" y2=\"114\" />\n",
" <line x1=\"17\" y1=\"7\" x2=\"17\" y2=\"115\" />\n",
" <line x1=\"18\" y1=\"8\" x2=\"18\" y2=\"116\" />\n",
" <line x1=\"19\" y1=\"9\" x2=\"19\" y2=\"116\" />\n",
" <line x1=\"20\" y1=\"10\" x2=\"20\" y2=\"117\" />\n",
" <line x1=\"21\" y1=\"11\" x2=\"21\" y2=\"118\" />\n",
" <line x1=\"21\" y1=\"11\" x2=\"21\" y2=\"119\" />\n",
" <line x1=\"22\" y1=\"12\" x2=\"22\" y2=\"120\" />\n",
" <line x1=\"23\" y1=\"13\" x2=\"23\" y2=\"121\" />\n",
" <line x1=\"24\" y1=\"14\" x2=\"24\" y2=\"122\" />\n",
" <line x1=\"25\" y1=\"15\" x2=\"25\" y2=\"122\" />\n",
" <line x1=\"26\" y1=\"16\" x2=\"26\" y2=\"123\" style=\"stroke-width:2\" />\n",
"\n",
" <!-- Colored Rectangle -->\n",
" <polygon points=\"10.0,0.0 26.20332950438934,16.20332950438934 26.20332950438934,123.74524022949538 10.0,107.54191072510604\" style=\"fill:#8B4903A0;stroke-width:0\"/>\n",
"\n",
" <!-- Horizontal lines -->\n",
" <line x1=\"10\" y1=\"0\" x2=\"130\" y2=\"0\" style=\"stroke-width:2\" />\n",
" <line x1=\"10\" y1=\"0\" x2=\"130\" y2=\"0\" />\n",
" <line x1=\"11\" y1=\"1\" x2=\"131\" y2=\"1\" />\n",
" <line x1=\"12\" y1=\"2\" x2=\"132\" y2=\"2\" />\n",
" <line x1=\"13\" y1=\"3\" x2=\"133\" y2=\"3\" />\n",
" <line x1=\"14\" y1=\"4\" x2=\"134\" y2=\"4\" />\n",
" <line x1=\"15\" y1=\"5\" x2=\"135\" y2=\"5\" />\n",
" <line x1=\"15\" y1=\"5\" x2=\"135\" y2=\"5\" />\n",
" <line x1=\"16\" y1=\"6\" x2=\"136\" y2=\"6\" />\n",
" <line x1=\"17\" y1=\"7\" x2=\"137\" y2=\"7\" />\n",
" <line x1=\"18\" y1=\"8\" x2=\"138\" y2=\"8\" />\n",
" <line x1=\"19\" y1=\"9\" x2=\"139\" y2=\"9\" />\n",
" <line x1=\"20\" y1=\"10\" x2=\"140\" y2=\"10\" />\n",
" <line x1=\"21\" y1=\"11\" x2=\"141\" y2=\"11\" />\n",
" <line x1=\"21\" y1=\"11\" x2=\"141\" y2=\"11\" />\n",
" <line x1=\"22\" y1=\"12\" x2=\"142\" y2=\"12\" />\n",
" <line x1=\"23\" y1=\"13\" x2=\"143\" y2=\"13\" />\n",
" <line x1=\"24\" y1=\"14\" x2=\"144\" y2=\"14\" />\n",
" <line x1=\"25\" y1=\"15\" x2=\"145\" y2=\"15\" />\n",
" <line x1=\"26\" y1=\"16\" x2=\"146\" y2=\"16\" style=\"stroke-width:2\" />\n",
"\n",
" <!-- Vertical lines -->\n",
" <line x1=\"10\" y1=\"0\" x2=\"26\" y2=\"16\" style=\"stroke-width:2\" />\n",
" <line x1=\"34\" y1=\"0\" x2=\"51\" y2=\"16\" />\n",
" <line x1=\"59\" y1=\"0\" x2=\"75\" y2=\"16\" />\n",
" <line x1=\"84\" y1=\"0\" x2=\"100\" y2=\"16\" />\n",
" <line x1=\"109\" y1=\"0\" x2=\"125\" y2=\"16\" />\n",
" <line x1=\"130\" y1=\"0\" x2=\"146\" y2=\"16\" style=\"stroke-width:2\" />\n",
"\n",
" <!-- Colored Rectangle -->\n",
" <polygon points=\"10.0,0.0 130.0,0.0 146.20332950438933,16.20332950438934 26.20332950438934,16.20332950438934\" style=\"fill:#8B4903A0;stroke-width:0\"/>\n",
"\n",
" <!-- Horizontal lines -->\n",
" <line x1=\"26\" y1=\"16\" x2=\"146\" y2=\"16\" style=\"stroke-width:2\" />\n",
" <line x1=\"26\" y1=\"41\" x2=\"146\" y2=\"41\" />\n",
" <line x1=\"26\" y1=\"65\" x2=\"146\" y2=\"65\" />\n",
" <line x1=\"26\" y1=\"90\" x2=\"146\" y2=\"90\" />\n",
" <line x1=\"26\" y1=\"115\" x2=\"146\" y2=\"115\" />\n",
" <line x1=\"26\" y1=\"123\" x2=\"146\" y2=\"123\" style=\"stroke-width:2\" />\n",
"\n",
" <!-- Vertical lines -->\n",
" <line x1=\"26\" y1=\"16\" x2=\"26\" y2=\"123\" style=\"stroke-width:2\" />\n",
" <line x1=\"51\" y1=\"16\" x2=\"51\" y2=\"123\" />\n",
" <line x1=\"75\" y1=\"16\" x2=\"75\" y2=\"123\" />\n",
" <line x1=\"100\" y1=\"16\" x2=\"100\" y2=\"123\" />\n",
" <line x1=\"125\" y1=\"16\" x2=\"125\" y2=\"123\" />\n",
" <line x1=\"146\" y1=\"16\" x2=\"146\" y2=\"123\" style=\"stroke-width:2\" />\n",
"\n",
" <!-- Colored Rectangle -->\n",
" <polygon points=\"26.20332950438934,16.20332950438934 146.20332950438933,16.20332950438934 146.20332950438933,123.74524022949538 26.20332950438934,123.74524022949538\" style=\"fill:#ECB172A0;stroke-width:0\"/>\n",
"\n",
" <!-- Text -->\n",
" <text x=\"86.203330\" y=\"143.745240\" font-size=\"1.0rem\" font-weight=\"100\" text-anchor=\"middle\" >9902</text>\n",
" <text x=\"166.203330\" y=\"69.974285\" font-size=\"1.0rem\" font-weight=\"100\" text-anchor=\"middle\" transform=\"rotate(-90,166.203330,69.974285)\">8874</text>\n",
" <text x=\"8.101665\" y=\"135.643575\" font-size=\"1.0rem\" font-weight=\"100\" text-anchor=\"middle\" transform=\"rotate(45,8.101665,135.643575)\">151</text>\n",
"</svg>\n",
" </td>\n",
" </tr>\n",
"</table></div></li><li class='xr-var-item'><div class='xr-var-name'><span>nir</span></div><div class='xr-var-dims'>(time, y, x)</div><div class='xr-var-dtype'>float32</div><div class='xr-var-preview xr-preview'>dask.array&lt;chunksize=(1, 2048, 2048), meta=np.ndarray&gt;</div><input id='attrs-7fe1b4ea-eb84-49b0-be43-8ef4449f044a' class='xr-var-attrs-in' type='checkbox' disabled><label for='attrs-7fe1b4ea-eb84-49b0-be43-8ef4449f044a' title='Show/Hide attributes'><svg class='icon xr-icon-file-text2'><use xlink:href='#icon-file-text2'></use></svg></label><input id='data-85c7b5be-2663-4d71-97a0-18b91b9e4221' class='xr-var-data-in' type='checkbox'><label for='data-85c7b5be-2663-4d71-97a0-18b91b9e4221' title='Show/Hide data repr'><svg class='icon xr-icon-database'><use xlink:href='#icon-database'></use></svg></label><div class='xr-var-attrs'><dl class='xr-attrs'></dl></div><div class='xr-var-data'><table>\n",
" <tr>\n",
" <td>\n",
" <table style=\"border-collapse: collapse;\">\n",
" <thead>\n",
" <tr>\n",
" <td> </td>\n",
" <th> Array </th>\n",
" <th> Chunk </th>\n",
" </tr>\n",
" </thead>\n",
" <tbody>\n",
" \n",
" <tr>\n",
" <th> Bytes </th>\n",
" <td> 49.43 GiB </td>\n",
" <td> 16.00 MiB </td>\n",
" </tr>\n",
" \n",
" <tr>\n",
" <th> Shape </th>\n",
" <td> (151, 8874, 9902) </td>\n",
" <td> (1, 2048, 2048) </td>\n",
" </tr>\n",
" <tr>\n",
" <th> Dask graph </th>\n",
" <td colspan=\"2\"> 3775 chunks in 8 graph layers </td>\n",
" </tr>\n",
" <tr>\n",
" <th> Data type </th>\n",
" <td colspan=\"2\"> float32 numpy.ndarray </td>\n",
" </tr>\n",
" </tbody>\n",
" </table>\n",
" </td>\n",
" <td>\n",
" <svg width=\"196\" height=\"173\" style=\"stroke:rgb(0,0,0);stroke-width:1\" >\n",
"\n",
" <!-- Horizontal lines -->\n",
" <line x1=\"10\" y1=\"0\" x2=\"26\" y2=\"16\" style=\"stroke-width:2\" />\n",
" <line x1=\"10\" y1=\"24\" x2=\"26\" y2=\"41\" />\n",
" <line x1=\"10\" y1=\"49\" x2=\"26\" y2=\"65\" />\n",
" <line x1=\"10\" y1=\"74\" x2=\"26\" y2=\"90\" />\n",
" <line x1=\"10\" y1=\"99\" x2=\"26\" y2=\"115\" />\n",
" <line x1=\"10\" y1=\"107\" x2=\"26\" y2=\"123\" style=\"stroke-width:2\" />\n",
"\n",
" <!-- Vertical lines -->\n",
" <line x1=\"10\" y1=\"0\" x2=\"10\" y2=\"107\" style=\"stroke-width:2\" />\n",
" <line x1=\"10\" y1=\"0\" x2=\"10\" y2=\"108\" />\n",
" <line x1=\"11\" y1=\"1\" x2=\"11\" y2=\"109\" />\n",
" <line x1=\"12\" y1=\"2\" x2=\"12\" y2=\"110\" />\n",
" <line x1=\"13\" y1=\"3\" x2=\"13\" y2=\"110\" />\n",
" <line x1=\"14\" y1=\"4\" x2=\"14\" y2=\"111\" />\n",
" <line x1=\"15\" y1=\"5\" x2=\"15\" y2=\"112\" />\n",
" <line x1=\"15\" y1=\"5\" x2=\"15\" y2=\"113\" />\n",
" <line x1=\"16\" y1=\"6\" x2=\"16\" y2=\"114\" />\n",
" <line x1=\"17\" y1=\"7\" x2=\"17\" y2=\"115\" />\n",
" <line x1=\"18\" y1=\"8\" x2=\"18\" y2=\"116\" />\n",
" <line x1=\"19\" y1=\"9\" x2=\"19\" y2=\"116\" />\n",
" <line x1=\"20\" y1=\"10\" x2=\"20\" y2=\"117\" />\n",
" <line x1=\"21\" y1=\"11\" x2=\"21\" y2=\"118\" />\n",
" <line x1=\"21\" y1=\"11\" x2=\"21\" y2=\"119\" />\n",
" <line x1=\"22\" y1=\"12\" x2=\"22\" y2=\"120\" />\n",
" <line x1=\"23\" y1=\"13\" x2=\"23\" y2=\"121\" />\n",
" <line x1=\"24\" y1=\"14\" x2=\"24\" y2=\"122\" />\n",
" <line x1=\"25\" y1=\"15\" x2=\"25\" y2=\"122\" />\n",
" <line x1=\"26\" y1=\"16\" x2=\"26\" y2=\"123\" style=\"stroke-width:2\" />\n",
"\n",
" <!-- Colored Rectangle -->\n",
" <polygon points=\"10.0,0.0 26.20332950438934,16.20332950438934 26.20332950438934,123.74524022949538 10.0,107.54191072510604\" style=\"fill:#8B4903A0;stroke-width:0\"/>\n",
"\n",
" <!-- Horizontal lines -->\n",
" <line x1=\"10\" y1=\"0\" x2=\"130\" y2=\"0\" style=\"stroke-width:2\" />\n",
" <line x1=\"10\" y1=\"0\" x2=\"130\" y2=\"0\" />\n",
" <line x1=\"11\" y1=\"1\" x2=\"131\" y2=\"1\" />\n",
" <line x1=\"12\" y1=\"2\" x2=\"132\" y2=\"2\" />\n",
" <line x1=\"13\" y1=\"3\" x2=\"133\" y2=\"3\" />\n",
" <line x1=\"14\" y1=\"4\" x2=\"134\" y2=\"4\" />\n",
" <line x1=\"15\" y1=\"5\" x2=\"135\" y2=\"5\" />\n",
" <line x1=\"15\" y1=\"5\" x2=\"135\" y2=\"5\" />\n",
" <line x1=\"16\" y1=\"6\" x2=\"136\" y2=\"6\" />\n",
" <line x1=\"17\" y1=\"7\" x2=\"137\" y2=\"7\" />\n",
" <line x1=\"18\" y1=\"8\" x2=\"138\" y2=\"8\" />\n",
" <line x1=\"19\" y1=\"9\" x2=\"139\" y2=\"9\" />\n",
" <line x1=\"20\" y1=\"10\" x2=\"140\" y2=\"10\" />\n",
" <line x1=\"21\" y1=\"11\" x2=\"141\" y2=\"11\" />\n",
" <line x1=\"21\" y1=\"11\" x2=\"141\" y2=\"11\" />\n",
" <line x1=\"22\" y1=\"12\" x2=\"142\" y2=\"12\" />\n",
" <line x1=\"23\" y1=\"13\" x2=\"143\" y2=\"13\" />\n",
" <line x1=\"24\" y1=\"14\" x2=\"144\" y2=\"14\" />\n",
" <line x1=\"25\" y1=\"15\" x2=\"145\" y2=\"15\" />\n",
" <line x1=\"26\" y1=\"16\" x2=\"146\" y2=\"16\" style=\"stroke-width:2\" />\n",
"\n",
" <!-- Vertical lines -->\n",
" <line x1=\"10\" y1=\"0\" x2=\"26\" y2=\"16\" style=\"stroke-width:2\" />\n",
" <line x1=\"34\" y1=\"0\" x2=\"51\" y2=\"16\" />\n",
" <line x1=\"59\" y1=\"0\" x2=\"75\" y2=\"16\" />\n",
" <line x1=\"84\" y1=\"0\" x2=\"100\" y2=\"16\" />\n",
" <line x1=\"109\" y1=\"0\" x2=\"125\" y2=\"16\" />\n",
" <line x1=\"130\" y1=\"0\" x2=\"146\" y2=\"16\" style=\"stroke-width:2\" />\n",
"\n",
" <!-- Colored Rectangle -->\n",
" <polygon points=\"10.0,0.0 130.0,0.0 146.20332950438933,16.20332950438934 26.20332950438934,16.20332950438934\" style=\"fill:#8B4903A0;stroke-width:0\"/>\n",
"\n",
" <!-- Horizontal lines -->\n",
" <line x1=\"26\" y1=\"16\" x2=\"146\" y2=\"16\" style=\"stroke-width:2\" />\n",
" <line x1=\"26\" y1=\"41\" x2=\"146\" y2=\"41\" />\n",
" <line x1=\"26\" y1=\"65\" x2=\"146\" y2=\"65\" />\n",
" <line x1=\"26\" y1=\"90\" x2=\"146\" y2=\"90\" />\n",
" <line x1=\"26\" y1=\"115\" x2=\"146\" y2=\"115\" />\n",
" <line x1=\"26\" y1=\"123\" x2=\"146\" y2=\"123\" style=\"stroke-width:2\" />\n",
"\n",
" <!-- Vertical lines -->\n",
" <line x1=\"26\" y1=\"16\" x2=\"26\" y2=\"123\" style=\"stroke-width:2\" />\n",
" <line x1=\"51\" y1=\"16\" x2=\"51\" y2=\"123\" />\n",
" <line x1=\"75\" y1=\"16\" x2=\"75\" y2=\"123\" />\n",
" <line x1=\"100\" y1=\"16\" x2=\"100\" y2=\"123\" />\n",
" <line x1=\"125\" y1=\"16\" x2=\"125\" y2=\"123\" />\n",
" <line x1=\"146\" y1=\"16\" x2=\"146\" y2=\"123\" style=\"stroke-width:2\" />\n",
"\n",
" <!-- Colored Rectangle -->\n",
" <polygon points=\"26.20332950438934,16.20332950438934 146.20332950438933,16.20332950438934 146.20332950438933,123.74524022949538 26.20332950438934,123.74524022949538\" style=\"fill:#ECB172A0;stroke-width:0\"/>\n",
"\n",
" <!-- Text -->\n",
" <text x=\"86.203330\" y=\"143.745240\" font-size=\"1.0rem\" font-weight=\"100\" text-anchor=\"middle\" >9902</text>\n",
" <text x=\"166.203330\" y=\"69.974285\" font-size=\"1.0rem\" font-weight=\"100\" text-anchor=\"middle\" transform=\"rotate(-90,166.203330,69.974285)\">8874</text>\n",
" <text x=\"8.101665\" y=\"135.643575\" font-size=\"1.0rem\" font-weight=\"100\" text-anchor=\"middle\" transform=\"rotate(45,8.101665,135.643575)\">151</text>\n",
"</svg>\n",
" </td>\n",
" </tr>\n",
"</table></div></li><li class='xr-var-item'><div class='xr-var-name'><span>scl</span></div><div class='xr-var-dims'>(time, y, x)</div><div class='xr-var-dtype'>uint8</div><div class='xr-var-preview xr-preview'>dask.array&lt;chunksize=(1, 2048, 2048), meta=np.ndarray&gt;</div><input id='attrs-0f81a330-fa76-411c-bc9a-4744aca4be47' class='xr-var-attrs-in' type='checkbox' ><label for='attrs-0f81a330-fa76-411c-bc9a-4744aca4be47' title='Show/Hide attributes'><svg class='icon xr-icon-file-text2'><use xlink:href='#icon-file-text2'></use></svg></label><input id='data-45553ab2-b79b-4646-aa31-3717f5091687' class='xr-var-data-in' type='checkbox'><label for='data-45553ab2-b79b-4646-aa31-3717f5091687' title='Show/Hide data repr'><svg class='icon xr-icon-database'><use xlink:href='#icon-database'></use></svg></label><div class='xr-var-attrs'><dl class='xr-attrs'><dt><span>units :</span></dt><dd>1</dd><dt><span>nodata :</span></dt><dd>0</dd><dt><span>flags_definition :</span></dt><dd>{&#x27;qa&#x27;: {&#x27;bits&#x27;: [0, 1, 2, 3, 4, 5, 6, 7], &#x27;values&#x27;: {&#x27;0&#x27;: &#x27;no data&#x27;, &#x27;1&#x27;: &#x27;saturated or defective&#x27;, &#x27;2&#x27;: &#x27;dark area pixels&#x27;, &#x27;3&#x27;: &#x27;cloud shadows&#x27;, &#x27;4&#x27;: &#x27;vegetation&#x27;, &#x27;5&#x27;: &#x27;bare soils&#x27;, &#x27;6&#x27;: &#x27;water&#x27;, &#x27;7&#x27;: &#x27;unclassified&#x27;, &#x27;8&#x27;: &#x27;cloud medium probability&#x27;, &#x27;9&#x27;: &#x27;cloud high probability&#x27;, &#x27;10&#x27;: &#x27;thin cirrus&#x27;, &#x27;11&#x27;: &#x27;snow or ice&#x27;}, &#x27;description&#x27;: &#x27;Sen2Cor Scene Classification&#x27;}}</dd><dt><span>crs :</span></dt><dd>EPSG:32648</dd><dt><span>grid_mapping :</span></dt><dd>spatial_ref</dd></dl></div><div class='xr-var-data'><table>\n",
" <tr>\n",
" <td>\n",
" <table style=\"border-collapse: collapse;\">\n",
" <thead>\n",
" <tr>\n",
" <td> </td>\n",
" <th> Array </th>\n",
" <th> Chunk </th>\n",
" </tr>\n",
" </thead>\n",
" <tbody>\n",
" \n",
" <tr>\n",
" <th> Bytes </th>\n",
" <td> 12.36 GiB </td>\n",
" <td> 4.00 MiB </td>\n",
" </tr>\n",
" \n",
" <tr>\n",
" <th> Shape </th>\n",
" <td> (151, 8874, 9902) </td>\n",
" <td> (1, 2048, 2048) </td>\n",
" </tr>\n",
" <tr>\n",
" <th> Dask graph </th>\n",
" <td colspan=\"2\"> 3775 chunks in 1 graph layer </td>\n",
" </tr>\n",
" <tr>\n",
" <th> Data type </th>\n",
" <td colspan=\"2\"> uint8 numpy.ndarray </td>\n",
" </tr>\n",
" </tbody>\n",
" </table>\n",
" </td>\n",
" <td>\n",
" <svg width=\"196\" height=\"173\" style=\"stroke:rgb(0,0,0);stroke-width:1\" >\n",
"\n",
" <!-- Horizontal lines -->\n",
" <line x1=\"10\" y1=\"0\" x2=\"26\" y2=\"16\" style=\"stroke-width:2\" />\n",
" <line x1=\"10\" y1=\"24\" x2=\"26\" y2=\"41\" />\n",
" <line x1=\"10\" y1=\"49\" x2=\"26\" y2=\"65\" />\n",
" <line x1=\"10\" y1=\"74\" x2=\"26\" y2=\"90\" />\n",
" <line x1=\"10\" y1=\"99\" x2=\"26\" y2=\"115\" />\n",
" <line x1=\"10\" y1=\"107\" x2=\"26\" y2=\"123\" style=\"stroke-width:2\" />\n",
"\n",
" <!-- Vertical lines -->\n",
" <line x1=\"10\" y1=\"0\" x2=\"10\" y2=\"107\" style=\"stroke-width:2\" />\n",
" <line x1=\"10\" y1=\"0\" x2=\"10\" y2=\"108\" />\n",
" <line x1=\"11\" y1=\"1\" x2=\"11\" y2=\"109\" />\n",
" <line x1=\"12\" y1=\"2\" x2=\"12\" y2=\"110\" />\n",
" <line x1=\"13\" y1=\"3\" x2=\"13\" y2=\"110\" />\n",
" <line x1=\"14\" y1=\"4\" x2=\"14\" y2=\"111\" />\n",
" <line x1=\"15\" y1=\"5\" x2=\"15\" y2=\"112\" />\n",
" <line x1=\"15\" y1=\"5\" x2=\"15\" y2=\"113\" />\n",
" <line x1=\"16\" y1=\"6\" x2=\"16\" y2=\"114\" />\n",
" <line x1=\"17\" y1=\"7\" x2=\"17\" y2=\"115\" />\n",
" <line x1=\"18\" y1=\"8\" x2=\"18\" y2=\"116\" />\n",
" <line x1=\"19\" y1=\"9\" x2=\"19\" y2=\"116\" />\n",
" <line x1=\"20\" y1=\"10\" x2=\"20\" y2=\"117\" />\n",
" <line x1=\"21\" y1=\"11\" x2=\"21\" y2=\"118\" />\n",
" <line x1=\"21\" y1=\"11\" x2=\"21\" y2=\"119\" />\n",
" <line x1=\"22\" y1=\"12\" x2=\"22\" y2=\"120\" />\n",
" <line x1=\"23\" y1=\"13\" x2=\"23\" y2=\"121\" />\n",
" <line x1=\"24\" y1=\"14\" x2=\"24\" y2=\"122\" />\n",
" <line x1=\"25\" y1=\"15\" x2=\"25\" y2=\"122\" />\n",
" <line x1=\"26\" y1=\"16\" x2=\"26\" y2=\"123\" style=\"stroke-width:2\" />\n",
"\n",
" <!-- Colored Rectangle -->\n",
" <polygon points=\"10.0,0.0 26.20332950438934,16.20332950438934 26.20332950438934,123.74524022949538 10.0,107.54191072510604\" style=\"fill:#8B4903A0;stroke-width:0\"/>\n",
"\n",
" <!-- Horizontal lines -->\n",
" <line x1=\"10\" y1=\"0\" x2=\"130\" y2=\"0\" style=\"stroke-width:2\" />\n",
" <line x1=\"10\" y1=\"0\" x2=\"130\" y2=\"0\" />\n",
" <line x1=\"11\" y1=\"1\" x2=\"131\" y2=\"1\" />\n",
" <line x1=\"12\" y1=\"2\" x2=\"132\" y2=\"2\" />\n",
" <line x1=\"13\" y1=\"3\" x2=\"133\" y2=\"3\" />\n",
" <line x1=\"14\" y1=\"4\" x2=\"134\" y2=\"4\" />\n",
" <line x1=\"15\" y1=\"5\" x2=\"135\" y2=\"5\" />\n",
" <line x1=\"15\" y1=\"5\" x2=\"135\" y2=\"5\" />\n",
" <line x1=\"16\" y1=\"6\" x2=\"136\" y2=\"6\" />\n",
" <line x1=\"17\" y1=\"7\" x2=\"137\" y2=\"7\" />\n",
" <line x1=\"18\" y1=\"8\" x2=\"138\" y2=\"8\" />\n",
" <line x1=\"19\" y1=\"9\" x2=\"139\" y2=\"9\" />\n",
" <line x1=\"20\" y1=\"10\" x2=\"140\" y2=\"10\" />\n",
" <line x1=\"21\" y1=\"11\" x2=\"141\" y2=\"11\" />\n",
" <line x1=\"21\" y1=\"11\" x2=\"141\" y2=\"11\" />\n",
" <line x1=\"22\" y1=\"12\" x2=\"142\" y2=\"12\" />\n",
" <line x1=\"23\" y1=\"13\" x2=\"143\" y2=\"13\" />\n",
" <line x1=\"24\" y1=\"14\" x2=\"144\" y2=\"14\" />\n",
" <line x1=\"25\" y1=\"15\" x2=\"145\" y2=\"15\" />\n",
" <line x1=\"26\" y1=\"16\" x2=\"146\" y2=\"16\" style=\"stroke-width:2\" />\n",
"\n",
" <!-- Vertical lines -->\n",
" <line x1=\"10\" y1=\"0\" x2=\"26\" y2=\"16\" style=\"stroke-width:2\" />\n",
" <line x1=\"34\" y1=\"0\" x2=\"51\" y2=\"16\" />\n",
" <line x1=\"59\" y1=\"0\" x2=\"75\" y2=\"16\" />\n",
" <line x1=\"84\" y1=\"0\" x2=\"100\" y2=\"16\" />\n",
" <line x1=\"109\" y1=\"0\" x2=\"125\" y2=\"16\" />\n",
" <line x1=\"130\" y1=\"0\" x2=\"146\" y2=\"16\" style=\"stroke-width:2\" />\n",
"\n",
" <!-- Colored Rectangle -->\n",
" <polygon points=\"10.0,0.0 130.0,0.0 146.20332950438933,16.20332950438934 26.20332950438934,16.20332950438934\" style=\"fill:#8B4903A0;stroke-width:0\"/>\n",
"\n",
" <!-- Horizontal lines -->\n",
" <line x1=\"26\" y1=\"16\" x2=\"146\" y2=\"16\" style=\"stroke-width:2\" />\n",
" <line x1=\"26\" y1=\"41\" x2=\"146\" y2=\"41\" />\n",
" <line x1=\"26\" y1=\"65\" x2=\"146\" y2=\"65\" />\n",
" <line x1=\"26\" y1=\"90\" x2=\"146\" y2=\"90\" />\n",
" <line x1=\"26\" y1=\"115\" x2=\"146\" y2=\"115\" />\n",
" <line x1=\"26\" y1=\"123\" x2=\"146\" y2=\"123\" style=\"stroke-width:2\" />\n",
"\n",
" <!-- Vertical lines -->\n",
" <line x1=\"26\" y1=\"16\" x2=\"26\" y2=\"123\" style=\"stroke-width:2\" />\n",
" <line x1=\"51\" y1=\"16\" x2=\"51\" y2=\"123\" />\n",
" <line x1=\"75\" y1=\"16\" x2=\"75\" y2=\"123\" />\n",
" <line x1=\"100\" y1=\"16\" x2=\"100\" y2=\"123\" />\n",
" <line x1=\"125\" y1=\"16\" x2=\"125\" y2=\"123\" />\n",
" <line x1=\"146\" y1=\"16\" x2=\"146\" y2=\"123\" style=\"stroke-width:2\" />\n",
"\n",
" <!-- Colored Rectangle -->\n",
" <polygon points=\"26.20332950438934,16.20332950438934 146.20332950438933,16.20332950438934 146.20332950438933,123.74524022949538 26.20332950438934,123.74524022949538\" style=\"fill:#ECB172A0;stroke-width:0\"/>\n",
"\n",
" <!-- Text -->\n",
" <text x=\"86.203330\" y=\"143.745240\" font-size=\"1.0rem\" font-weight=\"100\" text-anchor=\"middle\" >9902</text>\n",
" <text x=\"166.203330\" y=\"69.974285\" font-size=\"1.0rem\" font-weight=\"100\" text-anchor=\"middle\" transform=\"rotate(-90,166.203330,69.974285)\">8874</text>\n",
" <text x=\"8.101665\" y=\"135.643575\" font-size=\"1.0rem\" font-weight=\"100\" text-anchor=\"middle\" transform=\"rotate(45,8.101665,135.643575)\">151</text>\n",
"</svg>\n",
" </td>\n",
" </tr>\n",
"</table></div></li></ul></div></li><li class='xr-section-item'><input id='section-76876aff-502e-451d-a2f0-13ea8164e853' class='xr-section-summary-in' type='checkbox' ><label for='section-76876aff-502e-451d-a2f0-13ea8164e853' class='xr-section-summary' >Indexes: <span>(3)</span></label><div class='xr-section-inline-details'></div><div class='xr-section-details'><ul class='xr-var-list'><li class='xr-var-item'><div class='xr-index-name'><div>time</div></div><div class='xr-index-preview'>PandasIndex</div><div></div><input id='index-8d415d7a-c41a-4dad-9c56-5dc97bc0325a' class='xr-index-data-in' type='checkbox'/><label for='index-8d415d7a-c41a-4dad-9c56-5dc97bc0325a' title='Show/Hide index repr'><svg class='icon xr-icon-database'><use xlink:href='#icon-database'></use></svg></label><div class='xr-index-data'><pre>PandasIndex(DatetimeIndex([&#x27;2022-09-02 03:35:23.960000&#x27;, &#x27;2022-09-04 03:25:18.037000&#x27;,\n",
" &#x27;2022-09-07 03:35:13.646000&#x27;, &#x27;2022-09-09 03:25:27.617000&#x27;,\n",
" &#x27;2022-09-12 03:35:22.247000&#x27;, &#x27;2022-09-14 03:25:18.529000&#x27;,\n",
" &#x27;2022-09-17 03:35:13.648000&#x27;, &#x27;2022-09-19 03:25:24.773000&#x27;,\n",
" &#x27;2022-09-22 03:35:18.931000&#x27;, &#x27;2022-09-24 03:25:17.431000&#x27;,\n",
" ...\n",
" &#x27;2023-09-07 03:35:17.134000&#x27;, &#x27;2023-09-09 03:25:20.648000&#x27;,\n",
" &#x27;2023-09-12 03:35:15.326000&#x27;, &#x27;2023-09-14 03:25:35.755000&#x27;,\n",
" &#x27;2023-09-17 03:35:15.269000&#x27;, &#x27;2023-09-19 03:25:24.089000&#x27;,\n",
" &#x27;2023-09-22 03:35:15.439000&#x27;, &#x27;2023-09-24 03:25:18.524000&#x27;,\n",
" &#x27;2023-09-27 03:35:14.112000&#x27;, &#x27;2023-09-29 03:25:19.046000&#x27;],\n",
" dtype=&#x27;datetime64[ns]&#x27;, name=&#x27;time&#x27;, length=151, freq=None))</pre></div></li><li class='xr-var-item'><div class='xr-index-name'><div>y</div></div><div class='xr-index-preview'>PandasIndex</div><div></div><input id='index-575c2317-530e-47b5-8ace-917f99d56274' class='xr-index-data-in' type='checkbox'/><label for='index-575c2317-530e-47b5-8ace-917f99d56274' title='Show/Hide index repr'><svg class='icon xr-icon-database'><use xlink:href='#icon-database'></use></svg></label><div class='xr-index-data'><pre>PandasIndex(Index([1105735.0, 1105725.0, 1105715.0, 1105705.0, 1105695.0, 1105685.0,\n",
" 1105675.0, 1105665.0, 1105655.0, 1105645.0,\n",
" ...\n",
" 1017095.0, 1017085.0, 1017075.0, 1017065.0, 1017055.0, 1017045.0,\n",
" 1017035.0, 1017025.0, 1017015.0, 1017005.0],\n",
" dtype=&#x27;float64&#x27;, name=&#x27;y&#x27;, length=8874))</pre></div></li><li class='xr-var-item'><div class='xr-index-name'><div>x</div></div><div class='xr-index-preview'>PandasIndex</div><div></div><input id='index-dd2e0bb5-a936-4da6-be52-f209cf4a1de0' class='xr-index-data-in' type='checkbox'/><label for='index-dd2e0bb5-a936-4da6-be52-f209cf4a1de0' title='Show/Hide index repr'><svg class='icon xr-icon-database'><use xlink:href='#icon-database'></use></svg></label><div class='xr-index-data'><pre>PandasIndex(Index([554795.0, 554805.0, 554815.0, 554825.0, 554835.0, 554845.0, 554855.0,\n",
" 554865.0, 554875.0, 554885.0,\n",
" ...\n",
" 653715.0, 653725.0, 653735.0, 653745.0, 653755.0, 653765.0, 653775.0,\n",
" 653785.0, 653795.0, 653805.0],\n",
" dtype=&#x27;float64&#x27;, name=&#x27;x&#x27;, length=9902))</pre></div></li></ul></div></li><li class='xr-section-item'><input id='section-d1b22f4a-8cd8-4942-9bbc-ab29aaa718b9' class='xr-section-summary-in' type='checkbox' checked><label for='section-d1b22f4a-8cd8-4942-9bbc-ab29aaa718b9' class='xr-section-summary' >Attributes: <span>(2)</span></label><div class='xr-section-inline-details'></div><div class='xr-section-details'><dl class='xr-attrs'><dt><span>crs :</span></dt><dd>EPSG:32648</dd><dt><span>grid_mapping :</span></dt><dd>spatial_ref</dd></dl></div></li></ul></div></div>"
],
"text/plain": [
"<xarray.Dataset>\n",
"Dimensions: (time: 151, y: 8874, x: 9902)\n",
"Coordinates:\n",
" * time (time) datetime64[ns] 2022-09-02T03:35:23.960000 ... 2023-09...\n",
" * y (y) float64 1.106e+06 1.106e+06 ... 1.017e+06 1.017e+06\n",
" * x (x) float64 5.548e+05 5.548e+05 ... 6.538e+05 6.538e+05\n",
" spatial_ref int32 32648\n",
"Data variables:\n",
" blue (time, y, x) float32 dask.array<chunksize=(1, 2048, 2048), meta=np.ndarray>\n",
" green (time, y, x) float32 dask.array<chunksize=(1, 2048, 2048), meta=np.ndarray>\n",
" red (time, y, x) float32 dask.array<chunksize=(1, 2048, 2048), meta=np.ndarray>\n",
" nir (time, y, x) float32 dask.array<chunksize=(1, 2048, 2048), meta=np.ndarray>\n",
" scl (time, y, x) uint8 dask.array<chunksize=(1, 2048, 2048), meta=np.ndarray>\n",
"Attributes:\n",
" crs: EPSG:32648\n",
" grid_mapping: spatial_ref"
]
},
"metadata": {},
"output_type": "display_data"
}
],
"source": [
"## truy vấn ảnh vệ tinh sen2\n",
"data = load_data(dc, date_range, longtitude_range, latitude_range)\n",
"notebook_utils.heading(notebook_utils.xarray_object_size(data))\n",
"display(data)"
]
},
{
"cell_type": "code",
"execution_count": 17,
"id": "56f9b785-21cb-4e37-ab3b-52d51cbcb782",
"metadata": {
"tags": []
},
"outputs": [],
"source": [
"# Specify the start and end times \n",
"min_date = '2022-09-01' # Thời gian bắt đầu lấy data cho quá trình train\n",
"max_date = '2023-10-01' # Thời gian kết thúc lấy data cho quá trình train\n",
"# Just do 1 month for testing\n",
"# max_date = '2022-10-01' # Thời gian kết thúc lấy data cho quá trình train\n",
"\n",
"# Specify a spatail region to search using latitude/longitude cooridinates\n",
"min_longitude, max_longitude = (105.5, 106.4)\n",
"min_latitude, max_latitude = (9.2, 10.0)\n",
"\n",
"# Specify the product. In this case we want to use Sentinel-2 Level-2A data\n",
"product = 's2_l2a'\n",
"\n",
"# Construct the search query dictionary\n",
"query = {\n",
" 'product': product, # Product name\n",
" 'x': (min_longitude, max_longitude), # \"x\" axis bounds\n",
" 'y': (min_latitude, max_latitude), # \"y\" axis bounds\n",
" 'time': (min_date, max_date), # Any parsable date strings\n",
"}"
]
},
{
"cell_type": "code",
"execution_count": 18,
"id": "23ec5035-6989-40ae-acf0-f0917e45f0e1",
"metadata": {
"tags": []
},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"Most common native CRS: EPSG:32648\n"
]
}
],
"source": [
"# Most common CRS\n",
"native_crs = notebook_utils.mostcommon_crs(dc, query)\n",
"print(f'Most common native CRS: {native_crs}')"
]
},
{
"cell_type": "code",
"execution_count": 19,
"id": "317db083-3549-40d9-b0b4-fec5bec8a8bf",
"metadata": {
"tags": []
},
"outputs": [],
"source": [
"# Specify the spectral band measurements we want to use for a classification algorithm\n",
"measurements = ['red', 'nir', 'scl']\n",
"\n",
"load_params = {\n",
" 'measurements': measurements, # Selected measurement or alias names\n",
" 'output_crs': native_crs, # Target EPSG code\n",
" 'resolution': (-10, 10), # Target resolution\n",
" 'group_by': 'solar_day', # Scene grouping\n",
" 'dask_chunks': {'x': 2048, 'y': 2048}, # Dask chunks\n",
"}\n"
]
},
{
"cell_type": "code",
"execution_count": 20,
"id": "d23f9e0b-54fc-4993-a5ad-ed36624e2221",
"metadata": {
"tags": []
},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"No datasets require offset correction\n",
"The valid_data_mask and scale (no offset) have been applied to the reflectance bands\n"
]
},
{
"data": {
"text/html": [
"<h4>Dataset size: 111.21 GB</h4>"
],
"text/plain": [
"<IPython.core.display.HTML object>"
]
},
"metadata": {},
"output_type": "display_data"
},
{
"data": {
"text/html": [
"<div><svg style=\"position: absolute; width: 0; height: 0; overflow: hidden\">\n",
"<defs>\n",
"<symbol id=\"icon-database\" viewBox=\"0 0 32 32\">\n",
"<path d=\"M16 0c-8.837 0-16 2.239-16 5v4c0 2.761 7.163 5 16 5s16-2.239 16-5v-4c0-2.761-7.163-5-16-5z\"></path>\n",
"<path d=\"M16 17c-8.837 0-16-2.239-16-5v6c0 2.761 7.163 5 16 5s16-2.239 16-5v-6c0 2.761-7.163 5-16 5z\"></path>\n",
"<path d=\"M16 26c-8.837 0-16-2.239-16-5v6c0 2.761 7.163 5 16 5s16-2.239 16-5v-6c0 2.761-7.163 5-16 5z\"></path>\n",
"</symbol>\n",
"<symbol id=\"icon-file-text2\" viewBox=\"0 0 32 32\">\n",
"<path d=\"M28.681 7.159c-0.694-0.947-1.662-2.053-2.724-3.116s-2.169-2.030-3.116-2.724c-1.612-1.182-2.393-1.319-2.841-1.319h-15.5c-1.378 0-2.5 1.121-2.5 2.5v27c0 1.378 1.122 2.5 2.5 2.5h23c1.378 0 2.5-1.122 2.5-2.5v-19.5c0-0.448-0.137-1.23-1.319-2.841zM24.543 5.457c0.959 0.959 1.712 1.825 2.268 2.543h-4.811v-4.811c0.718 0.556 1.584 1.309 2.543 2.268zM28 29.5c0 0.271-0.229 0.5-0.5 0.5h-23c-0.271 0-0.5-0.229-0.5-0.5v-27c0-0.271 0.229-0.5 0.5-0.5 0 0 15.499-0 15.5 0v7c0 0.552 0.448 1 1 1h7v19.5z\"></path>\n",
"<path d=\"M23 26h-14c-0.552 0-1-0.448-1-1s0.448-1 1-1h14c0.552 0 1 0.448 1 1s-0.448 1-1 1z\"></path>\n",
"<path d=\"M23 22h-14c-0.552 0-1-0.448-1-1s0.448-1 1-1h14c0.552 0 1 0.448 1 1s-0.448 1-1 1z\"></path>\n",
"<path d=\"M23 18h-14c-0.552 0-1-0.448-1-1s0.448-1 1-1h14c0.552 0 1 0.448 1 1s-0.448 1-1 1z\"></path>\n",
"</symbol>\n",
"</defs>\n",
"</svg>\n",
"<style>/* CSS stylesheet for displaying xarray objects in jupyterlab.\n",
" *\n",
" */\n",
"\n",
":root {\n",
" --xr-font-color0: var(--jp-content-font-color0, rgba(0, 0, 0, 1));\n",
" --xr-font-color2: var(--jp-content-font-color2, rgba(0, 0, 0, 0.54));\n",
" --xr-font-color3: var(--jp-content-font-color3, rgba(0, 0, 0, 0.38));\n",
" --xr-border-color: var(--jp-border-color2, #e0e0e0);\n",
" --xr-disabled-color: var(--jp-layout-color3, #bdbdbd);\n",
" --xr-background-color: var(--jp-layout-color0, white);\n",
" --xr-background-color-row-even: var(--jp-layout-color1, white);\n",
" --xr-background-color-row-odd: var(--jp-layout-color2, #eeeeee);\n",
"}\n",
"\n",
"html[theme=dark],\n",
"body[data-theme=dark],\n",
"body.vscode-dark {\n",
" --xr-font-color0: rgba(255, 255, 255, 1);\n",
" --xr-font-color2: rgba(255, 255, 255, 0.54);\n",
" --xr-font-color3: rgba(255, 255, 255, 0.38);\n",
" --xr-border-color: #1F1F1F;\n",
" --xr-disabled-color: #515151;\n",
" --xr-background-color: #111111;\n",
" --xr-background-color-row-even: #111111;\n",
" --xr-background-color-row-odd: #313131;\n",
"}\n",
"\n",
".xr-wrap {\n",
" display: block !important;\n",
" min-width: 300px;\n",
" max-width: 700px;\n",
"}\n",
"\n",
".xr-text-repr-fallback {\n",
" /* fallback to plain text repr when CSS is not injected (untrusted notebook) */\n",
" display: none;\n",
"}\n",
"\n",
".xr-header {\n",
" padding-top: 6px;\n",
" padding-bottom: 6px;\n",
" margin-bottom: 4px;\n",
" border-bottom: solid 1px var(--xr-border-color);\n",
"}\n",
"\n",
".xr-header > div,\n",
".xr-header > ul {\n",
" display: inline;\n",
" margin-top: 0;\n",
" margin-bottom: 0;\n",
"}\n",
"\n",
".xr-obj-type,\n",
".xr-array-name {\n",
" margin-left: 2px;\n",
" margin-right: 10px;\n",
"}\n",
"\n",
".xr-obj-type {\n",
" color: var(--xr-font-color2);\n",
"}\n",
"\n",
".xr-sections {\n",
" padding-left: 0 !important;\n",
" display: grid;\n",
" grid-template-columns: 150px auto auto 1fr 20px 20px;\n",
"}\n",
"\n",
".xr-section-item {\n",
" display: contents;\n",
"}\n",
"\n",
".xr-section-item input {\n",
" display: none;\n",
"}\n",
"\n",
".xr-section-item input + label {\n",
" color: var(--xr-disabled-color);\n",
"}\n",
"\n",
".xr-section-item input:enabled + label {\n",
" cursor: pointer;\n",
" color: var(--xr-font-color2);\n",
"}\n",
"\n",
".xr-section-item input:enabled + label:hover {\n",
" color: var(--xr-font-color0);\n",
"}\n",
"\n",
".xr-section-summary {\n",
" grid-column: 1;\n",
" color: var(--xr-font-color2);\n",
" font-weight: 500;\n",
"}\n",
"\n",
".xr-section-summary > span {\n",
" display: inline-block;\n",
" padding-left: 0.5em;\n",
"}\n",
"\n",
".xr-section-summary-in:disabled + label {\n",
" color: var(--xr-font-color2);\n",
"}\n",
"\n",
".xr-section-summary-in + label:before {\n",
" display: inline-block;\n",
" content: '►';\n",
" font-size: 11px;\n",
" width: 15px;\n",
" text-align: center;\n",
"}\n",
"\n",
".xr-section-summary-in:disabled + label:before {\n",
" color: var(--xr-disabled-color);\n",
"}\n",
"\n",
".xr-section-summary-in:checked + label:before {\n",
" content: '▼';\n",
"}\n",
"\n",
".xr-section-summary-in:checked + label > span {\n",
" display: none;\n",
"}\n",
"\n",
".xr-section-summary,\n",
".xr-section-inline-details {\n",
" padding-top: 4px;\n",
" padding-bottom: 4px;\n",
"}\n",
"\n",
".xr-section-inline-details {\n",
" grid-column: 2 / -1;\n",
"}\n",
"\n",
".xr-section-details {\n",
" display: none;\n",
" grid-column: 1 / -1;\n",
" margin-bottom: 5px;\n",
"}\n",
"\n",
".xr-section-summary-in:checked ~ .xr-section-details {\n",
" display: contents;\n",
"}\n",
"\n",
".xr-array-wrap {\n",
" grid-column: 1 / -1;\n",
" display: grid;\n",
" grid-template-columns: 20px auto;\n",
"}\n",
"\n",
".xr-array-wrap > label {\n",
" grid-column: 1;\n",
" vertical-align: top;\n",
"}\n",
"\n",
".xr-preview {\n",
" color: var(--xr-font-color3);\n",
"}\n",
"\n",
".xr-array-preview,\n",
".xr-array-data {\n",
" padding: 0 5px !important;\n",
" grid-column: 2;\n",
"}\n",
"\n",
".xr-array-data,\n",
".xr-array-in:checked ~ .xr-array-preview {\n",
" display: none;\n",
"}\n",
"\n",
".xr-array-in:checked ~ .xr-array-data,\n",
".xr-array-preview {\n",
" display: inline-block;\n",
"}\n",
"\n",
".xr-dim-list {\n",
" display: inline-block !important;\n",
" list-style: none;\n",
" padding: 0 !important;\n",
" margin: 0;\n",
"}\n",
"\n",
".xr-dim-list li {\n",
" display: inline-block;\n",
" padding: 0;\n",
" margin: 0;\n",
"}\n",
"\n",
".xr-dim-list:before {\n",
" content: '(';\n",
"}\n",
"\n",
".xr-dim-list:after {\n",
" content: ')';\n",
"}\n",
"\n",
".xr-dim-list li:not(:last-child):after {\n",
" content: ',';\n",
" padding-right: 5px;\n",
"}\n",
"\n",
".xr-has-index {\n",
" font-weight: bold;\n",
"}\n",
"\n",
".xr-var-list,\n",
".xr-var-item {\n",
" display: contents;\n",
"}\n",
"\n",
".xr-var-item > div,\n",
".xr-var-item label,\n",
".xr-var-item > .xr-var-name span {\n",
" background-color: var(--xr-background-color-row-even);\n",
" margin-bottom: 0;\n",
"}\n",
"\n",
".xr-var-item > .xr-var-name:hover span {\n",
" padding-right: 5px;\n",
"}\n",
"\n",
".xr-var-list > li:nth-child(odd) > div,\n",
".xr-var-list > li:nth-child(odd) > label,\n",
".xr-var-list > li:nth-child(odd) > .xr-var-name span {\n",
" background-color: var(--xr-background-color-row-odd);\n",
"}\n",
"\n",
".xr-var-name {\n",
" grid-column: 1;\n",
"}\n",
"\n",
".xr-var-dims {\n",
" grid-column: 2;\n",
"}\n",
"\n",
".xr-var-dtype {\n",
" grid-column: 3;\n",
" text-align: right;\n",
" color: var(--xr-font-color2);\n",
"}\n",
"\n",
".xr-var-preview {\n",
" grid-column: 4;\n",
"}\n",
"\n",
".xr-index-preview {\n",
" grid-column: 2 / 5;\n",
" color: var(--xr-font-color2);\n",
"}\n",
"\n",
".xr-var-name,\n",
".xr-var-dims,\n",
".xr-var-dtype,\n",
".xr-preview,\n",
".xr-attrs dt {\n",
" white-space: nowrap;\n",
" overflow: hidden;\n",
" text-overflow: ellipsis;\n",
" padding-right: 10px;\n",
"}\n",
"\n",
".xr-var-name:hover,\n",
".xr-var-dims:hover,\n",
".xr-var-dtype:hover,\n",
".xr-attrs dt:hover {\n",
" overflow: visible;\n",
" width: auto;\n",
" z-index: 1;\n",
"}\n",
"\n",
".xr-var-attrs,\n",
".xr-var-data,\n",
".xr-index-data {\n",
" display: none;\n",
" background-color: var(--xr-background-color) !important;\n",
" padding-bottom: 5px !important;\n",
"}\n",
"\n",
".xr-var-attrs-in:checked ~ .xr-var-attrs,\n",
".xr-var-data-in:checked ~ .xr-var-data,\n",
".xr-index-data-in:checked ~ .xr-index-data {\n",
" display: block;\n",
"}\n",
"\n",
".xr-var-data > table {\n",
" float: right;\n",
"}\n",
"\n",
".xr-var-name span,\n",
".xr-var-data,\n",
".xr-index-name div,\n",
".xr-index-data,\n",
".xr-attrs {\n",
" padding-left: 25px !important;\n",
"}\n",
"\n",
".xr-attrs,\n",
".xr-var-attrs,\n",
".xr-var-data,\n",
".xr-index-data {\n",
" grid-column: 1 / -1;\n",
"}\n",
"\n",
"dl.xr-attrs {\n",
" padding: 0;\n",
" margin: 0;\n",
" display: grid;\n",
" grid-template-columns: 125px auto;\n",
"}\n",
"\n",
".xr-attrs dt,\n",
".xr-attrs dd {\n",
" padding: 0;\n",
" margin: 0;\n",
" float: left;\n",
" padding-right: 10px;\n",
" width: auto;\n",
"}\n",
"\n",
".xr-attrs dt {\n",
" font-weight: normal;\n",
" grid-column: 1;\n",
"}\n",
"\n",
".xr-attrs dt:hover span {\n",
" display: inline-block;\n",
" background: var(--xr-background-color);\n",
" padding-right: 10px;\n",
"}\n",
"\n",
".xr-attrs dd {\n",
" grid-column: 2;\n",
" white-space: pre-wrap;\n",
" word-break: break-all;\n",
"}\n",
"\n",
".xr-icon-database,\n",
".xr-icon-file-text2,\n",
".xr-no-icon {\n",
" display: inline-block;\n",
" vertical-align: middle;\n",
" width: 1em;\n",
" height: 1.5em !important;\n",
" stroke-width: 0;\n",
" stroke: currentColor;\n",
" fill: currentColor;\n",
"}\n",
"</style><pre class='xr-text-repr-fallback'>&lt;xarray.Dataset&gt;\n",
"Dimensions: (time: 151, y: 8874, x: 9902)\n",
"Coordinates:\n",
" * time (time) datetime64[ns] 2022-09-02T03:35:23.960000 ... 2023-09...\n",
" * y (y) float64 1.106e+06 1.106e+06 ... 1.017e+06 1.017e+06\n",
" * x (x) float64 5.548e+05 5.548e+05 ... 6.538e+05 6.538e+05\n",
" spatial_ref int32 32648\n",
"Data variables:\n",
" red (time, y, x) float32 dask.array&lt;chunksize=(1, 2048, 2048), meta=np.ndarray&gt;\n",
" nir (time, y, x) float32 dask.array&lt;chunksize=(1, 2048, 2048), meta=np.ndarray&gt;\n",
" scl (time, y, x) uint8 dask.array&lt;chunksize=(1, 2048, 2048), meta=np.ndarray&gt;\n",
"Attributes:\n",
" crs: EPSG:32648\n",
" grid_mapping: spatial_ref</pre><div class='xr-wrap' style='display:none'><div class='xr-header'><div class='xr-obj-type'>xarray.Dataset</div></div><ul class='xr-sections'><li class='xr-section-item'><input id='section-41503c4a-ed9a-47fd-8fab-030966939697' class='xr-section-summary-in' type='checkbox' disabled ><label for='section-41503c4a-ed9a-47fd-8fab-030966939697' class='xr-section-summary' title='Expand/collapse section'>Dimensions:</label><div class='xr-section-inline-details'><ul class='xr-dim-list'><li><span class='xr-has-index'>time</span>: 151</li><li><span class='xr-has-index'>y</span>: 8874</li><li><span class='xr-has-index'>x</span>: 9902</li></ul></div><div class='xr-section-details'></div></li><li class='xr-section-item'><input id='section-ea84ce6c-e63a-4a65-b887-90bbbf6add94' class='xr-section-summary-in' type='checkbox' checked><label for='section-ea84ce6c-e63a-4a65-b887-90bbbf6add94' class='xr-section-summary' >Coordinates: <span>(4)</span></label><div class='xr-section-inline-details'></div><div class='xr-section-details'><ul class='xr-var-list'><li class='xr-var-item'><div class='xr-var-name'><span class='xr-has-index'>time</span></div><div class='xr-var-dims'>(time)</div><div class='xr-var-dtype'>datetime64[ns]</div><div class='xr-var-preview xr-preview'>2022-09-02T03:35:23.960000 ... 2...</div><input id='attrs-6bfbdba2-9eab-495f-a621-402c8797567b' class='xr-var-attrs-in' type='checkbox' ><label for='attrs-6bfbdba2-9eab-495f-a621-402c8797567b' title='Show/Hide attributes'><svg class='icon xr-icon-file-text2'><use xlink:href='#icon-file-text2'></use></svg></label><input id='data-f54d0aa5-6d93-4648-8f8e-53fd1739c1d1' class='xr-var-data-in' type='checkbox'><label for='data-f54d0aa5-6d93-4648-8f8e-53fd1739c1d1' title='Show/Hide data repr'><svg class='icon xr-icon-database'><use xlink:href='#icon-database'></use></svg></label><div class='xr-var-attrs'><dl class='xr-attrs'><dt><span>units :</span></dt><dd>seconds since 1970-01-01 00:00:00</dd></dl></div><div class='xr-var-data'><pre>array([&#x27;2022-09-02T03:35:23.960000000&#x27;, &#x27;2022-09-04T03:25:18.037000000&#x27;,\n",
" &#x27;2022-09-07T03:35:13.646000000&#x27;, &#x27;2022-09-09T03:25:27.617000000&#x27;,\n",
" &#x27;2022-09-12T03:35:22.247000000&#x27;, &#x27;2022-09-14T03:25:18.529000000&#x27;,\n",
" &#x27;2022-09-17T03:35:13.648000000&#x27;, &#x27;2022-09-19T03:25:24.773000000&#x27;,\n",
" &#x27;2022-09-22T03:35:18.931000000&#x27;, &#x27;2022-09-24T03:25:17.431000000&#x27;,\n",
" &#x27;2022-09-27T03:35:12.140000000&#x27;, &#x27;2022-09-29T03:25:23.829000000&#x27;,\n",
" &#x27;2022-10-02T03:35:19.048000000&#x27;, &#x27;2022-10-07T03:35:09.133000000&#x27;,\n",
" &#x27;2022-10-09T03:25:22.746000000&#x27;, &#x27;2022-10-12T03:35:17.151000000&#x27;,\n",
" &#x27;2022-10-14T03:25:15.533000000&#x27;, &#x27;2022-10-17T03:35:11.148000000&#x27;,\n",
" &#x27;2022-10-19T03:25:18.808000000&#x27;, &#x27;2022-10-22T03:35:13.746000000&#x27;,\n",
" &#x27;2022-10-24T03:25:15.878000000&#x27;, &#x27;2022-10-27T03:35:10.923000000&#x27;,\n",
" &#x27;2022-10-29T03:25:20.127000000&#x27;, &#x27;2022-11-01T03:35:15.818000000&#x27;,\n",
" &#x27;2022-11-03T03:25:14.204000000&#x27;, &#x27;2022-11-06T03:35:10.096000000&#x27;,\n",
" &#x27;2022-11-11T03:35:15.334000000&#x27;, &#x27;2022-11-13T03:25:16.056000000&#x27;,\n",
" &#x27;2022-11-16T03:35:11.542000000&#x27;, &#x27;2022-11-18T03:25:18.155000000&#x27;,\n",
" &#x27;2022-11-21T03:35:12.396000000&#x27;, &#x27;2022-11-23T03:25:16.067000000&#x27;,\n",
" &#x27;2022-11-26T03:35:11.063000000&#x27;, &#x27;2022-11-28T03:25:16.297000000&#x27;,\n",
" &#x27;2022-12-01T03:35:12.009000000&#x27;, &#x27;2022-12-03T03:25:14.366000000&#x27;,\n",
" &#x27;2022-12-06T03:35:10.293000000&#x27;, &#x27;2022-12-08T03:25:17.072000000&#x27;,\n",
" &#x27;2022-12-11T03:35:12.184000000&#x27;, &#x27;2022-12-16T03:35:10.130000000&#x27;,\n",
" &#x27;2022-12-18T03:25:15.584000000&#x27;, &#x27;2022-12-21T03:35:09.988000000&#x27;,\n",
" &#x27;2022-12-23T03:25:15.763000000&#x27;, &#x27;2022-12-26T03:35:11.128000000&#x27;,\n",
" &#x27;2022-12-28T03:25:15.151000000&#x27;, &#x27;2022-12-31T03:35:10.753000000&#x27;,\n",
" &#x27;2023-01-02T03:25:15.152000000&#x27;, &#x27;2023-01-05T03:35:09.844000000&#x27;,\n",
" &#x27;2023-01-07T03:25:15.343000000&#x27;, &#x27;2023-01-10T03:35:10.149000000&#x27;,\n",
" &#x27;2023-01-12T03:25:12.066000000&#x27;, &#x27;2023-01-15T03:35:08.140000000&#x27;,\n",
" &#x27;2023-01-17T03:25:12.454000000&#x27;, &#x27;2023-01-20T03:35:06.593000000&#x27;,\n",
" &#x27;2023-01-22T03:25:14.446000000&#x27;, &#x27;2023-01-25T03:35:09.824000000&#x27;,\n",
" &#x27;2023-01-27T03:25:13.987000000&#x27;, &#x27;2023-01-30T03:35:09.963000000&#x27;,\n",
" &#x27;2023-02-01T03:25:13.595000000&#x27;, &#x27;2023-02-04T03:35:09.008000000&#x27;,\n",
" &#x27;2023-02-06T03:25:15.471000000&#x27;, &#x27;2023-02-09T03:35:10.646000000&#x27;,\n",
" &#x27;2023-02-11T03:25:15.100000000&#x27;, &#x27;2023-02-14T03:35:10.240000000&#x27;,\n",
" &#x27;2023-02-16T03:25:28.099000000&#x27;, &#x27;2023-02-24T03:35:12.118000000&#x27;,\n",
" &#x27;2023-02-26T03:25:14.146000000&#x27;, &#x27;2023-03-01T03:35:09.182000000&#x27;,\n",
" &#x27;2023-03-03T03:25:17.841000000&#x27;, &#x27;2023-03-06T03:35:14.717000000&#x27;,\n",
" &#x27;2023-03-08T03:25:12.032000000&#x27;, &#x27;2023-03-11T03:35:07.230000000&#x27;,\n",
" &#x27;2023-03-13T03:25:20.837000000&#x27;, &#x27;2023-03-16T03:35:15.940000000&#x27;,\n",
" &#x27;2023-03-18T03:25:14.467000000&#x27;, &#x27;2023-03-21T03:35:10.279000000&#x27;,\n",
" &#x27;2023-03-23T03:25:18.795000000&#x27;, &#x27;2023-03-26T03:35:14.570000000&#x27;,\n",
" &#x27;2023-03-28T03:25:14.536000000&#x27;, &#x27;2023-03-31T03:35:10.140000000&#x27;,\n",
" &#x27;2023-04-02T03:25:19.945000000&#x27;, &#x27;2023-04-05T03:35:14.925000000&#x27;,\n",
" &#x27;2023-04-07T03:25:16.518000000&#x27;, &#x27;2023-04-10T03:35:12.000000000&#x27;,\n",
" &#x27;2023-04-15T03:35:12.743000000&#x27;, &#x27;2023-04-20T03:35:10.328000000&#x27;,\n",
" &#x27;2023-04-22T03:25:18.572000000&#x27;, &#x27;2023-04-25T03:35:13.748000000&#x27;,\n",
" &#x27;2023-04-27T03:25:16.567000000&#x27;, &#x27;2023-04-30T03:35:12.151000000&#x27;,\n",
" &#x27;2023-05-02T03:25:18.866000000&#x27;, &#x27;2023-05-05T03:35:14.433000000&#x27;,\n",
" &#x27;2023-05-07T03:25:16.583000000&#x27;, &#x27;2023-05-10T03:35:11.284000000&#x27;,\n",
" &#x27;2023-05-12T03:25:19.200000000&#x27;, &#x27;2023-05-15T03:35:15.683000000&#x27;,\n",
" &#x27;2023-05-17T03:25:17.911000000&#x27;, &#x27;2023-05-20T03:35:14.193000000&#x27;,\n",
" &#x27;2023-05-22T03:25:36.378000000&#x27;, &#x27;2023-05-25T03:35:16.657000000&#x27;,\n",
" &#x27;2023-05-27T03:25:20.078000000&#x27;, &#x27;2023-05-30T03:35:15.642000000&#x27;,\n",
" &#x27;2023-06-01T03:25:20.268000000&#x27;, &#x27;2023-06-04T03:35:16.047000000&#x27;,\n",
" &#x27;2023-06-06T03:25:20.180000000&#x27;, &#x27;2023-06-09T03:35:15.534000000&#x27;,\n",
" &#x27;2023-06-11T03:25:21.573000000&#x27;, &#x27;2023-06-14T03:35:16.859000000&#x27;,\n",
" &#x27;2023-06-16T03:25:20.769000000&#x27;, &#x27;2023-06-19T03:35:15.908000000&#x27;,\n",
" &#x27;2023-06-21T03:25:20.640000000&#x27;, &#x27;2023-06-24T03:35:15.972000000&#x27;,\n",
" &#x27;2023-06-26T03:25:19.927000000&#x27;, &#x27;2023-06-29T03:35:15.752000000&#x27;,\n",
" &#x27;2023-07-01T03:25:21.763000000&#x27;, &#x27;2023-07-04T03:35:17.227000000&#x27;,\n",
" &#x27;2023-07-06T03:25:21.702000000&#x27;, &#x27;2023-07-09T03:35:17.102000000&#x27;,\n",
" &#x27;2023-07-11T03:25:21.515000000&#x27;, &#x27;2023-07-14T03:35:16.582000000&#x27;,\n",
" &#x27;2023-07-16T03:25:21.326000000&#x27;, &#x27;2023-07-19T03:35:16.050000000&#x27;,\n",
" &#x27;2023-07-21T03:25:22.444000000&#x27;, &#x27;2023-07-24T03:35:17.845000000&#x27;,\n",
" &#x27;2023-07-26T03:25:21.503000000&#x27;, &#x27;2023-07-29T03:35:17.083000000&#x27;,\n",
" &#x27;2023-07-31T03:25:36.753000000&#x27;, &#x27;2023-08-03T03:35:16.494000000&#x27;,\n",
" &#x27;2023-08-05T03:25:21.570000000&#x27;, &#x27;2023-08-08T03:35:16.313000000&#x27;,\n",
" &#x27;2023-08-10T03:25:22.024000000&#x27;, &#x27;2023-08-13T03:35:17.448000000&#x27;,\n",
" &#x27;2023-08-15T03:25:22.075000000&#x27;, &#x27;2023-08-18T03:35:17.812000000&#x27;,\n",
" &#x27;2023-08-20T03:25:21.568000000&#x27;, &#x27;2023-08-23T03:35:16.224000000&#x27;,\n",
" &#x27;2023-08-25T03:25:22.592000000&#x27;, &#x27;2023-08-28T03:35:17.571000000&#x27;,\n",
" &#x27;2023-08-30T03:25:21.212000000&#x27;, &#x27;2023-09-02T03:35:16.627000000&#x27;,\n",
" &#x27;2023-09-04T03:25:21.856000000&#x27;, &#x27;2023-09-07T03:35:17.134000000&#x27;,\n",
" &#x27;2023-09-09T03:25:20.648000000&#x27;, &#x27;2023-09-12T03:35:15.326000000&#x27;,\n",
" &#x27;2023-09-14T03:25:35.755000000&#x27;, &#x27;2023-09-17T03:35:15.269000000&#x27;,\n",
" &#x27;2023-09-19T03:25:24.089000000&#x27;, &#x27;2023-09-22T03:35:15.439000000&#x27;,\n",
" &#x27;2023-09-24T03:25:18.524000000&#x27;, &#x27;2023-09-27T03:35:14.112000000&#x27;,\n",
" &#x27;2023-09-29T03:25:19.046000000&#x27;], dtype=&#x27;datetime64[ns]&#x27;)</pre></div></li><li class='xr-var-item'><div class='xr-var-name'><span class='xr-has-index'>y</span></div><div class='xr-var-dims'>(y)</div><div class='xr-var-dtype'>float64</div><div class='xr-var-preview xr-preview'>1.106e+06 1.106e+06 ... 1.017e+06</div><input id='attrs-bb5446c4-4351-43de-8a38-6825c7ac5b4c' class='xr-var-attrs-in' type='checkbox' ><label for='attrs-bb5446c4-4351-43de-8a38-6825c7ac5b4c' title='Show/Hide attributes'><svg class='icon xr-icon-file-text2'><use xlink:href='#icon-file-text2'></use></svg></label><input id='data-d48124a6-8847-4613-a3fa-9f8b8218631c' class='xr-var-data-in' type='checkbox'><label for='data-d48124a6-8847-4613-a3fa-9f8b8218631c' title='Show/Hide data repr'><svg class='icon xr-icon-database'><use xlink:href='#icon-database'></use></svg></label><div class='xr-var-attrs'><dl class='xr-attrs'><dt><span>units :</span></dt><dd>metre</dd><dt><span>resolution :</span></dt><dd>-10.0</dd><dt><span>crs :</span></dt><dd>EPSG:32648</dd></dl></div><div class='xr-var-data'><pre>array([1105735., 1105725., 1105715., ..., 1017025., 1017015., 1017005.])</pre></div></li><li class='xr-var-item'><div class='xr-var-name'><span class='xr-has-index'>x</span></div><div class='xr-var-dims'>(x)</div><div class='xr-var-dtype'>float64</div><div class='xr-var-preview xr-preview'>5.548e+05 5.548e+05 ... 6.538e+05</div><input id='attrs-349ac128-9b49-4649-bf0e-76bbc2864d76' class='xr-var-attrs-in' type='checkbox' ><label for='attrs-349ac128-9b49-4649-bf0e-76bbc2864d76' title='Show/Hide attributes'><svg class='icon xr-icon-file-text2'><use xlink:href='#icon-file-text2'></use></svg></label><input id='data-1fd661b8-77ba-43ec-a2ab-1555a73037c7' class='xr-var-data-in' type='checkbox'><label for='data-1fd661b8-77ba-43ec-a2ab-1555a73037c7' title='Show/Hide data repr'><svg class='icon xr-icon-database'><use xlink:href='#icon-database'></use></svg></label><div class='xr-var-attrs'><dl class='xr-attrs'><dt><span>units :</span></dt><dd>metre</dd><dt><span>resolution :</span></dt><dd>10.0</dd><dt><span>crs :</span></dt><dd>EPSG:32648</dd></dl></div><div class='xr-var-data'><pre>array([554795., 554805., 554815., ..., 653785., 653795., 653805.])</pre></div></li><li class='xr-var-item'><div class='xr-var-name'><span>spatial_ref</span></div><div class='xr-var-dims'>()</div><div class='xr-var-dtype'>int32</div><div class='xr-var-preview xr-preview'>32648</div><input id='attrs-6e268649-13c7-44a0-af89-e7af76956f74' class='xr-var-attrs-in' type='checkbox' ><label for='attrs-6e268649-13c7-44a0-af89-e7af76956f74' title='Show/Hide attributes'><svg class='icon xr-icon-file-text2'><use xlink:href='#icon-file-text2'></use></svg></label><input id='data-ca3dcc05-c046-4f67-b440-69692d76a893' class='xr-var-data-in' type='checkbox'><label for='data-ca3dcc05-c046-4f67-b440-69692d76a893' title='Show/Hide data repr'><svg class='icon xr-icon-database'><use xlink:href='#icon-database'></use></svg></label><div class='xr-var-attrs'><dl class='xr-attrs'><dt><span>spatial_ref :</span></dt><dd>PROJCS[&quot;WGS 84 / UTM zone 48N&quot;,GEOGCS[&quot;WGS 84&quot;,DATUM[&quot;WGS_1984&quot;,SPHEROID[&quot;WGS 84&quot;,6378137,298.257223563,AUTHORITY[&quot;EPSG&quot;,&quot;7030&quot;]],AUTHORITY[&quot;EPSG&quot;,&quot;6326&quot;]],PRIMEM[&quot;Greenwich&quot;,0,AUTHORITY[&quot;EPSG&quot;,&quot;8901&quot;]],UNIT[&quot;degree&quot;,0.0174532925199433,AUTHORITY[&quot;EPSG&quot;,&quot;9122&quot;]],AUTHORITY[&quot;EPSG&quot;,&quot;4326&quot;]],PROJECTION[&quot;Transverse_Mercator&quot;],PARAMETER[&quot;latitude_of_origin&quot;,0],PARAMETER[&quot;central_meridian&quot;,105],PARAMETER[&quot;scale_factor&quot;,0.9996],PARAMETER[&quot;false_easting&quot;,500000],PARAMETER[&quot;false_northing&quot;,0],UNIT[&quot;metre&quot;,1,AUTHORITY[&quot;EPSG&quot;,&quot;9001&quot;]],AXIS[&quot;Easting&quot;,EAST],AXIS[&quot;Northing&quot;,NORTH],AUTHORITY[&quot;EPSG&quot;,&quot;32648&quot;]]</dd><dt><span>grid_mapping_name :</span></dt><dd>transverse_mercator</dd></dl></div><div class='xr
" <tr>\n",
" <td>\n",
" <table style=\"border-collapse: collapse;\">\n",
" <thead>\n",
" <tr>\n",
" <td> </td>\n",
" <th> Array </th>\n",
" <th> Chunk </th>\n",
" </tr>\n",
" </thead>\n",
" <tbody>\n",
" \n",
" <tr>\n",
" <th> Bytes </th>\n",
" <td> 49.43 GiB </td>\n",
" <td> 16.00 MiB </td>\n",
" </tr>\n",
" \n",
" <tr>\n",
" <th> Shape </th>\n",
" <td> (151, 8874, 9902) </td>\n",
" <td> (1, 2048, 2048) </td>\n",
" </tr>\n",
" <tr>\n",
" <th> Dask graph </th>\n",
" <td colspan=\"2\"> 3775 chunks in 8 graph layers </td>\n",
" </tr>\n",
" <tr>\n",
" <th> Data type </th>\n",
" <td colspan=\"2\"> float32 numpy.ndarray </td>\n",
" </tr>\n",
" </tbody>\n",
" </table>\n",
" </td>\n",
" <td>\n",
" <svg width=\"196\" height=\"173\" style=\"stroke:rgb(0,0,0);stroke-width:1\" >\n",
"\n",
" <!-- Horizontal lines -->\n",
" <line x1=\"10\" y1=\"0\" x2=\"26\" y2=\"16\" style=\"stroke-width:2\" />\n",
" <line x1=\"10\" y1=\"24\" x2=\"26\" y2=\"41\" />\n",
" <line x1=\"10\" y1=\"49\" x2=\"26\" y2=\"65\" />\n",
" <line x1=\"10\" y1=\"74\" x2=\"26\" y2=\"90\" />\n",
" <line x1=\"10\" y1=\"99\" x2=\"26\" y2=\"115\" />\n",
" <line x1=\"10\" y1=\"107\" x2=\"26\" y2=\"123\" style=\"stroke-width:2\" />\n",
"\n",
" <!-- Vertical lines -->\n",
" <line x1=\"10\" y1=\"0\" x2=\"10\" y2=\"107\" style=\"stroke-width:2\" />\n",
" <line x1=\"10\" y1=\"0\" x2=\"10\" y2=\"108\" />\n",
" <line x1=\"11\" y1=\"1\" x2=\"11\" y2=\"109\" />\n",
" <line x1=\"12\" y1=\"2\" x2=\"12\" y2=\"110\" />\n",
" <line x1=\"13\" y1=\"3\" x2=\"13\" y2=\"110\" />\n",
" <line x1=\"14\" y1=\"4\" x2=\"14\" y2=\"111\" />\n",
" <line x1=\"15\" y1=\"5\" x2=\"15\" y2=\"112\" />\n",
" <line x1=\"15\" y1=\"5\" x2=\"15\" y2=\"113\" />\n",
" <line x1=\"16\" y1=\"6\" x2=\"16\" y2=\"114\" />\n",
" <line x1=\"17\" y1=\"7\" x2=\"17\" y2=\"115\" />\n",
" <line x1=\"18\" y1=\"8\" x2=\"18\" y2=\"116\" />\n",
" <line x1=\"19\" y1=\"9\" x2=\"19\" y2=\"116\" />\n",
" <line x1=\"20\" y1=\"10\" x2=\"20\" y2=\"117\" />\n",
" <line x1=\"21\" y1=\"11\" x2=\"21\" y2=\"118\" />\n",
" <line x1=\"21\" y1=\"11\" x2=\"21\" y2=\"119\" />\n",
" <line x1=\"22\" y1=\"12\" x2=\"22\" y2=\"120\" />\n",
" <line x1=\"23\" y1=\"13\" x2=\"23\" y2=\"121\" />\n",
" <line x1=\"24\" y1=\"14\" x2=\"24\" y2=\"122\" />\n",
" <line x1=\"25\" y1=\"15\" x2=\"25\" y2=\"122\" />\n",
" <line x1=\"26\" y1=\"16\" x2=\"26\" y2=\"123\" style=\"stroke-width:2\" />\n",
"\n",
" <!-- Colored Rectangle -->\n",
" <polygon points=\"10.0,0.0 26.20332950438934,16.20332950438934 26.20332950438934,123.74524022949538 10.0,107.54191072510604\" style=\"fill:#8B4903A0;stroke-width:0\"/>\n",
"\n",
" <!-- Horizontal lines -->\n",
" <line x1=\"10\" y1=\"0\" x2=\"130\" y2=\"0\" style=\"stroke-width:2\" />\n",
" <line x1=\"10\" y1=\"0\" x2=\"130\" y2=\"0\" />\n",
" <line x1=\"11\" y1=\"1\" x2=\"131\" y2=\"1\" />\n",
" <line x1=\"12\" y1=\"2\" x2=\"132\" y2=\"2\" />\n",
" <line x1=\"13\" y1=\"3\" x2=\"133\" y2=\"3\" />\n",
" <line x1=\"14\" y1=\"4\" x2=\"134\" y2=\"4\" />\n",
" <line x1=\"15\" y1=\"5\" x2=\"135\" y2=\"5\" />\n",
" <line x1=\"15\" y1=\"5\" x2=\"135\" y2=\"5\" />\n",
" <line x1=\"16\" y1=\"6\" x2=\"136\" y2=\"6\" />\n",
" <line x1=\"17\" y1=\"7\" x2=\"137\" y2=\"7\" />\n",
" <line x1=\"18\" y1=\"8\" x2=\"138\" y2=\"8\" />\n",
" <line x1=\"19\" y1=\"9\" x2=\"139\" y2=\"9\" />\n",
" <line x1=\"20\" y1=\"10\" x2=\"140\" y2=\"10\" />\n",
" <line x1=\"21\" y1=\"11\" x2=\"141\" y2=\"11\" />\n",
" <line x1=\"21\" y1=\"11\" x2=\"141\" y2=\"11\" />\n",
" <line x1=\"22\" y1=\"12\" x2=\"142\" y2=\"12\" />\n",
" <line x1=\"23\" y1=\"13\" x2=\"143\" y2=\"13\" />\n",
" <line x1=\"24\" y1=\"14\" x2=\"144\" y2=\"14\" />\n",
" <line x1=\"25\" y1=\"15\" x2=\"145\" y2=\"15\" />\n",
" <line x1=\"26\" y1=\"16\" x2=\"146\" y2=\"16\" style=\"stroke-width:2\" />\n",
"\n",
" <!-- Vertical lines -->\n",
" <line x1=\"10\" y1=\"0\" x2=\"26\" y2=\"16\" style=\"stroke-width:2\" />\n",
" <line x1=\"34\" y1=\"0\" x2=\"51\" y2=\"16\" />\n",
" <line x1=\"59\" y1=\"0\" x2=\"75\" y2=\"16\" />\n",
" <line x1=\"84\" y1=\"0\" x2=\"100\" y2=\"16\" />\n",
" <line x1=\"109\" y1=\"0\" x2=\"125\" y2=\"16\" />\n",
" <line x1=\"130\" y1=\"0\" x2=\"146\" y2=\"16\" style=\"stroke-width:2\" />\n",
"\n",
" <!-- Colored Rectangle -->\n",
" <polygon points=\"10.0,0.0 130.0,0.0 146.20332950438933,16.20332950438934 26.20332950438934,16.20332950438934\" style=\"fill:#8B4903A0;stroke-width:0\"/>\n",
"\n",
" <!-- Horizontal lines -->\n",
" <line x1=\"26\" y1=\"16\" x2=\"146\" y2=\"16\" style=\"stroke-width:2\" />\n",
" <line x1=\"26\" y1=\"41\" x2=\"146\" y2=\"41\" />\n",
" <line x1=\"26\" y1=\"65\" x2=\"146\" y2=\"65\" />\n",
" <line x1=\"26\" y1=\"90\" x2=\"146\" y2=\"90\" />\n",
" <line x1=\"26\" y1=\"115\" x2=\"146\" y2=\"115\" />\n",
" <line x1=\"26\" y1=\"123\" x2=\"146\" y2=\"123\" style=\"stroke-width:2\" />\n",
"\n",
" <!-- Vertical lines -->\n",
" <line x1=\"26\" y1=\"16\" x2=\"26\" y2=\"123\" style=\"stroke-width:2\" />\n",
" <line x1=\"51\" y1=\"16\" x2=\"51\" y2=\"123\" />\n",
" <line x1=\"75\" y1=\"16\" x2=\"75\" y2=\"123\" />\n",
" <line x1=\"100\" y1=\"16\" x2=\"100\" y2=\"123\" />\n",
" <line x1=\"125\" y1=\"16\" x2=\"125\" y2=\"123\" />\n",
" <line x1=\"146\" y1=\"16\" x2=\"146\" y2=\"123\" style=\"stroke-width:2\" />\n",
"\n",
" <!-- Colored Rectangle -->\n",
" <polygon points=\"26.20332950438934,16.20332950438934 146.20332950438933,16.20332950438934 146.20332950438933,123.74524022949538 26.20332950438934,123.74524022949538\" style=\"fill:#ECB172A0;stroke-width:0\"/>\n",
"\n",
" <!-- Text -->\n",
" <text x=\"86.203330\" y=\"143.745240\" font-size=\"1.0rem\" font-weight=\"100\" text-anchor=\"middle\" >9902</text>\n",
" <text x=\"166.203330\" y=\"69.974285\" font-size=\"1.0rem\" font-weight=\"100\" text-anchor=\"middle\" transform=\"rotate(-90,166.203330,69.974285)\">8874</text>\n",
" <text x=\"8.101665\" y=\"135.643575\" font-size=\"1.0rem\" font-weight=\"100\" text-anchor=\"middle\" transform=\"rotate(45,8.101665,135.643575)\">151</text>\n",
"</svg>\n",
" </td>\n",
" </tr>\n",
"</table></div></li><li class='xr-var-item'><div class='xr-var-name'><span>nir</span></div><div class='xr-var-dims'>(time, y, x)</div><div class='xr-var-dtype'>float32</div><div class='xr-var-preview xr-preview'>dask.array&lt;chunksize=(1, 2048, 2048), meta=np.ndarray&gt;</div><input id='attrs-92b727fd-e2e4-4e1a-9980-6f01df5c6880' class='xr-var-attrs-in' type='checkbox' disabled><label for='attrs-92b727fd-e2e4-4e1a-9980-6f01df5c6880' title='Show/Hide attributes'><svg class='icon xr-icon-file-text2'><use xlink:href='#icon-file-text2'></use></svg></label><input id='data-564e5080-5d18-4af0-ab2d-633ffc512bcc' class='xr-var-data-in' type='checkbox'><label for='data-564e5080-5d18-4af0-ab2d-633ffc512bcc' title='Show/Hide data repr'><svg class='icon xr-icon-database'><use xlink:href='#icon-database'></use></svg></label><div class='xr-var-attrs'><dl class='xr-attrs'></dl></div><div class='xr-var-data'><table>\n",
" <tr>\n",
" <td>\n",
" <table style=\"border-collapse: collapse;\">\n",
" <thead>\n",
" <tr>\n",
" <td> </td>\n",
" <th> Array </th>\n",
" <th> Chunk </th>\n",
" </tr>\n",
" </thead>\n",
" <tbody>\n",
" \n",
" <tr>\n",
" <th> Bytes </th>\n",
" <td> 49.43 GiB </td>\n",
" <td> 16.00 MiB </td>\n",
" </tr>\n",
" \n",
" <tr>\n",
" <th> Shape </th>\n",
" <td> (151, 8874, 9902) </td>\n",
" <td> (1, 2048, 2048) </td>\n",
" </tr>\n",
" <tr>\n",
" <th> Dask graph </th>\n",
" <td colspan=\"2\"> 3775 chunks in 8 graph layers </td>\n",
" </tr>\n",
" <tr>\n",
" <th> Data type </th>\n",
" <td colspan=\"2\"> float32 numpy.ndarray </td>\n",
" </tr>\n",
" </tbody>\n",
" </table>\n",
" </td>\n",
" <td>\n",
" <svg width=\"196\" height=\"173\" style=\"stroke:rgb(0,0,0);stroke-width:1\" >\n",
"\n",
" <!-- Horizontal lines -->\n",
" <line x1=\"10\" y1=\"0\" x2=\"26\" y2=\"16\" style=\"stroke-width:2\" />\n",
" <line x1=\"10\" y1=\"24\" x2=\"26\" y2=\"41\" />\n",
" <line x1=\"10\" y1=\"49\" x2=\"26\" y2=\"65\" />\n",
" <line x1=\"10\" y1=\"74\" x2=\"26\" y2=\"90\" />\n",
" <line x1=\"10\" y1=\"99\" x2=\"26\" y2=\"115\" />\n",
" <line x1=\"10\" y1=\"107\" x2=\"26\" y2=\"123\" style=\"stroke-width:2\" />\n",
"\n",
" <!-- Vertical lines -->\n",
" <line x1=\"10\" y1=\"0\" x2=\"10\" y2=\"107\" style=\"stroke-width:2\" />\n",
" <line x1=\"10\" y1=\"0\" x2=\"10\" y2=\"108\" />\n",
" <line x1=\"11\" y1=\"1\" x2=\"11\" y2=\"109\" />\n",
" <line x1=\"12\" y1=\"2\" x2=\"12\" y2=\"110\" />\n",
" <line x1=\"13\" y1=\"3\" x2=\"13\" y2=\"110\" />\n",
" <line x1=\"14\" y1=\"4\" x2=\"14\" y2=\"111\" />\n",
" <line x1=\"15\" y1=\"5\" x2=\"15\" y2=\"112\" />\n",
" <line x1=\"15\" y1=\"5\" x2=\"15\" y2=\"113\" />\n",
" <line x1=\"16\" y1=\"6\" x2=\"16\" y2=\"114\" />\n",
" <line x1=\"17\" y1=\"7\" x2=\"17\" y2=\"115\" />\n",
" <line x1=\"18\" y1=\"8\" x2=\"18\" y2=\"116\" />\n",
" <line x1=\"19\" y1=\"9\" x2=\"19\" y2=\"116\" />\n",
" <line x1=\"20\" y1=\"10\" x2=\"20\" y2=\"117\" />\n",
" <line x1=\"21\" y1=\"11\" x2=\"21\" y2=\"118\" />\n",
" <line x1=\"21\" y1=\"11\" x2=\"21\" y2=\"119\" />\n",
" <line x1=\"22\" y1=\"12\" x2=\"22\" y2=\"120\" />\n",
" <line x1=\"23\" y1=\"13\" x2=\"23\" y2=\"121\" />\n",
" <line x1=\"24\" y1=\"14\" x2=\"24\" y2=\"122\" />\n",
" <line x1=\"25\" y1=\"15\" x2=\"25\" y2=\"122\" />\n",
" <line x1=\"26\" y1=\"16\" x2=\"26\" y2=\"123\" style=\"stroke-width:2\" />\n",
"\n",
" <!-- Colored Rectangle -->\n",
" <polygon points=\"10.0,0.0 26.20332950438934,16.20332950438934 26.20332950438934,123.74524022949538 10.0,107.54191072510604\" style=\"fill:#8B4903A0;stroke-width:0\"/>\n",
"\n",
" <!-- Horizontal lines -->\n",
" <line x1=\"10\" y1=\"0\" x2=\"130\" y2=\"0\" style=\"stroke-width:2\" />\n",
" <line x1=\"10\" y1=\"0\" x2=\"130\" y2=\"0\" />\n",
" <line x1=\"11\" y1=\"1\" x2=\"131\" y2=\"1\" />\n",
" <line x1=\"12\" y1=\"2\" x2=\"132\" y2=\"2\" />\n",
" <line x1=\"13\" y1=\"3\" x2=\"133\" y2=\"3\" />\n",
" <line x1=\"14\" y1=\"4\" x2=\"134\" y2=\"4\" />\n",
" <line x1=\"15\" y1=\"5\" x2=\"135\" y2=\"5\" />\n",
" <line x1=\"15\" y1=\"5\" x2=\"135\" y2=\"5\" />\n",
" <line x1=\"16\" y1=\"6\" x2=\"136\" y2=\"6\" />\n",
" <line x1=\"17\" y1=\"7\" x2=\"137\" y2=\"7\" />\n",
" <line x1=\"18\" y1=\"8\" x2=\"138\" y2=\"8\" />\n",
" <line x1=\"19\" y1=\"9\" x2=\"139\" y2=\"9\" />\n",
" <line x1=\"20\" y1=\"10\" x2=\"140\" y2=\"10\" />\n",
" <line x1=\"21\" y1=\"11\" x2=\"141\" y2=\"11\" />\n",
" <line x1=\"21\" y1=\"11\" x2=\"141\" y2=\"11\" />\n",
" <line x1=\"22\" y1=\"12\" x2=\"142\" y2=\"12\" />\n",
" <line x1=\"23\" y1=\"13\" x2=\"143\" y2=\"13\" />\n",
" <line x1=\"24\" y1=\"14\" x2=\"144\" y2=\"14\" />\n",
" <line x1=\"25\" y1=\"15\" x2=\"145\" y2=\"15\" />\n",
" <line x1=\"26\" y1=\"16\" x2=\"146\" y2=\"16\" style=\"stroke-width:2\" />\n",
"\n",
" <!-- Vertical lines -->\n",
" <line x1=\"10\" y1=\"0\" x2=\"26\" y2=\"16\" style=\"stroke-width:2\" />\n",
" <line x1=\"34\" y1=\"0\" x2=\"51\" y2=\"16\" />\n",
" <line x1=\"59\" y1=\"0\" x2=\"75\" y2=\"16\" />\n",
" <line x1=\"84\" y1=\"0\" x2=\"100\" y2=\"16\" />\n",
" <line x1=\"109\" y1=\"0\" x2=\"125\" y2=\"16\" />\n",
" <line x1=\"130\" y1=\"0\" x2=\"146\" y2=\"16\" style=\"stroke-width:2\" />\n",
"\n",
" <!-- Colored Rectangle -->\n",
" <polygon points=\"10.0,0.0 130.0,0.0 146.20332950438933,16.20332950438934 26.20332950438934,16.20332950438934\" style=\"fill:#8B4903A0;stroke-width:0\"/>\n",
"\n",
" <!-- Horizontal lines -->\n",
" <line x1=\"26\" y1=\"16\" x2=\"146\" y2=\"16\" style=\"stroke-width:2\" />\n",
" <line x1=\"26\" y1=\"41\" x2=\"146\" y2=\"41\" />\n",
" <line x1=\"26\" y1=\"65\" x2=\"146\" y2=\"65\" />\n",
" <line x1=\"26\" y1=\"90\" x2=\"146\" y2=\"90\" />\n",
" <line x1=\"26\" y1=\"115\" x2=\"146\" y2=\"115\" />\n",
" <line x1=\"26\" y1=\"123\" x2=\"146\" y2=\"123\" style=\"stroke-width:2\" />\n",
"\n",
" <!-- Vertical lines -->\n",
" <line x1=\"26\" y1=\"16\" x2=\"26\" y2=\"123\" style=\"stroke-width:2\" />\n",
" <line x1=\"51\" y1=\"16\" x2=\"51\" y2=\"123\" />\n",
" <line x1=\"75\" y1=\"16\" x2=\"75\" y2=\"123\" />\n",
" <line x1=\"100\" y1=\"16\" x2=\"100\" y2=\"123\" />\n",
" <line x1=\"125\" y1=\"16\" x2=\"125\" y2=\"123\" />\n",
" <line x1=\"146\" y1=\"16\" x2=\"146\" y2=\"123\" style=\"stroke-width:2\" />\n",
"\n",
" <!-- Colored Rectangle -->\n",
" <polygon points=\"26.20332950438934,16.20332950438934 146.20332950438933,16.20332950438934 146.20332950438933,123.74524022949538 26.20332950438934,123.74524022949538\" style=\"fill:#ECB172A0;stroke-width:0\"/>\n",
"\n",
" <!-- Text -->\n",
" <text x=\"86.203330\" y=\"143.745240\" font-size=\"1.0rem\" font-weight=\"100\" text-anchor=\"middle\" >9902</text>\n",
" <text x=\"166.203330\" y=\"69.974285\" font-size=\"1.0rem\" font-weight=\"100\" text-anchor=\"middle\" transform=\"rotate(-90,166.203330,69.974285)\">8874</text>\n",
" <text x=\"8.101665\" y=\"135.643575\" font-size=\"1.0rem\" font-weight=\"100\" text-anchor=\"middle\" transform=\"rotate(45,8.101665,135.643575)\">151</text>\n",
"</svg>\n",
" </td>\n",
" </tr>\n",
"</table></div></li><li class='xr-var-item'><div class='xr-var-name'><span>scl</span></div><div class='xr-var-dims'>(time, y, x)</div><div class='xr-var-dtype'>uint8</div><div class='xr-var-preview xr-preview'>dask.array&lt;chunksize=(1, 2048, 2048), meta=np.ndarray&gt;</div><input id='attrs-3016cf27-1ad1-4479-92a4-f2e7cee029b9' class='xr-var-attrs-in' type='checkbox' ><label for='attrs-3016cf27-1ad1-4479-92a4-f2e7cee029b9' title='Show/Hide attributes'><svg class='icon xr-icon-file-text2'><use xlink:href='#icon-file-text2'></use></svg></label><input id='data-ebd073a7-1c15-4b70-8d4a-f1899268ac95' class='xr-var-data-in' type='checkbox'><label for='data-ebd073a7-1c15-4b70-8d4a-f1899268ac95' title='Show/Hide data repr'><svg class='icon xr-icon-database'><use xlink:href='#icon-database'></use></svg></label><div class='xr-var-attrs'><dl class='xr-attrs'><dt><span>units :</span></dt><dd>1</dd><dt><span>nodata :</span></dt><dd>0</dd><dt><span>flags_definition :</span></dt><dd>{&#x27;qa&#x27;: {&#x27;bits&#x27;: [0, 1, 2, 3, 4, 5, 6, 7], &#x27;values&#x27;: {&#x27;0&#x27;: &#x27;no data&#x27;, &#x27;1&#x27;: &#x27;saturated or defective&#x27;, &#x27;2&#x27;: &#x27;dark area pixels&#x27;, &#x27;3&#x27;: &#x27;cloud shadows&#x27;, &#x27;4&#x27;: &#x27;vegetation&#x27;, &#x27;5&#x27;: &#x27;bare soils&#x27;, &#x27;6&#x27;: &#x27;water&#x27;, &#x27;7&#x27;: &#x27;unclassified&#x27;, &#x27;8&#x27;: &#x27;cloud medium probability&#x27;, &#x27;9&#x27;: &#x27;cloud high probability&#x27;, &#x27;10&#x27;: &#x27;thin cirrus&#x27;, &#x27;11&#x27;: &#x27;snow or ice&#x27;}, &#x27;description&#x27;: &#x27;Sen2Cor Scene Classification&#x27;}}</dd><dt><span>crs :</span></dt><dd>EPSG:32648</dd><dt><span>grid_mapping :</span></dt><dd>spatial_ref</dd></dl></div><div class='xr-var-data'><table>\n",
" <tr>\n",
" <td>\n",
" <table style=\"border-collapse: collapse;\">\n",
" <thead>\n",
" <tr>\n",
" <td> </td>\n",
" <th> Array </th>\n",
" <th> Chunk </th>\n",
" </tr>\n",
" </thead>\n",
" <tbody>\n",
" \n",
" <tr>\n",
" <th> Bytes </th>\n",
" <td> 12.36 GiB </td>\n",
" <td> 4.00 MiB </td>\n",
" </tr>\n",
" \n",
" <tr>\n",
" <th> Shape </th>\n",
" <td> (151, 8874, 9902) </td>\n",
" <td> (1, 2048, 2048) </td>\n",
" </tr>\n",
" <tr>\n",
" <th> Dask graph </th>\n",
" <td colspan=\"2\"> 3775 chunks in 1 graph layer </td>\n",
" </tr>\n",
" <tr>\n",
" <th> Data type </th>\n",
" <td colspan=\"2\"> uint8 numpy.ndarray </td>\n",
" </tr>\n",
" </tbody>\n",
" </table>\n",
" </td>\n",
" <td>\n",
" <svg width=\"196\" height=\"173\" style=\"stroke:rgb(0,0,0);stroke-width:1\" >\n",
"\n",
" <!-- Horizontal lines -->\n",
" <line x1=\"10\" y1=\"0\" x2=\"26\" y2=\"16\" style=\"stroke-width:2\" />\n",
" <line x1=\"10\" y1=\"24\" x2=\"26\" y2=\"41\" />\n",
" <line x1=\"10\" y1=\"49\" x2=\"26\" y2=\"65\" />\n",
" <line x1=\"10\" y1=\"74\" x2=\"26\" y2=\"90\" />\n",
" <line x1=\"10\" y1=\"99\" x2=\"26\" y2=\"115\" />\n",
" <line x1=\"10\" y1=\"107\" x2=\"26\" y2=\"123\" style=\"stroke-width:2\" />\n",
"\n",
" <!-- Vertical lines -->\n",
" <line x1=\"10\" y1=\"0\" x2=\"10\" y2=\"107\" style=\"stroke-width:2\" />\n",
" <line x1=\"10\" y1=\"0\" x2=\"10\" y2=\"108\" />\n",
" <line x1=\"11\" y1=\"1\" x2=\"11\" y2=\"109\" />\n",
" <line x1=\"12\" y1=\"2\" x2=\"12\" y2=\"110\" />\n",
" <line x1=\"13\" y1=\"3\" x2=\"13\" y2=\"110\" />\n",
" <line x1=\"14\" y1=\"4\" x2=\"14\" y2=\"111\" />\n",
" <line x1=\"15\" y1=\"5\" x2=\"15\" y2=\"112\" />\n",
" <line x1=\"15\" y1=\"5\" x2=\"15\" y2=\"113\" />\n",
" <line x1=\"16\" y1=\"6\" x2=\"16\" y2=\"114\" />\n",
" <line x1=\"17\" y1=\"7\" x2=\"17\" y2=\"115\" />\n",
" <line x1=\"18\" y1=\"8\" x2=\"18\" y2=\"116\" />\n",
" <line x1=\"19\" y1=\"9\" x2=\"19\" y2=\"116\" />\n",
" <line x1=\"20\" y1=\"10\" x2=\"20\" y2=\"117\" />\n",
" <line x1=\"21\" y1=\"11\" x2=\"21\" y2=\"118\" />\n",
" <line x1=\"21\" y1=\"11\" x2=\"21\" y2=\"119\" />\n",
" <line x1=\"22\" y1=\"12\" x2=\"22\" y2=\"120\" />\n",
" <line x1=\"23\" y1=\"13\" x2=\"23\" y2=\"121\" />\n",
" <line x1=\"24\" y1=\"14\" x2=\"24\" y2=\"122\" />\n",
" <line x1=\"25\" y1=\"15\" x2=\"25\" y2=\"122\" />\n",
" <line x1=\"26\" y1=\"16\" x2=\"26\" y2=\"123\" style=\"stroke-width:2\" />\n",
"\n",
" <!-- Colored Rectangle -->\n",
" <polygon points=\"10.0,0.0 26.20332950438934,16.20332950438934 26.20332950438934,123.74524022949538 10.0,107.54191072510604\" style=\"fill:#8B4903A0;stroke-width:0\"/>\n",
"\n",
" <!-- Horizontal lines -->\n",
" <line x1=\"10\" y1=\"0\" x2=\"130\" y2=\"0\" style=\"stroke-width:2\" />\n",
" <line x1=\"10\" y1=\"0\" x2=\"130\" y2=\"0\" />\n",
" <line x1=\"11\" y1=\"1\" x2=\"131\" y2=\"1\" />\n",
" <line x1=\"12\" y1=\"2\" x2=\"132\" y2=\"2\" />\n",
" <line x1=\"13\" y1=\"3\" x2=\"133\" y2=\"3\" />\n",
" <line x1=\"14\" y1=\"4\" x2=\"134\" y2=\"4\" />\n",
" <line x1=\"15\" y1=\"5\" x2=\"135\" y2=\"5\" />\n",
" <line x1=\"15\" y1=\"5\" x2=\"135\" y2=\"5\" />\n",
" <line x1=\"16\" y1=\"6\" x2=\"136\" y2=\"6\" />\n",
" <line x1=\"17\" y1=\"7\" x2=\"137\" y2=\"7\" />\n",
" <line x1=\"18\" y1=\"8\" x2=\"138\" y2=\"8\" />\n",
" <line x1=\"19\" y1=\"9\" x2=\"139\" y2=\"9\" />\n",
" <line x1=\"20\" y1=\"10\" x2=\"140\" y2=\"10\" />\n",
" <line x1=\"21\" y1=\"11\" x2=\"141\" y2=\"11\" />\n",
" <line x1=\"21\" y1=\"11\" x2=\"141\" y2=\"11\" />\n",
" <line x1=\"22\" y1=\"12\" x2=\"142\" y2=\"12\" />\n",
" <line x1=\"23\" y1=\"13\" x2=\"143\" y2=\"13\" />\n",
" <line x1=\"24\" y1=\"14\" x2=\"144\" y2=\"14\" />\n",
" <line x1=\"25\" y1=\"15\" x2=\"145\" y2=\"15\" />\n",
" <line x1=\"26\" y1=\"16\" x2=\"146\" y2=\"16\" style=\"stroke-width:2\" />\n",
"\n",
" <!-- Vertical lines -->\n",
" <line x1=\"10\" y1=\"0\" x2=\"26\" y2=\"16\" style=\"stroke-width:2\" />\n",
" <line x1=\"34\" y1=\"0\" x2=\"51\" y2=\"16\" />\n",
" <line x1=\"59\" y1=\"0\" x2=\"75\" y2=\"16\" />\n",
" <line x1=\"84\" y1=\"0\" x2=\"100\" y2=\"16\" />\n",
" <line x1=\"109\" y1=\"0\" x2=\"125\" y2=\"16\" />\n",
" <line x1=\"130\" y1=\"0\" x2=\"146\" y2=\"16\" style=\"stroke-width:2\" />\n",
"\n",
" <!-- Colored Rectangle -->\n",
" <polygon points=\"10.0,0.0 130.0,0.0 146.20332950438933,16.20332950438934 26.20332950438934,16.20332950438934\" style=\"fill:#8B4903A0;stroke-width:0\"/>\n",
"\n",
" <!-- Horizontal lines -->\n",
" <line x1=\"26\" y1=\"16\" x2=\"146\" y2=\"16\" style=\"stroke-width:2\" />\n",
" <line x1=\"26\" y1=\"41\" x2=\"146\" y2=\"41\" />\n",
" <line x1=\"26\" y1=\"65\" x2=\"146\" y2=\"65\" />\n",
" <line x1=\"26\" y1=\"90\" x2=\"146\" y2=\"90\" />\n",
" <line x1=\"26\" y1=\"115\" x2=\"146\" y2=\"115\" />\n",
" <line x1=\"26\" y1=\"123\" x2=\"146\" y2=\"123\" style=\"stroke-width:2\" />\n",
"\n",
" <!-- Vertical lines -->\n",
" <line x1=\"26\" y1=\"16\" x2=\"26\" y2=\"123\" style=\"stroke-width:2\" />\n",
" <line x1=\"51\" y1=\"16\" x2=\"51\" y2=\"123\" />\n",
" <line x1=\"75\" y1=\"16\" x2=\"75\" y2=\"123\" />\n",
" <line x1=\"100\" y1=\"16\" x2=\"100\" y2=\"123\" />\n",
" <line x1=\"125\" y1=\"16\" x2=\"125\" y2=\"123\" />\n",
" <line x1=\"146\" y1=\"16\" x2=\"146\" y2=\"123\" style=\"stroke-width:2\" />\n",
"\n",
" <!-- Colored Rectangle -->\n",
" <polygon points=\"26.20332950438934,16.20332950438934 146.20332950438933,16.20332950438934 146.20332950438933,123.74524022949538 26.20332950438934,123.74524022949538\" style=\"fill:#ECB172A0;stroke-width:0\"/>\n",
"\n",
" <!-- Text -->\n",
" <text x=\"86.203330\" y=\"143.745240\" font-size=\"1.0rem\" font-weight=\"100\" text-anchor=\"middle\" >9902</text>\n",
" <text x=\"166.203330\" y=\"69.974285\" font-size=\"1.0rem\" font-weight=\"100\" text-anchor=\"middle\" transform=\"rotate(-90,166.203330,69.974285)\">8874</text>\n",
" <text x=\"8.101665\" y=\"135.643575\" font-size=\"1.0rem\" font-weight=\"100\" text-anchor=\"middle\" transform=\"rotate(45,8.101665,135.643575)\">151</text>\n",
"</svg>\n",
" </td>\n",
" </tr>\n",
"</table></div></li></ul></div></li><li class='xr-section-item'><input id='section-37fa4e13-ae84-4c2f-865a-01a499950fb2' class='xr-section-summary-in' type='checkbox' ><label for='section-37fa4e13-ae84-4c2f-865a-01a499950fb2' class='xr-section-summary' >Indexes: <span>(3)</span></label><div class='xr-section-inline-details'></div><div class='xr-section-details'><ul class='xr-var-list'><li class='xr-var-item'><div class='xr-index-name'><div>time</div></div><div class='xr-index-preview'>PandasIndex</div><div></div><input id='index-a94742d1-5e00-40b6-bab2-2e8f295598ec' class='xr-index-data-in' type='checkbox'/><label for='index-a94742d1-5e00-40b6-bab2-2e8f295598ec' title='Show/Hide index repr'><svg class='icon xr-icon-database'><use xlink:href='#icon-database'></use></svg></label><div class='xr-index-data'><pre>PandasIndex(DatetimeIndex([&#x27;2022-09-02 03:35:23.960000&#x27;, &#x27;2022-09-04 03:25:18.037000&#x27;,\n",
" &#x27;2022-09-07 03:35:13.646000&#x27;, &#x27;2022-09-09 03:25:27.617000&#x27;,\n",
" &#x27;2022-09-12 03:35:22.247000&#x27;, &#x27;2022-09-14 03:25:18.529000&#x27;,\n",
" &#x27;2022-09-17 03:35:13.648000&#x27;, &#x27;2022-09-19 03:25:24.773000&#x27;,\n",
" &#x27;2022-09-22 03:35:18.931000&#x27;, &#x27;2022-09-24 03:25:17.431000&#x27;,\n",
" ...\n",
" &#x27;2023-09-07 03:35:17.134000&#x27;, &#x27;2023-09-09 03:25:20.648000&#x27;,\n",
" &#x27;2023-09-12 03:35:15.326000&#x27;, &#x27;2023-09-14 03:25:35.755000&#x27;,\n",
" &#x27;2023-09-17 03:35:15.269000&#x27;, &#x27;2023-09-19 03:25:24.089000&#x27;,\n",
" &#x27;2023-09-22 03:35:15.439000&#x27;, &#x27;2023-09-24 03:25:18.524000&#x27;,\n",
" &#x27;2023-09-27 03:35:14.112000&#x27;, &#x27;2023-09-29 03:25:19.046000&#x27;],\n",
" dtype=&#x27;datetime64[ns]&#x27;, name=&#x27;time&#x27;, length=151, freq=None))</pre></div></li><li class='xr-var-item'><div class='xr-index-name'><div>y</div></div><div class='xr-index-preview'>PandasIndex</div><div></div><input id='index-b52d41aa-fd66-4296-aadc-f87d94926074' class='xr-index-data-in' type='checkbox'/><label for='index-b52d41aa-fd66-4296-aadc-f87d94926074' title='Show/Hide index repr'><svg class='icon xr-icon-database'><use xlink:href='#icon-database'></use></svg></label><div class='xr-index-data'><pre>PandasIndex(Index([1105735.0, 1105725.0, 1105715.0, 1105705.0, 1105695.0, 1105685.0,\n",
" 1105675.0, 1105665.0, 1105655.0, 1105645.0,\n",
" ...\n",
" 1017095.0, 1017085.0, 1017075.0, 1017065.0, 1017055.0, 1017045.0,\n",
" 1017035.0, 1017025.0, 1017015.0, 1017005.0],\n",
" dtype=&#x27;float64&#x27;, name=&#x27;y&#x27;, length=8874))</pre></div></li><li class='xr-var-item'><div class='xr-index-name'><div>x</div></div><div class='xr-index-preview'>PandasIndex</div><div></div><input id='index-a0f365e2-f4a4-42dc-a684-6df39c7aadc3' class='xr-index-data-in' type='checkbox'/><label for='index-a0f365e2-f4a4-42dc-a684-6df39c7aadc3' title='Show/Hide index repr'><svg class='icon xr-icon-database'><use xlink:href='#icon-database'></use></svg></label><div class='xr-index-data'><pre>PandasIndex(Index([554795.0, 554805.0, 554815.0, 554825.0, 554835.0, 554845.0, 554855.0,\n",
" 554865.0, 554875.0, 554885.0,\n",
" ...\n",
" 653715.0, 653725.0, 653735.0, 653745.0, 653755.0, 653765.0, 653775.0,\n",
" 653785.0, 653795.0, 653805.0],\n",
" dtype=&#x27;float64&#x27;, name=&#x27;x&#x27;, length=9902))</pre></div></li></ul></div></li><li class='xr-section-item'><input id='section-77319c5a-a28c-4878-9870-45d92744d1c1' class='xr-section-summary-in' type='checkbox' checked><label for='section-77319c5a-a28c-4878-9870-45d92744d1c1' class='xr-section-summary' >Attributes: <span>(2)</span></label><div class='xr-section-inline-details'></div><div class='xr-section-details'><dl class='xr-attrs'><dt><span>crs :</span></dt><dd>EPSG:32648</dd><dt><span>grid_mapping :</span></dt><dd>spatial_ref</dd></dl></div></li></ul></div></div>"
],
"text/plain": [
"<xarray.Dataset>\n",
"Dimensions: (time: 151, y: 8874, x: 9902)\n",
"Coordinates:\n",
" * time (time) datetime64[ns] 2022-09-02T03:35:23.960000 ... 2023-09...\n",
" * y (y) float64 1.106e+06 1.106e+06 ... 1.017e+06 1.017e+06\n",
" * x (x) float64 5.548e+05 5.548e+05 ... 6.538e+05 6.538e+05\n",
" spatial_ref int32 32648\n",
"Data variables:\n",
" red (time, y, x) float32 dask.array<chunksize=(1, 2048, 2048), meta=np.ndarray>\n",
" nir (time, y, x) float32 dask.array<chunksize=(1, 2048, 2048), meta=np.ndarray>\n",
" scl (time, y, x) uint8 dask.array<chunksize=(1, 2048, 2048), meta=np.ndarray>\n",
"Attributes:\n",
" crs: EPSG:32648\n",
" grid_mapping: spatial_ref"
]
},
"metadata": {},
"output_type": "display_data"
},
{
"name": "stdout",
"output_type": "stream",
"text": [
"CPU times: user 1.88 s, sys: 5.33 ms, total: 1.88 s\n",
"Wall time: 1.96 s\n"
]
}
],
"source": [
"%%time\n",
"# The replacement \"dc.load()\" function for this product\n",
"data = load_s2l2a_with_offset(\n",
" dc,\n",
" query | load_params # Combine the two dicts that contain our search and load parameters\n",
")\n",
"\n",
"# This line prints the total size of the dataset hat was loaded\n",
"notebook_utils.heading(notebook_utils.xarray_object_size(data))\n",
"\n",
"display(data)"
]
},
{
"cell_type": "code",
"execution_count": 21,
"id": "21ea0244-f56e-4fa2-88ca-004e9cdf3d1a",
"metadata": {
"tags": []
},
"outputs": [
{
"data": {
"text/html": [
"<div>\n",
"<style scoped>\n",
" .dataframe tbody tr th:only-of-type {\n",
" vertical-align: middle;\n",
" }\n",
"\n",
" .dataframe tbody tr th {\n",
" vertical-align: top;\n",
" }\n",
"\n",
" .dataframe thead th {\n",
" text-align: right;\n",
" }\n",
"</style>\n",
"<table border=\"1\" class=\"dataframe\">\n",
" <thead>\n",
" <tr style=\"text-align: right;\">\n",
" <th></th>\n",
" <th>bits</th>\n",
" <th>values</th>\n",
" <th>description</th>\n",
" </tr>\n",
" </thead>\n",
" <tbody>\n",
" <tr>\n",
" <th>qa</th>\n",
" <td>[0, 1, 2, 3, 4, 5, 6, 7]</td>\n",
" <td>{'0': 'no data', '1': 'saturated or defective'...</td>\n",
" <td>Sen2Cor Scene Classification</td>\n",
" </tr>\n",
" </tbody>\n",
"</table>\n",
"</div>"
],
"text/plain": [
" bits \\\n",
"qa [0, 1, 2, 3, 4, 5, 6, 7] \n",
"\n",
" values \\\n",
"qa {'0': 'no data', '1': 'saturated or defective'... \n",
"\n",
" description \n",
"qa Sen2Cor Scene Classification "
]
},
"metadata": {},
"output_type": "display_data"
},
{
"data": {
"text/plain": [
"{'0': 'no data',\n",
" '1': 'saturated or defective',\n",
" '2': 'dark area pixels',\n",
" '3': 'cloud shadows',\n",
" '4': 'vegetation',\n",
" '5': 'bare soils',\n",
" '6': 'water',\n",
" '7': 'unclassified',\n",
" '8': 'cloud medium probability',\n",
" '9': 'cloud high probability',\n",
" '10': 'thin cirrus',\n",
" '11': 'snow or ice'}"
]
},
"metadata": {},
"output_type": "display_data"
},
{
"name": "stdout",
"output_type": "stream",
"text": [
"CPU times: user 1.22 s, sys: 17 ms, total: 1.24 s\n",
"Wall time: 1.23 s\n"
]
},
{
"data": {
"application/vnd.jupyter.widget-view+json": {
"model_id": "ee4b4a42a93d4247aa6ae5ef26c8d079",
"version_major": 2,
"version_minor": 0
},
"text/plain": [
"VBox()"
]
},
"metadata": {},
"output_type": "display_data"
}
],
"source": [
"%%time\n",
"# Tiến hành loại bỏ các vị trí bị mây ảnh hưởng\n",
"result = mask_clean(data)\n",
"progress(result)"
]
},
{
"cell_type": "code",
"execution_count": 22,
"id": "7c06fce4-a15c-4878-a891-54a5a0487726",
"metadata": {
"tags": []
},
"outputs": [
{
"data": {
"text/html": [
"<div><svg style=\"position: absolute; width: 0; height: 0; overflow: hidden\">\n",
"<defs>\n",
"<symbol id=\"icon-database\" viewBox=\"0 0 32 32\">\n",
"<path d=\"M16 0c-8.837 0-16 2.239-16 5v4c0 2.761 7.163 5 16 5s16-2.239 16-5v-4c0-2.761-7.163-5-16-5z\"></path>\n",
"<path d=\"M16 17c-8.837 0-16-2.239-16-5v6c0 2.761 7.163 5 16 5s16-2.239 16-5v-6c0 2.761-7.163 5-16 5z\"></path>\n",
"<path d=\"M16 26c-8.837 0-16-2.239-16-5v6c0 2.761 7.163 5 16 5s16-2.239 16-5v-6c0 2.761-7.163 5-16 5z\"></path>\n",
"</symbol>\n",
"<symbol id=\"icon-file-text2\" viewBox=\"0 0 32 32\">\n",
"<path d=\"M28.681 7.159c-0.694-0.947-1.662-2.053-2.724-3.116s-2.169-2.030-3.116-2.724c-1.612-1.182-2.393-1.319-2.841-1.319h-15.5c-1.378 0-2.5 1.121-2.5 2.5v27c0 1.378 1.122 2.5 2.5 2.5h23c1.378 0 2.5-1.122 2.5-2.5v-19.5c0-0.448-0.137-1.23-1.319-2.841zM24.543 5.457c0.959 0.959 1.712 1.825 2.268 2.543h-4.811v-4.811c0.718 0.556 1.584 1.309 2.543 2.268zM28 29.5c0 0.271-0.229 0.5-0.5 0.5h-23c-0.271 0-0.5-0.229-0.5-0.5v-27c0-0.271 0.229-0.5 0.5-0.5 0 0 15.499-0 15.5 0v7c0 0.552 0.448 1 1 1h7v19.5z\"></path>\n",
"<path d=\"M23 26h-14c-0.552 0-1-0.448-1-1s0.448-1 1-1h14c0.552 0 1 0.448 1 1s-0.448 1-1 1z\"></path>\n",
"<path d=\"M23 22h-14c-0.552 0-1-0.448-1-1s0.448-1 1-1h14c0.552 0 1 0.448 1 1s-0.448 1-1 1z\"></path>\n",
"<path d=\"M23 18h-14c-0.552 0-1-0.448-1-1s0.448-1 1-1h14c0.552 0 1 0.448 1 1s-0.448 1-1 1z\"></path>\n",
"</symbol>\n",
"</defs>\n",
"</svg>\n",
"<style>/* CSS stylesheet for displaying xarray objects in jupyterlab.\n",
" *\n",
" */\n",
"\n",
":root {\n",
" --xr-font-color0: var(--jp-content-font-color0, rgba(0, 0, 0, 1));\n",
" --xr-font-color2: var(--jp-content-font-color2, rgba(0, 0, 0, 0.54));\n",
" --xr-font-color3: var(--jp-content-font-color3, rgba(0, 0, 0, 0.38));\n",
" --xr-border-color: var(--jp-border-color2, #e0e0e0);\n",
" --xr-disabled-color: var(--jp-layout-color3, #bdbdbd);\n",
" --xr-background-color: var(--jp-layout-color0, white);\n",
" --xr-background-color-row-even: var(--jp-layout-color1, white);\n",
" --xr-background-color-row-odd: var(--jp-layout-color2, #eeeeee);\n",
"}\n",
"\n",
"html[theme=dark],\n",
"body[data-theme=dark],\n",
"body.vscode-dark {\n",
" --xr-font-color0: rgba(255, 255, 255, 1);\n",
" --xr-font-color2: rgba(255, 255, 255, 0.54);\n",
" --xr-font-color3: rgba(255, 255, 255, 0.38);\n",
" --xr-border-color: #1F1F1F;\n",
" --xr-disabled-color: #515151;\n",
" --xr-background-color: #111111;\n",
" --xr-background-color-row-even: #111111;\n",
" --xr-background-color-row-odd: #313131;\n",
"}\n",
"\n",
".xr-wrap {\n",
" display: block !important;\n",
" min-width: 300px;\n",
" max-width: 700px;\n",
"}\n",
"\n",
".xr-text-repr-fallback {\n",
" /* fallback to plain text repr when CSS is not injected (untrusted notebook) */\n",
" display: none;\n",
"}\n",
"\n",
".xr-header {\n",
" padding-top: 6px;\n",
" padding-bottom: 6px;\n",
" margin-bottom: 4px;\n",
" border-bottom: solid 1px var(--xr-border-color);\n",
"}\n",
"\n",
".xr-header > div,\n",
".xr-header > ul {\n",
" display: inline;\n",
" margin-top: 0;\n",
" margin-bottom: 0;\n",
"}\n",
"\n",
".xr-obj-type,\n",
".xr-array-name {\n",
" margin-left: 2px;\n",
" margin-right: 10px;\n",
"}\n",
"\n",
".xr-obj-type {\n",
" color: var(--xr-font-color2);\n",
"}\n",
"\n",
".xr-sections {\n",
" padding-left: 0 !important;\n",
" display: grid;\n",
" grid-template-columns: 150px auto auto 1fr 20px 20px;\n",
"}\n",
"\n",
".xr-section-item {\n",
" display: contents;\n",
"}\n",
"\n",
".xr-section-item input {\n",
" display: none;\n",
"}\n",
"\n",
".xr-section-item input + label {\n",
" color: var(--xr-disabled-color);\n",
"}\n",
"\n",
".xr-section-item input:enabled + label {\n",
" cursor: pointer;\n",
" color: var(--xr-font-color2);\n",
"}\n",
"\n",
".xr-section-item input:enabled + label:hover {\n",
" color: var(--xr-font-color0);\n",
"}\n",
"\n",
".xr-section-summary {\n",
" grid-column: 1;\n",
" color: var(--xr-font-color2);\n",
" font-weight: 500;\n",
"}\n",
"\n",
".xr-section-summary > span {\n",
" display: inline-block;\n",
" padding-left: 0.5em;\n",
"}\n",
"\n",
".xr-section-summary-in:disabled + label {\n",
" color: var(--xr-font-color2);\n",
"}\n",
"\n",
".xr-section-summary-in + label:before {\n",
" display: inline-block;\n",
" content: '►';\n",
" font-size: 11px;\n",
" width: 15px;\n",
" text-align: center;\n",
"}\n",
"\n",
".xr-section-summary-in:disabled + label:before {\n",
" color: var(--xr-disabled-color);\n",
"}\n",
"\n",
".xr-section-summary-in:checked + label:before {\n",
" content: '▼';\n",
"}\n",
"\n",
".xr-section-summary-in:checked + label > span {\n",
" display: none;\n",
"}\n",
"\n",
".xr-section-summary,\n",
".xr-section-inline-details {\n",
" padding-top: 4px;\n",
" padding-bottom: 4px;\n",
"}\n",
"\n",
".xr-section-inline-details {\n",
" grid-column: 2 / -1;\n",
"}\n",
"\n",
".xr-section-details {\n",
" display: none;\n",
" grid-column: 1 / -1;\n",
" margin-bottom: 5px;\n",
"}\n",
"\n",
".xr-section-summary-in:checked ~ .xr-section-details {\n",
" display: contents;\n",
"}\n",
"\n",
".xr-array-wrap {\n",
" grid-column: 1 / -1;\n",
" display: grid;\n",
" grid-template-columns: 20px auto;\n",
"}\n",
"\n",
".xr-array-wrap > label {\n",
" grid-column: 1;\n",
" vertical-align: top;\n",
"}\n",
"\n",
".xr-preview {\n",
" color: var(--xr-font-color3);\n",
"}\n",
"\n",
".xr-array-preview,\n",
".xr-array-data {\n",
" padding: 0 5px !important;\n",
" grid-column: 2;\n",
"}\n",
"\n",
".xr-array-data,\n",
".xr-array-in:checked ~ .xr-array-preview {\n",
" display: none;\n",
"}\n",
"\n",
".xr-array-in:checked ~ .xr-array-data,\n",
".xr-array-preview {\n",
" display: inline-block;\n",
"}\n",
"\n",
".xr-dim-list {\n",
" display: inline-block !important;\n",
" list-style: none;\n",
" padding: 0 !important;\n",
" margin: 0;\n",
"}\n",
"\n",
".xr-dim-list li {\n",
" display: inline-block;\n",
" padding: 0;\n",
" margin: 0;\n",
"}\n",
"\n",
".xr-dim-list:before {\n",
" content: '(';\n",
"}\n",
"\n",
".xr-dim-list:after {\n",
" content: ')';\n",
"}\n",
"\n",
".xr-dim-list li:not(:last-child):after {\n",
" content: ',';\n",
" padding-right: 5px;\n",
"}\n",
"\n",
".xr-has-index {\n",
" font-weight: bold;\n",
"}\n",
"\n",
".xr-var-list,\n",
".xr-var-item {\n",
" display: contents;\n",
"}\n",
"\n",
".xr-var-item > div,\n",
".xr-var-item label,\n",
".xr-var-item > .xr-var-name span {\n",
" background-color: var(--xr-background-color-row-even);\n",
" margin-bottom: 0;\n",
"}\n",
"\n",
".xr-var-item > .xr-var-name:hover span {\n",
" padding-right: 5px;\n",
"}\n",
"\n",
".xr-var-list > li:nth-child(odd) > div,\n",
".xr-var-list > li:nth-child(odd) > label,\n",
".xr-var-list > li:nth-child(odd) > .xr-var-name span {\n",
" background-color: var(--xr-background-color-row-odd);\n",
"}\n",
"\n",
".xr-var-name {\n",
" grid-column: 1;\n",
"}\n",
"\n",
".xr-var-dims {\n",
" grid-column: 2;\n",
"}\n",
"\n",
".xr-var-dtype {\n",
" grid-column: 3;\n",
" text-align: right;\n",
" color: var(--xr-font-color2);\n",
"}\n",
"\n",
".xr-var-preview {\n",
" grid-column: 4;\n",
"}\n",
"\n",
".xr-index-preview {\n",
" grid-column: 2 / 5;\n",
" color: var(--xr-font-color2);\n",
"}\n",
"\n",
".xr-var-name,\n",
".xr-var-dims,\n",
".xr-var-dtype,\n",
".xr-preview,\n",
".xr-attrs dt {\n",
" white-space: nowrap;\n",
" overflow: hidden;\n",
" text-overflow: ellipsis;\n",
" padding-right: 10px;\n",
"}\n",
"\n",
".xr-var-name:hover,\n",
".xr-var-dims:hover,\n",
".xr-var-dtype:hover,\n",
".xr-attrs dt:hover {\n",
" overflow: visible;\n",
" width: auto;\n",
" z-index: 1;\n",
"}\n",
"\n",
".xr-var-attrs,\n",
".xr-var-data,\n",
".xr-index-data {\n",
" display: none;\n",
" background-color: var(--xr-background-color) !important;\n",
" padding-bottom: 5px !important;\n",
"}\n",
"\n",
".xr-var-attrs-in:checked ~ .xr-var-attrs,\n",
".xr-var-data-in:checked ~ .xr-var-data,\n",
".xr-index-data-in:checked ~ .xr-index-data {\n",
" display: block;\n",
"}\n",
"\n",
".xr-var-data > table {\n",
" float: right;\n",
"}\n",
"\n",
".xr-var-name span,\n",
".xr-var-data,\n",
".xr-index-name div,\n",
".xr-index-data,\n",
".xr-attrs {\n",
" padding-left: 25px !important;\n",
"}\n",
"\n",
".xr-attrs,\n",
".xr-var-attrs,\n",
".xr-var-data,\n",
".xr-index-data {\n",
" grid-column: 1 / -1;\n",
"}\n",
"\n",
"dl.xr-attrs {\n",
" padding: 0;\n",
" margin: 0;\n",
" display: grid;\n",
" grid-template-columns: 125px auto;\n",
"}\n",
"\n",
".xr-attrs dt,\n",
".xr-attrs dd {\n",
" padding: 0;\n",
" margin: 0;\n",
" float: left;\n",
" padding-right: 10px;\n",
" width: auto;\n",
"}\n",
"\n",
".xr-attrs dt {\n",
" font-weight: normal;\n",
" grid-column: 1;\n",
"}\n",
"\n",
".xr-attrs dt:hover span {\n",
" display: inline-block;\n",
" background: var(--xr-background-color);\n",
" padding-right: 10px;\n",
"}\n",
"\n",
".xr-attrs dd {\n",
" grid-column: 2;\n",
" white-space: pre-wrap;\n",
" word-break: break-all;\n",
"}\n",
"\n",
".xr-icon-database,\n",
".xr-icon-file-text2,\n",
".xr-no-icon {\n",
" display: inline-block;\n",
" vertical-align: middle;\n",
" width: 1em;\n",
" height: 1.5em !important;\n",
" stroke-width: 0;\n",
" stroke: currentColor;\n",
" fill: currentColor;\n",
"}\n",
"</style><pre class='xr-text-repr-fallback'>&lt;xarray.DataArray &#x27;NDVI&#x27; (time: 151, y: 8874, x: 9902)&gt;\n",
"dask.array&lt;truediv, shape=(151, 8874, 9902), dtype=float32, chunksize=(1, 2048, 2048), chunktype=numpy.ndarray&gt;\n",
"Coordinates:\n",
" * time (time) datetime64[ns] 2022-09-02T03:35:23.960000 ... 2023-09...\n",
" * y (y) float64 1.106e+06 1.106e+06 ... 1.017e+06 1.017e+06\n",
" * x (x) float64 5.548e+05 5.548e+05 ... 6.538e+05 6.538e+05\n",
" spatial_ref int32 32648</pre><div class='xr-wrap' style='display:none'><div class='xr-header'><div class='xr-obj-type'>xarray.DataArray</div><div class='xr-array-name'>'NDVI'</div><ul class='xr-dim-list'><li><span class='xr-has-index'>time</span>: 151</li><li><span class='xr-has-index'>y</span>: 8874</li><li><span class='xr-has-index'>x</span>: 9902</li></ul></div><ul class='xr-sections'><li class='xr-section-item'><div class='xr-array-wrap'><input id='section-830e6993-17a1-43e9-9669-d6d30a5695b6' class='xr-array-in' type='checkbox' checked><label for='section-830e6993-17a1-43e9-9669-d6d30a5695b6' title='Show/hide data repr'><svg class='icon xr-icon-database'><use xlink:href='#icon-database'></use></svg></label><div class='xr-array-preview xr-preview'><span>dask.array&lt;chunksize=(1, 2048, 2048), meta=np.ndarray&gt;</span></div><div class='xr-array-data'><table>\n",
" <tr>\n",
" <td>\n",
" <table style=\"border-collapse: collapse;\">\n",
" <thead>\n",
" <tr>\n",
" <td> </td>\n",
" <th> Array </th>\n",
" <th> Chunk </th>\n",
" </tr>\n",
" </thead>\n",
" <tbody>\n",
" \n",
" <tr>\n",
" <th> Bytes </th>\n",
" <td> 49.43 GiB </td>\n",
" <td> 16.00 MiB </td>\n",
" </tr>\n",
" \n",
" <tr>\n",
" <th> Shape </th>\n",
" <td> (151, 8874, 9902) </td>\n",
" <td> (1, 2048, 2048) </td>\n",
" </tr>\n",
" <tr>\n",
" <th> Dask graph </th>\n",
" <td colspan=\"2\"> 3775 chunks in 7 graph layers </td>\n",
" </tr>\n",
" <tr>\n",
" <th> Data type </th>\n",
" <td colspan=\"2\"> float32 numpy.ndarray </td>\n",
" </tr>\n",
" </tbody>\n",
" </table>\n",
" </td>\n",
" <td>\n",
" <svg width=\"196\" height=\"173\" style=\"stroke:rgb(0,0,0);stroke-width:1\" >\n",
"\n",
" <!-- Horizontal lines -->\n",
" <line x1=\"10\" y1=\"0\" x2=\"26\" y2=\"16\" style=\"stroke-width:2\" />\n",
" <line x1=\"10\" y1=\"24\" x2=\"26\" y2=\"41\" />\n",
" <line x1=\"10\" y1=\"49\" x2=\"26\" y2=\"65\" />\n",
" <line x1=\"10\" y1=\"74\" x2=\"26\" y2=\"90\" />\n",
" <line x1=\"10\" y1=\"99\" x2=\"26\" y2=\"115\" />\n",
" <line x1=\"10\" y1=\"107\" x2=\"26\" y2=\"123\" style=\"stroke-width:2\" />\n",
"\n",
" <!-- Vertical lines -->\n",
" <line x1=\"10\" y1=\"0\" x2=\"10\" y2=\"107\" style=\"stroke-width:2\" />\n",
" <line x1=\"10\" y1=\"0\" x2=\"10\" y2=\"108\" />\n",
" <line x1=\"11\" y1=\"1\" x2=\"11\" y2=\"109\" />\n",
" <line x1=\"12\" y1=\"2\" x2=\"12\" y2=\"110\" />\n",
" <line x1=\"13\" y1=\"3\" x2=\"13\" y2=\"110\" />\n",
" <line x1=\"14\" y1=\"4\" x2=\"14\" y2=\"111\" />\n",
" <line x1=\"15\" y1=\"5\" x2=\"15\" y2=\"112\" />\n",
" <line x1=\"15\" y1=\"5\" x2=\"15\" y2=\"113\" />\n",
" <line x1=\"16\" y1=\"6\" x2=\"16\" y2=\"114\" />\n",
" <line x1=\"17\" y1=\"7\" x2=\"17\" y2=\"115\" />\n",
" <line x1=\"18\" y1=\"8\" x2=\"18\" y2=\"116\" />\n",
" <line x1=\"19\" y1=\"9\" x2=\"19\" y2=\"116\" />\n",
" <line x1=\"20\" y1=\"10\" x2=\"20\" y2=\"117\" />\n",
" <line x1=\"21\" y1=\"11\" x2=\"21\" y2=\"118\" />\n",
" <line x1=\"21\" y1=\"11\" x2=\"21\" y2=\"119\" />\n",
" <line x1=\"22\" y1=\"12\" x2=\"22\" y2=\"120\" />\n",
" <line x1=\"23\" y1=\"13\" x2=\"23\" y2=\"121\" />\n",
" <line x1=\"24\" y1=\"14\" x2=\"24\" y2=\"122\" />\n",
" <line x1=\"25\" y1=\"15\" x2=\"25\" y2=\"122\" />\n",
" <line x1=\"26\" y1=\"16\" x2=\"26\" y2=\"123\" style=\"stroke-width:2\" />\n",
"\n",
" <!-- Colored Rectangle -->\n",
" <polygon points=\"10.0,0.0 26.20332950438934,16.20332950438934 26.20332950438934,123.74524022949538 10.0,107.54191072510604\" style=\"fill:#8B4903A0;stroke-width:0\"/>\n",
"\n",
" <!-- Horizontal lines -->\n",
" <line x1=\"10\" y1=\"0\" x2=\"130\" y2=\"0\" style=\"stroke-width:2\" />\n",
" <line x1=\"10\" y1=\"0\" x2=\"130\" y2=\"0\" />\n",
" <line x1=\"11\" y1=\"1\" x2=\"131\" y2=\"1\" />\n",
" <line x1=\"12\" y1=\"2\" x2=\"132\" y2=\"2\" />\n",
" <line x1=\"13\" y1=\"3\" x2=\"133\" y2=\"3\" />\n",
" <line x1=\"14\" y1=\"4\" x2=\"134\" y2=\"4\" />\n",
" <line x1=\"15\" y1=\"5\" x2=\"135\" y2=\"5\" />\n",
" <line x1=\"15\" y1=\"5\" x2=\"135\" y2=\"5\" />\n",
" <line x1=\"16\" y1=\"6\" x2=\"136\" y2=\"6\" />\n",
" <line x1=\"17\" y1=\"7\" x2=\"137\" y2=\"7\" />\n",
" <line x1=\"18\" y1=\"8\" x2=\"138\" y2=\"8\" />\n",
" <line x1=\"19\" y1=\"9\" x2=\"139\" y2=\"9\" />\n",
" <line x1=\"20\" y1=\"10\" x2=\"140\" y2=\"10\" />\n",
" <line x1=\"21\" y1=\"11\" x2=\"141\" y2=\"11\" />\n",
" <line x1=\"21\" y1=\"11\" x2=\"141\" y2=\"11\" />\n",
" <line x1=\"22\" y1=\"12\" x2=\"142\" y2=\"12\" />\n",
" <line x1=\"23\" y1=\"13\" x2=\"143\" y2=\"13\" />\n",
" <line x1=\"24\" y1=\"14\" x2=\"144\" y2=\"14\" />\n",
" <line x1=\"25\" y1=\"15\" x2=\"145\" y2=\"15\" />\n",
" <line x1=\"26\" y1=\"16\" x2=\"146\" y2=\"16\" style=\"stroke-width:2\" />\n",
"\n",
" <!-- Vertical lines -->\n",
" <line x1=\"10\" y1=\"0\" x2=\"26\" y2=\"16\" style=\"stroke-width:2\" />\n",
" <line x1=\"34\" y1=\"0\" x2=\"51\" y2=\"16\" />\n",
" <line x1=\"59\" y1=\"0\" x2=\"75\" y2=\"16\" />\n",
" <line x1=\"84\" y1=\"0\" x2=\"100\" y2=\"16\" />\n",
" <line x1=\"109\" y1=\"0\" x2=\"125\" y2=\"16\" />\n",
" <line x1=\"130\" y1=\"0\" x2=\"146\" y2=\"16\" style=\"stroke-width:2\" />\n",
"\n",
" <!-- Colored Rectangle -->\n",
" <polygon points=\"10.0,0.0 130.0,0.0 146.20332950438933,16.20332950438934 26.20332950438934,16.20332950438934\" style=\"fill:#8B4903A0;stroke-width:0\"/>\n",
"\n",
" <!-- Horizontal lines -->\n",
" <line x1=\"26\" y1=\"16\" x2=\"146\" y2=\"16\" style=\"stroke-width:2\" />\n",
" <line x1=\"26\" y1=\"41\" x2=\"146\" y2=\"41\" />\n",
" <line x1=\"26\" y1=\"65\" x2=\"146\" y2=\"65\" />\n",
" <line x1=\"26\" y1=\"90\" x2=\"146\" y2=\"90\" />\n",
" <line x1=\"26\" y1=\"115\" x2=\"146\" y2=\"115\" />\n",
" <line x1=\"26\" y1=\"123\" x2=\"146\" y2=\"123\" style=\"stroke-width:2\" />\n",
"\n",
" <!-- Vertical lines -->\n",
" <line x1=\"26\" y1=\"16\" x2=\"26\" y2=\"123\" style=\"stroke-width:2\" />\n",
" <line x1=\"51\" y1=\"16\" x2=\"51\" y2=\"123\" />\n",
" <line x1=\"75\" y1=\"16\" x2=\"75\" y2=\"123\" />\n",
" <line x1=\"100\" y1=\"16\" x2=\"100\" y2=\"123\" />\n",
" <line x1=\"125\" y1=\"16\" x2=\"125\" y2=\"123\" />\n",
" <line x1=\"146\" y1=\"16\" x2=\"146\" y2=\"123\" style=\"stroke-width:2\" />\n",
"\n",
" <!-- Colored Rectangle -->\n",
" <polygon points=\"26.20332950438934,16.20332950438934 146.20332950438933,16.20332950438934 146.20332950438933,123.74524022949538 26.20332950438934,123.74524022949538\" style=\"fill:#ECB172A0;stroke-width:0\"/>\n",
"\n",
" <!-- Text -->\n",
" <text x=\"86.203330\" y=\"143.745240\" font-size=\"1.0rem\" font-weight=\"100\" text-anchor=\"middle\" >9902</text>\n",
" <text x=\"166.203330\" y=\"69.974285\" font-size=\"1.0rem\" font-weight=\"100\" text-anchor=\"middle\" transform=\"rotate(-90,166.203330,69.974285)\">8874</text>\n",
" <text x=\"8.101665\" y=\"135.643575\" font-size=\"1.0rem\" font-weight=\"100\" text-anchor=\"middle\" transform=\"rotate(45,8.101665,135.643575)\">151</text>\n",
"</svg>\n",
" </td>\n",
" </tr>\n",
"</table></div></div></li><li class='xr-section-item'><input id='section-0fd37716-bd6e-49a1-98b9-c93375504726' class='xr-section-summary-in' type='checkbox' checked><label for='section-0fd37716-bd6e-49a1-98b9-c93375504726' class='xr-section-summary' >Coordinates: <span>(4)</span></label><div class='xr-section-inline-details'></div><div class='xr-section-details'><ul class='xr-var-list'><li class='xr-var-item'><div class='xr-var-name'><span class='xr-has-index'>time</span></div><div class='xr-var-dims'>(time)</div><div class='xr-var-dtype'>datetime64[ns]</div><div class='xr-var-preview xr-preview'>2022-09-02T03:35:23.960000 ... 2...</div><input id='attrs-0880cc1f-4074-49d4-b600-c9419722bd62' class='xr-var-attrs-in' type='checkbox' ><label for='attrs-0880cc1f-4074-49d4-b600-c9419722bd62' title='Show/Hide attributes'><svg class='icon xr-icon-file-text2'><use xlink:href='#icon-file-text2'></use></svg></label><input id='data-185d0da7-efc0-416b-afbf-b6217457e985' class='xr-var-data-in' type='checkbox'><label for='data-185d0da7-efc0-416b-afbf-b6217457e985' title='Show/Hide data repr'><svg class='icon xr-icon-database'><use xlink:href='#icon-database'></use></svg></label><div class='xr-var-attrs'><dl class='xr-attrs'><dt><span>units :</span></dt><dd>seconds since 1970-01-01 00:00:00</dd></dl></div><div class='xr-var-data'><pre>array([&#x27;2022-09-02T03:35:23.960000000&#x27;, &#x27;2022-09-04T03:25:18.037000000&#x27;,\n",
" &#x27;2022-09-07T03:35:13.646000000&#x27;, &#x27;2022-09-09T03:25:27.617000000&#x27;,\n",
" &#x27;2022-09-12T03:35:22.247000000&#x27;, &#x27;2022-09-14T03:25:18.529000000&#x27;,\n",
" &#x27;2022-09-17T03:35:13.648000000&#x27;, &#x27;2022-09-19T03:25:24.773000000&#x27;,\n",
" &#x27;2022-09-22T03:35:18.931000000&#x27;, &#x27;2022-09-24T03:25:17.431000000&#x27;,\n",
" &#x27;2022-09-27T03:35:12.140000000&#x27;, &#x27;2022-09-29T03:25:23.829000000&#x27;,\n",
" &#x27;2022-10-02T03:35:19.048000000&#x27;, &#x27;2022-10-07T03:35:09.133000000&#x27;,\n",
" &#x27;2022-10-09T03:25:22.746000000&#x27;, &#x27;2022-10-12T03:35:17.151000000&#x27;,\n",
" &#x27;2022-10-14T03:25:15.533000000&#x27;, &#x27;2022-10-17T03:35:11.148000000&#x27;,\n",
" &#x27;2022-10-19T03:25:18.808000000&#x27;, &#x27;2022-10-22T03:35:13.746000000&#x27;,\n",
" &#x27;2022-10-24T03:25:15.878000000&#x27;, &#x27;2022-10-27T03:35:10.923000000&#x27;,\n",
" &#x27;2022-10-29T03:25:20.127000000&#x27;, &#x27;2022-11-01T03:35:15.818000000&#x27;,\n",
" &#x27;2022-11-03T03:25:14.204000000&#x27;, &#x27;2022-11-06T03:35:10.096000000&#x27;,\n",
" &#x27;2022-11-11T03:35:15.334000000&#x27;, &#x27;2022-11-13T03:25:16.056000000&#x27;,\n",
" &#x27;2022-11-16T03:35:11.542000000&#x27;, &#x27;2022-11-18T03:25:18.155000000&#x27;,\n",
" &#x27;2022-11-21T03:35:12.396000000&#x27;, &#x27;2022-11-23T03:25:16.067000000&#x27;,\n",
" &#x27;2022-11-26T03:35:11.063000000&#x27;, &#x27;2022-11-28T03:25:16.297000000&#x27;,\n",
" &#x27;2022-12-01T03:35:12.009000000&#x27;, &#x27;2022-12-03T03:25:14.366000000&#x27;,\n",
" &#x27;2022-12-06T03:35:10.293000000&#x27;, &#x27;2022-12-08T03:25:17.072000000&#x27;,\n",
" &#x27;2022-12-11T03:35:12.184000000&#x27;, &#x27;2022-12-16T03:35:10.130000000&#x27;,\n",
" &#x27;2022-12-18T03:25:15.584000000&#x27;, &#x27;2022-12-21T03:35:09.988000000&#x27;,\n",
" &#x27;2022-12-23T03:25:15.763000000&#x27;, &#x27;2022-12-26T03:35:11.128000000&#x27;,\n",
" &#x27;2022-12-28T03:25:15.151000000&#x27;, &#x27;2022-12-31T03:35:10.753000000&#x27;,\n",
" &#x27;2023-01-02T03:25:15.152000000&#x27;, &#x27;2023-01-05T03:35:09.844000000&#x27;,\n",
" &#x27;2023-01-07T03:25:15.343000000&#x27;, &#x27;2023-01-10T03:35:10.149000000&#x27;,\n",
" &#x27;2023-01-12T03:25:12.066000000&#x27;, &#x27;2023-01-15T03:35:08.140000000&#x27;,\n",
" &#x27;2023-01-17T03:25:12.454000000&#x27;, &#x27;2023-01-20T03:35:06.593000000&#x27;,\n",
" &#x27;2023-01-22T03:25:14.446000000&#x27;, &#x27;2023-01-25T03:35:09.824000000&#x27;,\n",
" &#x27;2023-01-27T03:25:13.987000000&#x27;, &#x27;2023-01-30T03:35:09.963000000&#x27;,\n",
" &#x27;2023-02-01T03:25:13.595000000&#x27;, &#x27;2023-02-04T03:35:09.008000000&#x27;,\n",
" &#x27;2023-02-06T03:25:15.471000000&#x27;, &#x27;2023-02-09T03:35:10.646000000&#x27;,\n",
" &#x27;2023-02-11T03:25:15.100000000&#x27;, &#x27;2023-02-14T03:35:10.240000000&#x27;,\n",
" &#x27;2023-02-16T03:25:28.099000000&#x27;, &#x27;2023-02-24T03:35:12.118000000&#x27;,\n",
" &#x27;2023-02-26T03:25:14.146000000&#x27;, &#x27;2023-03-01T03:35:09.182000000&#x27;,\n",
" &#x27;2023-03-03T03:25:17.841000000&#x27;, &#x27;2023-03-06T03:35:14.717000000&#x27;,\n",
" &#x27;2023-03-08T03:25:12.032000000&#x27;, &#x27;2023-03-11T03:35:07.230000000&#x27;,\n",
" &#x27;2023-03-13T03:25:20.837000000&#x27;, &#x27;2023-03-16T03:35:15.940000000&#x27;,\n",
" &#x27;2023-03-18T03:25:14.467000000&#x27;, &#x27;2023-03-21T03:35:10.279000000&#x27;,\n",
" &#x27;2023-03-23T03:25:18.795000000&#x27;, &#x27;2023-03-26T03:35:14.570000000&#x27;,\n",
" &#x27;2023-03-28T03:25:14.536000000&#x27;, &#x27;2023-03-31T03:35:10.140000000&#x27;,\n",
" &#x27;2023-04-02T03:25:19.945000000&#x27;, &#x27;2023-04-05T03:35:14.925000000&#x27;,\n",
" &#x27;2023-04-07T03:25:16.518000000&#x27;, &#x27;2023-04-10T03:35:12.000000000&#x27;,\n",
" &#x27;2023-04-15T03:35:12.743000000&#x27;, &#x27;2023-04-20T03:35:10.328000000&#x27;,\n",
" &#x27;2023-04-22T03:25:18.572000000&#x27;, &#x27;2023-04-25T03:35:13.748000000&#x27;,\n",
" &#x27;2023-04-27T03:25:16.567000000&#x27;, &#x27;2023-04-30T03:35:12.151000000&#x27;,\n",
" &#x27;2023-05-02T03:25:18.866000000&#x27;, &#x27;2023-05-05T03:35:14.433000000&#x27;,\n",
" &#x27;2023-05-07T03:25:16.583000000&#x27;, &#x27;2023-05-10T03:35:11.284000000&#x27;,\n",
" &#x27;2023-05-12T03:25:19.200000000&#x27;, &#x27;2023-05-15T03:35:15.683000000&#x27;,\n",
" &#x27;2023-05-17T03:25:17.911000000&#x27;, &#x27;2023-05-20T03:35:14.193000000&#x27;,\n",
" &#x27;2023-05-22T03:25:36.378000000&#x27;, &#x27;2023-05-25T03:35:16.657000000&#x27;,\n",
" &#x27;2023-05-27T03:25:20.078000000&#x27;, &#x27;2023-05-30T03:35:15.642000000&#x27;,\n",
" &#x27;2023-06-01T03:25:20.268000000&#x27;, &#x27;2023-06-04T03:35:16.047000000&#x27;,\n",
" &#x27;2023-06-06T03:25:20.180000000&#x27;, &#x27;2023-06-09T03:35:15.534000000&#x27;,\n",
" &#x27;2023-06-11T03:25:21.573000000&#x27;, &#x27;2023-06-14T03:35:16.859000000&#x27;,\n",
" &#x27;2023-06-16T03:25:20.769000000&#x27;, &#x27;2023-06-19T03:35:15.908000000&#x27;,\n",
" &#x27;2023-06-21T03:25:20.640000000&#x27;, &#x27;2023-06-24T03:35:15.972000000&#x27;,\n",
" &#x27;2023-06-26T03:25:19.927000000&#x27;, &#x27;2023-06-29T03:35:15.752000000&#x27;,\n",
" &#x27;2023-07-01T03:25:21.763000000&#x27;, &#x27;2023-07-04T03:35:17.227000000&#x27;,\n",
" &#x27;2023-07-06T03:25:21.702000000&#x27;, &#x27;2023-07-09T03:35:17.102000000&#x27;,\n",
" &#x27;2023-07-11T03:25:21.515000000&#x27;, &#x27;2023-07-14T03:35:16.582000000&#x27;,\n",
" &#x27;2023-07-16T03:25:21.326000000&#x27;, &#x27;2023-07-19T03:35:16.050000000&#x27;,\n",
" &#x27;2023-07-21T03:25:22.444000000&#x27;, &#x27;2023-07-24T03:35:17.845000000&#x27;,\n",
" &#x27;2023-07-26T03:25:21.503000000&#x27;, &#x27;2023-07-29T03:35:17.083000000&#x27;,\n",
" &#x27;2023-07-31T03:25:36.753000000&#x27;, &#x27;2023-08-03T03:35:16.494000000&#x27;,\n",
" &#x27;2023-08-05T03:25:21.570000000&#x27;, &#x27;2023-08-08T03:35:16.313000000&#x27;,\n",
" &#x27;2023-08-10T03:25:22.024000000&#x27;, &#x27;2023-08-13T03:35:17.448000000&#x27;,\n",
" &#x27;2023-08-15T03:25:22.075000000&#x27;, &#x27;2023-08-18T03:35:17.812000000&#x27;,\n",
" &#x27;2023-08-20T03:25:21.568000000&#x27;, &#x27;2023-08-23T03:35:16.224000000&#x27;,\n",
" &#x27;2023-08-25T03:25:22.592000000&#x27;, &#x27;2023-08-28T03:35:17.571000000&#x27;,\n",
" &#x27;2023-08-30T03:25:21.212000000&#x27;, &#x27;2023-09-02T03:35:16.627000000&#x27;,\n",
" &#x27;2023-09-04T03:25:21.856000000&#x27;, &#x27;2023-09-07T03:35:17.134000000&#x27;,\n",
" &#x27;2023-09-09T03:25:20.648000000&#x27;, &#x27;2023-09-12T03:35:15.326000000&#x27;,\n",
" &#x27;2023-09-14T03:25:35.755000000&#x27;, &#x27;2023-09-17T03:35:15.269000000&#x27;,\n",
" &#x27;2023-09-19T03:25:24.089000000&#x27;, &#x27;2023-09-22T03:35:15.439000000&#x27;,\n",
" &#x27;2023-09-24T03:25:18.524000000&#x27;, &#x27;2023-09-27T03:35:14.112000000&#x27;,\n",
" &#x27;2023-09-29T03:25:19.046000000&#x27;], dtype=&#x27;datetime64[ns]&#x27;)</pre></div></li><li class='xr-var-item'><div class='xr-var-name'><span class='xr-has-index'>y</span></div><div class='xr-var-dims'>(y)</div><div class='xr-var-dtype'>float64</div><div class='xr-var-preview xr-preview'>1.106e+06 1.106e+06 ... 1.017e+06</div><input id='attrs-dd899c7b-68a6-4e7e-bfcc-dc305c331689' class='xr-var-attrs-in' type='checkbox' ><label for='attrs-dd899c7b-68a6-4e7e-bfcc-dc305c331689' title='Show/Hide attributes'><svg class='icon xr-icon-file-text2'><use xlink:href='#icon-file-text2'></use></svg></label><input id='data-4bfd3b38-5c0f-47bf-80d4-5183be4ed179' class='xr-var-data-in' type='checkbox'><label for='data-4bfd3b38-5c0f-47bf-80d4-5183be4ed179' title='Show/Hide data repr'><svg class='icon xr-icon-database'><use xlink:href='#icon-database'></use></svg></label><div class='xr-var-attrs'><dl class='xr-attrs'><dt><span>units :</span></dt><dd>metre</dd><dt><span>resolution :</span></dt><dd>-10.0</dd><dt><span>crs :</span></dt><dd>EPSG:32648</dd></dl></div><div class='xr-var-data'><pre>array([1105735., 1105725., 1105715., ..., 1017025., 1017015., 1017005.])</pre></div></li><li class='xr-var-item'><div class='xr-var-name'><span class='xr-has-index'>x</span></div><div class='xr-var-dims'>(x)</div><div class='xr-var-dtype'>float64</div><div class='xr-var-preview xr-preview'>5.548e+05 5.548e+05 ... 6.538e+05</div><input id='attrs-551122ed-9c99-431a-aaaa-1002cfb34d5b' class='xr-var-attrs-in' type='checkbox' ><label for='attrs-551122ed-9c99-431a-aaaa-1002cfb34d5b' title='Show/Hide attributes'><svg class='icon xr-icon-file-text2'><use xlink:href='#icon-file-text2'></use></svg></label><input id='data-395f2be5-9ae5-451c-ab70-af36ccdf6526' class='xr-var-data-in' type='checkbox'><label for='data-395f2be5-9ae5-451c-ab70-af36ccdf6526' title='Show/Hide data repr'><svg class='icon xr-icon-database'><use xlink:href='#icon-database'></use></svg></label><div class='xr-var-attrs'><dl class='xr-attrs'><dt><span>units :</span></dt><dd>metre</dd><dt><span>resolution :</span></dt><dd>10.0</dd><dt><span>crs :</span></dt><dd>EPSG:32648</dd></dl></div><div class='xr-var-data'><pre>array([554795., 554805., 554815., ..., 653785., 653795., 653805.])</pre></div></li><li class='xr-var-item'><div class='xr-var-name'><span>spatial_ref</span></div><div class='xr-var-dims'>()</div><div class='xr-var-dtype'>int32</div><div class='xr-var-preview xr-preview'>32648</div><input id='attrs-a3f7d960-9fa6-445b-b2af-08a8db920bc1' class='xr-var-attrs-in' type='checkbox' ><label for='attrs-a3f7d960-9fa6-445b-b2af-08a8db920bc1' title='Show/Hide attributes'><svg class='icon xr-icon-file-text2'><use xlink:href='#icon-file-text2'></use></svg></label><input id='data-6bd4690a-894c-47e3-a8f1-fcc5f116f02b' class='xr-var-data-in' type='checkbox'><label for='data-6bd4690a-894c-47e3-a8f1-fcc5f116f02b' title='Show/Hide data repr'><svg class='icon xr-icon-database'><use xlink:href='#icon-database'></use></svg></label><div class='xr-var-attrs'><dl class='xr-attrs'><dt><span>spatial_ref :</span></dt><dd>PROJCS[&quot;WGS 84 / UTM zone 48N&quot;,GEOGCS[&quot;WGS 84&quot;,DATUM[&quot;WGS_1984&quot;,SPHEROID[&quot;WGS 84&quot;,6378137,298.257223563,AUTHORITY[&quot;EPSG&quot;,&quot;7030&quot;]],AUTHORITY[&quot;EPSG&quot;,&quot;6326&quot;]],PRIMEM[&quot;Greenwich&quot;,0,AUTHORITY[&quot;EPSG&quot;,&quot;8901&quot;]],UNIT[&quot;degree&quot;,0.0174532925199433,AUTHORITY[&quot;EPSG&quot;,&quot;9122&quot;]],AUTHORITY[&quot;EPSG&quot;,&quot;4326&quot;]],PROJECTION[&quot;Transverse_Mercator&quot;],PARAMETER[&quot;latitude_of_origin&quot;,0],PARAMETER[&quot;central_meridian&quot;,105],PARAMETER[&quot;scale_factor&quot;,0.9996],PARAMETER[&quot;false_easting&quot;,500000],PARAMETER[&quot;false_northing&quot;,0],UNIT[&quot;metre&quot;,1,AUTHORITY[&quot;EPSG&quot;,&quot;9001&quot;]],AXIS[&quot;Easting&quot;,EAST],AXIS[&quot;Northing&quot;,NORTH],AUTHORITY[&quot;EPSG&quot;,&quot;32648&quot;]]</dd><dt><span>grid_mapping_name :</span></dt><dd>transverse_mercator</dd></dl></div><div class='xr
" &#x27;2022-09-07 03:35:13.646000&#x27;, &#x27;2022-09-09 03:25:27.617000&#x27;,\n",
" &#x27;2022-09-12 03:35:22.247000&#x27;, &#x27;2022-09-14 03:25:18.529000&#x27;,\n",
" &#x27;2022-09-17 03:35:13.648000&#x27;, &#x27;2022-09-19 03:25:24.773000&#x27;,\n",
" &#x27;2022-09-22 03:35:18.931000&#x27;, &#x27;2022-09-24 03:25:17.431000&#x27;,\n",
" ...\n",
" &#x27;2023-09-07 03:35:17.134000&#x27;, &#x27;2023-09-09 03:25:20.648000&#x27;,\n",
" &#x27;2023-09-12 03:35:15.326000&#x27;, &#x27;2023-09-14 03:25:35.755000&#x27;,\n",
" &#x27;2023-09-17 03:35:15.269000&#x27;, &#x27;2023-09-19 03:25:24.089000&#x27;,\n",
" &#x27;2023-09-22 03:35:15.439000&#x27;, &#x27;2023-09-24 03:25:18.524000&#x27;,\n",
" &#x27;2023-09-27 03:35:14.112000&#x27;, &#x27;2023-09-29 03:25:19.046000&#x27;],\n",
" dtype=&#x27;datetime64[ns]&#x27;, name=&#x27;time&#x27;, length=151, freq=None))</pre></div></li><li class='xr-var-item'><div class='xr-index-name'><div>y</div></div><div class='xr-index-preview'>PandasIndex</div><div></div><input id='index-01fb69ed-39df-4867-abf7-e845a04898fa' class='xr-index-data-in' type='checkbox'/><label for='index-01fb69ed-39df-4867-abf7-e845a04898fa' title='Show/Hide index repr'><svg class='icon xr-icon-database'><use xlink:href='#icon-database'></use></svg></label><div class='xr-index-data'><pre>PandasIndex(Index([1105735.0, 1105725.0, 1105715.0, 1105705.0, 1105695.0, 1105685.0,\n",
" 1105675.0, 1105665.0, 1105655.0, 1105645.0,\n",
" ...\n",
" 1017095.0, 1017085.0, 1017075.0, 1017065.0, 1017055.0, 1017045.0,\n",
" 1017035.0, 1017025.0, 1017015.0, 1017005.0],\n",
" dtype=&#x27;float64&#x27;, name=&#x27;y&#x27;, length=8874))</pre></div></li><li class='xr-var-item'><div class='xr-index-name'><div>x</div></div><div class='xr-index-preview'>PandasIndex</div><div></div><input id='index-9aa25ac5-134b-41a2-8d8f-b30b9b7fe816' class='xr-index-data-in' type='checkbox'/><label for='index-9aa25ac5-134b-41a2-8d8f-b30b9b7fe816' title='Show/Hide index repr'><svg class='icon xr-icon-database'><use xlink:href='#icon-database'></use></svg></label><div class='xr-index-data'><pre>PandasIndex(Index([554795.0, 554805.0, 554815.0, 554825.0, 554835.0, 554845.0, 554855.0,\n",
" 554865.0, 554875.0, 554885.0,\n",
" ...\n",
" 653715.0, 653725.0, 653735.0, 653745.0, 653755.0, 653765.0, 653775.0,\n",
" 653785.0, 653795.0, 653805.0],\n",
" dtype=&#x27;float64&#x27;, name=&#x27;x&#x27;, length=9902))</pre></div></li></ul></div></li><li class='xr-section-item'><input id='section-9c65fd67-18c6-4b00-806a-766e8dcb5c69' class='xr-section-summary-in' type='checkbox' disabled ><label for='section-9c65fd67-18c6-4b00-806a-766e8dcb5c69' class='xr-section-summary' title='Expand/collapse section'>Attributes: <span>(0)</span></label><div class='xr-section-inline-details'></div><div class='xr-section-details'><dl class='xr-attrs'></dl></div></li></ul></div></div>"
],
"text/plain": [
"<xarray.DataArray 'NDVI' (time: 151, y: 8874, x: 9902)>\n",
"dask.array<truediv, shape=(151, 8874, 9902), dtype=float32, chunksize=(1, 2048, 2048), chunktype=numpy.ndarray>\n",
"Coordinates:\n",
" * time (time) datetime64[ns] 2022-09-02T03:35:23.960000 ... 2023-09...\n",
" * y (y) float64 1.106e+06 1.106e+06 ... 1.017e+06 1.017e+06\n",
" * x (x) float64 5.548e+05 5.548e+05 ... 6.538e+05 6.538e+05\n",
" spatial_ref int32 32648"
]
},
"metadata": {},
"output_type": "display_data"
}
],
"source": [
"# Tiến hành tính toán NDVI\n",
"ds1 = calculate_indices(result, index='NDVI', satellite_mission='s2')\n",
"ndvi = ds1[\"NDVI\"]\n",
"display(ndvi)"
]
},
{
"cell_type": "code",
"execution_count": 13,
"id": "bb7a152b-89e5-4c18-9103-6a9f6708bd80",
"metadata": {
"tags": []
},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"CPU times: user 370 ms, sys: 485 µs, total: 371 ms\n",
"Wall time: 370 ms\n"
]
},
{
"data": {
"application/vnd.jupyter.widget-view+json": {
"model_id": "9923c2810c0b47d68fd0363a6657a57a",
"version_major": 2,
"version_minor": 0
},
"text/plain": [
"VBox()"
]
},
"metadata": {},
"output_type": "display_data"
}
],
"source": [
"%%time\n",
"## tính ndvi theo tháng\n",
"average_ndvi = ndvi.resample(time='1M').mean().persist()\n",
"progress(average_ndvi)"
]
},
{
"cell_type": "code",
"execution_count": 24,
"id": "47fc921b-bcb6-463f-bdaf-a5a82970a73e",
"metadata": {
"tags": []
},
"outputs": [],
"source": [
"# compute average_ndvi\n",
"average_ndvi = average_ndvi.compute()"
]
},
{
"cell_type": "code",
"execution_count": 25,
"id": "9b989a28-1524-471b-9a2b-51df2319620e",
"metadata": {
"tags": []
},
"outputs": [
{
"name": "stderr",
"output_type": "stream",
"text": [
"Warning 1: TIFFReadDirectory:Invalid data type for tag StripByteCounts\n",
"Warning 1: TIFFFetchNormalTag:ASCII value for tag \"GeoASCIIParams\" contains null byte in value; value incorrectly truncated during reading due to implementation limitations\n",
"Warning 1: TIFFReadDirectory:Sum of Photometric type-related color channels and ExtraSamples doesn't match SamplesPerPixel. Defining non-color channels as ExtraSamples.\n",
"Warning 1: TIFFReadDirectory:Invalid data type for tag StripByteCounts\n",
"Warning 1: TIFFFetchNormalTag:ASCII value for tag \"GeoASCIIParams\" contains null byte in value; value incorrectly truncated during reading due to implementation limitations\n",
"Warning 1: TIFFReadDirectory:Sum of Photometric type-related color channels and ExtraSamples doesn't match SamplesPerPixel. Defining non-color channels as ExtraSamples.\n"
]
}
],
"source": [
"# cấu hình vh vv file\n",
"# name_vh = \"ThuanHoa/ThuanHoa_VH.tif\"\n",
"# name_vv = \"ThuanHoa/ThuanHoa_VV.tif\"\n",
"\n",
"# load dữ liệu sen1\n",
"# dsvh, dsvv = load_sen1(name_vh, name_vv)\n",
"\n",
"name_vh = \"vh-0922_0923-full_ST.tif\"\n",
"name_vv = \"vv-0922_0923-full_ST.tif\"\n",
"\n",
"if not os.path.exists(name_vh):\n",
" !aws s3 cp s3://easi-asia-dc-data/staging/ctu/sentinel-1/vh-0922_0923-full_ST.tif vh-0922_0923-full_ST.tif\n",
"if not os.path.exists(name_vv):\n",
" !aws s3 cp s3://easi-asia-dc-data/staging/ctu/sentinel-1/vv-0922_0923-full_ST.tif vv-0922_0923-full_ST.tif\n",
" \n",
"dsvh, dsvv = load_sen1(name_vh, name_vv)"
]
},
{
"cell_type": "code",
"execution_count": 27,
"id": "03c47481-7ef9-4efe-ae0a-7845595c2671",
"metadata": {
"tags": []
},
"outputs": [],
"source": [
"from sklearn.preprocessing import PolynomialFeatures\n",
"from sklearn.linear_model import LinearRegression\n",
"from sklearn.ensemble import RandomForestRegressor\n"
]
},
{
"cell_type": "code",
"execution_count": 28,
"id": "07acfddc-ab36-4ef4-9e72-d984f2180eb0",
"metadata": {
"tags": []
},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"(13, 7680, 8687)\n",
"(13, 7680, 8687)\n",
"(13, 7680, 8687)\n",
"(13, 7680, 8687)\n"
]
}
],
"source": [
"average_ndvi = average_ndvi[:, :7680, :8687]\n",
"mask = ~np.isnan(average_ndvi)\n",
"print(average_ndvi.shape)\n",
"print(dsvh.shape)\n",
"print(dsvv.shape)\n",
"print(mask.shape)\n",
"X_train = np.stack([dsvh.values[mask], dsvv.values[mask]], axis=1)\n",
"y_train = average_ndvi.values[mask]"
]
},
{
"cell_type": "code",
"execution_count": 29,
"id": "876d87da-9121-4ef2-a41b-f647e0175689",
"metadata": {
"tags": []
},
"outputs": [
{
"data": {
"text/html": [
"<style>#sk-container-id-1 {color: black;}#sk-container-id-1 pre{padding: 0;}#sk-container-id-1 div.sk-toggleable {background-color: white;}#sk-container-id-1 label.sk-toggleable__label {cursor: pointer;display: block;width: 100%;margin-bottom: 0;padding: 0.3em;box-sizing: border-box;text-align: center;}#sk-container-id-1 label.sk-toggleable__label-arrow:before {content: \"▸\";float: left;margin-right: 0.25em;color: #696969;}#sk-container-id-1 label.sk-toggleable__label-arrow:hover:before {color: black;}#sk-container-id-1 div.sk-estimator:hover label.sk-toggleable__label-arrow:before {color: black;}#sk-container-id-1 div.sk-toggleable__content {max-height: 0;max-width: 0;overflow: hidden;text-align: left;background-color: #f0f8ff;}#sk-container-id-1 div.sk-toggleable__content pre {margin: 0.2em;color: black;border-radius: 0.25em;background-color: #f0f8ff;}#sk-container-id-1 input.sk-toggleable__control:checked~div.sk-toggleable__content {max-height: 200px;max-width: 100%;overflow: auto;}#sk-container-id-1 input.sk-toggleable__control:checked~label.sk-toggleable__label-arrow:before {content: \"▾\";}#sk-container-id-1 div.sk-estimator input.sk-toggleable__control:checked~label.sk-toggleable__label {background-color: #d4ebff;}#sk-container-id-1 div.sk-label input.sk-toggleable__control:checked~label.sk-toggleable__label {background-color: #d4ebff;}#sk-container-id-1 input.sk-hidden--visually {border: 0;clip: rect(1px 1px 1px 1px);clip: rect(1px, 1px, 1px, 1px);height: 1px;margin: -1px;overflow: hidden;padding: 0;position: absolute;width: 1px;}#sk-container-id-1 div.sk-estimator {font-family: monospace;background-color: #f0f8ff;border: 1px dotted black;border-radius: 0.25em;box-sizing: border-box;margin-bottom: 0.5em;}#sk-container-id-1 div.sk-estimator:hover {background-color: #d4ebff;}#sk-container-id-1 div.sk-parallel-item::after {content: \"\";width: 100%;border-bottom: 1px solid gray;flex-grow: 1;}#sk-container-id-1 div.sk-label:hover label.sk-toggleable__label {background-color: #d4ebff;}#sk-container-id-1 div.sk-serial::before {content: \"\";position: absolute;border-left: 1px solid gray;box-sizing: border-box;top: 0;bottom: 0;left: 50%;z-index: 0;}#sk-container-id-1 div.sk-serial {display: flex;flex-direction: column;align-items: center;background-color: white;padding-right: 0.2em;padding-left: 0.2em;position: relative;}#sk-container-id-1 div.sk-item {position: relative;z-index: 1;}#sk-container-id-1 div.sk-parallel {display: flex;align-items: stretch;justify-content: center;background-color: white;position: relative;}#sk-container-id-1 div.sk-item::before, #sk-container-id-1 div.sk-parallel-item::before {content: \"\";position: absolute;border-left: 1px solid gray;box-sizing: border-box;top: 0;bottom: 0;left: 50%;z-index: -1;}#sk-container-id-1 div.sk-parallel-item {display: flex;flex-direction: column;z-index: 1;position: relative;background-color: white;}#sk-container-id-1 div.sk-parallel-item:first-child::after {align-self: flex-end;width: 50%;}#sk-container-id-1 div.sk-parallel-item:last-child::after {align-self: flex-start;width: 50%;}#sk-container-id-1 div.sk-parallel-item:only-child::after {width: 0;}#sk-container-id-1 div.sk-dashed-wrapped {border: 1px dashed gray;margin: 0 0.4em 0.5em 0.4em;box-sizing: border-box;padding-bottom: 0.4em;background-color: white;}#sk-container-id-1 div.sk-label label {font-family: monospace;font-weight: bold;display: inline-block;line-height: 1.2em;}#sk-container-id-1 div.sk-label-container {text-align: center;}#sk-container-id-1 div.sk-container {/* jupyter's `normalize.less` sets `[hidden] { display: none; }` but bootstrap.min.css set `[hidden] { display: none !important; }` so we also need the `!important` here to be able to override the default hidden behavior on the sphinx rendered scikit-learn.org. See: https://github.com/scikit-learn/scikit-learn/issues/21755 */display: inline-block !important;position: relative;}#sk-container-id-1 div.sk-text-repr-fallback {display: none;}</style><div id=\"sk-container-id-1\" class=\"sk-top-container\"><div class=\"sk-text-r
],
"text/plain": [
"LinearRegression()"
]
},
"execution_count": 29,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"model = LinearRegression()\n",
"model.fit(X_train, y_train)"
]
},
{
"cell_type": "code",
"execution_count": 30,
"id": "854abc28-a490-4858-8951-03fd257c92e6",
"metadata": {
"tags": []
},
"outputs": [],
"source": [
"X_pred = np.stack([dsvh.values[~mask], dsvv.values[~mask]], axis=1)\n",
"average_ndvi.values[~mask] = model.predict(X_pred)"
]
},
{
"cell_type": "code",
"execution_count": 31,
"id": "86f42685-0db7-4253-b02a-41df237ae4df",
"metadata": {
"tags": []
},
"outputs": [],
"source": [
"average_ndvi_filled = xr.DataArray(average_ndvi, dims=average_ndvi.dims)"
]
},
{
"cell_type": "code",
"execution_count": 32,
"id": "4222959a-ea43-4cc8-a958-6c8cf19c2118",
"metadata": {
"tags": []
},
"outputs": [
{
"data": {
"text/plain": [
"<matplotlib.image.AxesImage at 0x7f4c7546ac80>"
]
},
"execution_count": 32,
"metadata": {},
"output_type": "execute_result"
},
{
"data": {
"image/png": "iVBORw0KGgoAAAANSUhEUgAAAeIAAAGiCAYAAAA7scXPAAAAOXRFWHRTb2Z0d2FyZQBNYXRwbG90bGliIHZlcnNpb24zLjguMCwgaHR0cHM6Ly9tYXRwbG90bGliLm9yZy81sbWrAAAACXBIWXMAAA9hAAAPYQGoP6dpAAEAAElEQVR4nOz9d7Au+X3eiX0699tvvzmenG7OkzMGGAwRCDAAokyKUomSVmtZK9JlkaqyWK6lVmVXab2u2pKtsNZaquVaopcSRRIEAZIABoM0g8HkO3duPvfk+Obcb+f2H/3eF6JXAbJlAwWfp+rWmXPmnHP7vm/375ue5/kKURRFnOAEJzjBCU5wgh8KxB/2BZzgBCc4wQlO8P/POAnEJzjBCU5wghP8EHESiE9wghOc4AQn+CHiJBCf4AQnOMEJTvBDxEkgPsEJTnCCE5zgh4iTQHyCE5zgBCc4wQ8RJ4H4BCc4wQlOcIIfIk4C8QlOcIITnOAEP0ScBOITnOAEJzjBCX6IOAnEJzjBCU5wghP8EPEjHYj/0T/6RywvL6PrOk899RRvvfXWD/uSTnCCE5zgBCf4T4of2UD8L//lv+RXf/VX+Tt/5+/w3nvvcfXqVT75yU9Sr9d/2Jd2ghOc4AQnOMF/Mgg/qksfnnrqKZ544gn+4T/8hwCEYcjCwgK/8iu/wt/+23/7h3x1JzjBCU5wghP8p4H8w76Afxtc1+Xdd9/l13/916dfE0WRl19+mTfeeOPf+jOO4+A4zvTzMAxpt9sUCgUEQfj/+jWf4AQnOMEJTvBvIooiBoMBs7OziOK/uwH9IxmIm80mQRBQqVT+1NcrlQp37979t/7M3/t7f4+/+3f/7v8vLu8EJzjBCU5wgh8Ye3t7zM/P/zv//49kIP5/B7/+67/Or/7qr04/7/V6LC4u8je++klC3WBJb5OTh7wzWOHITjP2FZKKy04vjy575PQxzbFBNTlgp5fjdK7JjN7jWXMdgE6YRBEC5uQOw1DjXWuFg3EWTfIZ+DqG5LA9LKCIARV9wBmzhhPKbFglkpLL7ijHmVQdUYh4q7HEC5UNdsd5+p6OLASIQkReHVFUR0hCyJutZa7mDljRG3w4nOf95jx/ffVbbDtFFCFg0yoxDDQA3EDijFmnoIw4rR0hEdEPdZxIRhFCnEgmI475reOn+S9mX+UDewmABaXFgZ9jWWlgRRq9IIEuemTEMRnRoh2Y6KKLTICPhETEP9h7ic2NKkrGxhur8YvtigiGDx2Vxx59QEUbIAsBpuRwSq+x5+bp+wmuGbsc+DmqcpeGn6HjG8hCQFoek5dGPLArJCSXnDTiG51zrLdK2K6MobvkEmMsT6E/TvCxhXV6no4dKuQUi5cyd3h3tMz9YRk3lHEDidoghXczw4UXH3DrYAYAVffxPBFVDbCGGqElIyQCstkRT1d22LNy9BydMBKwPAXbVUgnbFQpYC3d5MPWLK3jNFLC58W1+1xL7eFFEkVpwNc7F0jKLgfjDH1XxwskAIaOhiBE/IWVt+kFOv/T7Se4MHfE49kd/u+3nma53GIt1eLbX7qG5EAog29E6E2BQAPRAwSQ7QjPEECA0UWHdNai308g1jWCvMfjp7d5OX8bgIrU59DP0gmSJESXNaWGEyn8bvNxOk6Cl0r3+XA4S04Zk5UtLiX2uW3PUlIG6IKLJESIRCgEJEWHTa9EXhrxh82rfKrwIYoQsufmEYWIvXGB7VGOjxbX+U77FD1bZ87s8VL+Dh3fJCcP2bTLjAOFi8kD7FBBFz3qXhpFCLFChYI8xI9kWn6Sf333EQCeWdoiRCApeQCUtR6KEBBEIpIQcmDnySgWo0DDDSWK6pD3uwtYnoKpuiwkumQUi4raY3tcJC3blJQ+hujw/nCZvDLClBwUIaDjG4hCSEayOaUeESFy6Gd5YFdwQ5mWm6Si9TElh1W9ThAJDMIEXd9AE31Oq8e8NjjD3jjHjN7nfPKQW8N5nk3fx0ciL47YcCsU5AG64OFGEuNIRRN8dMEjI1rs+zny0ggvkrEiFS+K758DN8dZ7ZhhpFH30mRlC4kQL5JQhIC6l+bYyVLWehw7Gapaj7faywShSIhAOTFkXu8QIFJWBgDs2nlOGTXGocrt4Qx9N8HpVJ0wEnja3Ij/7VaFstrne+0VUqrDbi/HcqZNRhnzWGqbjDgmiEQCBI79LMNAI4xEFrQWQSQyDONzLSnGXcogErEjhaxkAdANDNaUGvUgDUCISEYcU/PT+JFMWhqRl0Z8OF5gFGh8efsi9khFkkP+1rWvUpH6jELt++d9mMAQXdpBkigSEYSQrGSxaZdZH5UpqCOyioUsBMypHY7cLKtanU6QRBc97o1nSEtjDMlFFgIkQjLSmAd2hbQ85tDJsqi3mJfbWJHGtlMkRGBVawBghSpbdokHoxJ5dURFGzCjdrnVyPPPPv0lUqnUvzd+/UgG4mKxiCRJ1Gq1P/X1Wq1GtVr9t/6MpmlomvY/+/oL5V3qWpU1tcmuV2BRGXN9/xSn8k3aTop0VqA3TtPslVgpt8gnI4SETSQm2I8M7kgRn0u/x3esKuf1PURB5F/Vn0ZVfAwFOm6KpUybg3GWM+aAnpeg5+d528mzaHQYKxnmU3WChMv6aImCPuLPnL3Ld1qnEdWIjOHRsVOMfYWWWyRINEnLDmeqA/adGU4n+zySbHAsVFCTCivGiA9GCywUbIZBxJzWoeMl8SIdRXX5wD/HKb1GEIloQogiBJiCjy4IPCcf8mXnGRxkkrLDfjhLP9AZajk2R0WSsosYhkhRxMfN2yiRhCZGZCUPCZ8Akb9pvsbmWpn/81sfR1RERMNHPNQJNJfUOYubnVXSS1vM6V28KIlhSBSDgMYoTZRMUMUlK4HrR+ihy7ZdIK+HjAUZiwyGMqSsd/moscdhUCEcq/T7afp2RGTJqG2Jrx4XCbUIMe8ShfBa4yKa6jOT7lMfpBgME3CkwSWHuYLLnY6OIEaUcw5HnSTVQpd9ycTTZbJZl3OFPk/kj9EtmTAaoggB3zleIy37jFyDQSBxz0kyDA3EhAZqwBFVxm6GVaPJSnKE7ivockjPyZMwPfpDk5l0H8ERWEp1+YZ1laaVJHTTbNsiVxNtpKTGT62t80rjPMufqXH4pSUEFZxzNtEtHSmA0ATRhzABcgTjUsT/8rnXcSKZt9tLXHziiG8enuaDDy7zXv4clZkuL1Q3uJzaY1FqcOxnURWVnODyl9Lv8it/9Et8dvUBH8vsUvfS3BwsMAyzVM0+OTXEi3SqSpdBkCBA4a4zj6L4mKpF3os4VmbJyyMkRafuppBNibIWsCUs8Nz8IYNARxc9+mKBYnKEhIqhSGgRCGoCOZIZRiaWlOK12ioXcjVmzF02RrP80cZF9IzLz67dYE7rsD6usKh1uTWc5VJuiz0vjxfKOJFMTg8ZBylSkkcYRciixrPmEft2jnGgMJN0aLkZEskRp5IDDpwcb4/neSa7ybPmPnakcuDmKKod9kZZEpJHXh9hiTnavomhOxS1ACuQUEOXjByRkQJ80cQKNWaUHrVRFV0eE2gmVdnjycptvjc4hWgkKCse73gXOZ88pCkkMTSRVlgiI41Jig47doWGm2Ip0cSXe8zLQ3QhpBWolAUPO4K0aHM8msFISBj4hH6ALogMQoMNq0JV65E3bLb7JiQ8ukGeJ3PH1CSbkR8nyUlZYC7pkJEsCvKQIBJZjQZ8b7jGGIWRkkFSYCbrEkQisq5yShhwL1rlul2lK6SYSx9jCiKSobGaarJoWCgEeEikRBvF0/Ail1m5w7GfYd8tIAkh82qTQy+HF0mc0mqMQpAEGS+SSEcCnpQiEcpYoUZBHmKHSeZEGyvUyEo+oLGkWwzCkCtCh/d3FzAMh4QpY8oCBj7uJGHZGxc4Y2yyKgy568ygi/Fr1Q0L7PVm2HZFPrf4AU6k0xcLrJo93CjNGaXNsZdlRnM5cApUjGMkRHQxoO0XmUvE17OQHGOKIq6YYsepIMkRFWWALKr0giQBArKssd+tks8esZCu0/NziIYO8B8cj/5IBmJVVXnsscf4+te/zs/+7M8
"text/plain": [
"<Figure size 640x480 with 1 Axes>"
]
},
"metadata": {},
"output_type": "display_data"
}
],
"source": [
"plt.imshow(average_ndvi_filled.isel(time=6))"
]
},
{
"cell_type": "code",
"execution_count": 65,
"id": "182e5d3f-5d1b-4476-90a7-8aff95c7c873",
"metadata": {
"tags": []
},
"outputs": [
{
"data": {
"text/plain": [
"<matplotlib.image.AxesImage at 0x7f1e59b20f40>"
]
},
"execution_count": 65,
"metadata": {},
"output_type": "execute_result"
},
{
"data": {
"image/png": "iVBORw0KGgoAAAANSUhEUgAAAeIAAAGiCAYAAAA7scXPAAAAOXRFWHRTb2Z0d2FyZQBNYXRwbG90bGliIHZlcnNpb24zLjguMCwgaHR0cHM6Ly9tYXRwbG90bGliLm9yZy81sbWrAAAACXBIWXMAAA9hAAAPYQGoP6dpAAEAAElEQVR4nOz9d7Au+X3eiX0699tvvzmenG7OkzMGGAwRCDAAokyKUomSVmtZK9JlkaqyWK6lVmVXab2u2pKtsNZaquVaopcSRRIEAZIABoM0g8HkO3duPvfk+Obcb+f2H/3eF6JXAbJlAwWfp+rWmXPmnHP7vm/375ue5/kKURRFnOAEJzjBCU5wgh8KxB/2BZzgBCc4wQlO8P/POAnEJzjBCU5wghP8EHESiE9wghOc4AQn+CHiJBCf4AQnOMEJTvBDxEkgPsEJTnCCE5zgh4iTQHyCE5zgBCc4wQ8RJ4H4BCc4wQlOcIIfIk4C8QlOcIITnOAEP0ScBOITnOAEJzjBCX6IOAnEJzjBCU5wghP8EPEjHYj/0T/6RywvL6PrOk899RRvvfXWD/uSTnCCE5zgBCf4T4of2UD8L//lv+RXf/VX+Tt/5+/w3nvvcfXqVT75yU9Sr9d/2Jd2ghOc4AQnOMF/Mgg/qksfnnrqKZ544gn+4T/8hwCEYcjCwgK/8iu/wt/+23/7h3x1JzjBCU5wghP8p4H8w76Afxtc1+Xdd9/l13/916dfE0WRl19+mTfeeOPf+jOO4+A4zvTzMAxpt9sUCgUEQfj/+jWf4AQnOMEJTvBvIooiBoMBs7OziOK/uwH9IxmIm80mQRBQqVT+1NcrlQp37979t/7M3/t7f4+/+3f/7v8vLu8EJzjBCU5wgh8Ye3t7zM/P/zv//49kIP5/B7/+67/Or/7qr04/7/V6LC4u8je++klC3WBJb5OTh7wzWOHITjP2FZKKy04vjy575PQxzbFBNTlgp5fjdK7JjN7jWXMdgE6YRBEC5uQOw1DjXWuFg3EWTfIZ+DqG5LA9LKCIARV9wBmzhhPKbFglkpLL7ijHmVQdUYh4q7HEC5UNdsd5+p6OLASIQkReHVFUR0hCyJutZa7mDljRG3w4nOf95jx/ffVbbDtFFCFg0yoxDDQA3EDijFmnoIw4rR0hEdEPdZxIRhFCnEgmI475reOn+S9mX+UDewmABaXFgZ9jWWlgRRq9IIEuemTEMRnRoh2Y6KKLTICPhETEP9h7ic2NKkrGxhur8YvtigiGDx2Vxx59QEUbIAsBpuRwSq+x5+bp+wmuGbsc+DmqcpeGn6HjG8hCQFoek5dGPLArJCSXnDTiG51zrLdK2K6MobvkEmMsT6E/TvCxhXV6no4dKuQUi5cyd3h3tMz9YRk3lHEDidoghXczw4UXH3DrYAYAVffxPBFVDbCGGqElIyQCstkRT1d22LNy9BydMBKwPAXbVUgnbFQpYC3d5MPWLK3jNFLC58W1+1xL7eFFEkVpwNc7F0jKLgfjDH1XxwskAIaOhiBE/IWVt+kFOv/T7Se4MHfE49kd/u+3nma53GIt1eLbX7qG5EAog29E6E2BQAPRAwSQ7QjPEECA0UWHdNai308g1jWCvMfjp7d5OX8bgIrU59DP0gmSJESXNaWGEyn8bvNxOk6Cl0r3+XA4S04Zk5UtLiX2uW3PUlIG6IKLJESIRCgEJEWHTa9EXhrxh82rfKrwIYoQsufmEYWIvXGB7VGOjxbX+U77FD1bZ87s8VL+Dh3fJCcP2bTLjAOFi8kD7FBBFz3qXhpFCLFChYI8xI9kWn6Sf333EQCeWdoiRCApeQCUtR6KEBBEIpIQcmDnySgWo0DDDSWK6pD3uwtYnoKpuiwkumQUi4raY3tcJC3blJQ+hujw/nCZvDLClBwUIaDjG4hCSEayOaUeESFy6Gd5YFdwQ5mWm6Si9TElh1W9ThAJDMIEXd9AE31Oq8e8NjjD3jjHjN7nfPKQW8N5nk3fx0ciL47YcCsU5AG64OFGEuNIRRN8dMEjI1rs+zny0ggvkrEiFS+K758DN8dZ7ZhhpFH30mRlC4kQL5JQhIC6l+bYyVLWehw7Gapaj7faywShSIhAOTFkXu8QIFJWBgDs2nlOGTXGocrt4Qx9N8HpVJ0wEnja3Ij/7VaFstrne+0VUqrDbi/HcqZNRhnzWGqbjDgmiEQCBI79LMNAI4xEFrQWQSQyDONzLSnGXcogErEjhaxkAdANDNaUGvUgDUCISEYcU/PT+JFMWhqRl0Z8OF5gFGh8efsi9khFkkP+1rWvUpH6jELt++d9mMAQXdpBkigSEYSQrGSxaZdZH5UpqCOyioUsBMypHY7cLKtanU6QRBc97o1nSEtjDMlFFgIkQjLSmAd2hbQ85tDJsqi3mJfbWJHGtlMkRGBVawBghSpbdokHoxJ5dURFGzCjdrnVyPPPPv0lUqnUvzd+/UgG4mKxiCRJ1Gq1P/X1Wq1GtVr9t/6MpmlomvY/+/oL5V3qWpU1tcmuV2BRGXN9/xSn8k3aTop0VqA3TtPslVgpt8gnI4SETSQm2I8M7kgRn0u/x3esKuf1PURB5F/Vn0ZVfAwFOm6KpUybg3GWM+aAnpeg5+d528mzaHQYKxnmU3WChMv6aImCPuLPnL3Ld1qnEdWIjOHRsVOMfYWWWyRINEnLDmeqA/adGU4n+zySbHAsVFCTCivGiA9GCywUbIZBxJzWoeMl8SIdRXX5wD/HKb1GEIloQogiBJiCjy4IPCcf8mXnGRxkkrLDfjhLP9AZajk2R0WSsosYhkhRxMfN2yiRhCZGZCUPCZ8Akb9pvsbmWpn/81sfR1RERMNHPNQJNJfUOYubnVXSS1vM6V28KIlhSBSDgMYoTZRMUMUlK4HrR+ihy7ZdIK+HjAUZiwyGMqSsd/moscdhUCEcq/T7afp2RGTJqG2Jrx4XCbUIMe8ShfBa4yKa6jOT7lMfpBgME3CkwSWHuYLLnY6OIEaUcw5HnSTVQpd9ycTTZbJZl3OFPk/kj9EtmTAaoggB3zleIy37jFyDQSBxz0kyDA3EhAZqwBFVxm6GVaPJSnKE7ivockjPyZMwPfpDk5l0H8ERWEp1+YZ1laaVJHTTbNsiVxNtpKTGT62t80rjPMufqXH4pSUEFZxzNtEtHSmA0ATRhzABcgTjUsT/8rnXcSKZt9tLXHziiG8enuaDDy7zXv4clZkuL1Q3uJzaY1FqcOxnURWVnODyl9Lv8it/9Et8dvUBH8vsUvfS3BwsMAyzVM0+OTXEi3SqSpdBkCBA4a4zj6L4mKpF3os4VmbJyyMkRafuppBNibIWsCUs8Nz8IYNARxc9+mKBYnKEhIqhSGgRCGoCOZIZRiaWlOK12ioXcjVmzF02RrP80cZF9IzLz67dYE7rsD6usKh1uTWc5VJuiz0vjxfKOJFMTg8ZBylSkkcYRciixrPmEft2jnGgMJN0aLkZEskRp5IDDpwcb4/neSa7ybPmPnakcuDmKKod9kZZEpJHXh9hiTnavomhOxS1ACuQUEOXjByRkQJ80cQKNWaUHrVRFV0eE2gmVdnjycptvjc4hWgkKCse73gXOZ88pCkkMTSRVlgiI41Jig47doWGm2Ip0cSXe8zLQ3QhpBWolAUPO4K0aHM8msFISBj4hH6ALogMQoMNq0JV65E3bLb7JiQ8ukGeJ3PH1CSbkR8nyUlZYC7pkJEsCvKQIBJZjQZ8b7jGGIWRkkFSYCbrEkQisq5yShhwL1rlul2lK6SYSx9jCiKSobGaarJoWCgEeEikRBvF0/Ail1m5w7GfYd8tIAkh82qTQy+HF0mc0mqMQpAEGS+SSEcCnpQiEcpYoUZBHmKHSeZEGyvUyEo+oLGkWwzCkCtCh/d3FzAMh4QpY8oCBj7uJGHZGxc4Y2yyKgy568ygi/Fr1Q0L7PVm2HZFPrf4AU6k0xcLrJo93CjNGaXNsZdlRnM5cApUjGMkRHQxoO0XmUvE17OQHGOKIq6YYsepIMkRFWWALKr0giQBArKssd+tks8esZCu0/NziIYO8B8cj/5IBmJVVXnsscf4+te/zs/+7M8
"text/plain": [
"<Figure size 640x480 with 1 Axes>"
]
},
"metadata": {},
"output_type": "display_data"
}
],
"source": [
"plt.imshow(average_ndvi.isel(time=6))"
]
},
{
"cell_type": "code",
"execution_count": 33,
"id": "7322812d-ba2a-4a82-a43d-cfd5f46a164d",
"metadata": {},
"outputs": [],
"source": [
"train_path = \"train/ST_training data_updated_1130points.shp\""
]
},
{
"cell_type": "code",
"execution_count": 34,
"id": "e0d607f3-bcee-4158-b22e-2e6e2f9053ca",
"metadata": {
"tags": []
},
"outputs": [],
"source": [
"train = load_train_data(train_path)"
]
},
{
"cell_type": "code",
"execution_count": 37,
"id": "0ab4448b-5bdb-41d1-b90d-1b88b0cbf188",
"metadata": {
"tags": []
},
"outputs": [],
"source": [
"datasets = get_data_sen1_and_sen2(train, average_ndvi_filled, dsvh, dsvv)"
]
},
{
"cell_type": "code",
"execution_count": 39,
"id": "94789967-36d7-488c-a61e-2f8fd341581f",
"metadata": {
"tags": []
},
"outputs": [],
"source": [
"# cấu hình nhãn dữ liệu\n",
"label_mapping = {\n",
" \"Lua tom\": \"0\",\n",
" \"Lua\": \"1\",\n",
" \"CHN\": \"2\",\n",
" \"CLN\": \"3\",\n",
" \"TS\": \"4\",\n",
" \"Song\": \"5\",\n",
" \"Dat xay dung\": \"6\",\n",
" \"Rung\": \"7\"\n",
"}\n",
"\n",
"# chia tập dữ liệu train, val, test\n",
"X_train, X_val, X_test, y_train, y_val, y_test = split_train_data(train, label_mapping, datasets)"
]
},
{
"cell_type": "code",
"execution_count": 40,
"id": "a2fcf472-aff0-44ea-a62a-c308b6e56638",
"metadata": {
"tags": []
},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"Best Parameters: {'classifier__criterion': 'gini', 'classifier__max_depth': 15, 'classifier__n_estimators': 500}\n",
"Accuracy: 88.0 %\n"
]
}
],
"source": [
"# Huấn luyện mô hình\n",
"grid_search = train_with_rf(X_train, X_val, y_train, y_val)"
]
},
{
"cell_type": "code",
"execution_count": 41,
"id": "a25e21e5-d5b0-43b5-a2f5-3ce04eee060d",
"metadata": {
"tags": []
},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"Accuracy for test data 92.0 %\n"
]
}
],
"source": [
"# kiểm tra độ chính xác với tập test\n",
"y_pred_test = grid_search.predict(X_test)\n",
"test_accuracy = accuracy_score(y_test, y_pred_test)\n",
"print(f\"Accuracy for test data {round(test_accuracy, 2)*100} %\")"
]
},
{
"cell_type": "code",
"execution_count": 42,
"id": "06b92a29-0784-4143-a835-f4a1cb21390f",
"metadata": {
"tags": []
},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"Done!\n"
]
}
],
"source": [
"# Lưu mô hình huấn luyện\n",
"save_model(\"model_new.joblib\", grid_search)"
]
},
{
"cell_type": "code",
"execution_count": 43,
"id": "cbf5d0a8-f762-4277-920d-85d31caf2abf",
"metadata": {
"tags": []
},
"outputs": [],
"source": [
"# đóng client, cluster\n",
"client.close()\n",
"cluster.close()"
]
},
{
"cell_type": "code",
"execution_count": null,
"id": "72eaa4ed-5453-427c-965d-2a6e3a84e2bb",
"metadata": {},
"outputs": [],
"source": []
}
],
"metadata": {
"kernelspec": {
"display_name": "Python 3 (ipykernel)",
"language": "python",
"name": "python3"
},
"language_info": {
"codemirror_mode": {
"name": "ipython",
"version": 3
},
"file_extension": ".py",
"mimetype": "text/x-python",
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.10.12"
}
},
"nbformat": 4,
"nbformat_minor": 5
}