{ "cells": [ { "cell_type": "markdown", "metadata": {}, "source": [ "### 3 Different Bloom Timing Metrics" ] }, { "cell_type": "code", "execution_count": null, "metadata": {}, "outputs": [], "source": [ "import numpy as np\n", "import matplotlib.pyplot as plt\n", "import matplotlib.dates as mdates\n", "import matplotlib as mpl\n", "import netCDF4 as nc\n", "import datetime as dt\n", "from salishsea_tools import evaltools as et, places, viz_tools, visualisations\n", "import xarray as xr\n", "import pandas as pd\n", "import pickle\n", "import os\n", "\n", "%matplotlib inline" ] }, { "cell_type": "code", "execution_count": null, "metadata": {}, "outputs": [], "source": [] }, { "cell_type": "code", "execution_count": null, "metadata": {}, "outputs": [], "source": [ " bio_time,sno3,sdiat,sflag,scili,intdiat,intphyto,spar,fracdiat,sphyto,percdiat,\\\n", " u_wind,v_wind,twind,solar,wspeed,winddirec,riv_time,rivFlow=pickle.load(open(savepath,'rb'))" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "Method 1: the date in which the maximum phytoplankton concentration is within 4 days of the nitrate concentration going below 0.1 umol/L (Collins et. al 2009)" ] }, { "cell_type": "code", "execution_count": null, "metadata": {}, "outputs": [], "source": [] }, { "cell_type": "markdown", "metadata": {}, "source": [ "Method 2: the first peak in which chlorophyll concentrations are above 5 ug/L for more than two days (Olson et. al 2020)\n" ] }, { "cell_type": "code", "execution_count": null, "metadata": {}, "outputs": [], "source": [] }, { "cell_type": "markdown", "metadata": {}, "source": [ "Method 3: The median + 5% of the annual Chl concentration is deemed “threshold value” for each year. For a given year, bloom initiation is determined to be the week that first reaches the threshold value (by looking at weekly averages) as long as one of the two following weeks was >70% of the threshold value. (Karyn’s method)\n" ] }, { "cell_type": "code", "execution_count": null, "metadata": {}, "outputs": [], "source": [] } ], "metadata": { "kernelspec": { "display_name": "Python (py39)", "language": "python", "name": "py39" }, "language_info": { "codemirror_mode": { "name": "ipython", "version": 3 }, "file_extension": ".py", "mimetype": "text/x-python", "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", "version": "3.9.1" } }, "nbformat": 4, "nbformat_minor": 4 }