{ "cells": [ { "cell_type": "markdown", "metadata": {}, "source": [ "
\n", "Patrick BROCKMANN - LSCE (Climate and Environment Sciences Laboratory)
\n", "

\n", "
" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "Updated: 2019/11/13" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "# Monitoring" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "#### Load the ferret extension" ] }, { "cell_type": "code", "execution_count": 1, "metadata": {}, "outputs": [], "source": [ "%load_ext ferretmagic" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "#### Build a list of files to open" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "##### Get from http://vesg.ipsl.upmc.fr/thredds/catalog/work/p86caub/IPSLCM5A-MR/PROD/historicalGHGNOLU/catalog.html" ] }, { "cell_type": "code", "execution_count": 3, "metadata": {}, "outputs": [ { "name": "stdout", "output_type": "stream", "text": [ "3\n" ] } ], "source": [ "listfiles = (\n", "\"http://vesg.ipsl.upmc.fr/thredds/dodsC/work/p86caub/IPSLCM6/PROD/historical/CM61-LR-hist-03.1950-REDO-1850/MONITORING/files/ATM_precip_global_ave.nc\",\n", "\"http://vesg.ipsl.upmc.fr/thredds/dodsC/work/p86caub/IPSLCM6/PROD/historical/CM61-LR-hist-03.1950-REDO-1900/MONITORING/files/ATM_precip_global_ave.nc\",\n", "\"http://vesg.ipsl.upmc.fr/thredds/dodsC/work/p86caub/IPSLCM6/PROD/historical/CM61-LR-hist-03.1950-REDO-1950/MONITORING/files/ATM_precip_global_ave.nc\",\n", ")\n", "print(len(listfiles))" ] }, { "cell_type": "code", "execution_count": 5, "metadata": {}, "outputs": [ { "name": "stdout", "output_type": "stream", "text": [ "http://vesg.ipsl.upmc.fr/thredds/dodsC/work/p86caub/IPSLCM6/PROD/historical/CM61-LR-hist-03.1950-REDO-1850/MONITORING/files/ATM_precip_global_ave.nc\n", "http://vesg.ipsl.upmc.fr/thredds/dodsC/work/p86caub/IPSLCM6/PROD/historical/CM61-LR-hist-03.1950-REDO-1900/MONITORING/files/ATM_precip_global_ave.nc\n", "http://vesg.ipsl.upmc.fr/thredds/dodsC/work/p86caub/IPSLCM6/PROD/historical/CM61-LR-hist-03.1950-REDO-1950/MONITORING/files/ATM_precip_global_ave.nc\n" ] } ], "source": [ "for f in listfiles:\n", " print(f)\n", " %ferret_run 'use \"%s\"' % f" ] }, { "cell_type": "code", "execution_count": 6, "metadata": {}, "outputs": [ { "data": { "text/html": [ "
     currently SET data sets:\n",
       "    1> http://vesg.ipsl.upmc.fr/thredds/dodsC/work/p86caub/IPSLCM6/PROD/historical/CM61-LR-hist-03.1950-REDO-1850/MONITORING/files/ATM_precip_global_ave.nc\n",
       " name     title                             I         J         K         L\n",
       " PRECIP_GLOBAL\n",
       "                                           ...       ...       ...       1:600\n",
       " \n",
       "    2> http://vesg.ipsl.upmc.fr/thredds/dodsC/work/p86caub/IPSLCM6/PROD/historical/CM61-LR-hist-03.1950-REDO-1900/MONITORING/files/ATM_precip_global_ave.nc\n",
       " name     title                             I         J         K         L\n",
       " PRECIP_GLOBAL\n",
       "                                           ...       ...       ...       1:600\n",
       " \n",
       "    3> http://vesg.ipsl.upmc.fr/thredds/dodsC/work/p86caub/IPSLCM6/PROD/historical/CM61-LR-hist-03.1950-REDO-1950/MONITORING/files/ATM_precip_global_ave.nc  (default)\n",
       " name     title                             I         J         K         L\n",
       " PRECIP_GLOBAL\n",
       "                                           ...       ...       ...       1:600\n",
       " \n",
       "
" ] }, "metadata": {}, "output_type": "display_data" } ], "source": [ "%%ferret\n", "show data" ] }, { "cell_type": "code", "execution_count": 9, "metadata": {}, "outputs": [ { "data": { "text/html": [ "
" ] }, "metadata": {}, "output_type": "display_data" } ], "source": [ "%%ferret -s 800,400\n", "\n", "cancel mode logo\n", "set text/font=arial\n", "\n", "ppl color 2, 0, 50, 100, 50\n", "ppl color 3, 100, 50, 0, 50\n", "ppl color 4, 80, 0, 80, 50\n", "ppl color 6, 70, 70, 70\n", "\n", "let/title=\"GHGNOLUMR1\" var1 = PRECIP_GLOBAL[l=@sbx:120,d=1]\n", "let/title=\"GHGNOLUMR2\" var2 = PRECIP_GLOBAL[l=@sbx:120,d=2]\n", "let/title=\"GHGNOLUMR3\" var3 = PRECIP_GLOBAL[l=@sbx:120,d=3]\n", "\n", "plot/color/thick=3/grat=(dash,color=6)/key=title var1, var2, var3" ] } ], "metadata": { "anaconda-cloud": {}, "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.3" } }, "nbformat": 4, "nbformat_minor": 1 }