{ "cells": [ { "cell_type": "code", "execution_count": 49, "id": "db6b50b8-f9c5-4ee9-b93f-ed38a89156ba", "metadata": { "tags": [] }, "outputs": [ { "name": "stdout", "output_type": "stream", "text": [ "CPU times: user 300 µs, sys: 172 µs, total: 472 µs\n", "Wall time: 484 µs\n" ] } ], "source": [ "%%time \n", "%matplotlib inline\n", "from new_import import *" ] }, { "cell_type": "code", "execution_count": 2, "id": "bfdefd7d-90d2-43bf-aa58-ebb4caef0f85", "metadata": { "tags": [] }, "outputs": [ { "name": "stdout", "output_type": "stream", "text": [ "An existing cluster was found. Connecting to: easihub.26c21d10c6f44900aa4429853b81ac3f\n", "CPU times: user 762 ms, sys: 26.3 ms, total: 788 ms\n", "Wall time: 1 s\n" ] }, { "data": { "text/html": [ "
Client-e689cc55-7343-11ef-82c8-eab95fd56520
\n", "| Connection method: Cluster object | \n", "Cluster type: dask_gateway.GatewayCluster | \n", " \n", "
| \n", " Dashboard: https://hub.asia.easi-eo.solutions/services/dask-gateway/clusters/easihub.26c21d10c6f44900aa4429853b81ac3f/status\n", " | \n", "\n", " |
<xarray.Dataset>\n",
"Dimensions: (time: 33, y: 8874, x: 9902)\n",
"Coordinates:\n",
" * time (time) datetime64[ns] 2022-09-06T22:46:14.500000 ... 2023-09...\n",
" * y (y) float64 1.106e+06 1.106e+06 ... 1.017e+06 1.017e+06\n",
" * x (x) float64 5.548e+05 5.548e+05 ... 6.538e+05 6.538e+05\n",
" spatial_ref int32 32648\n",
"Data variables:\n",
" vv (time, y, x) float32 dask.array<chunksize=(1, 2048, 2048), meta=np.ndarray>\n",
" vh (time, y, x) float32 dask.array<chunksize=(1, 2048, 2048), meta=np.ndarray>\n",
"Attributes:\n",
" crs: EPSG:32648\n",
" grid_mapping: spatial_ref<xarray.DataArray 'vv' (time: 33, y: 8874, x: 9902)>\n",
"dask.array<dc_load_vv, shape=(33, 8874, 9902), dtype=float32, chunksize=(1, 2048, 2048), chunktype=numpy.ndarray>\n",
"Coordinates:\n",
" * time (time) datetime64[ns] 2022-09-06T22:46:14.500000 ... 2023-09...\n",
" * y (y) float64 1.106e+06 1.106e+06 ... 1.017e+06 1.017e+06\n",
" * x (x) float64 5.548e+05 5.548e+05 ... 6.538e+05 6.538e+05\n",
" spatial_ref int32 32648\n",
"Attributes:\n",
" units: intensity\n",
" nodata: nan\n",
" crs: EPSG:32648\n",
" grid_mapping: spatial_ref<xarray.DataArray (band: 13, y: 7680, x: 8687)>\n",
"[867310080 values with dtype=float64]\n",
"Coordinates:\n",
" * band (band) int64 1 2 3 4 5 6 7 8 9 10 11 12 13\n",
" * x (x) float64 5.597e+05 5.597e+05 ... 6.465e+05 6.465e+05\n",
" * y (y) float64 1.099e+06 1.099e+06 ... 1.022e+06 1.022e+06\n",
" spatial_ref int64 0\n",
"Attributes:\n",
" AREA_OR_POINT: Area\n",
" TIFFTAG_XRESOLUTION: 1\n",
" TIFFTAG_YRESOLUTION: 1\n",
" scale_factor: 1.0\n",
" add_offset: 0.0<xarray.Dataset>\n",
"Dimensions: (time: 151, y: 8874, x: 9902)\n",
"Coordinates:\n",
" * time (time) datetime64[ns] 2022-09-02T03:35:23.960000 ... 2023-09...\n",
" * y (y) float64 1.106e+06 1.106e+06 ... 1.017e+06 1.017e+06\n",
" * x (x) float64 5.548e+05 5.548e+05 ... 6.538e+05 6.538e+05\n",
" spatial_ref int32 32648\n",
"Data variables:\n",
" blue (time, y, x) float32 dask.array<chunksize=(1, 2048, 2048), meta=np.ndarray>\n",
" green (time, y, x) float32 dask.array<chunksize=(1, 2048, 2048), meta=np.ndarray>\n",
" red (time, y, x) float32 dask.array<chunksize=(1, 2048, 2048), meta=np.ndarray>\n",
" nir (time, y, x) float32 dask.array<chunksize=(1, 2048, 2048), meta=np.ndarray>\n",
" scl (time, y, x) uint8 dask.array<chunksize=(1, 2048, 2048), meta=np.ndarray>\n",
"Attributes:\n",
" crs: EPSG:32648\n",
" grid_mapping: spatial_ref| \n", " | bits | \n", "values | \n", "description | \n", "
|---|---|---|---|
| qa | \n", "[0, 1, 2, 3, 4, 5, 6, 7] | \n", "{'0': 'no data', '1': 'saturated or defective'... | \n", "Sen2Cor Scene Classification | \n", "
LinearRegression()In a Jupyter environment, please rerun this cell to show the HTML representation or trust the notebook.
LinearRegression()