{ "cells": [ { "cell_type": "markdown", "id": "ea96546e", "metadata": {}, "source": [ "# CO, CO2, H2O, O3 sensors\n", "In-situ measurements of trace gas species such as Carbon monoxide (CO), carbon dioxide (CO2) and water vapor (H2O) and ozone (O3).\n", "\n", "Each textfile contains the data obtained during a single flight. The file contains the time, location and mixing ratios for CO, CO2, H2O and O3.\n", "\n", "Please note, There are no CO data available for ACLOUD flight #23 because of an instrumental failure. For ACLOUD flight #14, there are no O3 data available after 12:58:37 UTC.\n", "\n", "The following example demonstrates the use of the trace gas mixing ratios collected during the ACLOUD campaign.\n", "\n", "If you have questions or if you would like to use the data for a publication, please don't hesitate to get in contact with the dataset authors as stated in the dataset attributes `contact` or `author`.\n", "\n", "\n", "## Data access\n", "* To analyse the data they first have to be loaded by importing the (AC)³airborne meta data catalogue. To do so the ac3airborne package has to be installed. More information on how to do that and about the catalog can be found [here](https://github.com/igmk/ac3airborne-intake#ac3airborne-intake-catalogue)." ] }, { "cell_type": "markdown", "id": "45b1acdd-5c13-4e03-aad9-fa7ff246e0a0", "metadata": {}, "source": [ "## Get data" ] }, { "cell_type": "code", "execution_count": 1, "id": "6e7a56f0", "metadata": {}, "outputs": [], "source": [ "import ac3airborne" ] }, { "cell_type": "markdown", "id": "1fdc0542", "metadata": {}, "source": [ "List of flights, where OPC data is available:" ] }, { "cell_type": "code", "execution_count": 2, "id": "b02cceee", "metadata": { "scrolled": true }, "outputs": [ { "data": { "text/plain": [ "['ACLOUD_P6_RF07',\n", " 'ACLOUD_P6_RF08',\n", " 'ACLOUD_P6_RF09',\n", " 'ACLOUD_P6_RF10',\n", " 'ACLOUD_P6_RF11',\n", " 'ACLOUD_P6_RF12',\n", " 'ACLOUD_P6_RF13',\n", " 'ACLOUD_P6_RF14',\n", " 'ACLOUD_P6_RF15',\n", " 'ACLOUD_P6_RF16',\n", " 'ACLOUD_P6_RF17',\n", " 'ACLOUD_P6_RF18',\n", " 'ACLOUD_P6_RF19',\n", " 'ACLOUD_P6_RF20',\n", " 'ACLOUD_P6_RF21',\n", " 'ACLOUD_P6_RF22',\n", " 'ACLOUD_P6_RF23',\n", " 'ACLOUD_P6_RF24',\n", " 'ACLOUD_P6_RF25']" ] }, "execution_count": 2, "metadata": {}, "output_type": "execute_result" } ], "source": [ "cat = ac3airborne.get_intake_catalog()\n", "\n", "datasets = []\n", "for campaign in ['ACLOUD']:\n", " datasets.extend(list(cat[campaign]['P6']['CO_CO2_H2O']))\n", "datasets" ] }, { "cell_type": "markdown", "id": "5523c259", "metadata": {}, "source": [ "## Dataset\n", "To get an overview of the variables recorded by the trace gas sensors, we load the dataset of the first ACLOUD flight `ACLOUD_P6_RF07`." ] }, { "cell_type": "code", "execution_count": 3, "id": "d608a695", "metadata": {}, "outputs": [ { "name": "stderr", "output_type": "stream", "text": [ "/usr/lib/python3/dist-packages/dask/dataframe/utils.py:14: FutureWarning: pandas.util.testing is deprecated. Use the functions in the public API at pandas.testing instead.\n", " import pandas.util.testing as tm\n" ] }, { "data": { "text/html": [ "
\n", "\n", "\n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", "
IDDate/TimeAltitude [m]LatitudeLongitudeCO mix ratio [ppbv]CO2 mix ratio [ppmv]WV mix ratio [ppmv]O3 mix ratio [ppbv]
0P6_072017-05-27T13:01:5931.078.245815.4716108.92413.862983.6NaN
1P6_072017-05-27T13:02:0032.078.245915.4696108.22413.832921.022.28
2P6_072017-05-27T13:02:0134.078.246015.4676107.44413.822864.0NaN
3P6_072017-05-27T13:02:0236.078.246115.4656106.80413.832901.520.71
4P6_072017-05-27T13:02:0339.078.246215.4636107.95413.902923.6NaN
..............................
12294P6_072017-05-27T16:26:5329.078.247715.4373109.24413.712910.0NaN
12295P6_072017-05-27T16:26:5429.078.247615.4392108.98413.632904.019.52
12296P6_072017-05-27T16:26:5529.078.247515.4411107.97413.612897.2NaN
12297P6_072017-05-27T16:26:5630.078.247415.4430107.99413.692900.119.23
12298P6_072017-05-27T16:26:5730.078.247315.4448109.15413.722960.1NaN
\n", "

12299 rows × 9 columns

\n", "
" ], "text/plain": [ " ID Date/Time Altitude [m] Latitude Longitude \\\n", "0 P6_07 2017-05-27T13:01:59 31.0 78.2458 15.4716 \n", "1 P6_07 2017-05-27T13:02:00 32.0 78.2459 15.4696 \n", "2 P6_07 2017-05-27T13:02:01 34.0 78.2460 15.4676 \n", "3 P6_07 2017-05-27T13:02:02 36.0 78.2461 15.4656 \n", "4 P6_07 2017-05-27T13:02:03 39.0 78.2462 15.4636 \n", "... ... ... ... ... ... \n", "12294 P6_07 2017-05-27T16:26:53 29.0 78.2477 15.4373 \n", "12295 P6_07 2017-05-27T16:26:54 29.0 78.2476 15.4392 \n", "12296 P6_07 2017-05-27T16:26:55 29.0 78.2475 15.4411 \n", "12297 P6_07 2017-05-27T16:26:56 30.0 78.2474 15.4430 \n", "12298 P6_07 2017-05-27T16:26:57 30.0 78.2473 15.4448 \n", "\n", " CO mix ratio [ppbv] CO2 mix ratio [ppmv] WV mix ratio [ppmv] \\\n", "0 108.92 413.86 2983.6 \n", "1 108.22 413.83 2921.0 \n", "2 107.44 413.82 2864.0 \n", "3 106.80 413.83 2901.5 \n", "4 107.95 413.90 2923.6 \n", "... ... ... ... \n", "12294 109.24 413.71 2910.0 \n", "12295 108.98 413.63 2904.0 \n", "12296 107.97 413.61 2897.2 \n", "12297 107.99 413.69 2900.1 \n", "12298 109.15 413.72 2960.1 \n", "\n", " O3 mix ratio [ppbv] \n", "0 NaN \n", "1 22.28 \n", "2 NaN \n", "3 20.71 \n", "4 NaN \n", "... ... \n", "12294 NaN \n", "12295 19.52 \n", "12296 NaN \n", "12297 19.23 \n", "12298 NaN \n", "\n", "[12299 rows x 9 columns]" ] }, "execution_count": 3, "metadata": {}, "output_type": "execute_result" } ], "source": [ "ds_co_co2 = cat['ACLOUD']['P6']['CO_CO2_H2O']['ACLOUD_P6_RF07'].read()\n", "ds_co_co2" ] }, { "cell_type": "markdown", "id": "720bc9d7", "metadata": {}, "source": [ "### View variables\n" ] }, { "cell_type": "markdown", "id": "9dc7b2b3", "metadata": {}, "source": [] } ], "metadata": { "kernelspec": { "display_name": "Python 3 (ipykernel)", "language": "python", "name": "python3" }, "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.8.10" } }, "nbformat": 4, "nbformat_minor": 5 }