{ "cells": [ { "cell_type": "code", "execution_count": 1, "metadata": { "ExecuteTime": { "end_time": "2017-03-02T11:34:48.173281", "start_time": "2017-03-02T11:34:47.125539" }, "collapsed": false, "deletable": true, "editable": true, "execution": { "iopub.execute_input": "2023-11-28T17:55:11.064960Z", "iopub.status.busy": "2023-11-28T17:55:11.064103Z", "iopub.status.idle": "2023-11-28T17:55:12.420472Z", "shell.execute_reply": "2023-11-28T17:55:12.419359Z", "shell.execute_reply.started": "2023-11-28T17:55:11.064889Z" }, "jupyter": { "outputs_hidden": false }, "run_control": { "frozen": false, "marked": true, "read_only": false } }, "outputs": [], "source": [ "import atmPy.aerosols.size_distribution.sizedistribution as atmsd" ] }, { "cell_type": "markdown", "metadata": { "deletable": true, "editable": true, "run_control": { "frozen": false, "read_only": false } }, "source": [ "# SizeDist (a single size distribution)" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "## Create instance" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "### simulate a sizedistribution" ] }, { "cell_type": "code", "execution_count": 8, "metadata": { "execution": { "iopub.execute_input": "2023-11-28T18:00:28.757009Z", "iopub.status.busy": "2023-11-28T18:00:28.755978Z", "iopub.status.idle": "2023-11-28T18:00:28.767846Z", "shell.execute_reply": "2023-11-28T18:00:28.766494Z", "shell.execute_reply.started": "2023-11-28T18:00:28.756903Z" } }, "outputs": [], "source": [ "sd = atmsd.simulate_sizedistribution(diameter=[10, 2500],\n", " numberOfDiameters=100,\n", " centerOfAerosolMode=200,\n", " widthOfAerosolMode=0.2,\n", " numberOfParticsInMode=1000,)" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "### format your own data" ] }, { "cell_type": "code", "execution_count": 5, "metadata": { "execution": { "iopub.execute_input": "2023-11-28T17:58:17.561964Z", "iopub.status.busy": "2023-11-28T17:58:17.561364Z", "iopub.status.idle": "2023-11-28T17:58:17.568451Z", "shell.execute_reply": "2023-11-28T17:58:17.567020Z", "shell.execute_reply.started": "2023-11-28T17:58:17.561910Z" } }, "outputs": [], "source": [ "atmsd.SizeDist(data, bins, distType)" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "`data` should have a similar structure as below. However, column names are not required as they are calculated based on `bins`" ] }, { "cell_type": "code", "execution_count": 11, "metadata": { "execution": { "iopub.execute_input": "2023-11-28T18:00:35.739967Z", "iopub.status.busy": "2023-11-28T18:00:35.739329Z", "iopub.status.idle": "2023-11-28T18:00:35.775157Z", "shell.execute_reply": "2023-11-28T18:00:35.773850Z", "shell.execute_reply.started": "2023-11-28T18:00:35.739914Z" } }, "outputs": [ { "data": { "text/html": [ "
bincenters | \n", "10.286785 | \n", "10.876803 | \n", "11.500663 | \n", "12.160306 | \n", "12.857784 | \n", "13.595267 | \n", "14.375049 | \n", "15.199558 | \n", "16.071358 | \n", "16.993162 | \n", "... | \n", "1472.324349 | \n", "1556.772354 | \n", "1646.064038 | \n", "1740.477219 | \n", "1840.305650 | \n", "1945.859933 | \n", "2057.468486 | \n", "2175.478563 | \n", "2300.257336 | \n", "2432.193036 | \n", "
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
0 | \n", "8.067904e-08 | \n", "1.653171e-07 | \n", "3.338144e-07 | \n", "6.642360e-07 | \n", "0.000001 | \n", "0.000003 | \n", "0.000005 | \n", "0.000009 | \n", "0.000017 | \n", "0.00003 | \n", "... | \n", "0.000049 | \n", "0.000027 | \n", "0.000015 | \n", "0.000008 | \n", "0.000004 | \n", "0.000002 | \n", "0.000001 | \n", "5.883500e-07 | \n", "2.949072e-07 | \n", "1.456683e-07 | \n", "
1 rows × 99 columns
\n", "\n", " | ext_coeff_m^1 | \n", "
---|---|
0 | \n", "0.000086 | \n", "