{
  "cells": [
    {
      "cell_type": "code",
      "execution_count": null,
      "metadata": {
        "collapsed": false
      },
      "outputs": [],
      "source": [
        "%matplotlib inline"
      ]
    },
    {
      "cell_type": "markdown",
      "metadata": {},
      "source": [
        "\n# Local data inventory\n\n:mod:`heliopy.data.helper` contains the method\n:meth:`heliopy.data.helper.listdata` that can be useful for working out how\nmuch data is stored locally. It can be run using\n"
      ]
    },
    {
      "cell_type": "code",
      "execution_count": null,
      "metadata": {
        "collapsed": false
      },
      "outputs": [],
      "source": [
        "from heliopy.data import helper as heliohelper\nheliohelper.listdata()"
      ]
    },
    {
      "cell_type": "markdown",
      "metadata": {},
      "source": [
        "This will print a table with each probe and the total raw data stored\nalong with the total *.hdf* file data stored\n(*.hdf* files are binary files that are much faster for python to read than\nraw data).\n\nExample output is:\n\n"
      ]
    },
    {
      "cell_type": "code",
      "execution_count": null,
      "metadata": {
        "collapsed": false
      },
      "outputs": [],
      "source": [
        "'''\n  Scanning files in /Users/dstansby/Data/\n  ----------------------------------------\n  |      Probe |        Raw |        HDF |\n  |--------------------------------------|\n  |        ace |    1.44 MB |  800.00  B |\n  |    cluster |  200.39 MB |    0.00  B |\n  |     helios |    2.37 GB |    1.41 GB |\n  |        imp |   19.76 MB |   28.56 MB |\n  |  messenger |   15.24 MB |   27.21 MB |\n  |        mms |   70.11 MB |    0.00  B |\n  |     themis |   64.31 MB |    0.00  B |\n  |    ulysses |   54.78 MB |   47.98 MB |\n  |       wind |  176.84 MB |   63.82 MB |\n  |--------------------------------------|\n  |--------------------------------------|\n  |      Total |    2.96 GB |    1.57 GB |\n  ----------------------------------------\n'''"
      ]
    }
  ],
  "metadata": {
    "kernelspec": {
      "display_name": "Python 3",
      "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.7.9"
    }
  },
  "nbformat": 4,
  "nbformat_minor": 0
}