{ "cells": [ { "cell_type": "markdown", "id": "b76675cd", "metadata": {}, "source": [ "# RAPID 26.5ºN\n", "This notebook demonstrates creating sections at 26.5ºN — the location of the RAPID-MOCHA array." ] }, { "cell_type": "code", "execution_count": null, "id": "c8360f55", "metadata": {}, "outputs": [], "source": [ "from pathlib import Path\n", "import matplotlib.pyplot as plt\n", "import cartopy.crs as ccrs\n", "import iconspy as ispy\n", "from iconspy.tests.conftest import get_ds_tgrid_lr" ] }, { "cell_type": "markdown", "id": "ee340bfe", "metadata": {}, "source": [ "## Grid setup" ] }, { "cell_type": "code", "execution_count": 3, "id": "1681fe7a", "metadata": {}, "outputs": [ { "data": { "text/html": [ "
<xarray.Dataset> Size: 7MB\n",
"Dimensions: (cell: 15105, vertex: 8067, edge: 23207, nc_e: 2,\n",
" nv_c: 3, ne_c: 3, nv_v: 6, ne_v: 6, nv_e: 2,\n",
" nc_v: 6, nc_c: 3, cart: 3)\n",
"Coordinates:\n",
" * cell (cell) int32 60kB 0 1 2 3 ... 15102 15103 15104\n",
" clon (cell) float64 121kB 69.12 73.0 ... 74.57 76.01\n",
" clat (cell) float64 121kB 72.74 74.52 ... -46.83 -44.85\n",
" * vertex (vertex) int32 32kB 0 1 2 3 ... 8063 8064 8065 8066\n",
" vlon (vertex) float64 65kB 73.0 69.39 ... 80.59 77.56\n",
" vlat (vertex) float64 65kB 73.27 71.49 ... -45.35 -45.49\n",
" * edge (edge) int32 93kB 0 1 2 3 ... 23204 23205 23206\n",
" elon (edge) float64 186kB 71.11 76.98 ... 75.34 76.04\n",
" elat (edge) float64 186kB 72.39 73.25 ... -46.52 -45.54\n",
"Dimensions without coordinates: nc_e, nv_c, ne_c, nv_v, ne_v, nv_e, nc_v, nc_c,\n",
" cart\n",
"Data variables: (12/40)\n",
" grid_sphere_radius float64 8B 6.371e+06\n",
" grav float64 8B 9.807\n",
" earth_angular_velocity float64 8B 7.292e-05\n",
" rho0 float64 8B 1.025e+03\n",
" rhoi float64 8B 917.0\n",
" rhos float64 8B 300.0\n",
" ... ...\n",
" edge_cart_vec (edge, cart) float64 557kB 0.09797 ... -0.7137\n",
" dual_edge_cart_vec (edge, cart) float64 557kB 0.09801 ... -0.7136\n",
" edge_prim_norm (edge, cart) float64 557kB 0.6463 -0.7466 ... 0.7001\n",
" fc (cell) float64 121kB 0.0001393 ... -0.0001029\n",
" fe (edge) float64 186kB 0.000139 ... -0.0001041\n",
" fv (vertex) float64 65kB 0.0001397 ... -0.000104\n",
"Attributes:\n",
" converted_tgrid: True\n",
" boundary_BallTree: <iconspy.balltree.IspyBoundaryBallTree object at 0x...\n",
" wet_BallTree: <iconspy.balltree.IspyWetBallTree object at 0x7ffb5...\n",
" uuidOfHGrid: 5bd948e8-ac1a-11ea-a6b1-d317264fdca9\n",
" IsD_compatible_flag: True<xarray.Dataset> Size: 220B\n",
"Dimensions: (step_in_path: 3, step_in_path_v: 4)\n",
"Coordinates:\n",
" * step_in_path (step_in_path) int64 24B 0 1 2\n",
" elon (step_in_path) float64 24B -79.58 -78.44 -77.3\n",
" elat (step_in_path) float64 24B 26.37 26.44 26.5\n",
" * step_in_path_v (step_in_path_v) int64 32B 0 1 2 3\n",
" vlon (step_in_path_v) float64 32B -80.21 -78.96 -77.92 -76.69\n",
" vlat (step_in_path_v) float64 32B 27.33 25.41 27.47 25.52\n",
"Data variables:\n",
" edge_path (step_in_path) int32 12B 8094 8098 8108\n",
" vertex_path (step_in_path_v) int32 16B 2947 2946 2950 2953\n",
" path_orientation (step_in_path) float64 24B 1.0 -1.0 1.0\n",
"Attributes:\n",
" date: 2026-07-14 13:05:21\n",
" ispy version: 0.2.0\n",
" uuidOfHGrid: 5bd948e8-ac1a-11ea-a6b1-d317264fdca9\n",
" section name: Florida Current\n",
" Created by: m301014\n",
" Created in: /work/mh0256/m301014/iconspy/examples/rapid-26N.ipynb<xarray.Dataset> Size: 3kB\n",
"Dimensions: (step_in_path: 41, step_in_path_v: 42)\n",
"Coordinates:\n",
" * step_in_path (step_in_path) int64 328B 0 1 2 3 4 5 ... 36 37 38 39 40\n",
" elon (step_in_path) float64 328B -76.16 -75.01 ... -16.15\n",
" elat (step_in_path) float64 328B 26.55 26.58 ... 26.24 26.55\n",
" * step_in_path_v (step_in_path_v) int64 336B 0 1 2 3 4 5 ... 37 38 39 40 41\n",
" vlon (step_in_path_v) float64 336B -76.69 -75.61 ... -15.03\n",
" vlat (step_in_path_v) float64 336B 25.52 27.57 ... 26.4 26.69\n",
"Data variables:\n",
" edge_path (step_in_path) int32 164B 8150 8152 7600 ... 8486 8485\n",
" vertex_path (step_in_path_v) int32 168B 2953 2961 2777 ... 3091 3093\n",
" path_orientation (step_in_path) float64 328B 1.0 1.0 1.0 ... -1.0 1.0 1.0\n",
"Attributes:\n",
" date: 2026-07-14 13:05:21\n",
" ispy version: 0.2.0\n",
" uuidOfHGrid: 5bd948e8-ac1a-11ea-a6b1-d317264fdca9\n",
" section name: Interior 26.5N\n",
" Created by: m301014\n",
" Created in: /work/mh0256/m301014/iconspy/examples/rapid-26N.ipynb