diff --git a/Untitled.ipynb b/Untitled.ipynb new file mode 100644 index 00000000000..db0b6fd46f5 --- /dev/null +++ b/Untitled.ipynb @@ -0,0 +1,1891 @@ +{ + "cells": [ + { + "cell_type": "code", + "execution_count": 1, + "metadata": {}, + "outputs": [ + { + "data": { + "text/html": [ + "
<xarray.Dataset>\n", + "Dimensions: (sample: 32, time: 1223, x: 64, y: 64)\n", + "Coordinates:\n", + " * time (time) float64 0.0 0.04909 0.09817 0.1473 ... 59.89 59.94 59.98\n", + " * x (x) float32 0.049087387 0.14726216 ... 6.1359234 6.234098\n", + " * y (y) float32 0.049087387 0.14726216 ... 6.1359234 6.234098\n", + "Dimensions without coordinates: sample\n", + "Data variables:\n", + " u (sample, time, x, y) float32 dask.array<chunksize=(1, 64, 64, 64), meta=np.ndarray>\n", + " v (sample, time, x, y) float32 dask.array<chunksize=(1, 64, 64, 64), meta=np.ndarray>\n", + "Attributes:\n", + " constant_force_magnitude: 0.05\n", + " constant_force_wavenumber: 3\n", + " density: 1.0\n", + " filename_prefix: 20200313_v0\n", + " init_cfl_safety_factor: 0.5\n", + " init_peak_wavenumber: 3.0\n", + " linear_force_coefficient: -0.02\n", + " maximum_velocity: 1.0\n", + " ndim: 2\n", + " num_trajectories: 16\n", + " output_dir: /namespace/gas/primary/whirl/datasets/forced_...\n", + " save_dt: 0.04908738657832146\n", + " save_grid_size: 64\n", + " seed: 0\n", + " simulation_grid_size: 512\n", + " simulation_time: 60.0\n", + " viscosity: 0.0\n", + " warmup_grid_size: 512\n", + " warmup_time: 60.0\n", + " xm_experiment_id: 11889045\n", + " xm_work_unit_id: 4
array([0.000000e+00, 4.908739e-02, 9.817477e-02, ..., 5.988661e+01,\n", + " 5.993570e+01, 5.998479e+01])
array([0.049087, 0.147262, 0.245437, 0.343612, 0.441786, 0.539961, 0.638136,\n", + " 0.736311, 0.834486, 0.93266 , 1.030835, 1.12901 , 1.227185, 1.325359,\n", + " 1.423534, 1.521709, 1.619884, 1.718059, 1.816233, 1.914408, 2.012583,\n", + " 2.110758, 2.208932, 2.307107, 2.405282, 2.503457, 2.601631, 2.699806,\n", + " 2.797981, 2.896156, 2.994331, 3.092505, 3.19068 , 3.288855, 3.38703 ,\n", + " 3.485204, 3.583379, 3.681554, 3.779729, 3.877903, 3.976078, 4.074253,\n", + " 4.172428, 4.270603, 4.368777, 4.466952, 4.565127, 4.663302, 4.761477,\n", + " 4.859651, 4.957826, 5.056001, 5.154176, 5.25235 , 5.350525, 5.4487 ,\n", + " 5.546875, 5.64505 , 5.743224, 5.841399, 5.939574, 6.037748, 6.135923,\n", + " 6.234098], dtype=float32)
array([0.049087, 0.147262, 0.245437, 0.343612, 0.441786, 0.539961, 0.638136,\n", + " 0.736311, 0.834486, 0.93266 , 1.030835, 1.12901 , 1.227185, 1.325359,\n", + " 1.423534, 1.521709, 1.619884, 1.718059, 1.816233, 1.914408, 2.012583,\n", + " 2.110758, 2.208932, 2.307107, 2.405282, 2.503457, 2.601631, 2.699806,\n", + " 2.797981, 2.896156, 2.994331, 3.092505, 3.19068 , 3.288855, 3.38703 ,\n", + " 3.485204, 3.583379, 3.681554, 3.779729, 3.877903, 3.976078, 4.074253,\n", + " 4.172428, 4.270603, 4.368777, 4.466952, 4.565127, 4.663302, 4.761477,\n", + " 4.859651, 4.957826, 5.056001, 5.154176, 5.25235 , 5.350525, 5.4487 ,\n", + " 5.546875, 5.64505 , 5.743224, 5.841399, 5.939574, 6.037748, 6.135923,\n", + " 6.234098], dtype=float32)
\n",
+ "
| \n",
+ "\n", + "\n", + " | \n", + "
\n",
+ "
| \n",
+ "\n", + "\n", + " | \n", + "
<xarray.DataArray 'u' (sample: 32, time: 1223, x: 64, y: 64)>\n", + "dask.array<zarr, shape=(32, 1223, 64, 64), dtype=float32, chunksize=(1, 64, 64, 64), chunktype=numpy.ndarray>\n", + "Coordinates:\n", + " * time (time) float64 0.0 0.04909 0.09817 0.1473 ... 59.89 59.94 59.98\n", + " * x (x) float32 0.049087387 0.14726216 ... 6.1359234 6.234098\n", + " * y (y) float32 0.049087387 0.14726216 ... 6.1359234 6.234098\n", + "Dimensions without coordinates: sample\n", + "Attributes:\n", + " offset: [1.0, 0.5]
\n",
+ "
| \n",
+ "\n", + "\n", + " | \n", + "
array([0.000000e+00, 4.908739e-02, 9.817477e-02, ..., 5.988661e+01,\n", + " 5.993570e+01, 5.998479e+01])
array([0.049087, 0.147262, 0.245437, 0.343612, 0.441786, 0.539961, 0.638136,\n", + " 0.736311, 0.834486, 0.93266 , 1.030835, 1.12901 , 1.227185, 1.325359,\n", + " 1.423534, 1.521709, 1.619884, 1.718059, 1.816233, 1.914408, 2.012583,\n", + " 2.110758, 2.208932, 2.307107, 2.405282, 2.503457, 2.601631, 2.699806,\n", + " 2.797981, 2.896156, 2.994331, 3.092505, 3.19068 , 3.288855, 3.38703 ,\n", + " 3.485204, 3.583379, 3.681554, 3.779729, 3.877903, 3.976078, 4.074253,\n", + " 4.172428, 4.270603, 4.368777, 4.466952, 4.565127, 4.663302, 4.761477,\n", + " 4.859651, 4.957826, 5.056001, 5.154176, 5.25235 , 5.350525, 5.4487 ,\n", + " 5.546875, 5.64505 , 5.743224, 5.841399, 5.939574, 6.037748, 6.135923,\n", + " 6.234098], dtype=float32)
array([0.049087, 0.147262, 0.245437, 0.343612, 0.441786, 0.539961, 0.638136,\n", + " 0.736311, 0.834486, 0.93266 , 1.030835, 1.12901 , 1.227185, 1.325359,\n", + " 1.423534, 1.521709, 1.619884, 1.718059, 1.816233, 1.914408, 2.012583,\n", + " 2.110758, 2.208932, 2.307107, 2.405282, 2.503457, 2.601631, 2.699806,\n", + " 2.797981, 2.896156, 2.994331, 3.092505, 3.19068 , 3.288855, 3.38703 ,\n", + " 3.485204, 3.583379, 3.681554, 3.779729, 3.877903, 3.976078, 4.074253,\n", + " 4.172428, 4.270603, 4.368777, 4.466952, 4.565127, 4.663302, 4.761477,\n", + " 4.859651, 4.957826, 5.056001, 5.154176, 5.25235 , 5.350525, 5.4487 ,\n", + " 5.546875, 5.64505 , 5.743224, 5.841399, 5.939574, 6.037748, 6.135923,\n", + " 6.234098], dtype=float32)
<xarray.DataArray 'u' (sample: 32, time: 1223, x: 64, y: 64)>\n", + "dask.array<zarr, shape=(32, 1223, 64, 64), dtype=float32, chunksize=(1, 64, 64, 64), chunktype=numpy.ndarray>\n", + "Coordinates:\n", + " * time (time) float64 0.0 0.04909 0.09817 0.1473 ... 59.89 59.94 59.98\n", + " * x (x) float32 0.049087387 0.14726216 ... 6.1359234 6.234098\n", + " * y (y) float32 0.049087387 0.14726216 ... 6.1359234 6.234098\n", + "Dimensions without coordinates: sample\n", + "Attributes:\n", + " offset: [1.0, 0.5]
\n",
+ "
| \n",
+ "\n", + "\n", + " | \n", + "
array([0.000000e+00, 4.908739e-02, 9.817477e-02, ..., 5.988661e+01,\n", + " 5.993570e+01, 5.998479e+01])
array([0.049087, 0.147262, 0.245437, 0.343612, 0.441786, 0.539961, 0.638136,\n", + " 0.736311, 0.834486, 0.93266 , 1.030835, 1.12901 , 1.227185, 1.325359,\n", + " 1.423534, 1.521709, 1.619884, 1.718059, 1.816233, 1.914408, 2.012583,\n", + " 2.110758, 2.208932, 2.307107, 2.405282, 2.503457, 2.601631, 2.699806,\n", + " 2.797981, 2.896156, 2.994331, 3.092505, 3.19068 , 3.288855, 3.38703 ,\n", + " 3.485204, 3.583379, 3.681554, 3.779729, 3.877903, 3.976078, 4.074253,\n", + " 4.172428, 4.270603, 4.368777, 4.466952, 4.565127, 4.663302, 4.761477,\n", + " 4.859651, 4.957826, 5.056001, 5.154176, 5.25235 , 5.350525, 5.4487 ,\n", + " 5.546875, 5.64505 , 5.743224, 5.841399, 5.939574, 6.037748, 6.135923,\n", + " 6.234098], dtype=float32)
array([0.049087, 0.147262, 0.245437, 0.343612, 0.441786, 0.539961, 0.638136,\n", + " 0.736311, 0.834486, 0.93266 , 1.030835, 1.12901 , 1.227185, 1.325359,\n", + " 1.423534, 1.521709, 1.619884, 1.718059, 1.816233, 1.914408, 2.012583,\n", + " 2.110758, 2.208932, 2.307107, 2.405282, 2.503457, 2.601631, 2.699806,\n", + " 2.797981, 2.896156, 2.994331, 3.092505, 3.19068 , 3.288855, 3.38703 ,\n", + " 3.485204, 3.583379, 3.681554, 3.779729, 3.877903, 3.976078, 4.074253,\n", + " 4.172428, 4.270603, 4.368777, 4.466952, 4.565127, 4.663302, 4.761477,\n", + " 4.859651, 4.957826, 5.056001, 5.154176, 5.25235 , 5.350525, 5.4487 ,\n", + " 5.546875, 5.64505 , 5.743224, 5.841399, 5.939574, 6.037748, 6.135923,\n", + " 6.234098], dtype=float32)
<xarray.DataArray (time: 2, distance_bins: 10)>\n", + "array([[0.51498271, 0.46370372, 0.48996133, 0.51069211, 0.5302821 ,\n", + " 0.50000696, 0.48753868, 0.52151072, 0.48915714, 0.51292164],\n", + " [0.53229943, 0.52167522, 0.45915308, 0.5293949 , 0.47742068,\n", + " 0.48900111, 0.48465034, 0.47729889, 0.5059115 , 0.50237199]])\n", + "Coordinates:\n", + " * time (time) int64 0 1\n", + " * distance_bins (distance_bins) object (-0.0693, 6.93] ... (62.367, 69.296]
array([[0.51498271, 0.46370372, 0.48996133, 0.51069211, 0.5302821 ,\n", + " 0.50000696, 0.48753868, 0.52151072, 0.48915714, 0.51292164],\n", + " [0.53229943, 0.52167522, 0.45915308, 0.5293949 , 0.47742068,\n", + " 0.48900111, 0.48465034, 0.47729889, 0.5059115 , 0.50237199]])
array([0, 1])
array([Interval(-0.0693, 6.93, closed='right'),\n", + " Interval(6.93, 13.859, closed='right'),\n", + " Interval(13.859, 20.789, closed='right'),\n", + " Interval(20.789, 27.719, closed='right'),\n", + " Interval(27.719, 34.648, closed='right'),\n", + " Interval(34.648, 41.578, closed='right'),\n", + " Interval(41.578, 48.508, closed='right'),\n", + " Interval(48.508, 55.437, closed='right'),\n", + " Interval(55.437, 62.367, closed='right'),\n", + " Interval(62.367, 69.296, closed='right')], dtype=object)
<xarray.DataArray 'signal' (time: 20, y: 1000, x: 1000)>\n", + "dask.array<xarray-<this-array>, shape=(20, 1000, 1000), dtype=float64, chunksize=(1, 1000, 1000), chunktype=numpy.ndarray>\n", + "Coordinates:\n", + " * time (time) int64 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19\n", + " * y (y) int64 0 1 2 3 4 5 6 7 8 ... 991 992 993 994 995 996 997 998 999\n", + " * x (x) int64 0 1 2 3 4 5 6 7 8 ... 991 992 993 994 995 996 997 998 999
\n",
+ "
| \n",
+ "\n", + "\n", + " | \n", + "
array([ 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17,\n", + " 18, 19])
array([ 0, 1, 2, ..., 997, 998, 999])
array([ 0, 1, 2, ..., 997, 998, 999])
<xarray.DataArray 'signal' (time: 20, distance_bins: 50)>\n", + "dask.array<transpose, shape=(20, 50), dtype=float64, chunksize=(1, 1), chunktype=numpy.ndarray>\n", + "Coordinates:\n", + " * distance_bins (distance_bins) object (-1.413, 28.256] ... (1384.543, 141...\n", + " * time (time) int64 0 1 2 3 4 5 6 7 8 ... 11 12 13 14 15 16 17 18 19
\n",
+ "
| \n",
+ "\n", + "\n", + " | \n", + "
array([Interval(-1.413, 28.256, closed='right'),\n", + " Interval(28.256, 56.512, closed='right'),\n", + " Interval(56.512, 84.768, closed='right'),\n", + " Interval(84.768, 113.024, closed='right'),\n", + " Interval(113.024, 141.28, closed='right'),\n", + " Interval(141.28, 169.536, closed='right'),\n", + " Interval(169.536, 197.792, closed='right'),\n", + " Interval(197.792, 226.048, closed='right'),\n", + " Interval(226.048, 254.304, closed='right'),\n", + " Interval(254.304, 282.56, closed='right'),\n", + " Interval(282.56, 310.816, closed='right'),\n", + " Interval(310.816, 339.072, closed='right'),\n", + " Interval(339.072, 367.328, closed='right'),\n", + " Interval(367.328, 395.584, closed='right'),\n", + " Interval(395.584, 423.84, closed='right'),\n", + " Interval(423.84, 452.096, closed='right'),\n", + " Interval(452.096, 480.352, closed='right'),\n", + " Interval(480.352, 508.608, closed='right'),\n", + " Interval(508.608, 536.864, closed='right'),\n", + " Interval(536.864, 565.12, closed='right'),\n", + " Interval(565.12, 593.376, closed='right'),\n", + " Interval(593.376, 621.632, closed='right'),\n", + " Interval(621.632, 649.888, closed='right'),\n", + " Interval(649.888, 678.144, closed='right'),\n", + " Interval(678.144, 706.4, closed='right'),\n", + " Interval(706.4, 734.656, closed='right'),\n", + " Interval(734.656, 762.912, closed='right'),\n", + " Interval(762.912, 791.168, closed='right'),\n", + " Interval(791.168, 819.424, closed='right'),\n", + " Interval(819.424, 847.68, closed='right'),\n", + " Interval(847.68, 875.936, closed='right'),\n", + " Interval(875.936, 904.192, closed='right'),\n", + " Interval(904.192, 932.448, closed='right'),\n", + " Interval(932.448, 960.704, closed='right'),\n", + " Interval(960.704, 988.96, closed='right'),\n", + " Interval(988.96, 1017.216, closed='right'),\n", + " Interval(1017.216, 1045.472, closed='right'),\n", + " Interval(1045.472, 1073.728, closed='right'),\n", + " Interval(1073.728, 1101.983, closed='right'),\n", + " Interval(1101.983, 1130.239, closed='right'),\n", + " Interval(1130.239, 1158.495, closed='right'),\n", + " Interval(1158.495, 1186.751, closed='right'),\n", + " Interval(1186.751, 1215.007, closed='right'),\n", + " Interval(1215.007, 1243.263, closed='right'),\n", + " Interval(1243.263, 1271.519, closed='right'),\n", + " Interval(1271.519, 1299.775, closed='right'),\n", + " Interval(1299.775, 1328.031, closed='right'),\n", + " Interval(1328.031, 1356.287, closed='right'),\n", + " Interval(1356.287, 1384.543, closed='right'),\n", + " Interval(1384.543, 1412.799, closed='right')], dtype=object)
array([ 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17,\n", + " 18, 19])
<xarray.DataArray (time: 20, distance_bins: 50)>\n", + "dask.array<transpose, shape=(20, 50), dtype=float64, chunksize=(1, 50), chunktype=numpy.ndarray>\n", + "Coordinates:\n", + " * time (time) int64 0 1 2 3 4 5 6 7 8 ... 11 12 13 14 15 16 17 18 19\n", + " * distance_bins (distance_bins) object (-1.413, 28.256] ... (1384.543, 141...
\n",
+ "
| \n",
+ "\n", + "\n", + " | \n", + "
array([ 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17,\n", + " 18, 19])
array([Interval(-1.413, 28.256, closed='right'),\n", + " Interval(28.256, 56.512, closed='right'),\n", + " Interval(56.512, 84.768, closed='right'),\n", + " Interval(84.768, 113.024, closed='right'),\n", + " Interval(113.024, 141.28, closed='right'),\n", + " Interval(141.28, 169.536, closed='right'),\n", + " Interval(169.536, 197.792, closed='right'),\n", + " Interval(197.792, 226.048, closed='right'),\n", + " Interval(226.048, 254.304, closed='right'),\n", + " Interval(254.304, 282.56, closed='right'),\n", + " Interval(282.56, 310.816, closed='right'),\n", + " Interval(310.816, 339.072, closed='right'),\n", + " Interval(339.072, 367.328, closed='right'),\n", + " Interval(367.328, 395.584, closed='right'),\n", + " Interval(395.584, 423.84, closed='right'),\n", + " Interval(423.84, 452.096, closed='right'),\n", + " Interval(452.096, 480.352, closed='right'),\n", + " Interval(480.352, 508.608, closed='right'),\n", + " Interval(508.608, 536.864, closed='right'),\n", + " Interval(536.864, 565.12, closed='right'),\n", + " Interval(565.12, 593.376, closed='right'),\n", + " Interval(593.376, 621.632, closed='right'),\n", + " Interval(621.632, 649.888, closed='right'),\n", + " Interval(649.888, 678.144, closed='right'),\n", + " Interval(678.144, 706.4, closed='right'),\n", + " Interval(706.4, 734.656, closed='right'),\n", + " Interval(734.656, 762.912, closed='right'),\n", + " Interval(762.912, 791.168, closed='right'),\n", + " Interval(791.168, 819.424, closed='right'),\n", + " Interval(819.424, 847.68, closed='right'),\n", + " Interval(847.68, 875.936, closed='right'),\n", + " Interval(875.936, 904.192, closed='right'),\n", + " Interval(904.192, 932.448, closed='right'),\n", + " Interval(932.448, 960.704, closed='right'),\n", + " Interval(960.704, 988.96, closed='right'),\n", + " Interval(988.96, 1017.216, closed='right'),\n", + " Interval(1017.216, 1045.472, closed='right'),\n", + " Interval(1045.472, 1073.728, closed='right'),\n", + " Interval(1073.728, 1101.983, closed='right'),\n", + " Interval(1101.983, 1130.239, closed='right'),\n", + " Interval(1130.239, 1158.495, closed='right'),\n", + " Interval(1158.495, 1186.751, closed='right'),\n", + " Interval(1186.751, 1215.007, closed='right'),\n", + " Interval(1215.007, 1243.263, closed='right'),\n", + " Interval(1243.263, 1271.519, closed='right'),\n", + " Interval(1271.519, 1299.775, closed='right'),\n", + " Interval(1299.775, 1328.031, closed='right'),\n", + " Interval(1328.031, 1356.287, closed='right'),\n", + " Interval(1356.287, 1384.543, closed='right'),\n", + " Interval(1384.543, 1412.799, closed='right')], dtype=object)