mirror of
https://git.victorphan.net/basketballcantho/CSIROBoeingPhase5-Vietnam.git
synced 2026-08-16 17:56:00 +07:00
3477 lines
3.2 MiB
Plaintext
3477 lines
3.2 MiB
Plaintext
|
|
{
|
||
|
|
"cells": [
|
||
|
|
{
|
||
|
|
"cell_type": "code",
|
||
|
|
"execution_count": 1,
|
||
|
|
"id": "1a452ff0-7c2f-4fa7-abf4-f7c8b09a9932",
|
||
|
|
"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 13 s, sys: 4.19 s, total: 17.2 s\n",
|
||
|
|
"Wall time: 10.8 s\n"
|
||
|
|
]
|
||
|
|
}
|
||
|
|
],
|
||
|
|
"source": [
|
||
|
|
"%%time\n",
|
||
|
|
"%matplotlib inline\n",
|
||
|
|
"from new_import import *"
|
||
|
|
]
|
||
|
|
},
|
||
|
|
{
|
||
|
|
"cell_type": "code",
|
||
|
|
"execution_count": 2,
|
||
|
|
"id": "219d4303-b606-45e1-a3a7-0b52e3cfe279",
|
||
|
|
"metadata": {
|
||
|
|
"tags": []
|
||
|
|
},
|
||
|
|
"outputs": [
|
||
|
|
{
|
||
|
|
"name": "stdout",
|
||
|
|
"output_type": "stream",
|
||
|
|
"text": [
|
||
|
|
"An existing cluster was found. Connecting to: easihub.9f2f42f40c134601a68634913d891637\n",
|
||
|
|
"CPU times: user 745 ms, sys: 23 ms, total: 769 ms\n",
|
||
|
|
"Wall time: 975 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-db3adc82-6e7a-11ef-8c3d-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=1 threads=8, memory=28.00 GiB>"
|
||
|
|
]
|
||
|
|
},
|
||
|
|
"execution_count": 2,
|
||
|
|
"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": 3,
|
||
|
|
"id": "56a9e23b-435e-4235-b09d-196662813f5a",
|
||
|
|
"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)"
|
||
|
|
]
|
||
|
|
},
|
||
|
|
{
|
||
|
|
"cell_type": "code",
|
||
|
|
"execution_count": 4,
|
||
|
|
"id": "606d23a3-7db6-4eb2-9d31-1e31ee3aaef7",
|
||
|
|
"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: 558.40 MB</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'><xarray.Dataset>\n",
|
||
|
|
"Dimensions: (time: 78, y: 532, x: 830)\n",
|
||
|
|
"Coordinates:\n",
|
||
|
|
" * time (time) datetime64[ns] 2022-09-02T03:35:38.706000 ... 2023-09...\n",
|
||
|
|
" * y (y) float64 1.072e+06 1.072e+06 ... 1.067e+06 1.067e+06\n",
|
||
|
|
" * x (x) float64 5.95e+05 5.95e+05 5.95e+05 ... 6.033e+05 6.033e+05\n",
|
||
|
|
" spatial_ref int32 32648\n",
|
||
|
|
"Data variables:\n",
|
||
|
|
" blue (time, y, x) float32 dask.array<chunksize=(1, 532, 830), meta=np.ndarray>\n",
|
||
|
|
" green (time, y, x) float32 dask.array<chunksize=(1, 532, 830), meta=np.ndarray>\n",
|
||
|
|
" red (time, y, x) float32 dask.array<chunksize=(1, 532, 830), meta=np.ndarray>\n",
|
||
|
|
" nir (time, y, x) float32 dask.array<chunksize=(1, 532, 830), meta=np.ndarray>\n",
|
||
|
|
" scl (time, y, x) uint8 dask.array<chunksize=(1, 532, 830), meta=np.ndarray>\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-7172a82a-0305-4246-98b0-5658333dcce1' class='xr-section-summary-in' type='checkbox' disabled ><label for='section-7172a82a-0305-4246-98b0-5658333dcce1' 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>: 78</li><li><span class='xr-has-index'>y</span>: 532</li><li><span class='xr-has-index'>x</span>: 830</li></ul></div><div class='xr-section-details'></div></li><li class='xr-section-item'><input id='section-64ffb172-2024-4ba0-b8ff-cb54f28fc516' class='xr-section-summary-in' type='checkbox' checked><label for='section-64ffb172-2024-4ba0-b8ff-cb54f28fc516' 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:38.706000 ... 2...</div><input id='attrs-fd6aa11c-cb06-4302-b28b-06505f5ea1c3' class='xr-var-attrs-in' type='checkbox' ><label for='attrs-fd6aa11c-cb06-4302-b28b-06505f5ea1c3' title='Show/Hide attributes'><svg class='icon xr-icon-file-text2'><use xlink:href='#icon-file-text2'></use></svg></label><input id='data-48a0fe19-6e19-498d-b01d-fe95702aed3c' class='xr-var-data-in' type='checkbox'><label for='data-48a0fe19-6e19-498d-b01d-fe95702aed3c' 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(['2022-09-02T03:35:38.706000000', '2022-09-07T03:35:28.392000000',\n",
|
||
|
|
" '2022-09-12T03:35:36.984000000', '2022-09-17T03:35:28.396000000',\n",
|
||
|
|
" '2022-09-22T03:35:33.676000000', '2022-09-27T03:35:26.885000000',\n",
|
||
|
|
" '2022-10-02T03:35:33.797000000', '2022-10-07T03:35:23.874000000',\n",
|
||
|
|
" '2022-10-12T03:35:31.889000000', '2022-10-17T03:35:25.895000000',\n",
|
||
|
|
" '2022-10-22T03:35:28.478000000', '2022-10-27T03:35:25.671000000',\n",
|
||
|
|
" '2022-11-01T03:35:30.553000000', '2022-11-06T03:35:24.840000000',\n",
|
||
|
|
" '2022-11-11T03:35:30.080000000', '2022-11-16T03:35:26.282000000',\n",
|
||
|
|
" '2022-11-21T03:35:27.133000000', '2022-11-26T03:35:25.806000000',\n",
|
||
|
|
" '2022-12-01T03:35:26.747000000', '2022-12-06T03:35:23.575000000',\n",
|
||
|
|
" '2022-12-11T03:35:26.920000000', '2022-12-16T03:35:24.874000000',\n",
|
||
|
|
" '2022-12-21T03:35:24.727000000', '2022-12-26T03:35:25.874000000',\n",
|
||
|
|
" '2022-12-31T03:35:25.489000000', '2023-01-05T03:35:26.328000000',\n",
|
||
|
|
" '2023-01-10T03:35:24.897000000', '2023-01-15T03:35:22.879000000',\n",
|
||
|
|
" '2023-01-20T03:35:21.331000000', '2023-01-25T03:35:24.561000000',\n",
|
||
|
|
" '2023-01-30T03:35:24.703000000', '2023-02-04T03:35:25.086000000',\n",
|
||
|
|
" '2023-02-09T03:35:25.381000000', '2023-02-14T03:35:24.987000000',\n",
|
||
|
|
" '2023-02-24T03:35:26.862000000', '2023-03-01T03:35:23.929000000',\n",
|
||
|
|
" '2023-03-06T03:35:29.457000000', '2023-03-11T03:35:21.972000000',\n",
|
||
|
|
" '2023-03-16T03:35:30.684000000', '2023-03-21T03:35:25.016000000',\n",
|
||
|
|
" '2023-03-26T03:35:29.316000000', '2023-03-31T03:35:24.882000000',\n",
|
||
|
|
" '2023-04-05T03:35:29.667000000', '2023-04-10T03:35:26.745000000',\n",
|
||
|
|
" '2023-04-15T03:35:27.482000000', '2023-04-20T03:35:25.073000000',\n",
|
||
|
|
" '2023-04-25T03:35:28.492000000', '2023-04-30T03:35:26.887000000',\n",
|
||
|
|
" '2023-05-05T03:35:29.183000000', '2023-05-10T03:35:26.031000000',\n",
|
||
|
|
" '2023-05-15T03:35:30.428000000', '2023-05-20T03:35:28.932000000',\n",
|
||
|
|
" '2023-05-25T03:35:31.398000000', '2023-05-30T03:35:30.380000000',\n",
|
||
|
|
" '2023-06-04T03:35:30.790000000', '2023-06-09T03:35:30.281000000',\n",
|
||
|
|
" '2023-06-14T03:35:31.608000000', '2023-06-19T03:35:30.646000000',\n",
|
||
|
|
" '2023-06-24T03:35:30.720000000', '2023-06-29T03:35:30.713000000',\n",
|
||
|
|
" '2023-07-04T03:35:31.975000000', '2023-07-09T03:35:31.850000000',\n",
|
||
|
|
" '2023-07-14T03:35:31.327000000', '2023-07-19T03:35:30.791000000',\n",
|
||
|
|
" '2023-07-24T03:35:32.589000000', '2023-07-29T03:35:31.826000000',\n",
|
||
|
|
" '2023-08-03T03:35:31.242000000', '2023-08-08T03:35:31.056000000',\n",
|
||
|
|
" '2023-08-13T03:35:32.189000000', '2023-08-18T03:35:32.563000000',\n",
|
||
|
|
" '2023-08-23T03:35:30.964000000', '2023-08-28T03:35:32.323000000',\n",
|
||
|
|
" '2023-09-02T03:35:31.370000000', '2023-09-07T03:35:31.878000000',\n",
|
||
|
|
" '2023-09-12T03:35:30.073000000', '2023-09-17T03:35:30.006000000',\n",
|
||
|
|
" '2023-09-22T03:35:30.187000000', '2023-09-27T03:35:28.858000000'],\n",
|
||
|
|
" dtype='datetime64[ns]')</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.072e+06 1.072e+06 ... 1.067e+06</div><input id='attrs-0b3e4661-a904-4473-aef8-9bdf5f881fe0' class='xr-var-attrs-in' type='checkbox' ><label for='attrs-0b3e4661-a904-4473-aef8-9bdf5f881fe0' title='Show/Hide attributes'><svg class='icon xr-icon-file-text2'><use xlink:href='#icon-file-text2'></use></svg></label><input id='data-e1eea1e1-a62e-4307-83aa-1cd8daf5e894' class='xr-var-data-in' type='checkbox'><label for='data-e1eea1e1-a62e-4307-83aa-1cd8daf5e894' 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([1072225., 1072215., 1072205., ..., 1066935., 1066925., 1066915.])</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.95e+05 5.95e+05 ... 6.033e+05</div><input id='attrs-5c8b2bfe-d802-4e35-85a3-dbd5e4688ab2' class='xr-var-attrs-in' type='checkbox' ><label for='attrs-5c8b2bfe-d802-4e35-85a3-dbd5e4688ab2' title='Show/Hide attributes'><svg class='icon xr-icon-file-text2'><use xlink:href='#icon-file-text2'></use></svg></label><input id='data-228a1ab2-9551-4e2e-b513-4f58facce8ee' class='xr-var-data-in' type='checkbox'><label for='data-228a1ab2-9551-4e2e-b513-4f58facce8ee' 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([594975., 594985., 594995., ..., 603245., 603255., 603265.])</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-6e760c80-2a68-4f08-9aa9-5a23d25b7fd1' class='xr-var-attrs-in' type='checkbox' ><label for='attrs-6e760c80-2a68-4f08-9aa9-5a23d25b7fd1' title='Show/Hide attributes'><svg class='icon xr-icon-file-text2'><use xlink:href='#icon-file-text2'></use></svg></label><input id='data-95be75b7-a071-43d6-9d79-e50b9ceb79bd' class='xr-var-data-in' type='checkbox'><label for='data-95be75b7-a071-43d6-9d79-e50b9ceb79bd' 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["WGS 84 / UTM zone 48N",GEOGCS["WGS 84",DATUM["WGS_1984",SPHEROID["WGS 84",6378137,298.257223563,AUTHORITY["EPSG","7030"]],AUTHORITY["EPSG","6326"]],PRIMEM["Greenwich",0,AUTHORITY["EPSG","8901"]],UNIT["degree",0.0174532925199433,AUTHORITY["EPSG","9122"]],AUTHORITY["EPSG","4326"]],PROJECTION["Transverse_Mercator"],PARAMETER["latitude_of_origin",0],PARAMETER["central_meridian",105],PARAMETER["scale_factor",0.9996],PARAMETER["false_easting",500000],PARAMETER["false_northing",0],UNIT["metre",1,AUTHORITY["EPSG","9001"]],AXIS["Easting",EAST],AXIS["Northing",NORTH],AUTHORITY["EPSG","32648"]]</dd><dt><span>grid_mapping_name :</span></dt><dd>transverse_mercator</dd></dl></div><div class='xr-var-data'><pre>array(32648, dtype=int32)</pre>
|
||
|
|
" <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> 131.38 MiB </td>\n",
|
||
|
|
" <td> 1.68 MiB </td>\n",
|
||
|
|
" </tr>\n",
|
||
|
|
" \n",
|
||
|
|
" <tr>\n",
|
||
|
|
" <th> Shape </th>\n",
|
||
|
|
" <td> (78, 532, 830) </td>\n",
|
||
|
|
" <td> (1, 532, 830) </td>\n",
|
||
|
|
" </tr>\n",
|
||
|
|
" <tr>\n",
|
||
|
|
" <th> Dask graph </th>\n",
|
||
|
|
" <td colspan=\"2\"> 78 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=\"202\" height=\"149\" style=\"stroke:rgb(0,0,0);stroke-width:1\" >\n",
|
||
|
|
"\n",
|
||
|
|
" <!-- Horizontal lines -->\n",
|
||
|
|
" <line x1=\"10\" y1=\"0\" x2=\"32\" y2=\"22\" style=\"stroke-width:2\" />\n",
|
||
|
|
" <line x1=\"10\" y1=\"76\" x2=\"32\" y2=\"99\" style=\"stroke-width:2\" />\n",
|
||
|
|
"\n",
|
||
|
|
" <!-- Vertical lines -->\n",
|
||
|
|
" <line x1=\"10\" y1=\"0\" x2=\"10\" y2=\"76\" style=\"stroke-width:2\" />\n",
|
||
|
|
" <line x1=\"11\" y1=\"1\" x2=\"11\" y2=\"78\" />\n",
|
||
|
|
" <line x1=\"12\" y1=\"2\" x2=\"12\" y2=\"79\" />\n",
|
||
|
|
" <line x1=\"13\" y1=\"3\" x2=\"13\" y2=\"80\" />\n",
|
||
|
|
" <line x1=\"14\" y1=\"4\" x2=\"14\" y2=\"81\" />\n",
|
||
|
|
" <line x1=\"15\" y1=\"5\" x2=\"15\" y2=\"82\" />\n",
|
||
|
|
" <line x1=\"16\" y1=\"6\" x2=\"16\" y2=\"83\" />\n",
|
||
|
|
" <line x1=\"18\" y1=\"8\" x2=\"18\" y2=\"84\" />\n",
|
||
|
|
" <line x1=\"19\" y1=\"9\" x2=\"19\" y2=\"86\" />\n",
|
||
|
|
" <line x1=\"20\" y1=\"10\" x2=\"20\" y2=\"87\" />\n",
|
||
|
|
" <line x1=\"21\" y1=\"11\" x2=\"21\" y2=\"88\" />\n",
|
||
|
|
" <line x1=\"22\" y1=\"12\" x2=\"22\" y2=\"89\" />\n",
|
||
|
|
" <line x1=\"24\" y1=\"14\" x2=\"24\" y2=\"91\" />\n",
|
||
|
|
" <line x1=\"25\" y1=\"15\" x2=\"25\" y2=\"92\" />\n",
|
||
|
|
" <line x1=\"26\" y1=\"16\" x2=\"26\" y2=\"93\" />\n",
|
||
|
|
" <line x1=\"27\" y1=\"17\" x2=\"27\" y2=\"94\" />\n",
|
||
|
|
" <line x1=\"28\" y1=\"18\" x2=\"28\" y2=\"95\" />\n",
|
||
|
|
" <line x1=\"29\" y1=\"19\" x2=\"29\" y2=\"96\" />\n",
|
||
|
|
" <line x1=\"31\" y1=\"21\" x2=\"31\" y2=\"97\" />\n",
|
||
|
|
" <line x1=\"32\" y1=\"22\" x2=\"32\" y2=\"99\" style=\"stroke-width:2\" />\n",
|
||
|
|
"\n",
|
||
|
|
" <!-- Colored Rectangle -->\n",
|
||
|
|
" <polygon points=\"10.0,0.0 32.499846174763476,22.49984617476348 32.499846174763476,99.41550882536589 10.0,76.91566265060241\" 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=\"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=\"16\" y1=\"6\" x2=\"136\" y2=\"6\" />\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=\"22\" y1=\"12\" x2=\"142\" y2=\"12\" />\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\" />\n",
|
||
|
|
" <line x1=\"27\" y1=\"17\" x2=\"147\" y2=\"17\" />\n",
|
||
|
|
" <line x1=\"28\" y1=\"18\" x2=\"148\" y2=\"18\" />\n",
|
||
|
|
" <line x1=\"29\" y1=\"19\" x2=\"149\" y2=\"19\" />\n",
|
||
|
|
" <line x1=\"31\" y1=\"21\" x2=\"151\" y2=\"21\" />\n",
|
||
|
|
" <line x1=\"32\" y1=\"22\" x2=\"152\" y2=\"22\" style=\"stroke-width:2\" />\n",
|
||
|
|
"\n",
|
||
|
|
" <!-- Vertical lines -->\n",
|
||
|
|
" <line x1=\"10\" y1=\"0\" x2=\"32\" y2=\"22\" style=\"stroke-width:2\" />\n",
|
||
|
|
" <line x1=\"130\" y1=\"0\" x2=\"152\" y2=\"22\" style=\"stroke-width:2\" />\n",
|
||
|
|
"\n",
|
||
|
|
" <!-- Colored Rectangle -->\n",
|
||
|
|
" <polygon points=\"10.0,0.0 130.0,0.0 152.4998461747635,22.49984617476348 32.499846174763476,22.49984617476348\" style=\"fill:#8B4903A0;stroke-width:0\"/>\n",
|
||
|
|
"\n",
|
||
|
|
" <!-- Horizontal lines -->\n",
|
||
|
|
" <line x1=\"32\" y1=\"22\" x2=\"152\" y2=\"22\" style=\"stroke-width:2\" />\n",
|
||
|
|
" <line x1=\"32\" y1=\"99\" x2=\"152\" y2=\"99\" style=\"stroke-width:2\" />\n",
|
||
|
|
"\n",
|
||
|
|
" <!-- Vertical lines -->\n",
|
||
|
|
" <line x1=\"32\" y1=\"22\" x2=\"32\" y2=\"99\" style=\"stroke-width:2\" />\n",
|
||
|
|
" <line x1=\"152\" y1=\"22\" x2=\"152\" y2=\"99\" style=\"stroke-width:2\" />\n",
|
||
|
|
"\n",
|
||
|
|
" <!-- Colored Rectangle -->\n",
|
||
|
|
" <polygon points=\"32.499846174763476,22.49984617476348 152.4998461747635,22.49984617476348 152.4998461747635,99.41550882536589 32.499846174763476,99.41550882536589\" style=\"fill:#ECB172A0;stroke-width:0\"/>\n",
|
||
|
|
"\n",
|
||
|
|
" <!-- Text -->\n",
|
||
|
|
" <text x=\"92.499846\" y=\"119.415509\" font-size=\"1.0rem\" font-weight=\"100\" text-anchor=\"middle\" >830</text>\n",
|
||
|
|
" <text x=\"172.499846\" y=\"60.957678\" font-size=\"1.0rem\" font-weight=\"100\" text-anchor=\"middle\" transform=\"rotate(-90,172.499846,60.957678)\">532</text>\n",
|
||
|
|
" <text x=\"11.249923\" y=\"108.165586\" font-size=\"1.0rem\" font-weight=\"100\" text-anchor=\"middle\" transform=\"rotate(45,11.249923,108.165586)\">78</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<chunksize=(1, 532, 830), meta=np.ndarray></div><input id='attrs-7ca4cff9-92a7-40b7-8d31-659df112bb12' class='xr-var-attrs-in' type='checkbox' disabled><label for='attrs-7ca4cff9-92a7-40b7-8d31-659df112bb12' title='Show/Hide attributes'><svg class='icon xr-icon-file-text2'><use xlink:href='#icon-file-text2'></use></svg></label><input id='data-1de626c1-050f-47a2-b7fd-d5feab33b207' class='xr-var-data-in' type='checkbox'><label for='data-1de626c1-050f-47a2-b7fd-d5feab33b207' 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> 131.38 MiB </td>\n",
|
||
|
|
" <td> 1.68 MiB </td>\n",
|
||
|
|
" </tr>\n",
|
||
|
|
" \n",
|
||
|
|
" <tr>\n",
|
||
|
|
" <th> Shape </th>\n",
|
||
|
|
" <td> (78, 532, 830) </td>\n",
|
||
|
|
" <td> (1, 532, 830) </td>\n",
|
||
|
|
" </tr>\n",
|
||
|
|
" <tr>\n",
|
||
|
|
" <th> Dask graph </th>\n",
|
||
|
|
" <td colspan=\"2\"> 78 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=\"202\" height=\"149\" style=\"stroke:rgb(0,0,0);stroke-width:1\" >\n",
|
||
|
|
"\n",
|
||
|
|
" <!-- Horizontal lines -->\n",
|
||
|
|
" <line x1=\"10\" y1=\"0\" x2=\"32\" y2=\"22\" style=\"stroke-width:2\" />\n",
|
||
|
|
" <line x1=\"10\" y1=\"76\" x2=\"32\" y2=\"99\" style=\"stroke-width:2\" />\n",
|
||
|
|
"\n",
|
||
|
|
" <!-- Vertical lines -->\n",
|
||
|
|
" <line x1=\"10\" y1=\"0\" x2=\"10\" y2=\"76\" style=\"stroke-width:2\" />\n",
|
||
|
|
" <line x1=\"11\" y1=\"1\" x2=\"11\" y2=\"78\" />\n",
|
||
|
|
" <line x1=\"12\" y1=\"2\" x2=\"12\" y2=\"79\" />\n",
|
||
|
|
" <line x1=\"13\" y1=\"3\" x2=\"13\" y2=\"80\" />\n",
|
||
|
|
" <line x1=\"14\" y1=\"4\" x2=\"14\" y2=\"81\" />\n",
|
||
|
|
" <line x1=\"15\" y1=\"5\" x2=\"15\" y2=\"82\" />\n",
|
||
|
|
" <line x1=\"16\" y1=\"6\" x2=\"16\" y2=\"83\" />\n",
|
||
|
|
" <line x1=\"18\" y1=\"8\" x2=\"18\" y2=\"84\" />\n",
|
||
|
|
" <line x1=\"19\" y1=\"9\" x2=\"19\" y2=\"86\" />\n",
|
||
|
|
" <line x1=\"20\" y1=\"10\" x2=\"20\" y2=\"87\" />\n",
|
||
|
|
" <line x1=\"21\" y1=\"11\" x2=\"21\" y2=\"88\" />\n",
|
||
|
|
" <line x1=\"22\" y1=\"12\" x2=\"22\" y2=\"89\" />\n",
|
||
|
|
" <line x1=\"24\" y1=\"14\" x2=\"24\" y2=\"91\" />\n",
|
||
|
|
" <line x1=\"25\" y1=\"15\" x2=\"25\" y2=\"92\" />\n",
|
||
|
|
" <line x1=\"26\" y1=\"16\" x2=\"26\" y2=\"93\" />\n",
|
||
|
|
" <line x1=\"27\" y1=\"17\" x2=\"27\" y2=\"94\" />\n",
|
||
|
|
" <line x1=\"28\" y1=\"18\" x2=\"28\" y2=\"95\" />\n",
|
||
|
|
" <line x1=\"29\" y1=\"19\" x2=\"29\" y2=\"96\" />\n",
|
||
|
|
" <line x1=\"31\" y1=\"21\" x2=\"31\" y2=\"97\" />\n",
|
||
|
|
" <line x1=\"32\" y1=\"22\" x2=\"32\" y2=\"99\" style=\"stroke-width:2\" />\n",
|
||
|
|
"\n",
|
||
|
|
" <!-- Colored Rectangle -->\n",
|
||
|
|
" <polygon points=\"10.0,0.0 32.499846174763476,22.49984617476348 32.499846174763476,99.41550882536589 10.0,76.91566265060241\" 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=\"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=\"16\" y1=\"6\" x2=\"136\" y2=\"6\" />\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=\"22\" y1=\"12\" x2=\"142\" y2=\"12\" />\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\" />\n",
|
||
|
|
" <line x1=\"27\" y1=\"17\" x2=\"147\" y2=\"17\" />\n",
|
||
|
|
" <line x1=\"28\" y1=\"18\" x2=\"148\" y2=\"18\" />\n",
|
||
|
|
" <line x1=\"29\" y1=\"19\" x2=\"149\" y2=\"19\" />\n",
|
||
|
|
" <line x1=\"31\" y1=\"21\" x2=\"151\" y2=\"21\" />\n",
|
||
|
|
" <line x1=\"32\" y1=\"22\" x2=\"152\" y2=\"22\" style=\"stroke-width:2\" />\n",
|
||
|
|
"\n",
|
||
|
|
" <!-- Vertical lines -->\n",
|
||
|
|
" <line x1=\"10\" y1=\"0\" x2=\"32\" y2=\"22\" style=\"stroke-width:2\" />\n",
|
||
|
|
" <line x1=\"130\" y1=\"0\" x2=\"152\" y2=\"22\" style=\"stroke-width:2\" />\n",
|
||
|
|
"\n",
|
||
|
|
" <!-- Colored Rectangle -->\n",
|
||
|
|
" <polygon points=\"10.0,0.0 130.0,0.0 152.4998461747635,22.49984617476348 32.499846174763476,22.49984617476348\" style=\"fill:#8B4903A0;stroke-width:0\"/>\n",
|
||
|
|
"\n",
|
||
|
|
" <!-- Horizontal lines -->\n",
|
||
|
|
" <line x1=\"32\" y1=\"22\" x2=\"152\" y2=\"22\" style=\"stroke-width:2\" />\n",
|
||
|
|
" <line x1=\"32\" y1=\"99\" x2=\"152\" y2=\"99\" style=\"stroke-width:2\" />\n",
|
||
|
|
"\n",
|
||
|
|
" <!-- Vertical lines -->\n",
|
||
|
|
" <line x1=\"32\" y1=\"22\" x2=\"32\" y2=\"99\" style=\"stroke-width:2\" />\n",
|
||
|
|
" <line x1=\"152\" y1=\"22\" x2=\"152\" y2=\"99\" style=\"stroke-width:2\" />\n",
|
||
|
|
"\n",
|
||
|
|
" <!-- Colored Rectangle -->\n",
|
||
|
|
" <polygon points=\"32.499846174763476,22.49984617476348 152.4998461747635,22.49984617476348 152.4998461747635,99.41550882536589 32.499846174763476,99.41550882536589\" style=\"fill:#ECB172A0;stroke-width:0\"/>\n",
|
||
|
|
"\n",
|
||
|
|
" <!-- Text -->\n",
|
||
|
|
" <text x=\"92.499846\" y=\"119.415509\" font-size=\"1.0rem\" font-weight=\"100\" text-anchor=\"middle\" >830</text>\n",
|
||
|
|
" <text x=\"172.499846\" y=\"60.957678\" font-size=\"1.0rem\" font-weight=\"100\" text-anchor=\"middle\" transform=\"rotate(-90,172.499846,60.957678)\">532</text>\n",
|
||
|
|
" <text x=\"11.249923\" y=\"108.165586\" font-size=\"1.0rem\" font-weight=\"100\" text-anchor=\"middle\" transform=\"rotate(45,11.249923,108.165586)\">78</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<chunksize=(1, 532, 830), meta=np.ndarray></div><input id='attrs-72a14b5c-cd7b-49b0-be26-908ea2dc9ddf' class='xr-var-attrs-in' type='checkbox' disabled><label for='attrs-72a14b5c-cd7b-49b0-be26-908ea2dc9ddf' title='Show/Hide attributes'><svg class='icon xr-icon-file-text2'><use xlink:href='#icon-file-text2'></use></svg></label><input id='data-84421752-370e-43ca-9f5b-33231383db68' class='xr-var-data-in' type='checkbox'><label for='data-84421752-370e-43ca-9f5b-33231383db68' 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> 131.38 MiB </td>\n",
|
||
|
|
" <td> 1.68 MiB </td>\n",
|
||
|
|
" </tr>\n",
|
||
|
|
" \n",
|
||
|
|
" <tr>\n",
|
||
|
|
" <th> Shape </th>\n",
|
||
|
|
" <td> (78, 532, 830) </td>\n",
|
||
|
|
" <td> (1, 532, 830) </td>\n",
|
||
|
|
" </tr>\n",
|
||
|
|
" <tr>\n",
|
||
|
|
" <th> Dask graph </th>\n",
|
||
|
|
" <td colspan=\"2\"> 78 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=\"202\" height=\"149\" style=\"stroke:rgb(0,0,0);stroke-width:1\" >\n",
|
||
|
|
"\n",
|
||
|
|
" <!-- Horizontal lines -->\n",
|
||
|
|
" <line x1=\"10\" y1=\"0\" x2=\"32\" y2=\"22\" style=\"stroke-width:2\" />\n",
|
||
|
|
" <line x1=\"10\" y1=\"76\" x2=\"32\" y2=\"99\" style=\"stroke-width:2\" />\n",
|
||
|
|
"\n",
|
||
|
|
" <!-- Vertical lines -->\n",
|
||
|
|
" <line x1=\"10\" y1=\"0\" x2=\"10\" y2=\"76\" style=\"stroke-width:2\" />\n",
|
||
|
|
" <line x1=\"11\" y1=\"1\" x2=\"11\" y2=\"78\" />\n",
|
||
|
|
" <line x1=\"12\" y1=\"2\" x2=\"12\" y2=\"79\" />\n",
|
||
|
|
" <line x1=\"13\" y1=\"3\" x2=\"13\" y2=\"80\" />\n",
|
||
|
|
" <line x1=\"14\" y1=\"4\" x2=\"14\" y2=\"81\" />\n",
|
||
|
|
" <line x1=\"15\" y1=\"5\" x2=\"15\" y2=\"82\" />\n",
|
||
|
|
" <line x1=\"16\" y1=\"6\" x2=\"16\" y2=\"83\" />\n",
|
||
|
|
" <line x1=\"18\" y1=\"8\" x2=\"18\" y2=\"84\" />\n",
|
||
|
|
" <line x1=\"19\" y1=\"9\" x2=\"19\" y2=\"86\" />\n",
|
||
|
|
" <line x1=\"20\" y1=\"10\" x2=\"20\" y2=\"87\" />\n",
|
||
|
|
" <line x1=\"21\" y1=\"11\" x2=\"21\" y2=\"88\" />\n",
|
||
|
|
" <line x1=\"22\" y1=\"12\" x2=\"22\" y2=\"89\" />\n",
|
||
|
|
" <line x1=\"24\" y1=\"14\" x2=\"24\" y2=\"91\" />\n",
|
||
|
|
" <line x1=\"25\" y1=\"15\" x2=\"25\" y2=\"92\" />\n",
|
||
|
|
" <line x1=\"26\" y1=\"16\" x2=\"26\" y2=\"93\" />\n",
|
||
|
|
" <line x1=\"27\" y1=\"17\" x2=\"27\" y2=\"94\" />\n",
|
||
|
|
" <line x1=\"28\" y1=\"18\" x2=\"28\" y2=\"95\" />\n",
|
||
|
|
" <line x1=\"29\" y1=\"19\" x2=\"29\" y2=\"96\" />\n",
|
||
|
|
" <line x1=\"31\" y1=\"21\" x2=\"31\" y2=\"97\" />\n",
|
||
|
|
" <line x1=\"32\" y1=\"22\" x2=\"32\" y2=\"99\" style=\"stroke-width:2\" />\n",
|
||
|
|
"\n",
|
||
|
|
" <!-- Colored Rectangle -->\n",
|
||
|
|
" <polygon points=\"10.0,0.0 32.499846174763476,22.49984617476348 32.499846174763476,99.41550882536589 10.0,76.91566265060241\" 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=\"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=\"16\" y1=\"6\" x2=\"136\" y2=\"6\" />\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=\"22\" y1=\"12\" x2=\"142\" y2=\"12\" />\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\" />\n",
|
||
|
|
" <line x1=\"27\" y1=\"17\" x2=\"147\" y2=\"17\" />\n",
|
||
|
|
" <line x1=\"28\" y1=\"18\" x2=\"148\" y2=\"18\" />\n",
|
||
|
|
" <line x1=\"29\" y1=\"19\" x2=\"149\" y2=\"19\" />\n",
|
||
|
|
" <line x1=\"31\" y1=\"21\" x2=\"151\" y2=\"21\" />\n",
|
||
|
|
" <line x1=\"32\" y1=\"22\" x2=\"152\" y2=\"22\" style=\"stroke-width:2\" />\n",
|
||
|
|
"\n",
|
||
|
|
" <!-- Vertical lines -->\n",
|
||
|
|
" <line x1=\"10\" y1=\"0\" x2=\"32\" y2=\"22\" style=\"stroke-width:2\" />\n",
|
||
|
|
" <line x1=\"130\" y1=\"0\" x2=\"152\" y2=\"22\" style=\"stroke-width:2\" />\n",
|
||
|
|
"\n",
|
||
|
|
" <!-- Colored Rectangle -->\n",
|
||
|
|
" <polygon points=\"10.0,0.0 130.0,0.0 152.4998461747635,22.49984617476348 32.499846174763476,22.49984617476348\" style=\"fill:#8B4903A0;stroke-width:0\"/>\n",
|
||
|
|
"\n",
|
||
|
|
" <!-- Horizontal lines -->\n",
|
||
|
|
" <line x1=\"32\" y1=\"22\" x2=\"152\" y2=\"22\" style=\"stroke-width:2\" />\n",
|
||
|
|
" <line x1=\"32\" y1=\"99\" x2=\"152\" y2=\"99\" style=\"stroke-width:2\" />\n",
|
||
|
|
"\n",
|
||
|
|
" <!-- Vertical lines -->\n",
|
||
|
|
" <line x1=\"32\" y1=\"22\" x2=\"32\" y2=\"99\" style=\"stroke-width:2\" />\n",
|
||
|
|
" <line x1=\"152\" y1=\"22\" x2=\"152\" y2=\"99\" style=\"stroke-width:2\" />\n",
|
||
|
|
"\n",
|
||
|
|
" <!-- Colored Rectangle -->\n",
|
||
|
|
" <polygon points=\"32.499846174763476,22.49984617476348 152.4998461747635,22.49984617476348 152.4998461747635,99.41550882536589 32.499846174763476,99.41550882536589\" style=\"fill:#ECB172A0;stroke-width:0\"/>\n",
|
||
|
|
"\n",
|
||
|
|
" <!-- Text -->\n",
|
||
|
|
" <text x=\"92.499846\" y=\"119.415509\" font-size=\"1.0rem\" font-weight=\"100\" text-anchor=\"middle\" >830</text>\n",
|
||
|
|
" <text x=\"172.499846\" y=\"60.957678\" font-size=\"1.0rem\" font-weight=\"100\" text-anchor=\"middle\" transform=\"rotate(-90,172.499846,60.957678)\">532</text>\n",
|
||
|
|
" <text x=\"11.249923\" y=\"108.165586\" font-size=\"1.0rem\" font-weight=\"100\" text-anchor=\"middle\" transform=\"rotate(45,11.249923,108.165586)\">78</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<chunksize=(1, 532, 830), meta=np.ndarray></div><input id='attrs-275143dc-3422-45aa-bc1b-d2795b2d3093' class='xr-var-attrs-in' type='checkbox' disabled><label for='attrs-275143dc-3422-45aa-bc1b-d2795b2d3093' title='Show/Hide attributes'><svg class='icon xr-icon-file-text2'><use xlink:href='#icon-file-text2'></use></svg></label><input id='data-50f6f66a-5eb3-467b-854f-992da89a4bfc' class='xr-var-data-in' type='checkbox'><label for='data-50f6f66a-5eb3-467b-854f-992da89a4bfc' 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> 131.38 MiB </td>\n",
|
||
|
|
" <td> 1.68 MiB </td>\n",
|
||
|
|
" </tr>\n",
|
||
|
|
" \n",
|
||
|
|
" <tr>\n",
|
||
|
|
" <th> Shape </th>\n",
|
||
|
|
" <td> (78, 532, 830) </td>\n",
|
||
|
|
" <td> (1, 532, 830) </td>\n",
|
||
|
|
" </tr>\n",
|
||
|
|
" <tr>\n",
|
||
|
|
" <th> Dask graph </th>\n",
|
||
|
|
" <td colspan=\"2\"> 78 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=\"202\" height=\"149\" style=\"stroke:rgb(0,0,0);stroke-width:1\" >\n",
|
||
|
|
"\n",
|
||
|
|
" <!-- Horizontal lines -->\n",
|
||
|
|
" <line x1=\"10\" y1=\"0\" x2=\"32\" y2=\"22\" style=\"stroke-width:2\" />\n",
|
||
|
|
" <line x1=\"10\" y1=\"76\" x2=\"32\" y2=\"99\" style=\"stroke-width:2\" />\n",
|
||
|
|
"\n",
|
||
|
|
" <!-- Vertical lines -->\n",
|
||
|
|
" <line x1=\"10\" y1=\"0\" x2=\"10\" y2=\"76\" style=\"stroke-width:2\" />\n",
|
||
|
|
" <line x1=\"11\" y1=\"1\" x2=\"11\" y2=\"78\" />\n",
|
||
|
|
" <line x1=\"12\" y1=\"2\" x2=\"12\" y2=\"79\" />\n",
|
||
|
|
" <line x1=\"13\" y1=\"3\" x2=\"13\" y2=\"80\" />\n",
|
||
|
|
" <line x1=\"14\" y1=\"4\" x2=\"14\" y2=\"81\" />\n",
|
||
|
|
" <line x1=\"15\" y1=\"5\" x2=\"15\" y2=\"82\" />\n",
|
||
|
|
" <line x1=\"16\" y1=\"6\" x2=\"16\" y2=\"83\" />\n",
|
||
|
|
" <line x1=\"18\" y1=\"8\" x2=\"18\" y2=\"84\" />\n",
|
||
|
|
" <line x1=\"19\" y1=\"9\" x2=\"19\" y2=\"86\" />\n",
|
||
|
|
" <line x1=\"20\" y1=\"10\" x2=\"20\" y2=\"87\" />\n",
|
||
|
|
" <line x1=\"21\" y1=\"11\" x2=\"21\" y2=\"88\" />\n",
|
||
|
|
" <line x1=\"22\" y1=\"12\" x2=\"22\" y2=\"89\" />\n",
|
||
|
|
" <line x1=\"24\" y1=\"14\" x2=\"24\" y2=\"91\" />\n",
|
||
|
|
" <line x1=\"25\" y1=\"15\" x2=\"25\" y2=\"92\" />\n",
|
||
|
|
" <line x1=\"26\" y1=\"16\" x2=\"26\" y2=\"93\" />\n",
|
||
|
|
" <line x1=\"27\" y1=\"17\" x2=\"27\" y2=\"94\" />\n",
|
||
|
|
" <line x1=\"28\" y1=\"18\" x2=\"28\" y2=\"95\" />\n",
|
||
|
|
" <line x1=\"29\" y1=\"19\" x2=\"29\" y2=\"96\" />\n",
|
||
|
|
" <line x1=\"31\" y1=\"21\" x2=\"31\" y2=\"97\" />\n",
|
||
|
|
" <line x1=\"32\" y1=\"22\" x2=\"32\" y2=\"99\" style=\"stroke-width:2\" />\n",
|
||
|
|
"\n",
|
||
|
|
" <!-- Colored Rectangle -->\n",
|
||
|
|
" <polygon points=\"10.0,0.0 32.499846174763476,22.49984617476348 32.499846174763476,99.41550882536589 10.0,76.91566265060241\" 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=\"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=\"16\" y1=\"6\" x2=\"136\" y2=\"6\" />\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=\"22\" y1=\"12\" x2=\"142\" y2=\"12\" />\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\" />\n",
|
||
|
|
" <line x1=\"27\" y1=\"17\" x2=\"147\" y2=\"17\" />\n",
|
||
|
|
" <line x1=\"28\" y1=\"18\" x2=\"148\" y2=\"18\" />\n",
|
||
|
|
" <line x1=\"29\" y1=\"19\" x2=\"149\" y2=\"19\" />\n",
|
||
|
|
" <line x1=\"31\" y1=\"21\" x2=\"151\" y2=\"21\" />\n",
|
||
|
|
" <line x1=\"32\" y1=\"22\" x2=\"152\" y2=\"22\" style=\"stroke-width:2\" />\n",
|
||
|
|
"\n",
|
||
|
|
" <!-- Vertical lines -->\n",
|
||
|
|
" <line x1=\"10\" y1=\"0\" x2=\"32\" y2=\"22\" style=\"stroke-width:2\" />\n",
|
||
|
|
" <line x1=\"130\" y1=\"0\" x2=\"152\" y2=\"22\" style=\"stroke-width:2\" />\n",
|
||
|
|
"\n",
|
||
|
|
" <!-- Colored Rectangle -->\n",
|
||
|
|
" <polygon points=\"10.0,0.0 130.0,0.0 152.4998461747635,22.49984617476348 32.499846174763476,22.49984617476348\" style=\"fill:#8B4903A0;stroke-width:0\"/>\n",
|
||
|
|
"\n",
|
||
|
|
" <!-- Horizontal lines -->\n",
|
||
|
|
" <line x1=\"32\" y1=\"22\" x2=\"152\" y2=\"22\" style=\"stroke-width:2\" />\n",
|
||
|
|
" <line x1=\"32\" y1=\"99\" x2=\"152\" y2=\"99\" style=\"stroke-width:2\" />\n",
|
||
|
|
"\n",
|
||
|
|
" <!-- Vertical lines -->\n",
|
||
|
|
" <line x1=\"32\" y1=\"22\" x2=\"32\" y2=\"99\" style=\"stroke-width:2\" />\n",
|
||
|
|
" <line x1=\"152\" y1=\"22\" x2=\"152\" y2=\"99\" style=\"stroke-width:2\" />\n",
|
||
|
|
"\n",
|
||
|
|
" <!-- Colored Rectangle -->\n",
|
||
|
|
" <polygon points=\"32.499846174763476,22.49984617476348 152.4998461747635,22.49984617476348 152.4998461747635,99.41550882536589 32.499846174763476,99.41550882536589\" style=\"fill:#ECB172A0;stroke-width:0\"/>\n",
|
||
|
|
"\n",
|
||
|
|
" <!-- Text -->\n",
|
||
|
|
" <text x=\"92.499846\" y=\"119.415509\" font-size=\"1.0rem\" font-weight=\"100\" text-anchor=\"middle\" >830</text>\n",
|
||
|
|
" <text x=\"172.499846\" y=\"60.957678\" font-size=\"1.0rem\" font-weight=\"100\" text-anchor=\"middle\" transform=\"rotate(-90,172.499846,60.957678)\">532</text>\n",
|
||
|
|
" <text x=\"11.249923\" y=\"108.165586\" font-size=\"1.0rem\" font-weight=\"100\" text-anchor=\"middle\" transform=\"rotate(45,11.249923,108.165586)\">78</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<chunksize=(1, 532, 830), meta=np.ndarray></div><input id='attrs-571b755c-2e0e-436b-98f7-c365b4a9dc78' class='xr-var-attrs-in' type='checkbox' ><label for='attrs-571b755c-2e0e-436b-98f7-c365b4a9dc78' title='Show/Hide attributes'><svg class='icon xr-icon-file-text2'><use xlink:href='#icon-file-text2'></use></svg></label><input id='data-6787dcf0-d66c-4940-980e-4a5c28a97513' class='xr-var-data-in' type='checkbox'><label for='data-6787dcf0-d66c-4940-980e-4a5c28a97513' 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>{'qa': {'bits': [0, 1, 2, 3, 4, 5, 6, 7], 'values': {'0': 'no data', '1': 'saturated or defective', '2': 'dark area pixels', '3': 'cloud shadows', '4': 'vegetation', '5': 'bare soils', '6': 'water', '7': 'unclassified', '8': 'cloud medium probability', '9': 'cloud high probability', '10': 'thin cirrus', '11': 'snow or ice'}, 'description': 'Sen2Cor Scene Classification'}}</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> 32.85 MiB </td>\n",
|
||
|
|
" <td> 431.21 kiB </td>\n",
|
||
|
|
" </tr>\n",
|
||
|
|
" \n",
|
||
|
|
" <tr>\n",
|
||
|
|
" <th> Shape </th>\n",
|
||
|
|
" <td> (78, 532, 830) </td>\n",
|
||
|
|
" <td> (1, 532, 830) </td>\n",
|
||
|
|
" </tr>\n",
|
||
|
|
" <tr>\n",
|
||
|
|
" <th> Dask graph </th>\n",
|
||
|
|
" <td colspan=\"2\"> 78 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=\"202\" height=\"149\" style=\"stroke:rgb(0,0,0);stroke-width:1\" >\n",
|
||
|
|
"\n",
|
||
|
|
" <!-- Horizontal lines -->\n",
|
||
|
|
" <line x1=\"10\" y1=\"0\" x2=\"32\" y2=\"22\" style=\"stroke-width:2\" />\n",
|
||
|
|
" <line x1=\"10\" y1=\"76\" x2=\"32\" y2=\"99\" style=\"stroke-width:2\" />\n",
|
||
|
|
"\n",
|
||
|
|
" <!-- Vertical lines -->\n",
|
||
|
|
" <line x1=\"10\" y1=\"0\" x2=\"10\" y2=\"76\" style=\"stroke-width:2\" />\n",
|
||
|
|
" <line x1=\"11\" y1=\"1\" x2=\"11\" y2=\"78\" />\n",
|
||
|
|
" <line x1=\"12\" y1=\"2\" x2=\"12\" y2=\"79\" />\n",
|
||
|
|
" <line x1=\"13\" y1=\"3\" x2=\"13\" y2=\"80\" />\n",
|
||
|
|
" <line x1=\"14\" y1=\"4\" x2=\"14\" y2=\"81\" />\n",
|
||
|
|
" <line x1=\"15\" y1=\"5\" x2=\"15\" y2=\"82\" />\n",
|
||
|
|
" <line x1=\"16\" y1=\"6\" x2=\"16\" y2=\"83\" />\n",
|
||
|
|
" <line x1=\"18\" y1=\"8\" x2=\"18\" y2=\"84\" />\n",
|
||
|
|
" <line x1=\"19\" y1=\"9\" x2=\"19\" y2=\"86\" />\n",
|
||
|
|
" <line x1=\"20\" y1=\"10\" x2=\"20\" y2=\"87\" />\n",
|
||
|
|
" <line x1=\"21\" y1=\"11\" x2=\"21\" y2=\"88\" />\n",
|
||
|
|
" <line x1=\"22\" y1=\"12\" x2=\"22\" y2=\"89\" />\n",
|
||
|
|
" <line x1=\"24\" y1=\"14\" x2=\"24\" y2=\"91\" />\n",
|
||
|
|
" <line x1=\"25\" y1=\"15\" x2=\"25\" y2=\"92\" />\n",
|
||
|
|
" <line x1=\"26\" y1=\"16\" x2=\"26\" y2=\"93\" />\n",
|
||
|
|
" <line x1=\"27\" y1=\"17\" x2=\"27\" y2=\"94\" />\n",
|
||
|
|
" <line x1=\"28\" y1=\"18\" x2=\"28\" y2=\"95\" />\n",
|
||
|
|
" <line x1=\"29\" y1=\"19\" x2=\"29\" y2=\"96\" />\n",
|
||
|
|
" <line x1=\"31\" y1=\"21\" x2=\"31\" y2=\"97\" />\n",
|
||
|
|
" <line x1=\"32\" y1=\"22\" x2=\"32\" y2=\"99\" style=\"stroke-width:2\" />\n",
|
||
|
|
"\n",
|
||
|
|
" <!-- Colored Rectangle -->\n",
|
||
|
|
" <polygon points=\"10.0,0.0 32.499846174763476,22.49984617476348 32.499846174763476,99.41550882536589 10.0,76.91566265060241\" 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=\"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=\"16\" y1=\"6\" x2=\"136\" y2=\"6\" />\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=\"22\" y1=\"12\" x2=\"142\" y2=\"12\" />\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\" />\n",
|
||
|
|
" <line x1=\"27\" y1=\"17\" x2=\"147\" y2=\"17\" />\n",
|
||
|
|
" <line x1=\"28\" y1=\"18\" x2=\"148\" y2=\"18\" />\n",
|
||
|
|
" <line x1=\"29\" y1=\"19\" x2=\"149\" y2=\"19\" />\n",
|
||
|
|
" <line x1=\"31\" y1=\"21\" x2=\"151\" y2=\"21\" />\n",
|
||
|
|
" <line x1=\"32\" y1=\"22\" x2=\"152\" y2=\"22\" style=\"stroke-width:2\" />\n",
|
||
|
|
"\n",
|
||
|
|
" <!-- Vertical lines -->\n",
|
||
|
|
" <line x1=\"10\" y1=\"0\" x2=\"32\" y2=\"22\" style=\"stroke-width:2\" />\n",
|
||
|
|
" <line x1=\"130\" y1=\"0\" x2=\"152\" y2=\"22\" style=\"stroke-width:2\" />\n",
|
||
|
|
"\n",
|
||
|
|
" <!-- Colored Rectangle -->\n",
|
||
|
|
" <polygon points=\"10.0,0.0 130.0,0.0 152.4998461747635,22.49984617476348 32.499846174763476,22.49984617476348\" style=\"fill:#8B4903A0;stroke-width:0\"/>\n",
|
||
|
|
"\n",
|
||
|
|
" <!-- Horizontal lines -->\n",
|
||
|
|
" <line x1=\"32\" y1=\"22\" x2=\"152\" y2=\"22\" style=\"stroke-width:2\" />\n",
|
||
|
|
" <line x1=\"32\" y1=\"99\" x2=\"152\" y2=\"99\" style=\"stroke-width:2\" />\n",
|
||
|
|
"\n",
|
||
|
|
" <!-- Vertical lines -->\n",
|
||
|
|
" <line x1=\"32\" y1=\"22\" x2=\"32\" y2=\"99\" style=\"stroke-width:2\" />\n",
|
||
|
|
" <line x1=\"152\" y1=\"22\" x2=\"152\" y2=\"99\" style=\"stroke-width:2\" />\n",
|
||
|
|
"\n",
|
||
|
|
" <!-- Colored Rectangle -->\n",
|
||
|
|
" <polygon points=\"32.499846174763476,22.49984617476348 152.4998461747635,22.49984617476348 152.4998461747635,99.41550882536589 32.499846174763476,99.41550882536589\" style=\"fill:#ECB172A0;stroke-width:0\"/>\n",
|
||
|
|
"\n",
|
||
|
|
" <!-- Text -->\n",
|
||
|
|
" <text x=\"92.499846\" y=\"119.415509\" font-size=\"1.0rem\" font-weight=\"100\" text-anchor=\"middle\" >830</text>\n",
|
||
|
|
" <text x=\"172.499846\" y=\"60.957678\" font-size=\"1.0rem\" font-weight=\"100\" text-anchor=\"middle\" transform=\"rotate(-90,172.499846,60.957678)\">532</text>\n",
|
||
|
|
" <text x=\"11.249923\" y=\"108.165586\" font-size=\"1.0rem\" font-weight=\"100\" text-anchor=\"middle\" transform=\"rotate(45,11.249923,108.165586)\">78</text>\n",
|
||
|
|
"</svg>\n",
|
||
|
|
" </td>\n",
|
||
|
|
" </tr>\n",
|
||
|
|
"</table></div></li></ul></div></li><li class='xr-section-item'><input id='section-ad0d089f-4413-4996-b8d7-cd37897e479b' class='xr-section-summary-in' type='checkbox' ><label for='section-ad0d089f-4413-4996-b8d7-cd37897e479b' 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-c4e334b1-9e0a-40f3-9ba7-d96cee3b066b' class='xr-index-data-in' type='checkbox'/><label for='index-c4e334b1-9e0a-40f3-9ba7-d96cee3b066b' 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(['2022-09-02 03:35:38.706000', '2022-09-07 03:35:28.392000',\n",
|
||
|
|
" '2022-09-12 03:35:36.984000', '2022-09-17 03:35:28.396000',\n",
|
||
|
|
" '2022-09-22 03:35:33.676000', '2022-09-27 03:35:26.885000',\n",
|
||
|
|
" '2022-10-02 03:35:33.797000', '2022-10-07 03:35:23.874000',\n",
|
||
|
|
" '2022-10-12 03:35:31.889000', '2022-10-17 03:35:25.895000',\n",
|
||
|
|
" '2022-10-22 03:35:28.478000', '2022-10-27 03:35:25.671000',\n",
|
||
|
|
" '2022-11-01 03:35:30.553000', '2022-11-06 03:35:24.840000',\n",
|
||
|
|
" '2022-11-11 03:35:30.080000', '2022-11-16 03:35:26.282000',\n",
|
||
|
|
" '2022-11-21 03:35:27.133000', '2022-11-26 03:35:25.806000',\n",
|
||
|
|
" '2022-12-01 03:35:26.747000', '2022-12-06 03:35:23.575000',\n",
|
||
|
|
" '2022-12-11 03:35:26.920000', '2022-12-16 03:35:24.874000',\n",
|
||
|
|
" '2022-12-21 03:35:24.727000', '2022-12-26 03:35:25.874000',\n",
|
||
|
|
" '2022-12-31 03:35:25.489000', '2023-01-05 03:35:26.328000',\n",
|
||
|
|
" '2023-01-10 03:35:24.897000', '2023-01-15 03:35:22.879000',\n",
|
||
|
|
" '2023-01-20 03:35:21.331000', '2023-01-25 03:35:24.561000',\n",
|
||
|
|
" '2023-01-30 03:35:24.703000', '2023-02-04 03:35:25.086000',\n",
|
||
|
|
" '2023-02-09 03:35:25.381000', '2023-02-14 03:35:24.987000',\n",
|
||
|
|
" '2023-02-24 03:35:26.862000', '2023-03-01 03:35:23.929000',\n",
|
||
|
|
" '2023-03-06 03:35:29.457000', '2023-03-11 03:35:21.972000',\n",
|
||
|
|
" '2023-03-16 03:35:30.684000', '2023-03-21 03:35:25.016000',\n",
|
||
|
|
" '2023-03-26 03:35:29.316000', '2023-03-31 03:35:24.882000',\n",
|
||
|
|
" '2023-04-05 03:35:29.667000', '2023-04-10 03:35:26.745000',\n",
|
||
|
|
" '2023-04-15 03:35:27.482000', '2023-04-20 03:35:25.073000',\n",
|
||
|
|
" '2023-04-25 03:35:28.492000', '2023-04-30 03:35:26.887000',\n",
|
||
|
|
" '2023-05-05 03:35:29.183000', '2023-05-10 03:35:26.031000',\n",
|
||
|
|
" '2023-05-15 03:35:30.428000', '2023-05-20 03:35:28.932000',\n",
|
||
|
|
" '2023-05-25 03:35:31.398000', '2023-05-30 03:35:30.380000',\n",
|
||
|
|
" '2023-06-04 03:35:30.790000', '2023-06-09 03:35:30.281000',\n",
|
||
|
|
" '2023-06-14 03:35:31.608000', '2023-06-19 03:35:30.646000',\n",
|
||
|
|
" '2023-06-24 03:35:30.720000', '2023-06-29 03:35:30.713000',\n",
|
||
|
|
" '2023-07-04 03:35:31.975000', '2023-07-09 03:35:31.850000',\n",
|
||
|
|
" '2023-07-14 03:35:31.327000', '2023-07-19 03:35:30.791000',\n",
|
||
|
|
" '2023-07-24 03:35:32.589000', '2023-07-29 03:35:31.826000',\n",
|
||
|
|
" '2023-08-03 03:35:31.242000', '2023-08-08 03:35:31.056000',\n",
|
||
|
|
" '2023-08-13 03:35:32.189000', '2023-08-18 03:35:32.563000',\n",
|
||
|
|
" '2023-08-23 03:35:30.964000', '2023-08-28 03:35:32.323000',\n",
|
||
|
|
" '2023-09-02 03:35:31.370000', '2023-09-07 03:35:31.878000',\n",
|
||
|
|
" '2023-09-12 03:35:30.073000', '2023-09-17 03:35:30.006000',\n",
|
||
|
|
" '2023-09-22 03:35:30.187000', '2023-09-27 03:35:28.858000'],\n",
|
||
|
|
" dtype='datetime64[ns]', name='time', 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-df6709d9-4dde-4771-bb01-c04e13105dd6' class='xr-index-data-in' type='checkbox'/><label for='index-df6709d9-4dde-4771-bb01-c04e13105dd6' 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([1072225.0, 1072215.0, 1072205.0, 1072195.0, 1072185.0, 1072175.0,\n",
|
||
|
|
" 1072165.0, 1072155.0, 1072145.0, 1072135.0,\n",
|
||
|
|
" ...\n",
|
||
|
|
" 1067005.0, 1066995.0, 1066985.0, 1066975.0, 1066965.0, 1066955.0,\n",
|
||
|
|
" 1066945.0, 1066935.0, 1066925.0, 1066915.0],\n",
|
||
|
|
" dtype='float64', name='y', length=532))</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-f0e6fea3-6bf1-4285-ae0b-a77e76dcfec2' class='xr-index-data-in' type='checkbox'/><label for='index-f0e6fea3-6bf1-4285-ae0b-a77e76dcfec2' 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([594975.0, 594985.0, 594995.0, 595005.0, 595015.0, 595025.0, 595035.0,\n",
|
||
|
|
" 595045.0, 595055.0, 595065.0,\n",
|
||
|
|
" ...\n",
|
||
|
|
" 603175.0, 603185.0, 603195.0, 603205.0, 603215.0, 603225.0, 603235.0,\n",
|
||
|
|
" 603245.0, 603255.0, 603265.0],\n",
|
||
|
|
" dtype='float64', name='x', length=830))</pre></div></li></ul></div></li><li class='xr-section-item'><input id='section-042dee75-7a1e-4b7d-81c0-75abac084b07' class='xr-section-summary-in' type='checkbox' checked><label for='section-042dee75-7a1e-4b7d-81c0-75abac084b07' 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: 78, y: 532, x: 830)\n",
|
||
|
|
"Coordinates:\n",
|
||
|
|
" * time (time) datetime64[ns] 2022-09-02T03:35:38.706000 ... 2023-09...\n",
|
||
|
|
" * y (y) float64 1.072e+06 1.072e+06 ... 1.067e+06 1.067e+06\n",
|
||
|
|
" * x (x) float64 5.95e+05 5.95e+05 5.95e+05 ... 6.033e+05 6.033e+05\n",
|
||
|
|
" spatial_ref int32 32648\n",
|
||
|
|
"Data variables:\n",
|
||
|
|
" blue (time, y, x) float32 dask.array<chunksize=(1, 532, 830), meta=np.ndarray>\n",
|
||
|
|
" green (time, y, x) float32 dask.array<chunksize=(1, 532, 830), meta=np.ndarray>\n",
|
||
|
|
" red (time, y, x) float32 dask.array<chunksize=(1, 532, 830), meta=np.ndarray>\n",
|
||
|
|
" nir (time, y, x) float32 dask.array<chunksize=(1, 532, 830), meta=np.ndarray>\n",
|
||
|
|
" scl (time, y, x) uint8 dask.array<chunksize=(1, 532, 830), 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": 5,
|
||
|
|
"id": "54e04079-2c12-4de1-8541-0579fbfad4a1",
|
||
|
|
"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 114 ms, sys: 4.28 ms, total: 118 ms\n",
|
||
|
|
"Wall time: 116 ms\n"
|
||
|
|
]
|
||
|
|
},
|
||
|
|
{
|
||
|
|
"data": {
|
||
|
|
"application/vnd.jupyter.widget-view+json": {
|
||
|
|
"model_id": "f9b0cd64f56d4a51b6abd4253bc74740",
|
||
|
|
"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": 7,
|
||
|
|
"id": "565f467b-3002-4d24-a300-d34ce548f7e3",
|
||
|
|
"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'><xarray.DataArray 'NDVI' (time: 78, y: 532, x: 830)>\n",
|
||
|
|
"dask.array<truediv, shape=(78, 532, 830), dtype=float32, chunksize=(1, 532, 830), chunktype=numpy.ndarray>\n",
|
||
|
|
"Coordinates:\n",
|
||
|
|
" * time (time) datetime64[ns] 2022-09-02T03:35:38.706000 ... 2023-09...\n",
|
||
|
|
" * y (y) float64 1.072e+06 1.072e+06 ... 1.067e+06 1.067e+06\n",
|
||
|
|
" * x (x) float64 5.95e+05 5.95e+05 5.95e+05 ... 6.033e+05 6.033e+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>: 78</li><li><span class='xr-has-index'>y</span>: 532</li><li><span class='xr-has-index'>x</span>: 830</li></ul></div><ul class='xr-sections'><li class='xr-section-item'><div class='xr-array-wrap'><input id='section-d68b76c5-8494-4ec7-b5e2-fe4cee8d40d0' class='xr-array-in' type='checkbox' checked><label for='section-d68b76c5-8494-4ec7-b5e2-fe4cee8d40d0' 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<chunksize=(1, 532, 830), meta=np.ndarray></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> 131.38 MiB </td>\n",
|
||
|
|
" <td> 1.68 MiB </td>\n",
|
||
|
|
" </tr>\n",
|
||
|
|
" \n",
|
||
|
|
" <tr>\n",
|
||
|
|
" <th> Shape </th>\n",
|
||
|
|
" <td> (78, 532, 830) </td>\n",
|
||
|
|
" <td> (1, 532, 830) </td>\n",
|
||
|
|
" </tr>\n",
|
||
|
|
" <tr>\n",
|
||
|
|
" <th> Dask graph </th>\n",
|
||
|
|
" <td colspan=\"2\"> 78 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=\"202\" height=\"149\" style=\"stroke:rgb(0,0,0);stroke-width:1\" >\n",
|
||
|
|
"\n",
|
||
|
|
" <!-- Horizontal lines -->\n",
|
||
|
|
" <line x1=\"10\" y1=\"0\" x2=\"32\" y2=\"22\" style=\"stroke-width:2\" />\n",
|
||
|
|
" <line x1=\"10\" y1=\"76\" x2=\"32\" y2=\"99\" style=\"stroke-width:2\" />\n",
|
||
|
|
"\n",
|
||
|
|
" <!-- Vertical lines -->\n",
|
||
|
|
" <line x1=\"10\" y1=\"0\" x2=\"10\" y2=\"76\" style=\"stroke-width:2\" />\n",
|
||
|
|
" <line x1=\"11\" y1=\"1\" x2=\"11\" y2=\"78\" />\n",
|
||
|
|
" <line x1=\"12\" y1=\"2\" x2=\"12\" y2=\"79\" />\n",
|
||
|
|
" <line x1=\"13\" y1=\"3\" x2=\"13\" y2=\"80\" />\n",
|
||
|
|
" <line x1=\"14\" y1=\"4\" x2=\"14\" y2=\"81\" />\n",
|
||
|
|
" <line x1=\"15\" y1=\"5\" x2=\"15\" y2=\"82\" />\n",
|
||
|
|
" <line x1=\"16\" y1=\"6\" x2=\"16\" y2=\"83\" />\n",
|
||
|
|
" <line x1=\"18\" y1=\"8\" x2=\"18\" y2=\"84\" />\n",
|
||
|
|
" <line x1=\"19\" y1=\"9\" x2=\"19\" y2=\"86\" />\n",
|
||
|
|
" <line x1=\"20\" y1=\"10\" x2=\"20\" y2=\"87\" />\n",
|
||
|
|
" <line x1=\"21\" y1=\"11\" x2=\"21\" y2=\"88\" />\n",
|
||
|
|
" <line x1=\"22\" y1=\"12\" x2=\"22\" y2=\"89\" />\n",
|
||
|
|
" <line x1=\"24\" y1=\"14\" x2=\"24\" y2=\"91\" />\n",
|
||
|
|
" <line x1=\"25\" y1=\"15\" x2=\"25\" y2=\"92\" />\n",
|
||
|
|
" <line x1=\"26\" y1=\"16\" x2=\"26\" y2=\"93\" />\n",
|
||
|
|
" <line x1=\"27\" y1=\"17\" x2=\"27\" y2=\"94\" />\n",
|
||
|
|
" <line x1=\"28\" y1=\"18\" x2=\"28\" y2=\"95\" />\n",
|
||
|
|
" <line x1=\"29\" y1=\"19\" x2=\"29\" y2=\"96\" />\n",
|
||
|
|
" <line x1=\"31\" y1=\"21\" x2=\"31\" y2=\"97\" />\n",
|
||
|
|
" <line x1=\"32\" y1=\"22\" x2=\"32\" y2=\"99\" style=\"stroke-width:2\" />\n",
|
||
|
|
"\n",
|
||
|
|
" <!-- Colored Rectangle -->\n",
|
||
|
|
" <polygon points=\"10.0,0.0 32.499846174763476,22.49984617476348 32.499846174763476,99.41550882536589 10.0,76.91566265060241\" 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=\"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=\"16\" y1=\"6\" x2=\"136\" y2=\"6\" />\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=\"22\" y1=\"12\" x2=\"142\" y2=\"12\" />\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\" />\n",
|
||
|
|
" <line x1=\"27\" y1=\"17\" x2=\"147\" y2=\"17\" />\n",
|
||
|
|
" <line x1=\"28\" y1=\"18\" x2=\"148\" y2=\"18\" />\n",
|
||
|
|
" <line x1=\"29\" y1=\"19\" x2=\"149\" y2=\"19\" />\n",
|
||
|
|
" <line x1=\"31\" y1=\"21\" x2=\"151\" y2=\"21\" />\n",
|
||
|
|
" <line x1=\"32\" y1=\"22\" x2=\"152\" y2=\"22\" style=\"stroke-width:2\" />\n",
|
||
|
|
"\n",
|
||
|
|
" <!-- Vertical lines -->\n",
|
||
|
|
" <line x1=\"10\" y1=\"0\" x2=\"32\" y2=\"22\" style=\"stroke-width:2\" />\n",
|
||
|
|
" <line x1=\"130\" y1=\"0\" x2=\"152\" y2=\"22\" style=\"stroke-width:2\" />\n",
|
||
|
|
"\n",
|
||
|
|
" <!-- Colored Rectangle -->\n",
|
||
|
|
" <polygon points=\"10.0,0.0 130.0,0.0 152.4998461747635,22.49984617476348 32.499846174763476,22.49984617476348\" style=\"fill:#8B4903A0;stroke-width:0\"/>\n",
|
||
|
|
"\n",
|
||
|
|
" <!-- Horizontal lines -->\n",
|
||
|
|
" <line x1=\"32\" y1=\"22\" x2=\"152\" y2=\"22\" style=\"stroke-width:2\" />\n",
|
||
|
|
" <line x1=\"32\" y1=\"99\" x2=\"152\" y2=\"99\" style=\"stroke-width:2\" />\n",
|
||
|
|
"\n",
|
||
|
|
" <!-- Vertical lines -->\n",
|
||
|
|
" <line x1=\"32\" y1=\"22\" x2=\"32\" y2=\"99\" style=\"stroke-width:2\" />\n",
|
||
|
|
" <line x1=\"152\" y1=\"22\" x2=\"152\" y2=\"99\" style=\"stroke-width:2\" />\n",
|
||
|
|
"\n",
|
||
|
|
" <!-- Colored Rectangle -->\n",
|
||
|
|
" <polygon points=\"32.499846174763476,22.49984617476348 152.4998461747635,22.49984617476348 152.4998461747635,99.41550882536589 32.499846174763476,99.41550882536589\" style=\"fill:#ECB172A0;stroke-width:0\"/>\n",
|
||
|
|
"\n",
|
||
|
|
" <!-- Text -->\n",
|
||
|
|
" <text x=\"92.499846\" y=\"119.415509\" font-size=\"1.0rem\" font-weight=\"100\" text-anchor=\"middle\" >830</text>\n",
|
||
|
|
" <text x=\"172.499846\" y=\"60.957678\" font-size=\"1.0rem\" font-weight=\"100\" text-anchor=\"middle\" transform=\"rotate(-90,172.499846,60.957678)\">532</text>\n",
|
||
|
|
" <text x=\"11.249923\" y=\"108.165586\" font-size=\"1.0rem\" font-weight=\"100\" text-anchor=\"middle\" transform=\"rotate(45,11.249923,108.165586)\">78</text>\n",
|
||
|
|
"</svg>\n",
|
||
|
|
" </td>\n",
|
||
|
|
" </tr>\n",
|
||
|
|
"</table></div></div></li><li class='xr-section-item'><input id='section-b44e3d1c-ef9b-4c0c-98c5-05f6d5f40856' class='xr-section-summary-in' type='checkbox' checked><label for='section-b44e3d1c-ef9b-4c0c-98c5-05f6d5f40856' 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:38.706000 ... 2...</div><input id='attrs-77128342-3612-4bdf-972c-ac17f18e928e' class='xr-var-attrs-in' type='checkbox' ><label for='attrs-77128342-3612-4bdf-972c-ac17f18e928e' title='Show/Hide attributes'><svg class='icon xr-icon-file-text2'><use xlink:href='#icon-file-text2'></use></svg></label><input id='data-711efe49-a8ca-4c72-9140-dbbec521d063' class='xr-var-data-in' type='checkbox'><label for='data-711efe49-a8ca-4c72-9140-dbbec521d063' 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(['2022-09-02T03:35:38.706000000', '2022-09-07T03:35:28.392000000',\n",
|
||
|
|
" '2022-09-12T03:35:36.984000000', '2022-09-17T03:35:28.396000000',\n",
|
||
|
|
" '2022-09-22T03:35:33.676000000', '2022-09-27T03:35:26.885000000',\n",
|
||
|
|
" '2022-10-02T03:35:33.797000000', '2022-10-07T03:35:23.874000000',\n",
|
||
|
|
" '2022-10-12T03:35:31.889000000', '2022-10-17T03:35:25.895000000',\n",
|
||
|
|
" '2022-10-22T03:35:28.478000000', '2022-10-27T03:35:25.671000000',\n",
|
||
|
|
" '2022-11-01T03:35:30.553000000', '2022-11-06T03:35:24.840000000',\n",
|
||
|
|
" '2022-11-11T03:35:30.080000000', '2022-11-16T03:35:26.282000000',\n",
|
||
|
|
" '2022-11-21T03:35:27.133000000', '2022-11-26T03:35:25.806000000',\n",
|
||
|
|
" '2022-12-01T03:35:26.747000000', '2022-12-06T03:35:23.575000000',\n",
|
||
|
|
" '2022-12-11T03:35:26.920000000', '2022-12-16T03:35:24.874000000',\n",
|
||
|
|
" '2022-12-21T03:35:24.727000000', '2022-12-26T03:35:25.874000000',\n",
|
||
|
|
" '2022-12-31T03:35:25.489000000', '2023-01-05T03:35:26.328000000',\n",
|
||
|
|
" '2023-01-10T03:35:24.897000000', '2023-01-15T03:35:22.879000000',\n",
|
||
|
|
" '2023-01-20T03:35:21.331000000', '2023-01-25T03:35:24.561000000',\n",
|
||
|
|
" '2023-01-30T03:35:24.703000000', '2023-02-04T03:35:25.086000000',\n",
|
||
|
|
" '2023-02-09T03:35:25.381000000', '2023-02-14T03:35:24.987000000',\n",
|
||
|
|
" '2023-02-24T03:35:26.862000000', '2023-03-01T03:35:23.929000000',\n",
|
||
|
|
" '2023-03-06T03:35:29.457000000', '2023-03-11T03:35:21.972000000',\n",
|
||
|
|
" '2023-03-16T03:35:30.684000000', '2023-03-21T03:35:25.016000000',\n",
|
||
|
|
" '2023-03-26T03:35:29.316000000', '2023-03-31T03:35:24.882000000',\n",
|
||
|
|
" '2023-04-05T03:35:29.667000000', '2023-04-10T03:35:26.745000000',\n",
|
||
|
|
" '2023-04-15T03:35:27.482000000', '2023-04-20T03:35:25.073000000',\n",
|
||
|
|
" '2023-04-25T03:35:28.492000000', '2023-04-30T03:35:26.887000000',\n",
|
||
|
|
" '2023-05-05T03:35:29.183000000', '2023-05-10T03:35:26.031000000',\n",
|
||
|
|
" '2023-05-15T03:35:30.428000000', '2023-05-20T03:35:28.932000000',\n",
|
||
|
|
" '2023-05-25T03:35:31.398000000', '2023-05-30T03:35:30.380000000',\n",
|
||
|
|
" '2023-06-04T03:35:30.790000000', '2023-06-09T03:35:30.281000000',\n",
|
||
|
|
" '2023-06-14T03:35:31.608000000', '2023-06-19T03:35:30.646000000',\n",
|
||
|
|
" '2023-06-24T03:35:30.720000000', '2023-06-29T03:35:30.713000000',\n",
|
||
|
|
" '2023-07-04T03:35:31.975000000', '2023-07-09T03:35:31.850000000',\n",
|
||
|
|
" '2023-07-14T03:35:31.327000000', '2023-07-19T03:35:30.791000000',\n",
|
||
|
|
" '2023-07-24T03:35:32.589000000', '2023-07-29T03:35:31.826000000',\n",
|
||
|
|
" '2023-08-03T03:35:31.242000000', '2023-08-08T03:35:31.056000000',\n",
|
||
|
|
" '2023-08-13T03:35:32.189000000', '2023-08-18T03:35:32.563000000',\n",
|
||
|
|
" '2023-08-23T03:35:30.964000000', '2023-08-28T03:35:32.323000000',\n",
|
||
|
|
" '2023-09-02T03:35:31.370000000', '2023-09-07T03:35:31.878000000',\n",
|
||
|
|
" '2023-09-12T03:35:30.073000000', '2023-09-17T03:35:30.006000000',\n",
|
||
|
|
" '2023-09-22T03:35:30.187000000', '2023-09-27T03:35:28.858000000'],\n",
|
||
|
|
" dtype='datetime64[ns]')</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.072e+06 1.072e+06 ... 1.067e+06</div><input id='attrs-e335ac01-0d86-4088-8c31-415b8a1459ab' class='xr-var-attrs-in' type='checkbox' ><label for='attrs-e335ac01-0d86-4088-8c31-415b8a1459ab' title='Show/Hide attributes'><svg class='icon xr-icon-file-text2'><use xlink:href='#icon-file-text2'></use></svg></label><input id='data-9ddd8707-fe52-4d70-b75f-5f0ff6fb74fc' class='xr-var-data-in' type='checkbox'><label for='data-9ddd8707-fe52-4d70-b75f-5f0ff6fb74fc' 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([1072225., 1072215., 1072205., ..., 1066935., 1066925., 1066915.])</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.95e+05 5.95e+05 ... 6.033e+05</div><input id='attrs-d125abe3-3f5b-46dd-96fb-692e3c2b1567' class='xr-var-attrs-in' type='checkbox' ><label for='attrs-d125abe3-3f5b-46dd-96fb-692e3c2b1567' title='Show/Hide attributes'><svg class='icon xr-icon-file-text2'><use xlink:href='#icon-file-text2'></use></svg></label><input id='data-9cbfaa44-0043-4e5e-8d5b-45a6c2b02567' class='xr-var-data-in' type='checkbox'><label for='data-9cbfaa44-0043-4e5e-8d5b-45a6c2b02567' 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([594975., 594985., 594995., ..., 603245., 603255., 603265.])</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-53b6882b-858c-4d45-bcc3-7ca39c8c9ac2' class='xr-var-attrs-in' type='checkbox' ><label for='attrs-53b6882b-858c-4d45-bcc3-7ca39c8c9ac2' title='Show/Hide attributes'><svg class='icon xr-icon-file-text2'><use xlink:href='#icon-file-text2'></use></svg></label><input id='data-97b1744f-5735-4529-a32c-1f4e70d95f84' class='xr-var-data-in' type='checkbox'><label for='data-97b1744f-5735-4529-a32c-1f4e70d95f84' 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["WGS 84 / UTM zone 48N",GEOGCS["WGS 84",DATUM["WGS_1984",SPHEROID["WGS 84",6378137,298.257223563,AUTHORITY["EPSG","7030"]],AUTHORITY["EPSG","6326"]],PRIMEM["Greenwich",0,AUTHORITY["EPSG","8901"]],UNIT["degree",0.0174532925199433,AUTHORITY["EPSG","9122"]],AUTHORITY["EPSG","4326"]],PROJECTION["Transverse_Mercator"],PARAMETER["latitude_of_origin",0],PARAMETER["central_meridian",105],PARAMETER["scale_factor",0.9996],PARAMETER["false_easting",500000],PARAMETER["false_northing",0],UNIT["metre",1,AUTHORITY["EPSG","9001"]],AXIS["Easting",EAST],AXIS["Northing",NORTH],AUTHORITY["EPSG","32648"]]</dd><dt><span>grid_mapping_name :</span></dt><dd>transverse_mercator</dd></dl></div><div class='xr-var-data'><pre>array(32648, dtype=int32)</pre>
|
||
|
|
" '2022-09-12 03:35:36.984000', '2022-09-17 03:35:28.396000',\n",
|
||
|
|
" '2022-09-22 03:35:33.676000', '2022-09-27 03:35:26.885000',\n",
|
||
|
|
" '2022-10-02 03:35:33.797000', '2022-10-07 03:35:23.874000',\n",
|
||
|
|
" '2022-10-12 03:35:31.889000', '2022-10-17 03:35:25.895000',\n",
|
||
|
|
" '2022-10-22 03:35:28.478000', '2022-10-27 03:35:25.671000',\n",
|
||
|
|
" '2022-11-01 03:35:30.553000', '2022-11-06 03:35:24.840000',\n",
|
||
|
|
" '2022-11-11 03:35:30.080000', '2022-11-16 03:35:26.282000',\n",
|
||
|
|
" '2022-11-21 03:35:27.133000', '2022-11-26 03:35:25.806000',\n",
|
||
|
|
" '2022-12-01 03:35:26.747000', '2022-12-06 03:35:23.575000',\n",
|
||
|
|
" '2022-12-11 03:35:26.920000', '2022-12-16 03:35:24.874000',\n",
|
||
|
|
" '2022-12-21 03:35:24.727000', '2022-12-26 03:35:25.874000',\n",
|
||
|
|
" '2022-12-31 03:35:25.489000', '2023-01-05 03:35:26.328000',\n",
|
||
|
|
" '2023-01-10 03:35:24.897000', '2023-01-15 03:35:22.879000',\n",
|
||
|
|
" '2023-01-20 03:35:21.331000', '2023-01-25 03:35:24.561000',\n",
|
||
|
|
" '2023-01-30 03:35:24.703000', '2023-02-04 03:35:25.086000',\n",
|
||
|
|
" '2023-02-09 03:35:25.381000', '2023-02-14 03:35:24.987000',\n",
|
||
|
|
" '2023-02-24 03:35:26.862000', '2023-03-01 03:35:23.929000',\n",
|
||
|
|
" '2023-03-06 03:35:29.457000', '2023-03-11 03:35:21.972000',\n",
|
||
|
|
" '2023-03-16 03:35:30.684000', '2023-03-21 03:35:25.016000',\n",
|
||
|
|
" '2023-03-26 03:35:29.316000', '2023-03-31 03:35:24.882000',\n",
|
||
|
|
" '2023-04-05 03:35:29.667000', '2023-04-10 03:35:26.745000',\n",
|
||
|
|
" '2023-04-15 03:35:27.482000', '2023-04-20 03:35:25.073000',\n",
|
||
|
|
" '2023-04-25 03:35:28.492000', '2023-04-30 03:35:26.887000',\n",
|
||
|
|
" '2023-05-05 03:35:29.183000', '2023-05-10 03:35:26.031000',\n",
|
||
|
|
" '2023-05-15 03:35:30.428000', '2023-05-20 03:35:28.932000',\n",
|
||
|
|
" '2023-05-25 03:35:31.398000', '2023-05-30 03:35:30.380000',\n",
|
||
|
|
" '2023-06-04 03:35:30.790000', '2023-06-09 03:35:30.281000',\n",
|
||
|
|
" '2023-06-14 03:35:31.608000', '2023-06-19 03:35:30.646000',\n",
|
||
|
|
" '2023-06-24 03:35:30.720000', '2023-06-29 03:35:30.713000',\n",
|
||
|
|
" '2023-07-04 03:35:31.975000', '2023-07-09 03:35:31.850000',\n",
|
||
|
|
" '2023-07-14 03:35:31.327000', '2023-07-19 03:35:30.791000',\n",
|
||
|
|
" '2023-07-24 03:35:32.589000', '2023-07-29 03:35:31.826000',\n",
|
||
|
|
" '2023-08-03 03:35:31.242000', '2023-08-08 03:35:31.056000',\n",
|
||
|
|
" '2023-08-13 03:35:32.189000', '2023-08-18 03:35:32.563000',\n",
|
||
|
|
" '2023-08-23 03:35:30.964000', '2023-08-28 03:35:32.323000',\n",
|
||
|
|
" '2023-09-02 03:35:31.370000', '2023-09-07 03:35:31.878000',\n",
|
||
|
|
" '2023-09-12 03:35:30.073000', '2023-09-17 03:35:30.006000',\n",
|
||
|
|
" '2023-09-22 03:35:30.187000', '2023-09-27 03:35:28.858000'],\n",
|
||
|
|
" dtype='datetime64[ns]', name='time', 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-bffff331-90ac-41fa-ad24-c1e0b076971c' class='xr-index-data-in' type='checkbox'/><label for='index-bffff331-90ac-41fa-ad24-c1e0b076971c' 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([1072225.0, 1072215.0, 1072205.0, 1072195.0, 1072185.0, 1072175.0,\n",
|
||
|
|
" 1072165.0, 1072155.0, 1072145.0, 1072135.0,\n",
|
||
|
|
" ...\n",
|
||
|
|
" 1067005.0, 1066995.0, 1066985.0, 1066975.0, 1066965.0, 1066955.0,\n",
|
||
|
|
" 1066945.0, 1066935.0, 1066925.0, 1066915.0],\n",
|
||
|
|
" dtype='float64', name='y', length=532))</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-e1506e78-e0f5-4b56-9c99-b28ff57d1969' class='xr-index-data-in' type='checkbox'/><label for='index-e1506e78-e0f5-4b56-9c99-b28ff57d1969' 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([594975.0, 594985.0, 594995.0, 595005.0, 595015.0, 595025.0, 595035.0,\n",
|
||
|
|
" 595045.0, 595055.0, 595065.0,\n",
|
||
|
|
" ...\n",
|
||
|
|
" 603175.0, 603185.0, 603195.0, 603205.0, 603215.0, 603225.0, 603235.0,\n",
|
||
|
|
" 603245.0, 603255.0, 603265.0],\n",
|
||
|
|
" dtype='float64', name='x', length=830))</pre></div></li></ul></div></li><li class='xr-section-item'><input id='section-6714e27a-ef46-4b9b-a861-19a91da99a9f' class='xr-section-summary-in' type='checkbox' disabled ><label for='section-6714e27a-ef46-4b9b-a861-19a91da99a9f' 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: 78, y: 532, x: 830)>\n",
|
||
|
|
"dask.array<truediv, shape=(78, 532, 830), dtype=float32, chunksize=(1, 532, 830), chunktype=numpy.ndarray>\n",
|
||
|
|
"Coordinates:\n",
|
||
|
|
" * time (time) datetime64[ns] 2022-09-02T03:35:38.706000 ... 2023-09...\n",
|
||
|
|
" * y (y) float64 1.072e+06 1.072e+06 ... 1.067e+06 1.067e+06\n",
|
||
|
|
" * x (x) float64 5.95e+05 5.95e+05 5.95e+05 ... 6.033e+05 6.033e+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": 8,
|
||
|
|
"id": "f3930d43-c159-49bf-8260-68b14681729d",
|
||
|
|
"metadata": {
|
||
|
|
"tags": []
|
||
|
|
},
|
||
|
|
"outputs": [
|
||
|
|
{
|
||
|
|
"data": {
|
||
|
|
"text/plain": [
|
||
|
|
"<matplotlib.image.AxesImage at 0x7fca160a9360>"
|
||
|
|
]
|
||
|
|
},
|
||
|
|
"execution_count": 8,
|
||
|
|
"metadata": {},
|
||
|
|
"output_type": "execute_result"
|
||
|
|
},
|
||
|
|
{
|
||
|
|
"data": {
|
||
|
|
"image/png": "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
|
||
|
|
"text/plain": [
|
||
|
|
"<Figure size 640x480 with 1 Axes>"
|
||
|
|
]
|
||
|
|
},
|
||
|
|
"metadata": {},
|
||
|
|
"output_type": "display_data"
|
||
|
|
}
|
||
|
|
],
|
||
|
|
"source": [
|
||
|
|
"## ảnh ndvi chưa fill nan\n",
|
||
|
|
"plt.imshow(ndvi.isel(time=50))"
|
||
|
|
]
|
||
|
|
},
|
||
|
|
{
|
||
|
|
"cell_type": "code",
|
||
|
|
"execution_count": 9,
|
||
|
|
"id": "5372d50c-7b05-475e-bdce-ed36a8ea794d",
|
||
|
|
"metadata": {
|
||
|
|
"tags": []
|
||
|
|
},
|
||
|
|
"outputs": [
|
||
|
|
{
|
||
|
|
"data": {
|
||
|
|
"text/plain": [
|
||
|
|
"<matplotlib.image.AxesImage at 0x7fca169b1750>"
|
||
|
|
]
|
||
|
|
},
|
||
|
|
"execution_count": 9,
|
||
|
|
"metadata": {},
|
||
|
|
"output_type": "execute_result"
|
||
|
|
},
|
||
|
|
{
|
||
|
|
"data": {
|
||
|
|
"image/png": "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
|
||
|
|
"text/plain": [
|
||
|
|
"<Figure size 640x480 with 1 Axes>"
|
||
|
|
]
|
||
|
|
},
|
||
|
|
"metadata": {},
|
||
|
|
"output_type": "display_data"
|
||
|
|
}
|
||
|
|
],
|
||
|
|
"source": [
|
||
|
|
"# đặt thời gian các mùa\n",
|
||
|
|
"time_split = [slice('2022-09-01', '2023-01-01'), \n",
|
||
|
|
" slice('2023-01-01', '2023-05-01'),\n",
|
||
|
|
" slice('2023-05-01', '2023-07-01'),\n",
|
||
|
|
" slice('2023-07-01', '2023-10-01')]\n",
|
||
|
|
"\n",
|
||
|
|
"# fill nan\n",
|
||
|
|
"fill_nan_ndvi = fill_nan(ndvi, time_split)\n",
|
||
|
|
"\n",
|
||
|
|
"## ảnh ndivi đã fill nan\n",
|
||
|
|
"plt.imshow(fill_nan_ndvi.isel(time=50))"
|
||
|
|
]
|
||
|
|
},
|
||
|
|
{
|
||
|
|
"cell_type": "code",
|
||
|
|
"execution_count": 10,
|
||
|
|
"id": "4e11434c-24ff-48f4-8611-b3baeb300de3",
|
||
|
|
"metadata": {
|
||
|
|
"tags": []
|
||
|
|
},
|
||
|
|
"outputs": [
|
||
|
|
{
|
||
|
|
"name": "stdout",
|
||
|
|
"output_type": "stream",
|
||
|
|
"text": [
|
||
|
|
"CPU times: user 81.8 ms, sys: 460 µs, total: 82.3 ms\n",
|
||
|
|
"Wall time: 80.1 ms\n"
|
||
|
|
]
|
||
|
|
},
|
||
|
|
{
|
||
|
|
"data": {
|
||
|
|
"application/vnd.jupyter.widget-view+json": {
|
||
|
|
"model_id": "69ca7b71ea514d3d9b75541a04b7d70f",
|
||
|
|
"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 = fill_nan_ndvi.resample(time='1M').mean().persist()\n",
|
||
|
|
"progress(average_ndvi)"
|
||
|
|
]
|
||
|
|
},
|
||
|
|
{
|
||
|
|
"cell_type": "code",
|
||
|
|
"execution_count": 11,
|
||
|
|
"id": "34e7fd9c-3a16-4c82-b210-2afc4a84772e",
|
||
|
|
"metadata": {
|
||
|
|
"tags": []
|
||
|
|
},
|
||
|
|
"outputs": [],
|
||
|
|
"source": [
|
||
|
|
"# compute average_ndvi\n",
|
||
|
|
"average_ndvi = average_ndvi.compute()\n",
|
||
|
|
"\n",
|
||
|
|
"## cấu hình shapefile ranh giới thuận hòa và vh vv file\n",
|
||
|
|
"thuanhoa_path = \"ThuanHoa/region/ST_ThuanHoa_Boundaryofficially.shp\"\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)"
|
||
|
|
]
|
||
|
|
},
|
||
|
|
{
|
||
|
|
"cell_type": "code",
|
||
|
|
"execution_count": 12,
|
||
|
|
"id": "5d29d5cf-31fd-4263-8ae4-2eb9690f739e",
|
||
|
|
"metadata": {
|
||
|
|
"tags": []
|
||
|
|
},
|
||
|
|
"outputs": [],
|
||
|
|
"source": [
|
||
|
|
"# load model RF\n",
|
||
|
|
"loaded_model = joblib.load(os.path.join(\"model_train\", \"model_new.joblib\"))\n",
|
||
|
|
"\n",
|
||
|
|
"# dự đoán\n",
|
||
|
|
"data_array = predict(loaded_model, data.rio.crs, average_ndvi, dsvh, dsvv)"
|
||
|
|
]
|
||
|
|
},
|
||
|
|
{
|
||
|
|
"cell_type": "code",
|
||
|
|
"execution_count": 13,
|
||
|
|
"id": "1e17f18d-0878-43d1-acf6-54dfc9f1a0db",
|
||
|
|
"metadata": {
|
||
|
|
"tags": []
|
||
|
|
},
|
||
|
|
"outputs": [],
|
||
|
|
"source": [
|
||
|
|
"# cấu hình màu cho các loại đất\n",
|
||
|
|
"colors = [\n",
|
||
|
|
" \"#abcee9\",\n",
|
||
|
|
" \"#ffef44\",\n",
|
||
|
|
" \"#c4ff9e\",\n",
|
||
|
|
" \"#ffd6a8\",\n",
|
||
|
|
" \"#93ddda\",\n",
|
||
|
|
" \"#1aeef7\",\n",
|
||
|
|
" \"#ffa7f2\",\n",
|
||
|
|
" \"#33ee33\"\n",
|
||
|
|
"]\n",
|
||
|
|
"labels = [\n",
|
||
|
|
" \"Lúa tôm\",\n",
|
||
|
|
" \"Lúa\",\n",
|
||
|
|
" \"CHN\",\n",
|
||
|
|
" \"CLN\",\n",
|
||
|
|
" \"TS\",\n",
|
||
|
|
" \"Sông\",\n",
|
||
|
|
" \"Đất xây dựng\",\n",
|
||
|
|
" \"Rừng\"\n",
|
||
|
|
"]"
|
||
|
|
]
|
||
|
|
},
|
||
|
|
{
|
||
|
|
"cell_type": "code",
|
||
|
|
"execution_count": 14,
|
||
|
|
"id": "b6e705b1-f1e4-4c94-90aa-4e2ecd56290f",
|
||
|
|
"metadata": {
|
||
|
|
"tags": []
|
||
|
|
},
|
||
|
|
"outputs": [
|
||
|
|
{
|
||
|
|
"name": "stderr",
|
||
|
|
"output_type": "stream",
|
||
|
|
"text": [
|
||
|
|
"/tmp/ipykernel_19517/2294385133.py:5: UserWarning: set_ticklabels() should only be used with a fixed number of ticks, i.e. after set_ticks() or using a FixedLocator.\n",
|
||
|
|
" cbar.ax.set_yticklabels(labels)\n"
|
||
|
|
]
|
||
|
|
},
|
||
|
|
{
|
||
|
|
"data": {
|
||
|
|
"image/png": "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k8Xh4eHiS17ykuLSpUuLf/nLX4TjzjjjjOKLL77Iv//+97+/uGjRouLs7Cz/bH5+3nSdSy+9tFhXV1d8/vnn+WennXZaEUDxP//zP/lnu3fvLjY2NhbPP//8im0/7LDDihdddBH//X3ve18RQPGnP/0p/+yZZ54pHn744cXVq1cX9+3bVywWi8W9e/cWd+/eLZyrUCgUDz300OIll1wifA6geM0119i249xzzy0ef/zxtsdcdNFFxcMOO8z0+TXXXFMEUPzLX/5SfPbZZ5XffeGFF4qHHHJI8aSTThLa/Y1vfKMIoHjaaafxz9h72r59u3COiYmJIoDixMQE/8zp8//iF79YBFC86667+Ge7du0qHnvssaZzqjjvvPOKS5YsKf75z3/mnz300EPFRYsWFeXpRdV32traikcccYTw2fHHHy/ct0aj0ThBm5wWAGeccQZWrlyJVatWobOzE8uWLcN3v/tdvPzlLxeOe/e7341UKsV/f/3rX499+/bhz3/+M/9s6dKl/P/PPPMM/v73v+P1r3895ufn8fDDDwvnW7ZsGd7+9rfz3w888ECsXbsWjz/+uOt7GB0dxdq1a/G6171OOP+73/1u7NixAw899BCAko/PgQceCKAURvz0009j7969yGQyePDBB11ft6GhAX/5y1/w61//2vV3GS9/+ctx0EEHKf+Wz+fx1FNP4T3veQ9vN1AyY1UbJeXk+Y+NjeHlL3853vSmN/HPlixZgne9610Vz79v3z6Mj4/jvPPOwyte8Qr+eXNzM9ra2kzH074zNzeHv//97zjttNPw+OOPVx3irtFoNFqgWQAMDAzg3nvvxcTEBB566CE8/vjjygWHLkoAkE6nAZRMF4w//OEPePOb34z6+nosX74cK1eu5IumvCj90z/9kyAgsXPS8znlz3/+M9asWWP6nDkkU6Hr1ltvxStf+UosWbIEL3nJS7By5Ur84Ac/8LRoXnXVVVi2bBnWrl2Lo48+Gj09PUIYcrWwdh999NHC5wcccACOOOKIqs7t5Pn/+c9/xpFHHmk67qijjqp4/r/97W/YtWuXqe0AlO8ql8vhjDPOwEEHHYSGhgasXLkSH/7whwGY+45Go9G4RfvQLADWrl3Lo5zssAopLhaLAIDZ2VmcdtppWL58OT75yU/iyCOPxJIlS/Dggw/iqquuwosvvujqfEHwne98BxdffDHOO+889PX14ZBDDsGiRYtw3XXXcd8hNzQ3N+ORRx7BPffcg7GxMdx555246aab8PGPfxyf+MQnAMAkDDBkR+lqcXudKJ6/FY899hj+5V/+BcceeyxuuOEGrFq1CgceeCBGR0fxpS99ydR3NBqNxi1aoNE45v7778c//vEPbNmyBW94wxv453K0VBAcdthheOSRR0yfMzPXYYcdBgAYGRnBEUccgS1btggCQDUhwgcddBAuuOACXHDBBXjhhRewfv16fOYzn8HVV1+NJUuWIJ1OY3Z21vQ9qjWygrX7T3/6E48+A4A9e/Zg+/btPIcLUNaYyddych276z/00EMoFovC83r00UcrfnflypVYunQp/vSnP5n+Jr+r73//+9i9ezfuvvtuQRNoFX2m0Wg0btEmJ41j2I6f7vBfeOEF3HTTTYFfu729Hb/61a/wv//7v/yz5557Dt/4xjewevVqHHf
|
||
|
|
"text/plain": [
|
||
|
|
"<Figure size 640x480 with 2 Axes>"
|
||
|
|
]
|
||
|
|
},
|
||
|
|
"metadata": {},
|
||
|
|
"output_type": "display_data"
|
||
|
|
}
|
||
|
|
],
|
||
|
|
"source": [
|
||
|
|
"# hiển thị phân loại sử dụng đất\n",
|
||
|
|
"cmap = ListedColormap(colors)\n",
|
||
|
|
"img = data_array.plot(cmap=cmap, add_colorbar=False)\n",
|
||
|
|
"cbar = plt.colorbar(img)\n",
|
||
|
|
"cbar.ax.set_yticklabels(labels)\n",
|
||
|
|
"plt.title(\"Phân loại sử dụng đất\")\n",
|
||
|
|
"plt.axis('off')\n",
|
||
|
|
"plt.show()"
|
||
|
|
]
|
||
|
|
},
|
||
|
|
{
|
||
|
|
"cell_type": "code",
|
||
|
|
"execution_count": 15,
|
||
|
|
"id": "caa6893e-4167-4d85-8c5e-d03cdb55f71f",
|
||
|
|
"metadata": {
|
||
|
|
"tags": []
|
||
|
|
},
|
||
|
|
"outputs": [
|
||
|
|
{
|
||
|
|
"name": "stderr",
|
||
|
|
"output_type": "stream",
|
||
|
|
"text": [
|
||
|
|
"/env/lib/python3.10/site-packages/xarray/core/duck_array_ops.py:191: RuntimeWarning: invalid value encountered in cast\n",
|
||
|
|
" return data.astype(dtype, **kwargs)\n"
|
||
|
|
]
|
||
|
|
}
|
||
|
|
],
|
||
|
|
"source": [
|
||
|
|
"# cắt theo ranh giới xã thuận hòa\n",
|
||
|
|
"region_result = cut_according_shp(thuanhoa_path, average_ndvi, data_array)"
|
||
|
|
]
|
||
|
|
},
|
||
|
|
{
|
||
|
|
"cell_type": "code",
|
||
|
|
"execution_count": 16,
|
||
|
|
"id": "177a672f-dc68-4987-a3c6-2123dff257c0",
|
||
|
|
"metadata": {
|
||
|
|
"tags": []
|
||
|
|
},
|
||
|
|
"outputs": [
|
||
|
|
{
|
||
|
|
"data": {},
|
||
|
|
"metadata": {},
|
||
|
|
"output_type": "display_data"
|
||
|
|
},
|
||
|
|
{
|
||
|
|
"data": {
|
||
|
|
"application/vnd.holoviews_exec.v0+json": "",
|
||
|
|
"text/html": [
|
||
|
|
"<div id='p1003'>\n",
|
||
|
|
" <div id=\"ddb64bd6-4a40-458e-9351-39b0192d4acf\" data-root-id=\"p1003\" style=\"display: contents;\"></div>\n",
|
||
|
|
"</div>\n",
|
||
|
|
"<script type=\"application/javascript\">(function(root) {\n",
|
||
|
|
" var docs_json = {\"f191d41b-c597-4b47-97ce-cac496cd02f7\":{\"version\":\"3.2.2\",\"title\":\"Bokeh Application\",\"roots\":[{\"type\":\"object\",\"name\":\"Row\",\"id\":\"p1003\",\"attributes\":{\"name\":\"Row00918\",\"stylesheets\":[\"\\n:host(.pn-loading.pn-arc):before, .pn-loading.pn-arc:before {\\n background-image: url(\\\"data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHN0eWxlPSJtYXJnaW46IGF1dG87IGJhY2tncm91bmQ6IG5vbmU7IGRpc3BsYXk6IGJsb2NrOyBzaGFwZS1yZW5kZXJpbmc6IGF1dG87IiB2aWV3Qm94PSIwIDAgMTAwIDEwMCIgcHJlc2VydmVBc3BlY3RSYXRpbz0ieE1pZFlNaWQiPiAgPGNpcmNsZSBjeD0iNTAiIGN5PSI1MCIgZmlsbD0ibm9uZSIgc3Ryb2tlPSIjYzNjM2MzIiBzdHJva2Utd2lkdGg9IjEwIiByPSIzNSIgc3Ryb2tlLWRhc2hhcnJheT0iMTY0LjkzMzYxNDMxMzQ2NDE1IDU2Ljk3Nzg3MTQzNzgyMTM4Ij4gICAgPGFuaW1hdGVUcmFuc2Zvcm0gYXR0cmlidXRlTmFtZT0idHJhbnNmb3JtIiB0eXBlPSJyb3RhdGUiIHJlcGVhdENvdW50PSJpbmRlZmluaXRlIiBkdXI9IjFzIiB2YWx1ZXM9IjAgNTAgNTA7MzYwIDUwIDUwIiBrZXlUaW1lcz0iMDsxIj48L2FuaW1hdGVUcmFuc2Zvcm0+ICA8L2NpcmNsZT48L3N2Zz4=\\\");\\n background-size: auto calc(min(50%, 400px));\\n}\",{\"type\":\"object\",\"name\":\"ImportedStyleSheet\",\"id\":\"p1006\",\"attributes\":{\"url\":\"https://cdn.holoviz.org/panel/1.2.3/dist/css/loading.css\"}},{\"type\":\"object\",\"name\":\"ImportedStyleSheet\",\"id\":\"p1066\",\"attributes\":{\"url\":\"https://cdn.holoviz.org/panel/1.2.3/dist/css/listpanel.css\"}},{\"type\":\"object\",\"name\":\"ImportedStyleSheet\",\"id\":\"p1004\",\"attributes\":{\"url\":\"https://cdn.holoviz.org/panel/1.2.3/dist/bundled/theme/default.css\"}},{\"type\":\"object\",\"name\":\"ImportedStyleSheet\",\"id\":\"p1005\",\"attributes\":{\"url\":\"https://cdn.holoviz.org/panel/1.2.3/dist/bundled/theme/native.css\"}}],\"min_width\":700,\"margin\":0,\"sizing_mode\":\"stretch_width\",\"align\":\"start\",\"children\":[{\"type\":\"object\",\"name\":\"Spacer\",\"id\":\"p1007\",\"attributes\":{\"name\":\"HSpacer00926\",\"stylesheets\":[\"\\n:host(.pn-loading.pn-arc):before, .pn-loading.pn-arc:before {\\n background-image: url(\\\"data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHN0eWxlPSJtYXJnaW46IGF1dG87IGJhY2tncm91bmQ6IG5vbmU7IGRpc3BsYXk6IGJsb2NrOyBzaGFwZS1yZW5kZXJpbmc6IGF1dG87IiB2aWV3Qm94PSIwIDAgMTAwIDEwMCIgcHJlc2VydmVBc3BlY3RSYXRpbz0ieE1pZFlNaWQiPiAgPGNpcmNsZSBjeD0iNTAiIGN5PSI1MCIgZmlsbD0ibm9uZSIgc3Ryb2tlPSIjYzNjM2MzIiBzdHJva2Utd2lkdGg9IjEwIiByPSIzNSIgc3Ryb2tlLWRhc2hhcnJheT0iMTY0LjkzMzYxNDMxMzQ2NDE1IDU2Ljk3Nzg3MTQzNzgyMTM4Ij4gICAgPGFuaW1hdGVUcmFuc2Zvcm0gYXR0cmlidXRlTmFtZT0idHJhbnNmb3JtIiB0eXBlPSJyb3RhdGUiIHJlcGVhdENvdW50PSJpbmRlZmluaXRlIiBkdXI9IjFzIiB2YWx1ZXM9IjAgNTAgNTA7MzYwIDUwIDUwIiBrZXlUaW1lcz0iMDsxIj48L2FuaW1hdGVUcmFuc2Zvcm0+ICA8L2NpcmNsZT48L3N2Zz4=\\\");\\n background-size: auto calc(min(50%, 400px));\\n}\",{\"id\":\"p1006\"},{\"id\":\"p1004\"},{\"id\":\"p1005\"}],\"margin\":0,\"sizing_mode\":\"stretch_width\",\"align\":\"start\"}},{\"type\":\"object\",\"name\":\"Figure\",\"id\":\"p1015\",\"attributes\":{\"subscribed_events\":{\"type\":\"set\",\"entries\":[\"rangesupdate\"]},\"width\":700,\"height\":300,\"margin\":[5,10],\"sizing_mode\":\"fixed\",\"align\":\"start\",\"x_range\":{\"type\":\"object\",\"name\":\"Range1d\",\"id\":\"p1008\",\"attributes\":{\"tags\":[[[\"x\",\"x coordinate of projection\",\"metre\"]],[]],\"start\":592913.3333333334,\"end\":605326.6666666666,\"reset_start\":592913.3333333334,\"reset_end\":605326.6666666666}},\"y_range\":{\"type\":\"object\",\"name\":\"Range1d\",\"id\":\"p1009\",\"attributes\":{\"tags\":[[[\"y\",\"y coordinate of projection\",\"metre\"]],{\"type\":\"map\",\"entries\":[[\"invert_yaxis\",false],[\"autorange\",false]]}],\"start\":1066910.0,\"end\":1072230.0,\"reset_start\":1066910.0,\"reset_end\":1072230.0}},\"x_scale\":{\"type\":\"object\",\"name\":\"LinearScale\",\"id\":\"p1025\"},\"y_scale\":{\"type\":\"object\",\"name\":\"LinearScale\",\"id\":\"p1026\"},\"title\":{\"type\":\"object\",\"name\":\"Title\",\"id\":\"p1018\",\"attributes\":{\"text\":\"Ph\\u00e2n lo\\u1ea1i s\\u1eed d\\u1ee5ng \\u0111\\u1ea5t\",\"text_color\":\"black\",\"text_font_size\":\"12pt\"}},\"rende
|
||
|
|
" var render_items = [{\"docid\":\"f191d41b-c597-4b47-97ce-cac496cd02f7\",\"roots\":{\"p1003\":\"ddb64bd6-4a40-458e-9351-39b0192d4acf\"},\"root_ids\":[\"p1003\"]}];\n",
|
||
|
|
" var docs = Object.values(docs_json)\n",
|
||
|
|
" if (!docs) {\n",
|
||
|
|
" return\n",
|
||
|
|
" }\n",
|
||
|
|
" const py_version = docs[0].version.replace('rc', '-rc.').replace('.dev', '-dev.')\n",
|
||
|
|
" const is_dev = py_version.indexOf(\"+\") !== -1 || py_version.indexOf(\"-\") !== -1\n",
|
||
|
|
" function embed_document(root) {\n",
|
||
|
|
" var Bokeh = get_bokeh(root)\n",
|
||
|
|
" Bokeh.embed.embed_items_notebook(docs_json, render_items);\n",
|
||
|
|
" for (const render_item of render_items) {\n",
|
||
|
|
" for (const root_id of render_item.root_ids) {\n",
|
||
|
|
"\tconst id_el = document.getElementById(root_id)\n",
|
||
|
|
"\tif (id_el.children.length && (id_el.children[0].className === 'bk-root')) {\n",
|
||
|
|
"\t const root_el = id_el.children[0]\n",
|
||
|
|
"\t root_el.id = root_el.id + '-rendered'\n",
|
||
|
|
"\t}\n",
|
||
|
|
" }\n",
|
||
|
|
" }\n",
|
||
|
|
" }\n",
|
||
|
|
" function get_bokeh(root) {\n",
|
||
|
|
" if (root.Bokeh === undefined) {\n",
|
||
|
|
" return null\n",
|
||
|
|
" } else if (root.Bokeh.version !== py_version && !is_dev) {\n",
|
||
|
|
" if (root.Bokeh.versions === undefined || !root.Bokeh.versions.has(py_version)) {\n",
|
||
|
|
"\treturn null\n",
|
||
|
|
" }\n",
|
||
|
|
" return root.Bokeh.versions.get(py_version);\n",
|
||
|
|
" } else if (root.Bokeh.version === py_version) {\n",
|
||
|
|
" return root.Bokeh\n",
|
||
|
|
" }\n",
|
||
|
|
" return null\n",
|
||
|
|
" }\n",
|
||
|
|
" function is_loaded(root) {\n",
|
||
|
|
" var Bokeh = get_bokeh(root)\n",
|
||
|
|
" return (Bokeh != null && Bokeh.Panel !== undefined)\n",
|
||
|
|
" }\n",
|
||
|
|
" if (is_loaded(root)) {\n",
|
||
|
|
" embed_document(root);\n",
|
||
|
|
" } else {\n",
|
||
|
|
" var attempts = 0;\n",
|
||
|
|
" var timer = setInterval(function(root) {\n",
|
||
|
|
" if (is_loaded(root)) {\n",
|
||
|
|
" clearInterval(timer);\n",
|
||
|
|
" embed_document(root);\n",
|
||
|
|
" } else if (document.readyState == \"complete\") {\n",
|
||
|
|
" attempts++;\n",
|
||
|
|
" if (attempts > 200) {\n",
|
||
|
|
" clearInterval(timer);\n",
|
||
|
|
"\t var Bokeh = get_bokeh(root)\n",
|
||
|
|
"\t if (Bokeh == null || Bokeh.Panel == null) {\n",
|
||
|
|
" console.warn(\"Panel: ERROR: Unable to run Panel code because Bokeh or Panel library is missing\");\n",
|
||
|
|
"\t } else {\n",
|
||
|
|
"\t console.warn(\"Panel: WARNING: Attempting to render but not all required libraries could be resolved.\")\n",
|
||
|
|
"\t embed_document(root)\n",
|
||
|
|
"\t }\n",
|
||
|
|
" }\n",
|
||
|
|
" }\n",
|
||
|
|
" }, 25, root)\n",
|
||
|
|
" }\n",
|
||
|
|
"})(window);</script>"
|
||
|
|
],
|
||
|
|
"text/plain": [
|
||
|
|
":DynamicMap []\n",
|
||
|
|
" :Image [x,y] (value)"
|
||
|
|
]
|
||
|
|
},
|
||
|
|
"execution_count": 16,
|
||
|
|
"metadata": {
|
||
|
|
"application/vnd.holoviews_exec.v0+json": {
|
||
|
|
"id": "p1003"
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"output_type": "execute_result"
|
||
|
|
}
|
||
|
|
],
|
||
|
|
"source": [
|
||
|
|
"# hiển thị kết quả phân loại sử dụng đất\n",
|
||
|
|
"colorval = list(range(len(colors)))\n",
|
||
|
|
"options = {\n",
|
||
|
|
" 'title': 'Phân loại sử dụng đất',\n",
|
||
|
|
" 'cmap': colors,\n",
|
||
|
|
" 'clim': (0, 8),\n",
|
||
|
|
" 'aspect': 'equal',\n",
|
||
|
|
" 'colorbar_opts': {\n",
|
||
|
|
" 'major_label_overrides': dict(zip(colorval, labels)),\n",
|
||
|
|
" 'major_label_text_align': 'left',\n",
|
||
|
|
" 'ticker': FixedTicker(ticks=colorval),\n",
|
||
|
|
" },\n",
|
||
|
|
"}\n",
|
||
|
|
" \n",
|
||
|
|
"region_result.hvplot(\n",
|
||
|
|
" rasterize = True, # Use Datashader, particularly useful for dask arrays\n",
|
||
|
|
" aggregator = reductions.mode(), # Datashader selects mode value, requires 'hv.Image'\n",
|
||
|
|
").options(opts.Image(**options))"
|
||
|
|
]
|
||
|
|
},
|
||
|
|
{
|
||
|
|
"cell_type": "code",
|
||
|
|
"execution_count": 19,
|
||
|
|
"id": "43580ab8-c637-4e79-b842-0131f970bfac",
|
||
|
|
"metadata": {
|
||
|
|
"tags": []
|
||
|
|
},
|
||
|
|
"outputs": [],
|
||
|
|
"source": [
|
||
|
|
"# Lưu lại kết quả\n",
|
||
|
|
"region_result.rio.to_raster(\"KetQuaPhanLoaiDat_new.tif\")"
|
||
|
|
]
|
||
|
|
},
|
||
|
|
{
|
||
|
|
"cell_type": "code",
|
||
|
|
"execution_count": 18,
|
||
|
|
"id": "a23a5bd1-1a8c-448d-b239-8ba2d8e104f2",
|
||
|
|
"metadata": {
|
||
|
|
"tags": []
|
||
|
|
},
|
||
|
|
"outputs": [],
|
||
|
|
"source": [
|
||
|
|
"# đóng client, cluster\n",
|
||
|
|
"client.close()\n",
|
||
|
|
"cluster.close()"
|
||
|
|
]
|
||
|
|
},
|
||
|
|
{
|
||
|
|
"cell_type": "code",
|
||
|
|
"execution_count": null,
|
||
|
|
"id": "49db198b-588e-403e-8f50-6ffb36b5d3b2",
|
||
|
|
"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
|
||
|
|
}
|