diff --git a/.github/workflows/python-package.yml b/.github/workflows/python-package.yml
index 07d5117..56e5f3e 100644
--- a/.github/workflows/python-package.yml
+++ b/.github/workflows/python-package.yml
@@ -1,7 +1,7 @@
# This workflow will install Python dependencies, run tests and lint with a variety of Python versions
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-python
-name: pism-ragis
+name: pypism
on:
push:
diff --git a/notebooks/test_extract_profile.ipynb b/notebooks/test_extract_profile.ipynb
index 9818c56..09ade4e 100644
--- a/notebooks/test_extract_profile.ipynb
+++ b/notebooks/test_extract_profile.ipynb
@@ -2,7 +2,19 @@
"cells": [
{
"cell_type": "code",
- "execution_count": 1,
+ "execution_count": 15,
+ "id": "1944771d",
+ "metadata": {},
+ "outputs": [],
+ "source": [
+ "import numpy as np\n",
+ "import pandas as pd\n",
+ "import xarray as xr"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "execution_count": 16,
"id": "b2105341",
"metadata": {},
"outputs": [],
@@ -90,23 +102,10 @@
},
{
"cell_type": "code",
- "execution_count": 2,
+ "execution_count": 17,
"id": "a641f41f",
"metadata": {},
- "outputs": [
- {
- "ename": "ModuleNotFoundError",
- "evalue": "No module named 'netCDF4'",
- "output_type": "error",
- "traceback": [
- "\u001b[0;31m---------------------------------------------------------------------------\u001b[0m",
- "\u001b[0;31mModuleNotFoundError\u001b[0m Traceback (most recent call last)",
- "Cell \u001b[0;32mIn[2], line 13\u001b[0m\n\u001b[1;32m 10\u001b[0m fd, filename \u001b[38;5;241m=\u001b[39m tempfile\u001b[38;5;241m.\u001b[39mmkstemp(suffix\u001b[38;5;241m=\u001b[39m\u001b[38;5;124m\"\u001b[39m\u001b[38;5;124m.nc\u001b[39m\u001b[38;5;124m\"\u001b[39m, prefix\u001b[38;5;241m=\u001b[39m\u001b[38;5;124m\"\u001b[39m\u001b[38;5;124mextract_profile_test_\u001b[39m\u001b[38;5;124m\"\u001b[39m)\n\u001b[1;32m 11\u001b[0m os\u001b[38;5;241m.\u001b[39mclose(fd)\n\u001b[0;32m---> 13\u001b[0m \u001b[43mcreate_dummy_input_file\u001b[49m\u001b[43m(\u001b[49m\u001b[43mfilename\u001b[49m\u001b[43m,\u001b[49m\u001b[43m \u001b[49m\u001b[43mF\u001b[49m\u001b[43m)\u001b[49m\n",
- "Cell \u001b[0;32mIn[1], line 5\u001b[0m, in \u001b[0;36mcreate_dummy_input_file\u001b[0;34m(filename, F)\u001b[0m\n\u001b[1;32m 1\u001b[0m \u001b[38;5;28;01mdef\u001b[39;00m \u001b[38;5;21mcreate_dummy_input_file\u001b[39m(filename, F):\n\u001b[1;32m 2\u001b[0m \u001b[38;5;250m \u001b[39m\u001b[38;5;124;03m\"\"\"Create an input file for testing. Does not use unlimited\u001b[39;00m\n\u001b[1;32m 3\u001b[0m \u001b[38;5;124;03m dimensions, creates one time record only.\"\"\"\u001b[39;00m\n\u001b[0;32m----> 5\u001b[0m \u001b[38;5;28;01mimport\u001b[39;00m \u001b[38;5;21;01mnetCDF4\u001b[39;00m\n\u001b[1;32m 7\u001b[0m nc \u001b[38;5;241m=\u001b[39m netCDF4\u001b[38;5;241m.\u001b[39mDataset(filename, \u001b[38;5;124m\"\u001b[39m\u001b[38;5;124mw\u001b[39m\u001b[38;5;124m\"\u001b[39m)\n\u001b[1;32m 9\u001b[0m Mx \u001b[38;5;241m=\u001b[39m \u001b[38;5;241m88\u001b[39m\n",
- "\u001b[0;31mModuleNotFoundError\u001b[0m: No module named 'netCDF4'"
- ]
- }
- ],
+ "outputs": [],
"source": [
" def F(x, y, z):\n",
" \"\"\"A function linear in x, y, and z. Used to test our interpolation\n",
@@ -120,13 +119,2709 @@
" fd, filename = tempfile.mkstemp(suffix=\".nc\", prefix=\"extract_profile_test_\")\n",
" os.close(fd)\n",
"\n",
- " create_dummy_input_file(filename, F)\n"
+ " create_dummy_input_file(filename, F)\n",
+ " create_dummy_input_file(\"test.nc\", F)\n"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "execution_count": 199,
+ "id": "73156724",
+ "metadata": {},
+ "outputs": [],
+ "source": [
+ "def create_dummy_input_file_xr(filename, F):\n",
+ " \"\"\"Create an input file for testing. Does not use unlimited\n",
+ " dimensions, creates one time record only.\"\"\"\n",
+ "\n",
+ " Mx = 88\n",
+ " My = 152\n",
+ " Mz = 11\n",
+ " Mt = 1\n",
+ " \n",
+ " # use X and Y ranges corresponding to a grid covering Greenland\n",
+ " x = np.linspace(-669650.0, 896350.0, Mx)\n",
+ " y = np.linspace(-3362600.0, -644600.0, My)\n",
+ " z = np.linspace(0, 4000.0, Mz)\n",
+ "\n",
+ " xx, yy = np.meshgrid(x, y)\n",
+ "\n",
+ " def write(prefix, dimensions):\n",
+ " \"Write test data to the file using given storage order.\"\n",
+ "\n",
+ " slices = {\"x\": slice(0, Mx), \"y\": slice(0, My), \"time\": 0, \"z\": None}\n",
+ " dim_map = {\"x\": Mx, \"y\": My, \"z\": Mz, \"time\": Mt}\n",
+ "\n",
+ " # set indexes for all dimensions (z index will be re-set below)\n",
+ " indexes = [Ellipsis] * len(dimensions)\n",
+ " for k, d in enumerate(dimensions):\n",
+ " indexes[k] = slices[d]\n",
+ "\n",
+ " # transpose 2D array if needed\n",
+ " if dimensions.index(\"y\") < dimensions.index(\"x\"):\n",
+ "\n",
+ " def T(x):\n",
+ " return x\n",
+ "\n",
+ " else:\n",
+ " T = np.transpose\n",
+ "\n",
+ " dims = [dim_map[d] for d in dimensions]\n",
+ " variable = np.zeros(dims)\n",
+ " if \"z\" in dimensions:\n",
+ " for k in range(Mz):\n",
+ " indexes[dimensions.index(\"z\")] = k\n",
+ " variable[*indexes] = T(F(xx, yy, z[k]))\n",
+ " else:\n",
+ " variable[*indexes] = T(F(xx, yy, 0))\n",
+ " \n",
+ " return (dimensions, variable, {\"long_name\": name + \" (make it long!)\"})\n",
+ "\n",
+ " from itertools import permutations\n",
+ "\n",
+ " def P(x):\n",
+ " return list(permutations(x))\n",
+ "\n",
+ " data_vars = dict()\n",
+ " for d in sorted(P([\"x\", \"y\"]) + P([\"time\", \"x\", \"y\"])):\n",
+ " prefix = \"test_2D_\"\n",
+ " name = prefix + \"_\".join(d)\n",
+ " data_vars[name] = write(prefix, d)\n",
+ "\n",
+ " for d in sorted(P([\"x\", \"y\", \"z\"]) + P([\"time\", \"x\", \"y\", \"z\"])):\n",
+ " prefix = \"test_3D_\"\n",
+ " name = prefix + \"_\".join(d)\n",
+ " data_vars[name] = write(prefix, d)\n",
+ " \n",
+ " ds = xr.Dataset(\n",
+ " data_vars=data_vars,\n",
+ " coords=dict(\n",
+ " time=([\"time\"], [0], {}),\n",
+ " z=([\"z\"], z, {\"_FillValue\": False, \"units\": \"m\"}),\n",
+ " y=([\"y\"], y, {\"_FillValue\": False, \"units\": \"m\", \"axis\": \"Y\", \"standard_name\": \"projection_y_coordinate\"}),\n",
+ " x=([\"x\"], x, {\"_FillValue\": False, \"units\": \"m\", \"axis\": \"X\", \"standard_name\": \"projection_x_coordinate\"}),\n",
+ " ),\n",
+ " attrs=dict(description=\"Test data.\"),\n",
+ " )\n",
+ " ds.to_netcdf(filename)\n",
+ " return ds\n",
+ "\n"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "execution_count": 200,
+ "id": "1acde809",
+ "metadata": {},
+ "outputs": [
+ {
+ "data": {
+ "text/html": [
+ "
\n",
+ "
<xarray.Dataset>\n",
+ "Dimensions: (time: 1, x: 88, y: 152, z: 11)\n",
+ "Coordinates:\n",
+ " * time (time) int64 0\n",
+ " * z (z) float64 0.0 400.0 800.0 ... 3.2e+03 3.6e+03 4e+03\n",
+ " * y (y) float64 -3.363e+06 -3.345e+06 ... -6.446e+05\n",
+ " * x (x) float64 -6.696e+05 -6.516e+05 ... 8.964e+05\n",
+ "Data variables: (12/38)\n",
+ " test_2D_time_x_y (time, x, y) float64 -7.394e+04 ... -3.918e+03\n",
+ " test_2D_time_y_x (time, y, x) float64 -7.394e+04 ... -3.918e+03\n",
+ " test_2D_x_time_y (x, time, y) float64 -7.394e+04 ... -3.918e+03\n",
+ " test_2D_x_y (x, y) float64 -7.394e+04 -7.358e+04 ... -3.918e+03\n",
+ " test_2D_x_y_time (x, y, time) float64 -7.394e+04 ... -3.918e+03\n",
+ " test_2D_y_time_x (y, time, x) float64 -7.394e+04 ... -3.918e+03\n",
+ " ... ...\n",
+ " test_3D_z_x_time_y (z, x, time, y) float64 -7.394e+04 ... -3.758e+03\n",
+ " test_3D_z_x_y (z, x, y) float64 -7.394e+04 -7.358e+04 ... -3.758e+03\n",
+ " test_3D_z_x_y_time (z, x, y, time) float64 -7.394e+04 ... -3.758e+03\n",
+ " test_3D_z_y_time_x (z, y, time, x) float64 -7.394e+04 ... -3.758e+03\n",
+ " test_3D_z_y_x (z, y, x) float64 -7.394e+04 -7.376e+04 ... -3.758e+03\n",
+ " test_3D_z_y_x_time (z, y, x, time) float64 -7.394e+04 ... -3.758e+03\n",
+ "Attributes:\n",
+ " description: Test data.
time
(time)
int64
0
z
(z)
float64
0.0 400.0 800.0 ... 3.6e+03 4e+03
- _FillValue :
- False
- units :
- m
array([ 0., 400., 800., 1200., 1600., 2000., 2400., 2800., 3200., 3600.,\n",
+ " 4000.])
y
(y)
float64
-3.363e+06 ... -6.446e+05
- _FillValue :
- False
- units :
- m
- axis :
- Y
- standard_name :
- projection_y_coordinate
array([-3362600., -3344600., -3326600., -3308600., -3290600., -3272600.,\n",
+ " -3254600., -3236600., -3218600., -3200600., -3182600., -3164600.,\n",
+ " -3146600., -3128600., -3110600., -3092600., -3074600., -3056600.,\n",
+ " -3038600., -3020600., -3002600., -2984600., -2966600., -2948600.,\n",
+ " -2930600., -2912600., -2894600., -2876600., -2858600., -2840600.,\n",
+ " -2822600., -2804600., -2786600., -2768600., -2750600., -2732600.,\n",
+ " -2714600., -2696600., -2678600., -2660600., -2642600., -2624600.,\n",
+ " -2606600., -2588600., -2570600., -2552600., -2534600., -2516600.,\n",
+ " -2498600., -2480600., -2462600., -2444600., -2426600., -2408600.,\n",
+ " -2390600., -2372600., -2354600., -2336600., -2318600., -2300600.,\n",
+ " -2282600., -2264600., -2246600., -2228600., -2210600., -2192600.,\n",
+ " -2174600., -2156600., -2138600., -2120600., -2102600., -2084600.,\n",
+ " -2066600., -2048600., -2030600., -2012600., -1994600., -1976600.,\n",
+ " -1958600., -1940600., -1922600., -1904600., -1886600., -1868600.,\n",
+ " -1850600., -1832600., -1814600., -1796600., -1778600., -1760600.,\n",
+ " -1742600., -1724600., -1706600., -1688600., -1670600., -1652600.,\n",
+ " -1634600., -1616600., -1598600., -1580600., -1562600., -1544600.,\n",
+ " -1526600., -1508600., -1490600., -1472600., -1454600., -1436600.,\n",
+ " -1418600., -1400600., -1382600., -1364600., -1346600., -1328600.,\n",
+ " -1310600., -1292600., -1274600., -1256600., -1238600., -1220600.,\n",
+ " -1202600., -1184600., -1166600., -1148600., -1130600., -1112600.,\n",
+ " -1094600., -1076600., -1058600., -1040600., -1022600., -1004600.,\n",
+ " -986600., -968600., -950600., -932600., -914600., -896600.,\n",
+ " -878600., -860600., -842600., -824600., -806600., -788600.,\n",
+ " -770600., -752600., -734600., -716600., -698600., -680600.,\n",
+ " -662600., -644600.])
x
(x)
float64
-6.696e+05 -6.516e+05 ... 8.964e+05
- _FillValue :
- False
- units :
- m
- axis :
- X
- standard_name :
- projection_x_coordinate
array([-669650., -651650., -633650., -615650., -597650., -579650., -561650.,\n",
+ " -543650., -525650., -507650., -489650., -471650., -453650., -435650.,\n",
+ " -417650., -399650., -381650., -363650., -345650., -327650., -309650.,\n",
+ " -291650., -273650., -255650., -237650., -219650., -201650., -183650.,\n",
+ " -165650., -147650., -129650., -111650., -93650., -75650., -57650.,\n",
+ " -39650., -21650., -3650., 14350., 32350., 50350., 68350.,\n",
+ " 86350., 104350., 122350., 140350., 158350., 176350., 194350.,\n",
+ " 212350., 230350., 248350., 266350., 284350., 302350., 320350.,\n",
+ " 338350., 356350., 374350., 392350., 410350., 428350., 446350.,\n",
+ " 464350., 482350., 500350., 518350., 536350., 554350., 572350.,\n",
+ " 590350., 608350., 626350., 644350., 662350., 680350., 698350.,\n",
+ " 716350., 734350., 752350., 770350., 788350., 806350., 824350.,\n",
+ " 842350., 860350., 878350., 896350.])
test_2D_time_x_y
(time, x, y)
float64
-7.394e+04 ... -3.918e+03
- long_name :
- test_2D_time_x_y (make it long!)
array([[[-73938.47, -73578.47, -73218.47, ..., -20298.47, -19938.47,\n",
+ " -19578.47],\n",
+ " [-73758.47, -73398.47, -73038.47, ..., -20118.47, -19758.47,\n",
+ " -19398.47],\n",
+ " [-73578.47, -73218.47, -72858.47, ..., -19938.47, -19578.47,\n",
+ " -19218.47],\n",
+ " ...,\n",
+ " [-58638.47, -58278.47, -57918.47, ..., -4998.47, -4638.47,\n",
+ " -4278.47],\n",
+ " [-58458.47, -58098.47, -57738.47, ..., -4818.47, -4458.47,\n",
+ " -4098.47],\n",
+ " [-58278.47, -57918.47, -57558.47, ..., -4638.47, -4278.47,\n",
+ " -3918.47]]])
test_2D_time_y_x
(time, y, x)
float64
-7.394e+04 ... -3.918e+03
- long_name :
- test_2D_time_y_x (make it long!)
array([[[-73938.47, -73758.47, -73578.47, ..., -58638.47, -58458.47,\n",
+ " -58278.47],\n",
+ " [-73578.47, -73398.47, -73218.47, ..., -58278.47, -58098.47,\n",
+ " -57918.47],\n",
+ " [-73218.47, -73038.47, -72858.47, ..., -57918.47, -57738.47,\n",
+ " -57558.47],\n",
+ " ...,\n",
+ " [-20298.47, -20118.47, -19938.47, ..., -4998.47, -4818.47,\n",
+ " -4638.47],\n",
+ " [-19938.47, -19758.47, -19578.47, ..., -4638.47, -4458.47,\n",
+ " -4278.47],\n",
+ " [-19578.47, -19398.47, -19218.47, ..., -4278.47, -4098.47,\n",
+ " -3918.47]]])
test_2D_x_time_y
(x, time, y)
float64
-7.394e+04 ... -3.918e+03
- long_name :
- test_2D_x_time_y (make it long!)
array([[[-73938.47, -73578.47, -73218.47, ..., -20298.47, -19938.47,\n",
+ " -19578.47]],\n",
+ "\n",
+ " [[-73758.47, -73398.47, -73038.47, ..., -20118.47, -19758.47,\n",
+ " -19398.47]],\n",
+ "\n",
+ " [[-73578.47, -73218.47, -72858.47, ..., -19938.47, -19578.47,\n",
+ " -19218.47]],\n",
+ "\n",
+ " ...,\n",
+ "\n",
+ " [[-58638.47, -58278.47, -57918.47, ..., -4998.47, -4638.47,\n",
+ " -4278.47]],\n",
+ "\n",
+ " [[-58458.47, -58098.47, -57738.47, ..., -4818.47, -4458.47,\n",
+ " -4098.47]],\n",
+ "\n",
+ " [[-58278.47, -57918.47, -57558.47, ..., -4638.47, -4278.47,\n",
+ " -3918.47]]])
test_2D_x_y
(x, y)
float64
-7.394e+04 ... -3.918e+03
- long_name :
- test_2D_x_y (make it long!)
array([[-73938.47, -73578.47, -73218.47, ..., -20298.47, -19938.47,\n",
+ " -19578.47],\n",
+ " [-73758.47, -73398.47, -73038.47, ..., -20118.47, -19758.47,\n",
+ " -19398.47],\n",
+ " [-73578.47, -73218.47, -72858.47, ..., -19938.47, -19578.47,\n",
+ " -19218.47],\n",
+ " ...,\n",
+ " [-58638.47, -58278.47, -57918.47, ..., -4998.47, -4638.47,\n",
+ " -4278.47],\n",
+ " [-58458.47, -58098.47, -57738.47, ..., -4818.47, -4458.47,\n",
+ " -4098.47],\n",
+ " [-58278.47, -57918.47, -57558.47, ..., -4638.47, -4278.47,\n",
+ " -3918.47]])
test_2D_x_y_time
(x, y, time)
float64
-7.394e+04 ... -3.918e+03
- long_name :
- test_2D_x_y_time (make it long!)
array([[[-73938.47],\n",
+ " [-73578.47],\n",
+ " [-73218.47],\n",
+ " ...,\n",
+ " [-20298.47],\n",
+ " [-19938.47],\n",
+ " [-19578.47]],\n",
+ "\n",
+ " [[-73758.47],\n",
+ " [-73398.47],\n",
+ " [-73038.47],\n",
+ " ...,\n",
+ " [-20118.47],\n",
+ " [-19758.47],\n",
+ " [-19398.47]],\n",
+ "\n",
+ " [[-73578.47],\n",
+ " [-73218.47],\n",
+ " [-72858.47],\n",
+ " ...,\n",
+ "...\n",
+ " ...,\n",
+ " [ -4998.47],\n",
+ " [ -4638.47],\n",
+ " [ -4278.47]],\n",
+ "\n",
+ " [[-58458.47],\n",
+ " [-58098.47],\n",
+ " [-57738.47],\n",
+ " ...,\n",
+ " [ -4818.47],\n",
+ " [ -4458.47],\n",
+ " [ -4098.47]],\n",
+ "\n",
+ " [[-58278.47],\n",
+ " [-57918.47],\n",
+ " [-57558.47],\n",
+ " ...,\n",
+ " [ -4638.47],\n",
+ " [ -4278.47],\n",
+ " [ -3918.47]]])
test_2D_y_time_x
(y, time, x)
float64
-7.394e+04 ... -3.918e+03
- long_name :
- test_2D_y_time_x (make it long!)
array([[[-73938.47, -73758.47, -73578.47, ..., -58638.47, -58458.47,\n",
+ " -58278.47]],\n",
+ "\n",
+ " [[-73578.47, -73398.47, -73218.47, ..., -58278.47, -58098.47,\n",
+ " -57918.47]],\n",
+ "\n",
+ " [[-73218.47, -73038.47, -72858.47, ..., -57918.47, -57738.47,\n",
+ " -57558.47]],\n",
+ "\n",
+ " ...,\n",
+ "\n",
+ " [[-20298.47, -20118.47, -19938.47, ..., -4998.47, -4818.47,\n",
+ " -4638.47]],\n",
+ "\n",
+ " [[-19938.47, -19758.47, -19578.47, ..., -4638.47, -4458.47,\n",
+ " -4278.47]],\n",
+ "\n",
+ " [[-19578.47, -19398.47, -19218.47, ..., -4278.47, -4098.47,\n",
+ " -3918.47]]])
test_2D_y_x
(y, x)
float64
-7.394e+04 ... -3.918e+03
- long_name :
- test_2D_y_x (make it long!)
array([[-73938.47, -73758.47, -73578.47, ..., -58638.47, -58458.47,\n",
+ " -58278.47],\n",
+ " [-73578.47, -73398.47, -73218.47, ..., -58278.47, -58098.47,\n",
+ " -57918.47],\n",
+ " [-73218.47, -73038.47, -72858.47, ..., -57918.47, -57738.47,\n",
+ " -57558.47],\n",
+ " ...,\n",
+ " [-20298.47, -20118.47, -19938.47, ..., -4998.47, -4818.47,\n",
+ " -4638.47],\n",
+ " [-19938.47, -19758.47, -19578.47, ..., -4638.47, -4458.47,\n",
+ " -4278.47],\n",
+ " [-19578.47, -19398.47, -19218.47, ..., -4278.47, -4098.47,\n",
+ " -3918.47]])
test_2D_y_x_time
(y, x, time)
float64
-7.394e+04 ... -3.918e+03
- long_name :
- test_2D_y_x_time (make it long!)
array([[[-73938.47],\n",
+ " [-73758.47],\n",
+ " [-73578.47],\n",
+ " ...,\n",
+ " [-58638.47],\n",
+ " [-58458.47],\n",
+ " [-58278.47]],\n",
+ "\n",
+ " [[-73578.47],\n",
+ " [-73398.47],\n",
+ " [-73218.47],\n",
+ " ...,\n",
+ " [-58278.47],\n",
+ " [-58098.47],\n",
+ " [-57918.47]],\n",
+ "\n",
+ " [[-73218.47],\n",
+ " [-73038.47],\n",
+ " [-72858.47],\n",
+ " ...,\n",
+ "...\n",
+ " ...,\n",
+ " [ -4998.47],\n",
+ " [ -4818.47],\n",
+ " [ -4638.47]],\n",
+ "\n",
+ " [[-19938.47],\n",
+ " [-19758.47],\n",
+ " [-19578.47],\n",
+ " ...,\n",
+ " [ -4638.47],\n",
+ " [ -4458.47],\n",
+ " [ -4278.47]],\n",
+ "\n",
+ " [[-19578.47],\n",
+ " [-19398.47],\n",
+ " [-19218.47],\n",
+ " ...,\n",
+ " [ -4278.47],\n",
+ " [ -4098.47],\n",
+ " [ -3918.47]]])
test_3D_time_x_y_z
(time, x, y, z)
float64
-7.394e+04 ... -3.758e+03
- long_name :
- test_3D_time_x_y_z (make it long!)
array([[[[-73938.47, -73922.47, -73906.47, ..., -73810.47, -73794.47,\n",
+ " -73778.47],\n",
+ " [-73578.47, -73562.47, -73546.47, ..., -73450.47, -73434.47,\n",
+ " -73418.47],\n",
+ " [-73218.47, -73202.47, -73186.47, ..., -73090.47, -73074.47,\n",
+ " -73058.47],\n",
+ " ...,\n",
+ " [-20298.47, -20282.47, -20266.47, ..., -20170.47, -20154.47,\n",
+ " -20138.47],\n",
+ " [-19938.47, -19922.47, -19906.47, ..., -19810.47, -19794.47,\n",
+ " -19778.47],\n",
+ " [-19578.47, -19562.47, -19546.47, ..., -19450.47, -19434.47,\n",
+ " -19418.47]],\n",
+ "\n",
+ " [[-73758.47, -73742.47, -73726.47, ..., -73630.47, -73614.47,\n",
+ " -73598.47],\n",
+ " [-73398.47, -73382.47, -73366.47, ..., -73270.47, -73254.47,\n",
+ " -73238.47],\n",
+ " [-73038.47, -73022.47, -73006.47, ..., -72910.47, -72894.47,\n",
+ " -72878.47],\n",
+ "...\n",
+ " [ -4818.47, -4802.47, -4786.47, ..., -4690.47, -4674.47,\n",
+ " -4658.47],\n",
+ " [ -4458.47, -4442.47, -4426.47, ..., -4330.47, -4314.47,\n",
+ " -4298.47],\n",
+ " [ -4098.47, -4082.47, -4066.47, ..., -3970.47, -3954.47,\n",
+ " -3938.47]],\n",
+ "\n",
+ " [[-58278.47, -58262.47, -58246.47, ..., -58150.47, -58134.47,\n",
+ " -58118.47],\n",
+ " [-57918.47, -57902.47, -57886.47, ..., -57790.47, -57774.47,\n",
+ " -57758.47],\n",
+ " [-57558.47, -57542.47, -57526.47, ..., -57430.47, -57414.47,\n",
+ " -57398.47],\n",
+ " ...,\n",
+ " [ -4638.47, -4622.47, -4606.47, ..., -4510.47, -4494.47,\n",
+ " -4478.47],\n",
+ " [ -4278.47, -4262.47, -4246.47, ..., -4150.47, -4134.47,\n",
+ " -4118.47],\n",
+ " [ -3918.47, -3902.47, -3886.47, ..., -3790.47, -3774.47,\n",
+ " -3758.47]]]])
test_3D_time_x_z_y
(time, x, z, y)
float64
-7.394e+04 ... -3.758e+03
- long_name :
- test_3D_time_x_z_y (make it long!)
array([[[[-73938.47, -73578.47, -73218.47, ..., -20298.47, -19938.47,\n",
+ " -19578.47],\n",
+ " [-73922.47, -73562.47, -73202.47, ..., -20282.47, -19922.47,\n",
+ " -19562.47],\n",
+ " [-73906.47, -73546.47, -73186.47, ..., -20266.47, -19906.47,\n",
+ " -19546.47],\n",
+ " ...,\n",
+ " [-73810.47, -73450.47, -73090.47, ..., -20170.47, -19810.47,\n",
+ " -19450.47],\n",
+ " [-73794.47, -73434.47, -73074.47, ..., -20154.47, -19794.47,\n",
+ " -19434.47],\n",
+ " [-73778.47, -73418.47, -73058.47, ..., -20138.47, -19778.47,\n",
+ " -19418.47]],\n",
+ "\n",
+ " [[-73758.47, -73398.47, -73038.47, ..., -20118.47, -19758.47,\n",
+ " -19398.47],\n",
+ " [-73742.47, -73382.47, -73022.47, ..., -20102.47, -19742.47,\n",
+ " -19382.47],\n",
+ " [-73726.47, -73366.47, -73006.47, ..., -20086.47, -19726.47,\n",
+ " -19366.47],\n",
+ "...\n",
+ " [-58330.47, -57970.47, -57610.47, ..., -4690.47, -4330.47,\n",
+ " -3970.47],\n",
+ " [-58314.47, -57954.47, -57594.47, ..., -4674.47, -4314.47,\n",
+ " -3954.47],\n",
+ " [-58298.47, -57938.47, -57578.47, ..., -4658.47, -4298.47,\n",
+ " -3938.47]],\n",
+ "\n",
+ " [[-58278.47, -57918.47, -57558.47, ..., -4638.47, -4278.47,\n",
+ " -3918.47],\n",
+ " [-58262.47, -57902.47, -57542.47, ..., -4622.47, -4262.47,\n",
+ " -3902.47],\n",
+ " [-58246.47, -57886.47, -57526.47, ..., -4606.47, -4246.47,\n",
+ " -3886.47],\n",
+ " ...,\n",
+ " [-58150.47, -57790.47, -57430.47, ..., -4510.47, -4150.47,\n",
+ " -3790.47],\n",
+ " [-58134.47, -57774.47, -57414.47, ..., -4494.47, -4134.47,\n",
+ " -3774.47],\n",
+ " [-58118.47, -57758.47, -57398.47, ..., -4478.47, -4118.47,\n",
+ " -3758.47]]]])
test_3D_time_y_x_z
(time, y, x, z)
float64
-7.394e+04 ... -3.758e+03
- long_name :
- test_3D_time_y_x_z (make it long!)
array([[[[-73938.47, -73922.47, -73906.47, ..., -73810.47, -73794.47,\n",
+ " -73778.47],\n",
+ " [-73758.47, -73742.47, -73726.47, ..., -73630.47, -73614.47,\n",
+ " -73598.47],\n",
+ " [-73578.47, -73562.47, -73546.47, ..., -73450.47, -73434.47,\n",
+ " -73418.47],\n",
+ " ...,\n",
+ " [-58638.47, -58622.47, -58606.47, ..., -58510.47, -58494.47,\n",
+ " -58478.47],\n",
+ " [-58458.47, -58442.47, -58426.47, ..., -58330.47, -58314.47,\n",
+ " -58298.47],\n",
+ " [-58278.47, -58262.47, -58246.47, ..., -58150.47, -58134.47,\n",
+ " -58118.47]],\n",
+ "\n",
+ " [[-73578.47, -73562.47, -73546.47, ..., -73450.47, -73434.47,\n",
+ " -73418.47],\n",
+ " [-73398.47, -73382.47, -73366.47, ..., -73270.47, -73254.47,\n",
+ " -73238.47],\n",
+ " [-73218.47, -73202.47, -73186.47, ..., -73090.47, -73074.47,\n",
+ " -73058.47],\n",
+ "...\n",
+ " [ -4638.47, -4622.47, -4606.47, ..., -4510.47, -4494.47,\n",
+ " -4478.47],\n",
+ " [ -4458.47, -4442.47, -4426.47, ..., -4330.47, -4314.47,\n",
+ " -4298.47],\n",
+ " [ -4278.47, -4262.47, -4246.47, ..., -4150.47, -4134.47,\n",
+ " -4118.47]],\n",
+ "\n",
+ " [[-19578.47, -19562.47, -19546.47, ..., -19450.47, -19434.47,\n",
+ " -19418.47],\n",
+ " [-19398.47, -19382.47, -19366.47, ..., -19270.47, -19254.47,\n",
+ " -19238.47],\n",
+ " [-19218.47, -19202.47, -19186.47, ..., -19090.47, -19074.47,\n",
+ " -19058.47],\n",
+ " ...,\n",
+ " [ -4278.47, -4262.47, -4246.47, ..., -4150.47, -4134.47,\n",
+ " -4118.47],\n",
+ " [ -4098.47, -4082.47, -4066.47, ..., -3970.47, -3954.47,\n",
+ " -3938.47],\n",
+ " [ -3918.47, -3902.47, -3886.47, ..., -3790.47, -3774.47,\n",
+ " -3758.47]]]])
test_3D_time_y_z_x
(time, y, z, x)
float64
-7.394e+04 ... -3.758e+03
- long_name :
- test_3D_time_y_z_x (make it long!)
array([[[[-73938.47, -73758.47, -73578.47, ..., -58638.47, -58458.47,\n",
+ " -58278.47],\n",
+ " [-73922.47, -73742.47, -73562.47, ..., -58622.47, -58442.47,\n",
+ " -58262.47],\n",
+ " [-73906.47, -73726.47, -73546.47, ..., -58606.47, -58426.47,\n",
+ " -58246.47],\n",
+ " ...,\n",
+ " [-73810.47, -73630.47, -73450.47, ..., -58510.47, -58330.47,\n",
+ " -58150.47],\n",
+ " [-73794.47, -73614.47, -73434.47, ..., -58494.47, -58314.47,\n",
+ " -58134.47],\n",
+ " [-73778.47, -73598.47, -73418.47, ..., -58478.47, -58298.47,\n",
+ " -58118.47]],\n",
+ "\n",
+ " [[-73578.47, -73398.47, -73218.47, ..., -58278.47, -58098.47,\n",
+ " -57918.47],\n",
+ " [-73562.47, -73382.47, -73202.47, ..., -58262.47, -58082.47,\n",
+ " -57902.47],\n",
+ " [-73546.47, -73366.47, -73186.47, ..., -58246.47, -58066.47,\n",
+ " -57886.47],\n",
+ "...\n",
+ " [-19810.47, -19630.47, -19450.47, ..., -4510.47, -4330.47,\n",
+ " -4150.47],\n",
+ " [-19794.47, -19614.47, -19434.47, ..., -4494.47, -4314.47,\n",
+ " -4134.47],\n",
+ " [-19778.47, -19598.47, -19418.47, ..., -4478.47, -4298.47,\n",
+ " -4118.47]],\n",
+ "\n",
+ " [[-19578.47, -19398.47, -19218.47, ..., -4278.47, -4098.47,\n",
+ " -3918.47],\n",
+ " [-19562.47, -19382.47, -19202.47, ..., -4262.47, -4082.47,\n",
+ " -3902.47],\n",
+ " [-19546.47, -19366.47, -19186.47, ..., -4246.47, -4066.47,\n",
+ " -3886.47],\n",
+ " ...,\n",
+ " [-19450.47, -19270.47, -19090.47, ..., -4150.47, -3970.47,\n",
+ " -3790.47],\n",
+ " [-19434.47, -19254.47, -19074.47, ..., -4134.47, -3954.47,\n",
+ " -3774.47],\n",
+ " [-19418.47, -19238.47, -19058.47, ..., -4118.47, -3938.47,\n",
+ " -3758.47]]]])
test_3D_time_z_x_y
(time, z, x, y)
float64
-7.394e+04 ... -3.758e+03
- long_name :
- test_3D_time_z_x_y (make it long!)
array([[[[-73938.47, -73578.47, -73218.47, ..., -20298.47, -19938.47,\n",
+ " -19578.47],\n",
+ " [-73758.47, -73398.47, -73038.47, ..., -20118.47, -19758.47,\n",
+ " -19398.47],\n",
+ " [-73578.47, -73218.47, -72858.47, ..., -19938.47, -19578.47,\n",
+ " -19218.47],\n",
+ " ...,\n",
+ " [-58638.47, -58278.47, -57918.47, ..., -4998.47, -4638.47,\n",
+ " -4278.47],\n",
+ " [-58458.47, -58098.47, -57738.47, ..., -4818.47, -4458.47,\n",
+ " -4098.47],\n",
+ " [-58278.47, -57918.47, -57558.47, ..., -4638.47, -4278.47,\n",
+ " -3918.47]],\n",
+ "\n",
+ " [[-73922.47, -73562.47, -73202.47, ..., -20282.47, -19922.47,\n",
+ " -19562.47],\n",
+ " [-73742.47, -73382.47, -73022.47, ..., -20102.47, -19742.47,\n",
+ " -19382.47],\n",
+ " [-73562.47, -73202.47, -72842.47, ..., -19922.47, -19562.47,\n",
+ " -19202.47],\n",
+ "...\n",
+ " [-58494.47, -58134.47, -57774.47, ..., -4854.47, -4494.47,\n",
+ " -4134.47],\n",
+ " [-58314.47, -57954.47, -57594.47, ..., -4674.47, -4314.47,\n",
+ " -3954.47],\n",
+ " [-58134.47, -57774.47, -57414.47, ..., -4494.47, -4134.47,\n",
+ " -3774.47]],\n",
+ "\n",
+ " [[-73778.47, -73418.47, -73058.47, ..., -20138.47, -19778.47,\n",
+ " -19418.47],\n",
+ " [-73598.47, -73238.47, -72878.47, ..., -19958.47, -19598.47,\n",
+ " -19238.47],\n",
+ " [-73418.47, -73058.47, -72698.47, ..., -19778.47, -19418.47,\n",
+ " -19058.47],\n",
+ " ...,\n",
+ " [-58478.47, -58118.47, -57758.47, ..., -4838.47, -4478.47,\n",
+ " -4118.47],\n",
+ " [-58298.47, -57938.47, -57578.47, ..., -4658.47, -4298.47,\n",
+ " -3938.47],\n",
+ " [-58118.47, -57758.47, -57398.47, ..., -4478.47, -4118.47,\n",
+ " -3758.47]]]])
test_3D_time_z_y_x
(time, z, y, x)
float64
-7.394e+04 ... -3.758e+03
- long_name :
- test_3D_time_z_y_x (make it long!)
array([[[[-73938.47, -73758.47, -73578.47, ..., -58638.47, -58458.47,\n",
+ " -58278.47],\n",
+ " [-73578.47, -73398.47, -73218.47, ..., -58278.47, -58098.47,\n",
+ " -57918.47],\n",
+ " [-73218.47, -73038.47, -72858.47, ..., -57918.47, -57738.47,\n",
+ " -57558.47],\n",
+ " ...,\n",
+ " [-20298.47, -20118.47, -19938.47, ..., -4998.47, -4818.47,\n",
+ " -4638.47],\n",
+ " [-19938.47, -19758.47, -19578.47, ..., -4638.47, -4458.47,\n",
+ " -4278.47],\n",
+ " [-19578.47, -19398.47, -19218.47, ..., -4278.47, -4098.47,\n",
+ " -3918.47]],\n",
+ "\n",
+ " [[-73922.47, -73742.47, -73562.47, ..., -58622.47, -58442.47,\n",
+ " -58262.47],\n",
+ " [-73562.47, -73382.47, -73202.47, ..., -58262.47, -58082.47,\n",
+ " -57902.47],\n",
+ " [-73202.47, -73022.47, -72842.47, ..., -57902.47, -57722.47,\n",
+ " -57542.47],\n",
+ "...\n",
+ " [-20154.47, -19974.47, -19794.47, ..., -4854.47, -4674.47,\n",
+ " -4494.47],\n",
+ " [-19794.47, -19614.47, -19434.47, ..., -4494.47, -4314.47,\n",
+ " -4134.47],\n",
+ " [-19434.47, -19254.47, -19074.47, ..., -4134.47, -3954.47,\n",
+ " -3774.47]],\n",
+ "\n",
+ " [[-73778.47, -73598.47, -73418.47, ..., -58478.47, -58298.47,\n",
+ " -58118.47],\n",
+ " [-73418.47, -73238.47, -73058.47, ..., -58118.47, -57938.47,\n",
+ " -57758.47],\n",
+ " [-73058.47, -72878.47, -72698.47, ..., -57758.47, -57578.47,\n",
+ " -57398.47],\n",
+ " ...,\n",
+ " [-20138.47, -19958.47, -19778.47, ..., -4838.47, -4658.47,\n",
+ " -4478.47],\n",
+ " [-19778.47, -19598.47, -19418.47, ..., -4478.47, -4298.47,\n",
+ " -4118.47],\n",
+ " [-19418.47, -19238.47, -19058.47, ..., -4118.47, -3938.47,\n",
+ " -3758.47]]]])
test_3D_x_time_y_z
(x, time, y, z)
float64
-7.394e+04 ... -3.758e+03
- long_name :
- test_3D_x_time_y_z (make it long!)
array([[[[-73938.47, -73922.47, -73906.47, ..., -73810.47, -73794.47,\n",
+ " -73778.47],\n",
+ " [-73578.47, -73562.47, -73546.47, ..., -73450.47, -73434.47,\n",
+ " -73418.47],\n",
+ " [-73218.47, -73202.47, -73186.47, ..., -73090.47, -73074.47,\n",
+ " -73058.47],\n",
+ " ...,\n",
+ " [-20298.47, -20282.47, -20266.47, ..., -20170.47, -20154.47,\n",
+ " -20138.47],\n",
+ " [-19938.47, -19922.47, -19906.47, ..., -19810.47, -19794.47,\n",
+ " -19778.47],\n",
+ " [-19578.47, -19562.47, -19546.47, ..., -19450.47, -19434.47,\n",
+ " -19418.47]]],\n",
+ "\n",
+ "\n",
+ " [[[-73758.47, -73742.47, -73726.47, ..., -73630.47, -73614.47,\n",
+ " -73598.47],\n",
+ " [-73398.47, -73382.47, -73366.47, ..., -73270.47, -73254.47,\n",
+ " -73238.47],\n",
+ " [-73038.47, -73022.47, -73006.47, ..., -72910.47, -72894.47,\n",
+ "...\n",
+ " -4658.47],\n",
+ " [ -4458.47, -4442.47, -4426.47, ..., -4330.47, -4314.47,\n",
+ " -4298.47],\n",
+ " [ -4098.47, -4082.47, -4066.47, ..., -3970.47, -3954.47,\n",
+ " -3938.47]]],\n",
+ "\n",
+ "\n",
+ " [[[-58278.47, -58262.47, -58246.47, ..., -58150.47, -58134.47,\n",
+ " -58118.47],\n",
+ " [-57918.47, -57902.47, -57886.47, ..., -57790.47, -57774.47,\n",
+ " -57758.47],\n",
+ " [-57558.47, -57542.47, -57526.47, ..., -57430.47, -57414.47,\n",
+ " -57398.47],\n",
+ " ...,\n",
+ " [ -4638.47, -4622.47, -4606.47, ..., -4510.47, -4494.47,\n",
+ " -4478.47],\n",
+ " [ -4278.47, -4262.47, -4246.47, ..., -4150.47, -4134.47,\n",
+ " -4118.47],\n",
+ " [ -3918.47, -3902.47, -3886.47, ..., -3790.47, -3774.47,\n",
+ " -3758.47]]]])
test_3D_x_time_z_y
(x, time, z, y)
float64
-7.394e+04 ... -3.758e+03
- long_name :
- test_3D_x_time_z_y (make it long!)
array([[[[-73938.47, -73578.47, -73218.47, ..., -20298.47, -19938.47,\n",
+ " -19578.47],\n",
+ " [-73922.47, -73562.47, -73202.47, ..., -20282.47, -19922.47,\n",
+ " -19562.47],\n",
+ " [-73906.47, -73546.47, -73186.47, ..., -20266.47, -19906.47,\n",
+ " -19546.47],\n",
+ " ...,\n",
+ " [-73810.47, -73450.47, -73090.47, ..., -20170.47, -19810.47,\n",
+ " -19450.47],\n",
+ " [-73794.47, -73434.47, -73074.47, ..., -20154.47, -19794.47,\n",
+ " -19434.47],\n",
+ " [-73778.47, -73418.47, -73058.47, ..., -20138.47, -19778.47,\n",
+ " -19418.47]]],\n",
+ "\n",
+ "\n",
+ " [[[-73758.47, -73398.47, -73038.47, ..., -20118.47, -19758.47,\n",
+ " -19398.47],\n",
+ " [-73742.47, -73382.47, -73022.47, ..., -20102.47, -19742.47,\n",
+ " -19382.47],\n",
+ " [-73726.47, -73366.47, -73006.47, ..., -20086.47, -19726.47,\n",
+ "...\n",
+ " -3970.47],\n",
+ " [-58314.47, -57954.47, -57594.47, ..., -4674.47, -4314.47,\n",
+ " -3954.47],\n",
+ " [-58298.47, -57938.47, -57578.47, ..., -4658.47, -4298.47,\n",
+ " -3938.47]]],\n",
+ "\n",
+ "\n",
+ " [[[-58278.47, -57918.47, -57558.47, ..., -4638.47, -4278.47,\n",
+ " -3918.47],\n",
+ " [-58262.47, -57902.47, -57542.47, ..., -4622.47, -4262.47,\n",
+ " -3902.47],\n",
+ " [-58246.47, -57886.47, -57526.47, ..., -4606.47, -4246.47,\n",
+ " -3886.47],\n",
+ " ...,\n",
+ " [-58150.47, -57790.47, -57430.47, ..., -4510.47, -4150.47,\n",
+ " -3790.47],\n",
+ " [-58134.47, -57774.47, -57414.47, ..., -4494.47, -4134.47,\n",
+ " -3774.47],\n",
+ " [-58118.47, -57758.47, -57398.47, ..., -4478.47, -4118.47,\n",
+ " -3758.47]]]])
test_3D_x_y_time_z
(x, y, time, z)
float64
-7.394e+04 ... -3.758e+03
- long_name :
- test_3D_x_y_time_z (make it long!)
array([[[[-73938.47, -73922.47, -73906.47, ..., -73810.47, -73794.47,\n",
+ " -73778.47]],\n",
+ "\n",
+ " [[-73578.47, -73562.47, -73546.47, ..., -73450.47, -73434.47,\n",
+ " -73418.47]],\n",
+ "\n",
+ " [[-73218.47, -73202.47, -73186.47, ..., -73090.47, -73074.47,\n",
+ " -73058.47]],\n",
+ "\n",
+ " ...,\n",
+ "\n",
+ " [[-20298.47, -20282.47, -20266.47, ..., -20170.47, -20154.47,\n",
+ " -20138.47]],\n",
+ "\n",
+ " [[-19938.47, -19922.47, -19906.47, ..., -19810.47, -19794.47,\n",
+ " -19778.47]],\n",
+ "\n",
+ " [[-19578.47, -19562.47, -19546.47, ..., -19450.47, -19434.47,\n",
+ " -19418.47]]],\n",
+ "\n",
+ "...\n",
+ "\n",
+ " [[[-58278.47, -58262.47, -58246.47, ..., -58150.47, -58134.47,\n",
+ " -58118.47]],\n",
+ "\n",
+ " [[-57918.47, -57902.47, -57886.47, ..., -57790.47, -57774.47,\n",
+ " -57758.47]],\n",
+ "\n",
+ " [[-57558.47, -57542.47, -57526.47, ..., -57430.47, -57414.47,\n",
+ " -57398.47]],\n",
+ "\n",
+ " ...,\n",
+ "\n",
+ " [[ -4638.47, -4622.47, -4606.47, ..., -4510.47, -4494.47,\n",
+ " -4478.47]],\n",
+ "\n",
+ " [[ -4278.47, -4262.47, -4246.47, ..., -4150.47, -4134.47,\n",
+ " -4118.47]],\n",
+ "\n",
+ " [[ -3918.47, -3902.47, -3886.47, ..., -3790.47, -3774.47,\n",
+ " -3758.47]]]])
test_3D_x_y_z
(x, y, z)
float64
-7.394e+04 ... -3.758e+03
- long_name :
- test_3D_x_y_z (make it long!)
array([[[-73938.47, -73922.47, -73906.47, ..., -73810.47, -73794.47,\n",
+ " -73778.47],\n",
+ " [-73578.47, -73562.47, -73546.47, ..., -73450.47, -73434.47,\n",
+ " -73418.47],\n",
+ " [-73218.47, -73202.47, -73186.47, ..., -73090.47, -73074.47,\n",
+ " -73058.47],\n",
+ " ...,\n",
+ " [-20298.47, -20282.47, -20266.47, ..., -20170.47, -20154.47,\n",
+ " -20138.47],\n",
+ " [-19938.47, -19922.47, -19906.47, ..., -19810.47, -19794.47,\n",
+ " -19778.47],\n",
+ " [-19578.47, -19562.47, -19546.47, ..., -19450.47, -19434.47,\n",
+ " -19418.47]],\n",
+ "\n",
+ " [[-73758.47, -73742.47, -73726.47, ..., -73630.47, -73614.47,\n",
+ " -73598.47],\n",
+ " [-73398.47, -73382.47, -73366.47, ..., -73270.47, -73254.47,\n",
+ " -73238.47],\n",
+ " [-73038.47, -73022.47, -73006.47, ..., -72910.47, -72894.47,\n",
+ " -72878.47],\n",
+ "...\n",
+ " [ -4818.47, -4802.47, -4786.47, ..., -4690.47, -4674.47,\n",
+ " -4658.47],\n",
+ " [ -4458.47, -4442.47, -4426.47, ..., -4330.47, -4314.47,\n",
+ " -4298.47],\n",
+ " [ -4098.47, -4082.47, -4066.47, ..., -3970.47, -3954.47,\n",
+ " -3938.47]],\n",
+ "\n",
+ " [[-58278.47, -58262.47, -58246.47, ..., -58150.47, -58134.47,\n",
+ " -58118.47],\n",
+ " [-57918.47, -57902.47, -57886.47, ..., -57790.47, -57774.47,\n",
+ " -57758.47],\n",
+ " [-57558.47, -57542.47, -57526.47, ..., -57430.47, -57414.47,\n",
+ " -57398.47],\n",
+ " ...,\n",
+ " [ -4638.47, -4622.47, -4606.47, ..., -4510.47, -4494.47,\n",
+ " -4478.47],\n",
+ " [ -4278.47, -4262.47, -4246.47, ..., -4150.47, -4134.47,\n",
+ " -4118.47],\n",
+ " [ -3918.47, -3902.47, -3886.47, ..., -3790.47, -3774.47,\n",
+ " -3758.47]]])
test_3D_x_y_z_time
(x, y, z, time)
float64
-7.394e+04 ... -3.758e+03
- long_name :
- test_3D_x_y_z_time (make it long!)
array([[[[-73938.47],\n",
+ " [-73922.47],\n",
+ " [-73906.47],\n",
+ " ...,\n",
+ " [-73810.47],\n",
+ " [-73794.47],\n",
+ " [-73778.47]],\n",
+ "\n",
+ " [[-73578.47],\n",
+ " [-73562.47],\n",
+ " [-73546.47],\n",
+ " ...,\n",
+ " [-73450.47],\n",
+ " [-73434.47],\n",
+ " [-73418.47]],\n",
+ "\n",
+ " [[-73218.47],\n",
+ " [-73202.47],\n",
+ " [-73186.47],\n",
+ " ...,\n",
+ "...\n",
+ " ...,\n",
+ " [ -4510.47],\n",
+ " [ -4494.47],\n",
+ " [ -4478.47]],\n",
+ "\n",
+ " [[ -4278.47],\n",
+ " [ -4262.47],\n",
+ " [ -4246.47],\n",
+ " ...,\n",
+ " [ -4150.47],\n",
+ " [ -4134.47],\n",
+ " [ -4118.47]],\n",
+ "\n",
+ " [[ -3918.47],\n",
+ " [ -3902.47],\n",
+ " [ -3886.47],\n",
+ " ...,\n",
+ " [ -3790.47],\n",
+ " [ -3774.47],\n",
+ " [ -3758.47]]]])
test_3D_x_z_time_y
(x, z, time, y)
float64
-7.394e+04 ... -3.758e+03
- long_name :
- test_3D_x_z_time_y (make it long!)
array([[[[-73938.47, -73578.47, -73218.47, ..., -20298.47, -19938.47,\n",
+ " -19578.47]],\n",
+ "\n",
+ " [[-73922.47, -73562.47, -73202.47, ..., -20282.47, -19922.47,\n",
+ " -19562.47]],\n",
+ "\n",
+ " [[-73906.47, -73546.47, -73186.47, ..., -20266.47, -19906.47,\n",
+ " -19546.47]],\n",
+ "\n",
+ " ...,\n",
+ "\n",
+ " [[-73810.47, -73450.47, -73090.47, ..., -20170.47, -19810.47,\n",
+ " -19450.47]],\n",
+ "\n",
+ " [[-73794.47, -73434.47, -73074.47, ..., -20154.47, -19794.47,\n",
+ " -19434.47]],\n",
+ "\n",
+ " [[-73778.47, -73418.47, -73058.47, ..., -20138.47, -19778.47,\n",
+ " -19418.47]]],\n",
+ "\n",
+ "...\n",
+ "\n",
+ " [[[-58278.47, -57918.47, -57558.47, ..., -4638.47, -4278.47,\n",
+ " -3918.47]],\n",
+ "\n",
+ " [[-58262.47, -57902.47, -57542.47, ..., -4622.47, -4262.47,\n",
+ " -3902.47]],\n",
+ "\n",
+ " [[-58246.47, -57886.47, -57526.47, ..., -4606.47, -4246.47,\n",
+ " -3886.47]],\n",
+ "\n",
+ " ...,\n",
+ "\n",
+ " [[-58150.47, -57790.47, -57430.47, ..., -4510.47, -4150.47,\n",
+ " -3790.47]],\n",
+ "\n",
+ " [[-58134.47, -57774.47, -57414.47, ..., -4494.47, -4134.47,\n",
+ " -3774.47]],\n",
+ "\n",
+ " [[-58118.47, -57758.47, -57398.47, ..., -4478.47, -4118.47,\n",
+ " -3758.47]]]])
test_3D_x_z_y
(x, z, y)
float64
-7.394e+04 ... -3.758e+03
- long_name :
- test_3D_x_z_y (make it long!)
array([[[-73938.47, -73578.47, -73218.47, ..., -20298.47, -19938.47,\n",
+ " -19578.47],\n",
+ " [-73922.47, -73562.47, -73202.47, ..., -20282.47, -19922.47,\n",
+ " -19562.47],\n",
+ " [-73906.47, -73546.47, -73186.47, ..., -20266.47, -19906.47,\n",
+ " -19546.47],\n",
+ " ...,\n",
+ " [-73810.47, -73450.47, -73090.47, ..., -20170.47, -19810.47,\n",
+ " -19450.47],\n",
+ " [-73794.47, -73434.47, -73074.47, ..., -20154.47, -19794.47,\n",
+ " -19434.47],\n",
+ " [-73778.47, -73418.47, -73058.47, ..., -20138.47, -19778.47,\n",
+ " -19418.47]],\n",
+ "\n",
+ " [[-73758.47, -73398.47, -73038.47, ..., -20118.47, -19758.47,\n",
+ " -19398.47],\n",
+ " [-73742.47, -73382.47, -73022.47, ..., -20102.47, -19742.47,\n",
+ " -19382.47],\n",
+ " [-73726.47, -73366.47, -73006.47, ..., -20086.47, -19726.47,\n",
+ " -19366.47],\n",
+ "...\n",
+ " [-58330.47, -57970.47, -57610.47, ..., -4690.47, -4330.47,\n",
+ " -3970.47],\n",
+ " [-58314.47, -57954.47, -57594.47, ..., -4674.47, -4314.47,\n",
+ " -3954.47],\n",
+ " [-58298.47, -57938.47, -57578.47, ..., -4658.47, -4298.47,\n",
+ " -3938.47]],\n",
+ "\n",
+ " [[-58278.47, -57918.47, -57558.47, ..., -4638.47, -4278.47,\n",
+ " -3918.47],\n",
+ " [-58262.47, -57902.47, -57542.47, ..., -4622.47, -4262.47,\n",
+ " -3902.47],\n",
+ " [-58246.47, -57886.47, -57526.47, ..., -4606.47, -4246.47,\n",
+ " -3886.47],\n",
+ " ...,\n",
+ " [-58150.47, -57790.47, -57430.47, ..., -4510.47, -4150.47,\n",
+ " -3790.47],\n",
+ " [-58134.47, -57774.47, -57414.47, ..., -4494.47, -4134.47,\n",
+ " -3774.47],\n",
+ " [-58118.47, -57758.47, -57398.47, ..., -4478.47, -4118.47,\n",
+ " -3758.47]]])
test_3D_x_z_y_time
(x, z, y, time)
float64
-7.394e+04 ... -3.758e+03
- long_name :
- test_3D_x_z_y_time (make it long!)
array([[[[-73938.47],\n",
+ " [-73578.47],\n",
+ " [-73218.47],\n",
+ " ...,\n",
+ " [-20298.47],\n",
+ " [-19938.47],\n",
+ " [-19578.47]],\n",
+ "\n",
+ " [[-73922.47],\n",
+ " [-73562.47],\n",
+ " [-73202.47],\n",
+ " ...,\n",
+ " [-20282.47],\n",
+ " [-19922.47],\n",
+ " [-19562.47]],\n",
+ "\n",
+ " [[-73906.47],\n",
+ " [-73546.47],\n",
+ " [-73186.47],\n",
+ " ...,\n",
+ "...\n",
+ " ...,\n",
+ " [ -4510.47],\n",
+ " [ -4150.47],\n",
+ " [ -3790.47]],\n",
+ "\n",
+ " [[-58134.47],\n",
+ " [-57774.47],\n",
+ " [-57414.47],\n",
+ " ...,\n",
+ " [ -4494.47],\n",
+ " [ -4134.47],\n",
+ " [ -3774.47]],\n",
+ "\n",
+ " [[-58118.47],\n",
+ " [-57758.47],\n",
+ " [-57398.47],\n",
+ " ...,\n",
+ " [ -4478.47],\n",
+ " [ -4118.47],\n",
+ " [ -3758.47]]]])
test_3D_y_time_x_z
(y, time, x, z)
float64
-7.394e+04 ... -3.758e+03
- long_name :
- test_3D_y_time_x_z (make it long!)
array([[[[-73938.47, -73922.47, -73906.47, ..., -73810.47, -73794.47,\n",
+ " -73778.47],\n",
+ " [-73758.47, -73742.47, -73726.47, ..., -73630.47, -73614.47,\n",
+ " -73598.47],\n",
+ " [-73578.47, -73562.47, -73546.47, ..., -73450.47, -73434.47,\n",
+ " -73418.47],\n",
+ " ...,\n",
+ " [-58638.47, -58622.47, -58606.47, ..., -58510.47, -58494.47,\n",
+ " -58478.47],\n",
+ " [-58458.47, -58442.47, -58426.47, ..., -58330.47, -58314.47,\n",
+ " -58298.47],\n",
+ " [-58278.47, -58262.47, -58246.47, ..., -58150.47, -58134.47,\n",
+ " -58118.47]]],\n",
+ "\n",
+ "\n",
+ " [[[-73578.47, -73562.47, -73546.47, ..., -73450.47, -73434.47,\n",
+ " -73418.47],\n",
+ " [-73398.47, -73382.47, -73366.47, ..., -73270.47, -73254.47,\n",
+ " -73238.47],\n",
+ " [-73218.47, -73202.47, -73186.47, ..., -73090.47, -73074.47,\n",
+ "...\n",
+ " -4478.47],\n",
+ " [ -4458.47, -4442.47, -4426.47, ..., -4330.47, -4314.47,\n",
+ " -4298.47],\n",
+ " [ -4278.47, -4262.47, -4246.47, ..., -4150.47, -4134.47,\n",
+ " -4118.47]]],\n",
+ "\n",
+ "\n",
+ " [[[-19578.47, -19562.47, -19546.47, ..., -19450.47, -19434.47,\n",
+ " -19418.47],\n",
+ " [-19398.47, -19382.47, -19366.47, ..., -19270.47, -19254.47,\n",
+ " -19238.47],\n",
+ " [-19218.47, -19202.47, -19186.47, ..., -19090.47, -19074.47,\n",
+ " -19058.47],\n",
+ " ...,\n",
+ " [ -4278.47, -4262.47, -4246.47, ..., -4150.47, -4134.47,\n",
+ " -4118.47],\n",
+ " [ -4098.47, -4082.47, -4066.47, ..., -3970.47, -3954.47,\n",
+ " -3938.47],\n",
+ " [ -3918.47, -3902.47, -3886.47, ..., -3790.47, -3774.47,\n",
+ " -3758.47]]]])
test_3D_y_time_z_x
(y, time, z, x)
float64
-7.394e+04 ... -3.758e+03
- long_name :
- test_3D_y_time_z_x (make it long!)
array([[[[-73938.47, -73758.47, -73578.47, ..., -58638.47, -58458.47,\n",
+ " -58278.47],\n",
+ " [-73922.47, -73742.47, -73562.47, ..., -58622.47, -58442.47,\n",
+ " -58262.47],\n",
+ " [-73906.47, -73726.47, -73546.47, ..., -58606.47, -58426.47,\n",
+ " -58246.47],\n",
+ " ...,\n",
+ " [-73810.47, -73630.47, -73450.47, ..., -58510.47, -58330.47,\n",
+ " -58150.47],\n",
+ " [-73794.47, -73614.47, -73434.47, ..., -58494.47, -58314.47,\n",
+ " -58134.47],\n",
+ " [-73778.47, -73598.47, -73418.47, ..., -58478.47, -58298.47,\n",
+ " -58118.47]]],\n",
+ "\n",
+ "\n",
+ " [[[-73578.47, -73398.47, -73218.47, ..., -58278.47, -58098.47,\n",
+ " -57918.47],\n",
+ " [-73562.47, -73382.47, -73202.47, ..., -58262.47, -58082.47,\n",
+ " -57902.47],\n",
+ " [-73546.47, -73366.47, -73186.47, ..., -58246.47, -58066.47,\n",
+ "...\n",
+ " -4150.47],\n",
+ " [-19794.47, -19614.47, -19434.47, ..., -4494.47, -4314.47,\n",
+ " -4134.47],\n",
+ " [-19778.47, -19598.47, -19418.47, ..., -4478.47, -4298.47,\n",
+ " -4118.47]]],\n",
+ "\n",
+ "\n",
+ " [[[-19578.47, -19398.47, -19218.47, ..., -4278.47, -4098.47,\n",
+ " -3918.47],\n",
+ " [-19562.47, -19382.47, -19202.47, ..., -4262.47, -4082.47,\n",
+ " -3902.47],\n",
+ " [-19546.47, -19366.47, -19186.47, ..., -4246.47, -4066.47,\n",
+ " -3886.47],\n",
+ " ...,\n",
+ " [-19450.47, -19270.47, -19090.47, ..., -4150.47, -3970.47,\n",
+ " -3790.47],\n",
+ " [-19434.47, -19254.47, -19074.47, ..., -4134.47, -3954.47,\n",
+ " -3774.47],\n",
+ " [-19418.47, -19238.47, -19058.47, ..., -4118.47, -3938.47,\n",
+ " -3758.47]]]])
test_3D_y_x_time_z
(y, x, time, z)
float64
-7.394e+04 ... -3.758e+03
- long_name :
- test_3D_y_x_time_z (make it long!)
array([[[[-73938.47, -73922.47, -73906.47, ..., -73810.47, -73794.47,\n",
+ " -73778.47]],\n",
+ "\n",
+ " [[-73758.47, -73742.47, -73726.47, ..., -73630.47, -73614.47,\n",
+ " -73598.47]],\n",
+ "\n",
+ " [[-73578.47, -73562.47, -73546.47, ..., -73450.47, -73434.47,\n",
+ " -73418.47]],\n",
+ "\n",
+ " ...,\n",
+ "\n",
+ " [[-58638.47, -58622.47, -58606.47, ..., -58510.47, -58494.47,\n",
+ " -58478.47]],\n",
+ "\n",
+ " [[-58458.47, -58442.47, -58426.47, ..., -58330.47, -58314.47,\n",
+ " -58298.47]],\n",
+ "\n",
+ " [[-58278.47, -58262.47, -58246.47, ..., -58150.47, -58134.47,\n",
+ " -58118.47]]],\n",
+ "\n",
+ "...\n",
+ "\n",
+ " [[[-19578.47, -19562.47, -19546.47, ..., -19450.47, -19434.47,\n",
+ " -19418.47]],\n",
+ "\n",
+ " [[-19398.47, -19382.47, -19366.47, ..., -19270.47, -19254.47,\n",
+ " -19238.47]],\n",
+ "\n",
+ " [[-19218.47, -19202.47, -19186.47, ..., -19090.47, -19074.47,\n",
+ " -19058.47]],\n",
+ "\n",
+ " ...,\n",
+ "\n",
+ " [[ -4278.47, -4262.47, -4246.47, ..., -4150.47, -4134.47,\n",
+ " -4118.47]],\n",
+ "\n",
+ " [[ -4098.47, -4082.47, -4066.47, ..., -3970.47, -3954.47,\n",
+ " -3938.47]],\n",
+ "\n",
+ " [[ -3918.47, -3902.47, -3886.47, ..., -3790.47, -3774.47,\n",
+ " -3758.47]]]])
test_3D_y_x_z
(y, x, z)
float64
-7.394e+04 ... -3.758e+03
- long_name :
- test_3D_y_x_z (make it long!)
array([[[-73938.47, -73922.47, -73906.47, ..., -73810.47, -73794.47,\n",
+ " -73778.47],\n",
+ " [-73758.47, -73742.47, -73726.47, ..., -73630.47, -73614.47,\n",
+ " -73598.47],\n",
+ " [-73578.47, -73562.47, -73546.47, ..., -73450.47, -73434.47,\n",
+ " -73418.47],\n",
+ " ...,\n",
+ " [-58638.47, -58622.47, -58606.47, ..., -58510.47, -58494.47,\n",
+ " -58478.47],\n",
+ " [-58458.47, -58442.47, -58426.47, ..., -58330.47, -58314.47,\n",
+ " -58298.47],\n",
+ " [-58278.47, -58262.47, -58246.47, ..., -58150.47, -58134.47,\n",
+ " -58118.47]],\n",
+ "\n",
+ " [[-73578.47, -73562.47, -73546.47, ..., -73450.47, -73434.47,\n",
+ " -73418.47],\n",
+ " [-73398.47, -73382.47, -73366.47, ..., -73270.47, -73254.47,\n",
+ " -73238.47],\n",
+ " [-73218.47, -73202.47, -73186.47, ..., -73090.47, -73074.47,\n",
+ " -73058.47],\n",
+ "...\n",
+ " [ -4638.47, -4622.47, -4606.47, ..., -4510.47, -4494.47,\n",
+ " -4478.47],\n",
+ " [ -4458.47, -4442.47, -4426.47, ..., -4330.47, -4314.47,\n",
+ " -4298.47],\n",
+ " [ -4278.47, -4262.47, -4246.47, ..., -4150.47, -4134.47,\n",
+ " -4118.47]],\n",
+ "\n",
+ " [[-19578.47, -19562.47, -19546.47, ..., -19450.47, -19434.47,\n",
+ " -19418.47],\n",
+ " [-19398.47, -19382.47, -19366.47, ..., -19270.47, -19254.47,\n",
+ " -19238.47],\n",
+ " [-19218.47, -19202.47, -19186.47, ..., -19090.47, -19074.47,\n",
+ " -19058.47],\n",
+ " ...,\n",
+ " [ -4278.47, -4262.47, -4246.47, ..., -4150.47, -4134.47,\n",
+ " -4118.47],\n",
+ " [ -4098.47, -4082.47, -4066.47, ..., -3970.47, -3954.47,\n",
+ " -3938.47],\n",
+ " [ -3918.47, -3902.47, -3886.47, ..., -3790.47, -3774.47,\n",
+ " -3758.47]]])
test_3D_y_x_z_time
(y, x, z, time)
float64
-7.394e+04 ... -3.758e+03
- long_name :
- test_3D_y_x_z_time (make it long!)
array([[[[-73938.47],\n",
+ " [-73922.47],\n",
+ " [-73906.47],\n",
+ " ...,\n",
+ " [-73810.47],\n",
+ " [-73794.47],\n",
+ " [-73778.47]],\n",
+ "\n",
+ " [[-73758.47],\n",
+ " [-73742.47],\n",
+ " [-73726.47],\n",
+ " ...,\n",
+ " [-73630.47],\n",
+ " [-73614.47],\n",
+ " [-73598.47]],\n",
+ "\n",
+ " [[-73578.47],\n",
+ " [-73562.47],\n",
+ " [-73546.47],\n",
+ " ...,\n",
+ "...\n",
+ " ...,\n",
+ " [ -4150.47],\n",
+ " [ -4134.47],\n",
+ " [ -4118.47]],\n",
+ "\n",
+ " [[ -4098.47],\n",
+ " [ -4082.47],\n",
+ " [ -4066.47],\n",
+ " ...,\n",
+ " [ -3970.47],\n",
+ " [ -3954.47],\n",
+ " [ -3938.47]],\n",
+ "\n",
+ " [[ -3918.47],\n",
+ " [ -3902.47],\n",
+ " [ -3886.47],\n",
+ " ...,\n",
+ " [ -3790.47],\n",
+ " [ -3774.47],\n",
+ " [ -3758.47]]]])
test_3D_y_z_time_x
(y, z, time, x)
float64
-7.394e+04 ... -3.758e+03
- long_name :
- test_3D_y_z_time_x (make it long!)
array([[[[-73938.47, -73758.47, -73578.47, ..., -58638.47, -58458.47,\n",
+ " -58278.47]],\n",
+ "\n",
+ " [[-73922.47, -73742.47, -73562.47, ..., -58622.47, -58442.47,\n",
+ " -58262.47]],\n",
+ "\n",
+ " [[-73906.47, -73726.47, -73546.47, ..., -58606.47, -58426.47,\n",
+ " -58246.47]],\n",
+ "\n",
+ " ...,\n",
+ "\n",
+ " [[-73810.47, -73630.47, -73450.47, ..., -58510.47, -58330.47,\n",
+ " -58150.47]],\n",
+ "\n",
+ " [[-73794.47, -73614.47, -73434.47, ..., -58494.47, -58314.47,\n",
+ " -58134.47]],\n",
+ "\n",
+ " [[-73778.47, -73598.47, -73418.47, ..., -58478.47, -58298.47,\n",
+ " -58118.47]]],\n",
+ "\n",
+ "...\n",
+ "\n",
+ " [[[-19578.47, -19398.47, -19218.47, ..., -4278.47, -4098.47,\n",
+ " -3918.47]],\n",
+ "\n",
+ " [[-19562.47, -19382.47, -19202.47, ..., -4262.47, -4082.47,\n",
+ " -3902.47]],\n",
+ "\n",
+ " [[-19546.47, -19366.47, -19186.47, ..., -4246.47, -4066.47,\n",
+ " -3886.47]],\n",
+ "\n",
+ " ...,\n",
+ "\n",
+ " [[-19450.47, -19270.47, -19090.47, ..., -4150.47, -3970.47,\n",
+ " -3790.47]],\n",
+ "\n",
+ " [[-19434.47, -19254.47, -19074.47, ..., -4134.47, -3954.47,\n",
+ " -3774.47]],\n",
+ "\n",
+ " [[-19418.47, -19238.47, -19058.47, ..., -4118.47, -3938.47,\n",
+ " -3758.47]]]])
test_3D_y_z_x
(y, z, x)
float64
-7.394e+04 ... -3.758e+03
- long_name :
- test_3D_y_z_x (make it long!)
array([[[-73938.47, -73758.47, -73578.47, ..., -58638.47, -58458.47,\n",
+ " -58278.47],\n",
+ " [-73922.47, -73742.47, -73562.47, ..., -58622.47, -58442.47,\n",
+ " -58262.47],\n",
+ " [-73906.47, -73726.47, -73546.47, ..., -58606.47, -58426.47,\n",
+ " -58246.47],\n",
+ " ...,\n",
+ " [-73810.47, -73630.47, -73450.47, ..., -58510.47, -58330.47,\n",
+ " -58150.47],\n",
+ " [-73794.47, -73614.47, -73434.47, ..., -58494.47, -58314.47,\n",
+ " -58134.47],\n",
+ " [-73778.47, -73598.47, -73418.47, ..., -58478.47, -58298.47,\n",
+ " -58118.47]],\n",
+ "\n",
+ " [[-73578.47, -73398.47, -73218.47, ..., -58278.47, -58098.47,\n",
+ " -57918.47],\n",
+ " [-73562.47, -73382.47, -73202.47, ..., -58262.47, -58082.47,\n",
+ " -57902.47],\n",
+ " [-73546.47, -73366.47, -73186.47, ..., -58246.47, -58066.47,\n",
+ " -57886.47],\n",
+ "...\n",
+ " [-19810.47, -19630.47, -19450.47, ..., -4510.47, -4330.47,\n",
+ " -4150.47],\n",
+ " [-19794.47, -19614.47, -19434.47, ..., -4494.47, -4314.47,\n",
+ " -4134.47],\n",
+ " [-19778.47, -19598.47, -19418.47, ..., -4478.47, -4298.47,\n",
+ " -4118.47]],\n",
+ "\n",
+ " [[-19578.47, -19398.47, -19218.47, ..., -4278.47, -4098.47,\n",
+ " -3918.47],\n",
+ " [-19562.47, -19382.47, -19202.47, ..., -4262.47, -4082.47,\n",
+ " -3902.47],\n",
+ " [-19546.47, -19366.47, -19186.47, ..., -4246.47, -4066.47,\n",
+ " -3886.47],\n",
+ " ...,\n",
+ " [-19450.47, -19270.47, -19090.47, ..., -4150.47, -3970.47,\n",
+ " -3790.47],\n",
+ " [-19434.47, -19254.47, -19074.47, ..., -4134.47, -3954.47,\n",
+ " -3774.47],\n",
+ " [-19418.47, -19238.47, -19058.47, ..., -4118.47, -3938.47,\n",
+ " -3758.47]]])
test_3D_y_z_x_time
(y, z, x, time)
float64
-7.394e+04 ... -3.758e+03
- long_name :
- test_3D_y_z_x_time (make it long!)
array([[[[-73938.47],\n",
+ " [-73758.47],\n",
+ " [-73578.47],\n",
+ " ...,\n",
+ " [-58638.47],\n",
+ " [-58458.47],\n",
+ " [-58278.47]],\n",
+ "\n",
+ " [[-73922.47],\n",
+ " [-73742.47],\n",
+ " [-73562.47],\n",
+ " ...,\n",
+ " [-58622.47],\n",
+ " [-58442.47],\n",
+ " [-58262.47]],\n",
+ "\n",
+ " [[-73906.47],\n",
+ " [-73726.47],\n",
+ " [-73546.47],\n",
+ " ...,\n",
+ "...\n",
+ " ...,\n",
+ " [ -4150.47],\n",
+ " [ -3970.47],\n",
+ " [ -3790.47]],\n",
+ "\n",
+ " [[-19434.47],\n",
+ " [-19254.47],\n",
+ " [-19074.47],\n",
+ " ...,\n",
+ " [ -4134.47],\n",
+ " [ -3954.47],\n",
+ " [ -3774.47]],\n",
+ "\n",
+ " [[-19418.47],\n",
+ " [-19238.47],\n",
+ " [-19058.47],\n",
+ " ...,\n",
+ " [ -4118.47],\n",
+ " [ -3938.47],\n",
+ " [ -3758.47]]]])
test_3D_z_time_x_y
(z, time, x, y)
float64
-7.394e+04 ... -3.758e+03
- long_name :
- test_3D_z_time_x_y (make it long!)
array([[[[-73938.47, -73578.47, -73218.47, ..., -20298.47, -19938.47,\n",
+ " -19578.47],\n",
+ " [-73758.47, -73398.47, -73038.47, ..., -20118.47, -19758.47,\n",
+ " -19398.47],\n",
+ " [-73578.47, -73218.47, -72858.47, ..., -19938.47, -19578.47,\n",
+ " -19218.47],\n",
+ " ...,\n",
+ " [-58638.47, -58278.47, -57918.47, ..., -4998.47, -4638.47,\n",
+ " -4278.47],\n",
+ " [-58458.47, -58098.47, -57738.47, ..., -4818.47, -4458.47,\n",
+ " -4098.47],\n",
+ " [-58278.47, -57918.47, -57558.47, ..., -4638.47, -4278.47,\n",
+ " -3918.47]]],\n",
+ "\n",
+ "\n",
+ " [[[-73922.47, -73562.47, -73202.47, ..., -20282.47, -19922.47,\n",
+ " -19562.47],\n",
+ " [-73742.47, -73382.47, -73022.47, ..., -20102.47, -19742.47,\n",
+ " -19382.47],\n",
+ " [-73562.47, -73202.47, -72842.47, ..., -19922.47, -19562.47,\n",
+ "...\n",
+ " -4134.47],\n",
+ " [-58314.47, -57954.47, -57594.47, ..., -4674.47, -4314.47,\n",
+ " -3954.47],\n",
+ " [-58134.47, -57774.47, -57414.47, ..., -4494.47, -4134.47,\n",
+ " -3774.47]]],\n",
+ "\n",
+ "\n",
+ " [[[-73778.47, -73418.47, -73058.47, ..., -20138.47, -19778.47,\n",
+ " -19418.47],\n",
+ " [-73598.47, -73238.47, -72878.47, ..., -19958.47, -19598.47,\n",
+ " -19238.47],\n",
+ " [-73418.47, -73058.47, -72698.47, ..., -19778.47, -19418.47,\n",
+ " -19058.47],\n",
+ " ...,\n",
+ " [-58478.47, -58118.47, -57758.47, ..., -4838.47, -4478.47,\n",
+ " -4118.47],\n",
+ " [-58298.47, -57938.47, -57578.47, ..., -4658.47, -4298.47,\n",
+ " -3938.47],\n",
+ " [-58118.47, -57758.47, -57398.47, ..., -4478.47, -4118.47,\n",
+ " -3758.47]]]])
test_3D_z_time_y_x
(z, time, y, x)
float64
-7.394e+04 ... -3.758e+03
- long_name :
- test_3D_z_time_y_x (make it long!)
array([[[[-73938.47, -73758.47, -73578.47, ..., -58638.47, -58458.47,\n",
+ " -58278.47],\n",
+ " [-73578.47, -73398.47, -73218.47, ..., -58278.47, -58098.47,\n",
+ " -57918.47],\n",
+ " [-73218.47, -73038.47, -72858.47, ..., -57918.47, -57738.47,\n",
+ " -57558.47],\n",
+ " ...,\n",
+ " [-20298.47, -20118.47, -19938.47, ..., -4998.47, -4818.47,\n",
+ " -4638.47],\n",
+ " [-19938.47, -19758.47, -19578.47, ..., -4638.47, -4458.47,\n",
+ " -4278.47],\n",
+ " [-19578.47, -19398.47, -19218.47, ..., -4278.47, -4098.47,\n",
+ " -3918.47]]],\n",
+ "\n",
+ "\n",
+ " [[[-73922.47, -73742.47, -73562.47, ..., -58622.47, -58442.47,\n",
+ " -58262.47],\n",
+ " [-73562.47, -73382.47, -73202.47, ..., -58262.47, -58082.47,\n",
+ " -57902.47],\n",
+ " [-73202.47, -73022.47, -72842.47, ..., -57902.47, -57722.47,\n",
+ "...\n",
+ " -4494.47],\n",
+ " [-19794.47, -19614.47, -19434.47, ..., -4494.47, -4314.47,\n",
+ " -4134.47],\n",
+ " [-19434.47, -19254.47, -19074.47, ..., -4134.47, -3954.47,\n",
+ " -3774.47]]],\n",
+ "\n",
+ "\n",
+ " [[[-73778.47, -73598.47, -73418.47, ..., -58478.47, -58298.47,\n",
+ " -58118.47],\n",
+ " [-73418.47, -73238.47, -73058.47, ..., -58118.47, -57938.47,\n",
+ " -57758.47],\n",
+ " [-73058.47, -72878.47, -72698.47, ..., -57758.47, -57578.47,\n",
+ " -57398.47],\n",
+ " ...,\n",
+ " [-20138.47, -19958.47, -19778.47, ..., -4838.47, -4658.47,\n",
+ " -4478.47],\n",
+ " [-19778.47, -19598.47, -19418.47, ..., -4478.47, -4298.47,\n",
+ " -4118.47],\n",
+ " [-19418.47, -19238.47, -19058.47, ..., -4118.47, -3938.47,\n",
+ " -3758.47]]]])
test_3D_z_x_time_y
(z, x, time, y)
float64
-7.394e+04 ... -3.758e+03
- long_name :
- test_3D_z_x_time_y (make it long!)
array([[[[-73938.47, -73578.47, -73218.47, ..., -20298.47, -19938.47,\n",
+ " -19578.47]],\n",
+ "\n",
+ " [[-73758.47, -73398.47, -73038.47, ..., -20118.47, -19758.47,\n",
+ " -19398.47]],\n",
+ "\n",
+ " [[-73578.47, -73218.47, -72858.47, ..., -19938.47, -19578.47,\n",
+ " -19218.47]],\n",
+ "\n",
+ " ...,\n",
+ "\n",
+ " [[-58638.47, -58278.47, -57918.47, ..., -4998.47, -4638.47,\n",
+ " -4278.47]],\n",
+ "\n",
+ " [[-58458.47, -58098.47, -57738.47, ..., -4818.47, -4458.47,\n",
+ " -4098.47]],\n",
+ "\n",
+ " [[-58278.47, -57918.47, -57558.47, ..., -4638.47, -4278.47,\n",
+ " -3918.47]]],\n",
+ "\n",
+ "...\n",
+ "\n",
+ " [[[-73778.47, -73418.47, -73058.47, ..., -20138.47, -19778.47,\n",
+ " -19418.47]],\n",
+ "\n",
+ " [[-73598.47, -73238.47, -72878.47, ..., -19958.47, -19598.47,\n",
+ " -19238.47]],\n",
+ "\n",
+ " [[-73418.47, -73058.47, -72698.47, ..., -19778.47, -19418.47,\n",
+ " -19058.47]],\n",
+ "\n",
+ " ...,\n",
+ "\n",
+ " [[-58478.47, -58118.47, -57758.47, ..., -4838.47, -4478.47,\n",
+ " -4118.47]],\n",
+ "\n",
+ " [[-58298.47, -57938.47, -57578.47, ..., -4658.47, -4298.47,\n",
+ " -3938.47]],\n",
+ "\n",
+ " [[-58118.47, -57758.47, -57398.47, ..., -4478.47, -4118.47,\n",
+ " -3758.47]]]])
test_3D_z_x_y
(z, x, y)
float64
-7.394e+04 ... -3.758e+03
- long_name :
- test_3D_z_x_y (make it long!)
array([[[-73938.47, -73578.47, -73218.47, ..., -20298.47, -19938.47,\n",
+ " -19578.47],\n",
+ " [-73758.47, -73398.47, -73038.47, ..., -20118.47, -19758.47,\n",
+ " -19398.47],\n",
+ " [-73578.47, -73218.47, -72858.47, ..., -19938.47, -19578.47,\n",
+ " -19218.47],\n",
+ " ...,\n",
+ " [-58638.47, -58278.47, -57918.47, ..., -4998.47, -4638.47,\n",
+ " -4278.47],\n",
+ " [-58458.47, -58098.47, -57738.47, ..., -4818.47, -4458.47,\n",
+ " -4098.47],\n",
+ " [-58278.47, -57918.47, -57558.47, ..., -4638.47, -4278.47,\n",
+ " -3918.47]],\n",
+ "\n",
+ " [[-73922.47, -73562.47, -73202.47, ..., -20282.47, -19922.47,\n",
+ " -19562.47],\n",
+ " [-73742.47, -73382.47, -73022.47, ..., -20102.47, -19742.47,\n",
+ " -19382.47],\n",
+ " [-73562.47, -73202.47, -72842.47, ..., -19922.47, -19562.47,\n",
+ " -19202.47],\n",
+ "...\n",
+ " [-58494.47, -58134.47, -57774.47, ..., -4854.47, -4494.47,\n",
+ " -4134.47],\n",
+ " [-58314.47, -57954.47, -57594.47, ..., -4674.47, -4314.47,\n",
+ " -3954.47],\n",
+ " [-58134.47, -57774.47, -57414.47, ..., -4494.47, -4134.47,\n",
+ " -3774.47]],\n",
+ "\n",
+ " [[-73778.47, -73418.47, -73058.47, ..., -20138.47, -19778.47,\n",
+ " -19418.47],\n",
+ " [-73598.47, -73238.47, -72878.47, ..., -19958.47, -19598.47,\n",
+ " -19238.47],\n",
+ " [-73418.47, -73058.47, -72698.47, ..., -19778.47, -19418.47,\n",
+ " -19058.47],\n",
+ " ...,\n",
+ " [-58478.47, -58118.47, -57758.47, ..., -4838.47, -4478.47,\n",
+ " -4118.47],\n",
+ " [-58298.47, -57938.47, -57578.47, ..., -4658.47, -4298.47,\n",
+ " -3938.47],\n",
+ " [-58118.47, -57758.47, -57398.47, ..., -4478.47, -4118.47,\n",
+ " -3758.47]]])
test_3D_z_x_y_time
(z, x, y, time)
float64
-7.394e+04 ... -3.758e+03
- long_name :
- test_3D_z_x_y_time (make it long!)
array([[[[-73938.47],\n",
+ " [-73578.47],\n",
+ " [-73218.47],\n",
+ " ...,\n",
+ " [-20298.47],\n",
+ " [-19938.47],\n",
+ " [-19578.47]],\n",
+ "\n",
+ " [[-73758.47],\n",
+ " [-73398.47],\n",
+ " [-73038.47],\n",
+ " ...,\n",
+ " [-20118.47],\n",
+ " [-19758.47],\n",
+ " [-19398.47]],\n",
+ "\n",
+ " [[-73578.47],\n",
+ " [-73218.47],\n",
+ " [-72858.47],\n",
+ " ...,\n",
+ "...\n",
+ " ...,\n",
+ " [ -4838.47],\n",
+ " [ -4478.47],\n",
+ " [ -4118.47]],\n",
+ "\n",
+ " [[-58298.47],\n",
+ " [-57938.47],\n",
+ " [-57578.47],\n",
+ " ...,\n",
+ " [ -4658.47],\n",
+ " [ -4298.47],\n",
+ " [ -3938.47]],\n",
+ "\n",
+ " [[-58118.47],\n",
+ " [-57758.47],\n",
+ " [-57398.47],\n",
+ " ...,\n",
+ " [ -4478.47],\n",
+ " [ -4118.47],\n",
+ " [ -3758.47]]]])
test_3D_z_y_time_x
(z, y, time, x)
float64
-7.394e+04 ... -3.758e+03
- long_name :
- test_3D_z_y_time_x (make it long!)
array([[[[-73938.47, -73758.47, -73578.47, ..., -58638.47, -58458.47,\n",
+ " -58278.47]],\n",
+ "\n",
+ " [[-73578.47, -73398.47, -73218.47, ..., -58278.47, -58098.47,\n",
+ " -57918.47]],\n",
+ "\n",
+ " [[-73218.47, -73038.47, -72858.47, ..., -57918.47, -57738.47,\n",
+ " -57558.47]],\n",
+ "\n",
+ " ...,\n",
+ "\n",
+ " [[-20298.47, -20118.47, -19938.47, ..., -4998.47, -4818.47,\n",
+ " -4638.47]],\n",
+ "\n",
+ " [[-19938.47, -19758.47, -19578.47, ..., -4638.47, -4458.47,\n",
+ " -4278.47]],\n",
+ "\n",
+ " [[-19578.47, -19398.47, -19218.47, ..., -4278.47, -4098.47,\n",
+ " -3918.47]]],\n",
+ "\n",
+ "...\n",
+ "\n",
+ " [[[-73778.47, -73598.47, -73418.47, ..., -58478.47, -58298.47,\n",
+ " -58118.47]],\n",
+ "\n",
+ " [[-73418.47, -73238.47, -73058.47, ..., -58118.47, -57938.47,\n",
+ " -57758.47]],\n",
+ "\n",
+ " [[-73058.47, -72878.47, -72698.47, ..., -57758.47, -57578.47,\n",
+ " -57398.47]],\n",
+ "\n",
+ " ...,\n",
+ "\n",
+ " [[-20138.47, -19958.47, -19778.47, ..., -4838.47, -4658.47,\n",
+ " -4478.47]],\n",
+ "\n",
+ " [[-19778.47, -19598.47, -19418.47, ..., -4478.47, -4298.47,\n",
+ " -4118.47]],\n",
+ "\n",
+ " [[-19418.47, -19238.47, -19058.47, ..., -4118.47, -3938.47,\n",
+ " -3758.47]]]])
test_3D_z_y_x
(z, y, x)
float64
-7.394e+04 ... -3.758e+03
- long_name :
- test_3D_z_y_x (make it long!)
array([[[-73938.47, -73758.47, -73578.47, ..., -58638.47, -58458.47,\n",
+ " -58278.47],\n",
+ " [-73578.47, -73398.47, -73218.47, ..., -58278.47, -58098.47,\n",
+ " -57918.47],\n",
+ " [-73218.47, -73038.47, -72858.47, ..., -57918.47, -57738.47,\n",
+ " -57558.47],\n",
+ " ...,\n",
+ " [-20298.47, -20118.47, -19938.47, ..., -4998.47, -4818.47,\n",
+ " -4638.47],\n",
+ " [-19938.47, -19758.47, -19578.47, ..., -4638.47, -4458.47,\n",
+ " -4278.47],\n",
+ " [-19578.47, -19398.47, -19218.47, ..., -4278.47, -4098.47,\n",
+ " -3918.47]],\n",
+ "\n",
+ " [[-73922.47, -73742.47, -73562.47, ..., -58622.47, -58442.47,\n",
+ " -58262.47],\n",
+ " [-73562.47, -73382.47, -73202.47, ..., -58262.47, -58082.47,\n",
+ " -57902.47],\n",
+ " [-73202.47, -73022.47, -72842.47, ..., -57902.47, -57722.47,\n",
+ " -57542.47],\n",
+ "...\n",
+ " [-20154.47, -19974.47, -19794.47, ..., -4854.47, -4674.47,\n",
+ " -4494.47],\n",
+ " [-19794.47, -19614.47, -19434.47, ..., -4494.47, -4314.47,\n",
+ " -4134.47],\n",
+ " [-19434.47, -19254.47, -19074.47, ..., -4134.47, -3954.47,\n",
+ " -3774.47]],\n",
+ "\n",
+ " [[-73778.47, -73598.47, -73418.47, ..., -58478.47, -58298.47,\n",
+ " -58118.47],\n",
+ " [-73418.47, -73238.47, -73058.47, ..., -58118.47, -57938.47,\n",
+ " -57758.47],\n",
+ " [-73058.47, -72878.47, -72698.47, ..., -57758.47, -57578.47,\n",
+ " -57398.47],\n",
+ " ...,\n",
+ " [-20138.47, -19958.47, -19778.47, ..., -4838.47, -4658.47,\n",
+ " -4478.47],\n",
+ " [-19778.47, -19598.47, -19418.47, ..., -4478.47, -4298.47,\n",
+ " -4118.47],\n",
+ " [-19418.47, -19238.47, -19058.47, ..., -4118.47, -3938.47,\n",
+ " -3758.47]]])
test_3D_z_y_x_time
(z, y, x, time)
float64
-7.394e+04 ... -3.758e+03
- long_name :
- test_3D_z_y_x_time (make it long!)
array([[[[-73938.47],\n",
+ " [-73758.47],\n",
+ " [-73578.47],\n",
+ " ...,\n",
+ " [-58638.47],\n",
+ " [-58458.47],\n",
+ " [-58278.47]],\n",
+ "\n",
+ " [[-73578.47],\n",
+ " [-73398.47],\n",
+ " [-73218.47],\n",
+ " ...,\n",
+ " [-58278.47],\n",
+ " [-58098.47],\n",
+ " [-57918.47]],\n",
+ "\n",
+ " [[-73218.47],\n",
+ " [-73038.47],\n",
+ " [-72858.47],\n",
+ " ...,\n",
+ "...\n",
+ " ...,\n",
+ " [ -4838.47],\n",
+ " [ -4658.47],\n",
+ " [ -4478.47]],\n",
+ "\n",
+ " [[-19778.47],\n",
+ " [-19598.47],\n",
+ " [-19418.47],\n",
+ " ...,\n",
+ " [ -4478.47],\n",
+ " [ -4298.47],\n",
+ " [ -4118.47]],\n",
+ "\n",
+ " [[-19418.47],\n",
+ " [-19238.47],\n",
+ " [-19058.47],\n",
+ " ...,\n",
+ " [ -4118.47],\n",
+ " [ -3938.47],\n",
+ " [ -3758.47]]]])
PandasIndex
PandasIndex(Index([0], dtype='int64', name='time'))
PandasIndex
PandasIndex(Index([ 0.0, 400.0, 800.0, 1200.0, 1600.0, 2000.0, 2400.0, 2800.0, 3200.0,\n",
+ " 3600.0, 4000.0],\n",
+ " dtype='float64', name='z'))
PandasIndex
PandasIndex(Index([-3362600.0, -3344600.0, -3326600.0, -3308600.0, -3290600.0, -3272600.0,\n",
+ " -3254600.0, -3236600.0, -3218600.0, -3200600.0,\n",
+ " ...\n",
+ " -806600.0, -788600.0, -770600.0, -752600.0, -734600.0, -716600.0,\n",
+ " -698600.0, -680600.0, -662600.0, -644600.0],\n",
+ " dtype='float64', name='y', length=152))
PandasIndex
PandasIndex(Index([-669650.0, -651650.0, -633650.0, -615650.0, -597650.0, -579650.0,\n",
+ " -561650.0, -543650.0, -525650.0, -507650.0, -489650.0, -471650.0,\n",
+ " -453650.0, -435650.0, -417650.0, -399650.0, -381650.0, -363650.0,\n",
+ " -345650.0, -327650.0, -309650.0, -291650.0, -273650.0, -255650.0,\n",
+ " -237650.0, -219650.0, -201650.0, -183650.0, -165650.0, -147650.0,\n",
+ " -129650.0, -111650.0, -93650.0, -75650.0, -57650.0, -39650.0,\n",
+ " -21650.0, -3650.0, 14350.0, 32350.0, 50350.0, 68350.0,\n",
+ " 86350.0, 104350.0, 122350.0, 140350.0, 158350.0, 176350.0,\n",
+ " 194350.0, 212350.0, 230350.0, 248350.0, 266350.0, 284350.0,\n",
+ " 302350.0, 320350.0, 338350.0, 356350.0, 374350.0, 392350.0,\n",
+ " 410350.0, 428350.0, 446350.0, 464350.0, 482350.0, 500350.0,\n",
+ " 518350.0, 536350.0, 554350.0, 572350.0, 590350.0, 608350.0,\n",
+ " 626350.0, 644350.0, 662350.0, 680350.0, 698350.0, 716350.0,\n",
+ " 734350.0, 752350.0, 770350.0, 788350.0, 806350.0, 824350.0,\n",
+ " 842350.0, 860350.0, 878350.0, 896350.0],\n",
+ " dtype='float64', name='x'))
"
+ ],
+ "text/plain": [
+ "\n",
+ "Dimensions: (time: 1, x: 88, y: 152, z: 11)\n",
+ "Coordinates:\n",
+ " * time (time) int64 0\n",
+ " * z (z) float64 0.0 400.0 800.0 ... 3.2e+03 3.6e+03 4e+03\n",
+ " * y (y) float64 -3.363e+06 -3.345e+06 ... -6.446e+05\n",
+ " * x (x) float64 -6.696e+05 -6.516e+05 ... 8.964e+05\n",
+ "Data variables: (12/38)\n",
+ " test_2D_time_x_y (time, x, y) float64 -7.394e+04 ... -3.918e+03\n",
+ " test_2D_time_y_x (time, y, x) float64 -7.394e+04 ... -3.918e+03\n",
+ " test_2D_x_time_y (x, time, y) float64 -7.394e+04 ... -3.918e+03\n",
+ " test_2D_x_y (x, y) float64 -7.394e+04 -7.358e+04 ... -3.918e+03\n",
+ " test_2D_x_y_time (x, y, time) float64 -7.394e+04 ... -3.918e+03\n",
+ " test_2D_y_time_x (y, time, x) float64 -7.394e+04 ... -3.918e+03\n",
+ " ... ...\n",
+ " test_3D_z_x_time_y (z, x, time, y) float64 -7.394e+04 ... -3.758e+03\n",
+ " test_3D_z_x_y (z, x, y) float64 -7.394e+04 -7.358e+04 ... -3.758e+03\n",
+ " test_3D_z_x_y_time (z, x, y, time) float64 -7.394e+04 ... -3.758e+03\n",
+ " test_3D_z_y_time_x (z, y, time, x) float64 -7.394e+04 ... -3.758e+03\n",
+ " test_3D_z_y_x (z, y, x) float64 -7.394e+04 -7.376e+04 ... -3.758e+03\n",
+ " test_3D_z_y_x_time (z, y, x, time) float64 -7.394e+04 ... -3.758e+03\n",
+ "Attributes:\n",
+ " description: Test data."
+ ]
+ },
+ "execution_count": 200,
+ "metadata": {},
+ "output_type": "execute_result"
+ }
+ ],
+ "source": [
+ "create_dummy_input_file_xr(\"test_xr.nc\", F)"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "execution_count": 85,
+ "id": "c0e0227f",
+ "metadata": {},
+ "outputs": [],
+ "source": [
+ "\n",
+ "Mx = 88\n",
+ "My = 152\n",
+ "Mz = 11\n",
+ "\n",
+ "slices = {\"x\": slice(0, Mx), \"y\": slice(0, My), \"time\": 0, \"z\": None}"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "execution_count": 54,
+ "id": "24bda91c",
+ "metadata": {},
+ "outputs": [],
+ "source": [
+ "a =slices[\"y\"]"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "execution_count": 48,
+ "id": "a4c6f8fb",
+ "metadata": {},
+ "outputs": [
+ {
+ "ename": "TypeError",
+ "evalue": "expected a sequence of integers or a single integer, got '{'x': slice(0, 88, None), 'y': slice(0, 152, None), 'time': 0, 'z': None}'",
+ "output_type": "error",
+ "traceback": [
+ "\u001b[0;31m---------------------------------------------------------------------------\u001b[0m",
+ "\u001b[0;31mTypeError\u001b[0m Traceback (most recent call last)",
+ "Cell \u001b[0;32mIn[48], line 1\u001b[0m\n\u001b[0;32m----> 1\u001b[0m \u001b[43mnp\u001b[49m\u001b[38;5;241;43m.\u001b[39;49m\u001b[43mzeros\u001b[49m\u001b[43m(\u001b[49m\u001b[43mslices\u001b[49m\u001b[43m)\u001b[49m\n",
+ "\u001b[0;31mTypeError\u001b[0m: expected a sequence of integers or a single integer, got '{'x': slice(0, 88, None), 'y': slice(0, 152, None), 'time': 0, 'z': None}'"
+ ]
+ }
+ ],
+ "source": [
+ "np.zeros(slices)"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "execution_count": 67,
+ "id": "33a70c4d",
+ "metadata": {},
+ "outputs": [],
+ "source": [
+ "dimension = ('time', 'x', 'y')\n",
+ "dim_map = {\"x\": Mx, \"y\": My, \"z\": None, \"time\": 1}\n"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "execution_count": 57,
+ "id": "aee3b59b",
+ "metadata": {},
+ "outputs": [
+ {
+ "data": {
+ "text/plain": [
+ "{'x': slice(0, 88, None), 'y': slice(0, 152, None), 'time': 0, 'z': None}"
+ ]
+ },
+ "execution_count": 57,
+ "metadata": {},
+ "output_type": "execute_result"
+ }
+ ],
+ "source": [
+ "slices"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "execution_count": 58,
+ "id": "2ee394cf",
+ "metadata": {},
+ "outputs": [
+ {
+ "data": {
+ "text/plain": [
+ "'time'"
+ ]
+ },
+ "execution_count": 58,
+ "metadata": {},
+ "output_type": "execute_result"
+ }
+ ],
+ "source": [
+ "d[0]"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "execution_count": 66,
+ "id": "c914b489",
+ "metadata": {},
+ "outputs": [
+ {
+ "ename": "KeyError",
+ "evalue": "('time', 'x', 'y')",
+ "output_type": "error",
+ "traceback": [
+ "\u001b[0;31m---------------------------------------------------------------------------\u001b[0m",
+ "\u001b[0;31mKeyError\u001b[0m Traceback (most recent call last)",
+ "Cell \u001b[0;32mIn[66], line 1\u001b[0m\n\u001b[0;32m----> 1\u001b[0m [\u001b[38;5;241m*\u001b[39m(\u001b[43mdims\u001b[49m\u001b[43m[\u001b[49m\u001b[43md\u001b[49m\u001b[43m]\u001b[49m)]\n",
+ "\u001b[0;31mKeyError\u001b[0m: ('time', 'x', 'y')"
+ ]
+ }
+ ],
+ "source": [
+ "[*(dims[d])]"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "execution_count": 71,
+ "id": "da8b27bd",
+ "metadata": {},
+ "outputs": [
+ {
+ "data": {
+ "text/plain": [
+ "(1, 88, 152)"
+ ]
+ },
+ "execution_count": 71,
+ "metadata": {},
+ "output_type": "execute_result"
+ }
+ ],
+ "source": [
+ "np.zeros([dim_map[d] for d in dimension]).shape"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "execution_count": 80,
+ "id": "199c14fe",
+ "metadata": {},
+ "outputs": [],
+ "source": [
+ "variable = np.zeros([dim_map[d] for d in dimension])\n"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "execution_count": 82,
+ "id": "bc775fca",
+ "metadata": {},
+ "outputs": [
+ {
+ "data": {
+ "text/plain": [
+ "array([[0., 0., 0., ..., 0., 0., 0.],\n",
+ " [0., 0., 0., ..., 0., 0., 0.],\n",
+ " [0., 0., 0., ..., 0., 0., 0.],\n",
+ " ...,\n",
+ " [0., 0., 0., ..., 0., 0., 0.],\n",
+ " [0., 0., 0., ..., 0., 0., 0.],\n",
+ " [0., 0., 0., ..., 0., 0., 0.]])"
+ ]
+ },
+ "execution_count": 82,
+ "metadata": {},
+ "output_type": "execute_result"
+ }
+ ],
+ "source": [
+ "variable[0, slice(0, 88, None), slice(0, 152, None)]"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "execution_count": 91,
+ "id": "226d49a5",
+ "metadata": {},
+ "outputs": [
+ {
+ "ename": "NameError",
+ "evalue": "name 'ds' is not defined",
+ "output_type": "error",
+ "traceback": [
+ "\u001b[0;31m---------------------------------------------------------------------------\u001b[0m",
+ "\u001b[0;31mNameError\u001b[0m Traceback (most recent call last)",
+ "Cell \u001b[0;32mIn[91], line 1\u001b[0m\n\u001b[0;32m----> 1\u001b[0m \u001b[43mds\u001b[49m\n",
+ "\u001b[0;31mNameError\u001b[0m: name 'ds' is not defined"
+ ]
+ }
+ ],
+ "source": [
+ "ds"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "execution_count": 95,
+ "id": "ec3b1f65",
+ "metadata": {},
+ "outputs": [],
+ "source": [
+ " \"\"\"\n",
+ " Return a dataset with missing values\n",
+ " \"\"\"\n",
+ "\n",
+ " start_date = \"1980-01-01\"\n",
+ " calendar = \"standard\"\n",
+ " periodicity = \"YS\"\n",
+ " reference_time = pd.Timestamp(\"1980-01-01\")\n",
+ "\n",
+ " nx = 101\n",
+ " ny = 101\n",
+ " nt = 2\n",
+ "\n",
+ " dates = xr.cftime_range(start_date, periods=nt, freq=periodicity, calendar=calendar)\n",
+ " x = np.linspace(-100_000, 100_000, nx)\n",
+ " y = np.linspace(-100_000, 100_000, ny)\n",
+ " t = np.arange(nt)\n",
+ " X, Y = np.meshgrid(x, y)\n",
+ "\n",
+ " t_mask = ((np.abs(X)<25_000) & (np.abs(Y)<25_000)).reshape(1, ny, nx)\n",
+ " t_mask = np.repeat(t_mask, repeats=nt, axis=0)\n",
+ " temperature = np.exp(((X/100_000)**2 + (Y/100_000)**2)).reshape(1, ny, nx)\n",
+ " temperature = np.repeat(temperature, repeats=nt, axis=0)\n",
+ "\n",
+ " p_mask = ((np.abs(X)<25_000) & (Y<-25_000)).reshape(1, ny, nx)\n",
+ " p_mask = np.repeat(p_mask, repeats=nt, axis=0)\n",
+ " precipitation = (np.exp(((X/100_000)**2 + (Y/100_000)**2)) ** 2).reshape(1, ny, nx)\n",
+ " precipitation = np.repeat(precipitation, repeats=nt, axis=0)\n",
+ "\n",
+ " ds_true = xr.Dataset(\n",
+ " data_vars=dict(\n",
+ " temperature=([\"time\", \"x\", \"y\"], temperature, {\"units\": \"Celsius\"}),\n",
+ " precipitation=([\"time\", \"y\", \"x\"], precipitation, {\"units\": \"mm/day\"}),\n",
+ " ),\n",
+ " coords=dict(\n",
+ " time=dates,\n",
+ " y=([\"y\"], y, {\"_FillValue\": False, \"units\": \"m\", \"axis\": \"Y\", \"standard_name\": \"projection_y_coordinate\"}),\n",
+ " x=([\"x\"], x, {\"_FillValue\": False, \"units\": \"m\", \"axis\": \"X\", \"standard_name\": \"projection_x_coordinate\"}),\n",
+ " reference_time=reference_time,\n",
+ " ),\n",
+ " attrs=dict(description=\"Test data.\"),\n",
+ " )\n"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "execution_count": 96,
+ "id": "3659a8f6",
+ "metadata": {},
+ "outputs": [
+ {
+ "data": {
+ "text/html": [
+ "\n",
+ "
<xarray.Dataset>\n",
+ "Dimensions: (time: 2, x: 101, y: 101)\n",
+ "Coordinates:\n",
+ " * time (time) object 1980-01-01 00:00:00 1981-01-01 00:00:00\n",
+ " * y (y) float64 -1e+05 -9.8e+04 -9.6e+04 ... 9.8e+04 1e+05\n",
+ " * x (x) float64 -1e+05 -9.8e+04 -9.6e+04 ... 9.8e+04 1e+05\n",
+ " reference_time datetime64[ns] 1980-01-01\n",
+ "Data variables:\n",
+ " temperature (time, x, y) float64 7.389 7.102 6.832 ... 6.832 7.102 7.389\n",
+ " precipitation (time, y, x) float64 54.6 50.44 46.67 ... 46.67 50.44 54.6\n",
+ "Attributes:\n",
+ " description: Test data.
time
(time)
object
1980-01-01 00:00:00 1981-01-01 0...
array([cftime.DatetimeGregorian(1980, 1, 1, 0, 0, 0, 0, has_year_zero=False),\n",
+ " cftime.DatetimeGregorian(1981, 1, 1, 0, 0, 0, 0, has_year_zero=False)],\n",
+ " dtype=object)
y
(y)
float64
-1e+05 -9.8e+04 ... 9.8e+04 1e+05
- _FillValue :
- False
- units :
- m
- axis :
- Y
- standard_name :
- projection_y_coordinate
array([-100000., -98000., -96000., -94000., -92000., -90000., -88000.,\n",
+ " -86000., -84000., -82000., -80000., -78000., -76000., -74000.,\n",
+ " -72000., -70000., -68000., -66000., -64000., -62000., -60000.,\n",
+ " -58000., -56000., -54000., -52000., -50000., -48000., -46000.,\n",
+ " -44000., -42000., -40000., -38000., -36000., -34000., -32000.,\n",
+ " -30000., -28000., -26000., -24000., -22000., -20000., -18000.,\n",
+ " -16000., -14000., -12000., -10000., -8000., -6000., -4000.,\n",
+ " -2000., 0., 2000., 4000., 6000., 8000., 10000.,\n",
+ " 12000., 14000., 16000., 18000., 20000., 22000., 24000.,\n",
+ " 26000., 28000., 30000., 32000., 34000., 36000., 38000.,\n",
+ " 40000., 42000., 44000., 46000., 48000., 50000., 52000.,\n",
+ " 54000., 56000., 58000., 60000., 62000., 64000., 66000.,\n",
+ " 68000., 70000., 72000., 74000., 76000., 78000., 80000.,\n",
+ " 82000., 84000., 86000., 88000., 90000., 92000., 94000.,\n",
+ " 96000., 98000., 100000.])
x
(x)
float64
-1e+05 -9.8e+04 ... 9.8e+04 1e+05
- _FillValue :
- False
- units :
- m
- axis :
- X
- standard_name :
- projection_x_coordinate
array([-100000., -98000., -96000., -94000., -92000., -90000., -88000.,\n",
+ " -86000., -84000., -82000., -80000., -78000., -76000., -74000.,\n",
+ " -72000., -70000., -68000., -66000., -64000., -62000., -60000.,\n",
+ " -58000., -56000., -54000., -52000., -50000., -48000., -46000.,\n",
+ " -44000., -42000., -40000., -38000., -36000., -34000., -32000.,\n",
+ " -30000., -28000., -26000., -24000., -22000., -20000., -18000.,\n",
+ " -16000., -14000., -12000., -10000., -8000., -6000., -4000.,\n",
+ " -2000., 0., 2000., 4000., 6000., 8000., 10000.,\n",
+ " 12000., 14000., 16000., 18000., 20000., 22000., 24000.,\n",
+ " 26000., 28000., 30000., 32000., 34000., 36000., 38000.,\n",
+ " 40000., 42000., 44000., 46000., 48000., 50000., 52000.,\n",
+ " 54000., 56000., 58000., 60000., 62000., 64000., 66000.,\n",
+ " 68000., 70000., 72000., 74000., 76000., 78000., 80000.,\n",
+ " 82000., 84000., 86000., 88000., 90000., 92000., 94000.,\n",
+ " 96000., 98000., 100000.])
reference_time
()
datetime64[ns]
1980-01-01
array('1980-01-01T00:00:00.000000000', dtype='datetime64[ns]')
PandasIndex
PandasIndex(CFTimeIndex([1980-01-01 00:00:00, 1981-01-01 00:00:00],\n",
+ " dtype='object', length=2, calendar='standard', freq=None))
PandasIndex
PandasIndex(Index([-100000.0, -98000.0, -96000.0, -94000.0, -92000.0, -90000.0,\n",
+ " -88000.0, -86000.0, -84000.0, -82000.0,\n",
+ " ...\n",
+ " 82000.0, 84000.0, 86000.0, 88000.0, 90000.0, 92000.0,\n",
+ " 94000.0, 96000.0, 98000.0, 100000.0],\n",
+ " dtype='float64', name='y', length=101))
PandasIndex
PandasIndex(Index([-100000.0, -98000.0, -96000.0, -94000.0, -92000.0, -90000.0,\n",
+ " -88000.0, -86000.0, -84000.0, -82000.0,\n",
+ " ...\n",
+ " 82000.0, 84000.0, 86000.0, 88000.0, 90000.0, 92000.0,\n",
+ " 94000.0, 96000.0, 98000.0, 100000.0],\n",
+ " dtype='float64', name='x', length=101))
"
+ ],
+ "text/plain": [
+ "\n",
+ "Dimensions: (time: 2, x: 101, y: 101)\n",
+ "Coordinates:\n",
+ " * time (time) object 1980-01-01 00:00:00 1981-01-01 00:00:00\n",
+ " * y (y) float64 -1e+05 -9.8e+04 -9.6e+04 ... 9.8e+04 1e+05\n",
+ " * x (x) float64 -1e+05 -9.8e+04 -9.6e+04 ... 9.8e+04 1e+05\n",
+ " reference_time datetime64[ns] 1980-01-01\n",
+ "Data variables:\n",
+ " temperature (time, x, y) float64 7.389 7.102 6.832 ... 6.832 7.102 7.389\n",
+ " precipitation (time, y, x) float64 54.6 50.44 46.67 ... 46.67 50.44 54.6\n",
+ "Attributes:\n",
+ " description: Test data."
+ ]
+ },
+ "execution_count": 96,
+ "metadata": {},
+ "output_type": "execute_result"
+ }
+ ],
+ "source": [
+ "ds_true"
]
},
{
"cell_type": "code",
"execution_count": null,
- "id": "1944771d",
+ "id": "e6e2fad4",
"metadata": {},
"outputs": [],
"source": []
@@ -148,7 +2843,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
- "version": "3.11.6"
+ "version": "3.11.5"
}
},
"nbformat": 4,
diff --git a/tests/test_extract_profile.py b/tests/test_extract_profile.py
new file mode 100644
index 0000000..9de5199
--- /dev/null
+++ b/tests/test_extract_profile.py
@@ -0,0 +1,130 @@
+# Copyright (C) 2015, 2016, 2018, 2021, 2023 Constantine Khroulev and Andy Aschwanden
+#
+# This file is part of pypism.
+#
+# PISM-RAGIS is free software; you can redistribute it and/or modify it under the
+# terms of the GNU General Public License as published by the Free Software
+# Foundation; either version 3 of the License, or (at your option) any later
+# version.
+#
+# PISM-RAGIS is distributed in the hope that it will be useful, but WITHOUT ANY
+# WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
+# FOR A PARTICULAR PURPOSE. See the GNU General Public License for more
+# details.
+#
+# You should have received a copy of the GNU General Public License
+# along with PISM; if not, write to the Free Software
+# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
+
+"""
+Test extract_profile
+"""
+
+import numpy as np
+import pytest
+import xarray as xr
+
+
+def F(x: np.ndarray, y: np.ndarray, z: np.ndarray) -> np.ndarray:
+ """A function linear in x, y, and z. Used to test our interpolation
+ scheme."""
+ return 10.0 + 0.01 * x + 0.02 * y + 0.03 + 0.04 * z
+
+
+def create_dummy_input_file(F) -> xr.Dataset:
+ """Create an input file for testing. Does not use unlimited
+ dimensions, creates one time record only."""
+
+ Mx = 88
+ My = 152
+ Mz = 11
+ Mt = 1
+
+ # use X and Y ranges corresponding to a grid covering Greenland
+ x = np.linspace(-669650.0, 896350.0, Mx)
+ y = np.linspace(-3362600.0, -644600.0, My)
+ z = np.linspace(0, 4000.0, Mz)
+
+ xx, yy = np.meshgrid(x, y)
+
+ def write(prefix, dimensions):
+ "Write test data to the file using given storage order."
+
+ slices = {"x": slice(0, Mx), "y": slice(0, My), "time": 0, "z": None}
+ dim_map = {"x": Mx, "y": My, "z": Mz, "time": Mt}
+
+ # set indexes for all dimensions (z index will be re-set below)
+ indexes = [Ellipsis] * len(dimensions)
+ for k, d in enumerate(dimensions):
+ indexes[k] = slices[d]
+
+ # transpose 2D array if needed
+ if dimensions.index("y") < dimensions.index("x"):
+
+ def T(x):
+ return x
+
+ else:
+ T = np.transpose
+
+ dims = [dim_map[d] for d in dimensions]
+ variable = np.zeros(dims)
+ if "z" in dimensions:
+ for k in range(Mz):
+ indexes[dimensions.index("z")] = k
+ variable[*indexes] = T(F(xx, yy, z[k]))
+ else:
+ variable[*indexes] = T(F(xx, yy, 0))
+
+ return (dimensions, variable, {"long_name": name + " (make it long!)"})
+
+ from itertools import permutations
+
+ def P(x):
+ return list(permutations(x))
+
+ data_vars = dict()
+ for d in sorted(P(["x", "y"]) + P(["time", "x", "y"])):
+ prefix = "test_2D_"
+ name = prefix + "_".join(d)
+ data_vars[name] = write(prefix, d)
+
+ for d in sorted(P(["x", "y", "z"]) + P(["time", "x", "y", "z"])):
+ prefix = "test_3D_"
+ name = prefix + "_".join(d)
+ data_vars[name] = write(prefix, d)
+
+ ds = xr.Dataset(
+ data_vars=data_vars,
+ coords=dict(
+ time=(["time"], [0], {}),
+ z=(["z"], z, {"_FillValue": False, "units": "m"}),
+ y=(
+ ["y"],
+ y,
+ {
+ "_FillValue": False,
+ "units": "m",
+ "axis": "Y",
+ "standard_name": "projection_y_coordinate",
+ },
+ ),
+ x=(
+ ["x"],
+ x,
+ {
+ "_FillValue": False,
+ "units": "m",
+ "axis": "X",
+ "standard_name": "projection_x_coordinate",
+ },
+ ),
+ ),
+ attrs=dict(description="Test data."),
+ )
+ return ds
+
+
+@pytest.fixture(name="create_dummpy_input_file")
+def fixture_create_dummy_input_file_xyz():
+ return create_dummy_input_file(F)