{ "metadata": { "name": "", "signature": "sha256:6a089725ef743a87fde827d9fc88f7d9ba11691edf92c7ce66572c9ee4d5ef2a" }, "nbformat": 3, "nbformat_minor": 0, "worksheets": [ { "cells": [ { "cell_type": "heading", "level": 1, "metadata": {}, "source": [ "Launching ARTview from Interactive Command Line Session" ] }, { "cell_type": "heading", "level": 3, "metadata": {}, "source": [ "You've imported your libraries" ] }, { "cell_type": "code", "collapsed": false, "input": [ "import os\n", "import pyart\n", "import artview\n", "#from artview.view import view\n", "import matplotlib.pyplot as plt\n", "\n", "%matplotlib inline" ], "language": "python", "metadata": {}, "outputs": [], "prompt_number": 21 }, { "cell_type": "heading", "level": 3, "metadata": {}, "source": [ "You're working with a file let's say" ] }, { "cell_type": "code", "collapsed": false, "input": [ "fdir = '/Users/guy/data/nexrad/KMPX/nex2/20130513'\n", "fname = 'KMPX20130513_185823_V06'\n", "fpath = os.path.join(fdir, fname)\n", "print(fpath)" ], "language": "python", "metadata": {}, "outputs": [ { "output_type": "stream", "stream": "stdout", "text": [ "/Users/guy/data/nexrad/KMPX/nex2/20130513/KMPX20130513_185823_V06\n" ] } ], "prompt_number": 6 }, { "cell_type": "heading", "level": 3, "metadata": {}, "source": [ "You loaded a radar instance" ] }, { "cell_type": "code", "collapsed": false, "input": [ "r = pyart.io.read(fpath)\n", "r.fields.keys()" ], "language": "python", "metadata": {}, "outputs": [ { "metadata": {}, "output_type": "pyout", "prompt_number": 8, "text": [ "['differential_phase',\n", " 'cross_correlation_ratio',\n", " 'spectrum_width',\n", " 'reflectivity',\n", " 'differential_reflectivity',\n", " 'velocity']" ] } ], "prompt_number": 8 }, { "cell_type": "heading", "level": 3, "metadata": {}, "source": [ "You then apply any number of cool features" ] }, { "cell_type": "heading", "level": 5, "metadata": {}, "source": [ "