{ "cells": [ { "cell_type": "markdown", "id": "042c29c4-4c8d-4574-a0e3-338302abbbe3", "metadata": {}, "source": [ "# EcoFOCIpy ADCP QC - 20BSP-14A\n", "\n", "- mostly remove >100 cm/s flows in u/v\n" ] }, { "cell_type": "code", "execution_count": 28, "id": "742cb322-f8c0-4ed3-8369-5cf87cec6bde", "metadata": {}, "outputs": [], "source": [ "import xarray as xa\n", "import numpy as np\n", "\n", "import matplotlib.pyplot as plt\n" ] }, { "cell_type": "code", "execution_count": 29, "id": "79753deb-7f70-4722-ab54-b3d8f86d2712", "metadata": {}, "outputs": [], "source": [ "file_in = '20bsp14a_0031m.nc'\n", "xdf = xa.load_dataset(file_in)" ] }, { "cell_type": "code", "execution_count": 30, "id": "8ee1903d-89ba-4471-ae83-cfead3a60ff5", "metadata": {}, "outputs": [ { "data": { "text/html": [ "
<xarray.Dataset>\n", "Dimensions: (latitude: 1, longitude: 1, time: 34591, depth: 20)\n", "Coordinates:\n", " * time (time) datetime64[ns] 2020-09-18T08:00:00 ... 2022-09-08...\n", " * depth (depth) float64 -10.0 -8.0 -6.0 -4.0 ... 24.0 26.0 28.0\n", " * latitude (latitude) float64 64.0\n", " * longitude (longitude) float64 -167.9\n", "Data variables:\n", " u_curr_comp (latitude, longitude, time, depth) float64 -6.515 ... 0....\n", " v_curr_comp (latitude, longitude, time, depth) float64 -13.85 ... 15.09\n", " w_curr_comp (latitude, longitude, time, depth) float64 8.9 7.1 ... -0.1\n", " w_curr_comp_err (latitude, longitude, time, depth) float64 -3.6 0.0 ... 0.4\n", " agc1 (latitude, longitude, time, depth) float64 68.0 ... 80.0\n", " agc2 (latitude, longitude, time, depth) float64 76.0 ... 76.0\n", " agc3 (latitude, longitude, time, depth) float64 72.0 ... 86.0\n", " agc4 (latitude, longitude, time, depth) float64 70.0 ... 69.0\n", "Attributes: (12/13)\n", " Latitude_DegMMddW: 64 00.156 N\n", " Longitude_DegMMddN: 167 56.043 W\n", " MooringID: 20BSP-14A\n", " platform_deployment_date: 2020-09-18T07:37:00Z\n", " platform_deployment_cruise_name: DY2012\n", " platform_recovery_date: 2022-09-08T23:00:00Z\n", " ... ...\n", " platform_deployment_recovery_comments: \n", " WaterDepth: 38.1\n", " date_created: 2022-11-21T09:47:13Z\n", " date_modified: \n", " QC_indicator: unknown\n", " history: Trimmed to deployment.