rnn from single equilibrium, varying hidden_units
[notebooks.git] / wrfxpy_rtma_demo.ipynb
blobe7b1274d2af75d2bc3cd9c2566544c50079119ef
2  "cells": [
3   {
4    "cell_type": "code",
5    "execution_count": null,
6    "metadata": {
7     "id": "eec180b9QCSB"
8    },
9    "outputs": [],
10    "source": [
11     "import os\n",
12     "if not os.path.exists('wrfxpy'):\n",
13     "   ! git clone https://github.com/openwfm/wrfxpy.git\n",
14     "! cd wrfxpy; git checkout jm; git pull;  git log | head\n",
15     "! pip install pygrib\n"
16    ]
17   },
18   {
19    "cell_type": "code",
20    "execution_count": null,
21    "metadata": {
22     "colab": {
23      "base_uri": "https://localhost:8080/"
24     },
25     "id": "52aO7XXn7TI_",
26     "outputId": "c607cdf2-6a8c-4f1a-b8aa-646b7f9b46d1"
27    },
28    "outputs": [],
29    "source": [
30     "!apt install libgrib-api-dev libgrib2c-dev\n",
31     "!pip install pyproj\n",
32     "!pip install pygrib"
33    ]
34   },
35   {
36    "cell_type": "code",
37    "execution_count": null,
38    "metadata": {
39     "id": "rc7RnvGZQQXh"
40    },
41    "outputs": [],
42    "source": [
43     "import json\n",
44     "cfg = json.load(open('wrfxpy/etc/conf.json.initial'))\n",
45     "# make changes to the cfg dictionary here if desired\n",
46     "json.dump(cfg, open('wrfxpy/etc/conf.json', 'w'), indent=4, separators=(',', ': '))"
47    ]
48   },
49   {
50    "cell_type": "code",
51    "execution_count": null,
52    "metadata": {
53     "id": "TPkRrtHVQqLX"
54    },
55    "outputs": [],
56    "source": [
57     "import sys\n",
58     "sys.path.append('wrfxpy/src')     # source root\n",
59     "import ingest.rtma_source\n"
60    ]
61   },
62   {
63    "cell_type": "code",
64    "execution_count": null,
65    "metadata": {
66     "colab": {
67      "base_uri": "https://localhost:8080/",
68      "height": 305
69     },
70     "id": "-STU9kXtwogO",
71     "outputId": "58ade569-8e6f-49d4-a94a-9307cc2686e9"
72    },
73    "outputs": [],
74    "source": [
75     "import pygrib"
76    ]
77   }
78  ],
79  "metadata": {
80   "colab": {
81    "collapsed_sections": [],
82    "name": "wrfxpy-rtma-demo.ipynb",
83    "provenance": []
84   },
85   "kernelspec": {
86    "display_name": "Python 3",
87    "language": "python",
88    "name": "python3"
89   },
90   "language_info": {
91    "codemirror_mode": {
92     "name": "ipython",
93     "version": 3
94    },
95    "file_extension": ".py",
96    "mimetype": "text/x-python",
97    "name": "python",
98    "nbconvert_exporter": "python",
99    "pygments_lexer": "ipython3",
100    "version": "3.8.5"
101   }
102  },
103  "nbformat": 4,
104  "nbformat_minor": 1