{ "cells": [ { "cell_type": "markdown", "id": "8176fcde-f5dc-4a55-8044-12c791d8d455", "metadata": {}, "source": [ "# Tracer budgets MOM6 NCAR configuration\n", "The following variables are required at double precision output for closing the **heat** budget:\n", "\n", "'opottemptend', 'T_advection_xy', 'Th_tendency_vert_remap', 'boundary_forcing_heat_tendency', 'opottempdiff', 'opottemppmdiff',\n", " 'frazil_heat_tendency', 'KPP_NLT_temp_budget', 'T_lbdxy_cont_tendency'\n", " \n", "The following variables are required at double precision to close the **salt** budget: \n", "\n", "'S_advection_xy', 'Sh_tendency_vert_remap', 'boundary_forcing_salt_tendency', osaltpmdiff', 'osaltdiff', \n", "'KPP_NLT_saln_budget'*1e-3 (because there is a bug in the conversion factor), 'S_lbdxy_cont_tendency'\n", " \n", "A short run with all this output at double precision is available here: /glade/scratch/deppenme/archive/gmom.e23.GJRAv3.TL319_t061_zstar_N65.testbudget2.001/ocn/hist/\n", " \n", "Description of what they are can be found in the labels of the plot below. \n", "\n", "\n", "--------------\n", "\n", "TO DO: \n", "- test different vertical coordinate\n", "- test different temporal resolutions" ] }, { "cell_type": "markdown", "id": "7bf4f7e4-c0ee-422d-93e5-891409c8b7d2", "metadata": {}, "source": [ "### Load modules, start cluster" ] }, { "cell_type": "code", "execution_count": 1, "id": "08bf9a8b-58ee-4142-a3bc-3c88a40734eb", "metadata": {}, "outputs": [], "source": [ "# Load required modules\n", "import warnings\n", "warnings.filterwarnings(\"ignore\") # I don't want any warnings (: \n", "\n", "# the usual suspects\n", "import numpy as np\n", "from datetime import date\n", "from matplotlib import pyplot as plt\n", "import cartopy.crs as ccrs\n", "import xarray as xr\n", "import glob\n", "import nc_time_axis # it says I need this to plot.. not sure \n", "\n", "# dask helpers \n", "from distributed import Client\n", "from ncar_jobqueue import NCARCluster\n", "\n", "# get mom6-tools \n", "import mom6_tools" ] }, { "cell_type": "code", "execution_count": 2, "id": "b847c1bc-2f88-4d6a-a6bb-fa064da3ca73", "metadata": {}, "outputs": [ { "data": { "text/html": [ "
Client-671d0a85-2400-11ed-9bad-3cecef1b12c2
\n", "| Connection method: Cluster object | \n", "Cluster type: dask_jobqueue.PBSCluster | \n", " \n", "
| \n", " Dashboard: https://jupyterhub.hpc.ucar.edu/stable/user/deppenme/proxy/8787/status\n", " | \n", "\n", " |
f5233320
\n", "| \n", " Dashboard: https://jupyterhub.hpc.ucar.edu/stable/user/deppenme/proxy/8787/status\n", " | \n", "\n", " Workers: 0\n", " | \n", "
| \n", " Total threads: 0\n", " | \n", "\n", " Total memory: 0 B\n", " | \n", "
Scheduler-d031bf25-1164-41f7-bb04-ec0f9884d908
\n", "| \n", " Comm: tcp://10.12.206.33:44824\n", " | \n", "\n", " Workers: 0\n", " | \n", "
| \n", " Dashboard: https://jupyterhub.hpc.ucar.edu/stable/user/deppenme/proxy/8787/status\n", " | \n", "\n", " Total threads: 0\n", " | \n", "
| \n", " Started: Just now\n", " | \n", "\n", " Total memory: 0 B\n", " | \n", "