{ "cells": [ { "cell_type": "code", "execution_count": 22, "metadata": {}, "outputs": [], "source": [ "import xarray as xr\n", "import os,glob\n", "import pandas as pd\n", "from pathlib import Path" ] }, { "cell_type": "code", "execution_count": 23, "metadata": {}, "outputs": [], "source": [ "FILES = 'FILE_PATH'\n", "MODEL = 'MODEL'\n", "VAR = 'VAR_NAME'\n", "NAME = 'filename'\n", "FRQ = 'FREQUENCY'\n", "RIPF = 'RIPF'\n", "RR = 'REALIZATION'\n", "II = 'INDEX'\n", "PP = 'PHYSICS'\n", "FF = 'FORCING'\n", "LABEL = 'LABEL'\n", "ID = 'ID'\n", "TS = 'TIME START'\n", "TE = 'TIME END'\n", "from os.path import expanduser\n", "def search_cmip6_hist(\n", " wildcard:str = '*',\n", " model:str = '*',\n", " label:str = '*',\n", "\n", ") -> pd.DataFrame:\n", " '''\n", " searchs the historical cmip6 folder at nird and returns a dataframe\n", " with the results\n", "\n", " Parameters\n", " ----------\n", " wildcard\n", " pattern for the file name\n", " model\n", " pattern or name for the model. default is *\n", " label\n", " pattern of name for the label: forcin, index, realization, etc\n", "\n", " Returns\n", " -------\n", " df: pd.DataFrame\n", " dataframe with the results from the search\n", "\n", " Example\n", " -------\n", " >>> search_cmip6_hist(wildcard='tas*')\n", "\n", " '''\n", " home_path = expanduser(\"~\")\n", " shared_path = 'shared-cmip6-for-ns1000k/historical'\n", "\n", "\n", " historical_path = os.path.join(home_path,shared_path,model,label,wildcard)\n", " files = glob.glob(historical_path)\n", "\n", "\n", " #ORDER = [MODEL,NAME,FILES,TS, TE, MON,RIPF,RR,II,PP,FF,LABEL,ID]\n", " ORDER = [MODEL,NAME,FRQ,FILES,TS, TE, RR,II,PP,FF,LABEL,ID]\n", " if len(files) is 0:\n", " return pd.DataFrame([],columns=ORDER)\n", "\n", " df = pd.DataFrame(files,columns=[FILES])\n", "\n", " df[MODEL] = df[FILES].apply(lambda f: Path(f).parents[1].name)\n", " df[NAME] = df[FILES].apply(lambda f: Path(f).name )\n", " df[FRQ] = df[NAME].str.extract('^.*?_[A-Z]*([a-z]*).*_')\n", " #df[RIPF] = df[NAME].str.contains('_r.+i.+p.+f.+_')\n", " #df[VAR] = df[NAME].str.extract('(\\d+)_-\\d+.nc')\n", " df[TS] = df[NAME].str.extract('_(\\d+)-\\d+.nc')\n", " df[TE] = df[NAME].str.extract('_\\d+-(\\d+).nc')\n", " df[RR] = df[NAME].str.extract('_r(.+?)i.+p.+f.+_').astype(int)\n", " df[II ] = df[NAME].str.extract('_r.+i(.+?)p.+f.+_').astype(int)\n", " df[PP ] = df[NAME].str.extract('_r.+i.+p(.+?)f.+_').astype(int)\n", " df[FF ] = df[NAME].str.extract('_r.+i.+p.+f(.+?)_').astype(int)\n", " df[LABEL ] = df[NAME].str.extract('_(r.+i.+p.+f.+?)_')\n", " df[ID] = df[MODEL]+df[LABEL]\n", "\n", " df = df[ORDER]\n", " return df" ] }, { "cell_type": "code", "execution_count": 24, "metadata": {}, "outputs": [], "source": [ "df = search_cmip6_hist(wildcard='tas*')" ] }, { "cell_type": "code", "execution_count": 33, "metadata": {}, "outputs": [ { "data": { "text/html": [ "
\n", "\n", "\n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", "
MODELfilenameFREQUENCYFILE_PATHTIME STARTTIME ENDREALIZATIONINDEXPHYSICSFORCINGLABELID
369SAM0-UNICONtasmin_day_SAM0-UNICON_historical_r1i1p1f1_gn_...day/home/28f6ea40-2d3059-2d4f6b-2d8429-2deb8e9564...19140101191412311111r1i1p1f1SAM0-UNICONr1i1p1f1
2114EC-Earth3-Vegtas_Amon_EC-Earth3-Veg_historical_r1i1p1f1_gr_...mon/home/28f6ea40-2d3059-2d4f6b-2d8429-2deb8e9564...1862011862121111r1i1p1f1EC-Earth3-Vegr1i1p1f1
676CanESM5tas_day_CanESM5_historical_r13i1p2f1_gn_185001...day/home/28f6ea40-2d3059-2d4f6b-2d8429-2deb8e9564...185001012014123113121r13i1p2f1CanESM5r13i1p2f1
2517FGOALS-g3tas_Amon_FGOALS-g3_historical_r1i1p1f1_gn_1930...mon/home/28f6ea40-2d3059-2d4f6b-2d8429-2deb8e9564...1930011939121111r1i1p1f1FGOALS-g3r1i1p1f1
2447FGOALS-g3tasmax_day_FGOALS-g3_historical_r1i1p1f1_gn_18...day/home/28f6ea40-2d3059-2d4f6b-2d8429-2deb8e9564...18560101185612311111r1i1p1f1FGOALS-g3r1i1p1f1
\n", "
" ], "text/plain": [ " MODEL filename \\\n", "369 SAM0-UNICON tasmin_day_SAM0-UNICON_historical_r1i1p1f1_gn_... \n", "2114 EC-Earth3-Veg tas_Amon_EC-Earth3-Veg_historical_r1i1p1f1_gr_... \n", "676 CanESM5 tas_day_CanESM5_historical_r13i1p2f1_gn_185001... \n", "2517 FGOALS-g3 tas_Amon_FGOALS-g3_historical_r1i1p1f1_gn_1930... \n", "2447 FGOALS-g3 tasmax_day_FGOALS-g3_historical_r1i1p1f1_gn_18... \n", "\n", " FREQUENCY FILE_PATH TIME START \\\n", "369 day /home/28f6ea40-2d3059-2d4f6b-2d8429-2deb8e9564... 19140101 \n", "2114 mon /home/28f6ea40-2d3059-2d4f6b-2d8429-2deb8e9564... 186201 \n", "676 day /home/28f6ea40-2d3059-2d4f6b-2d8429-2deb8e9564... 18500101 \n", "2517 mon /home/28f6ea40-2d3059-2d4f6b-2d8429-2deb8e9564... 193001 \n", "2447 day /home/28f6ea40-2d3059-2d4f6b-2d8429-2deb8e9564... 18560101 \n", "\n", " TIME END REALIZATION INDEX PHYSICS FORCING LABEL \\\n", "369 19141231 1 1 1 1 r1i1p1f1 \n", "2114 186212 1 1 1 1 r1i1p1f1 \n", "676 20141231 13 1 2 1 r13i1p2f1 \n", "2517 193912 1 1 1 1 r1i1p1f1 \n", "2447 18561231 1 1 1 1 r1i1p1f1 \n", "\n", " ID \n", "369 SAM0-UNICONr1i1p1f1 \n", "2114 EC-Earth3-Vegr1i1p1f1 \n", "676 CanESM5r13i1p2f1 \n", "2517 FGOALS-g3r1i1p1f1 \n", "2447 FGOALS-g3r1i1p1f1 " ] }, "execution_count": 33, "metadata": {}, "output_type": "execute_result" } ], "source": [ "#this shows all values\n", "#df\n", "\n", "#this shows only a random sample \n", "df.sample(5)" ] }, { "cell_type": "code", "execution_count": 26, "metadata": {}, "outputs": [ { "data": { "text/plain": [ "MODEL IPSL-CM6A-LR\n", "filename tasmin_Amon_IPSL-CM6A-LR_historical_r1i1p1f1_g...\n", "FREQUENCY mon\n", "FILE_PATH /home/28f6ea40-2d3059-2d4f6b-2d8429-2deb8e9564...\n", "TIME START 185001\n", "TIME END 201412\n", "REALIZATION 1\n", "INDEX 1\n", "PHYSICS 1\n", "FORCING 1\n", "LABEL r1i1p1f1\n", "ID IPSL-CM6A-LRr1i1p1f1\n", "Name: 3, dtype: object" ] }, "execution_count": 26, "metadata": {}, "output_type": "execute_result" } ], "source": [ "df.iloc[3]" ] }, { "cell_type": "code", "execution_count": 39, "metadata": {}, "outputs": [], "source": [ "#select row based on location\n", "_path = df.iloc[3]['FILE_PATH']\n", "#open dataset \n", "ds = xr.open_dataset(_path)" ] }, { "cell_type": "code", "execution_count": 42, "metadata": {}, "outputs": [], "source": [ "#include model in the search\n", "df = search_cmip6_hist(wildcard='tas*',model='IPSL-CM6A-LR')\n", "\n", "#include also label \n", "df = search_cmip6_hist(wildcard='tas*',model='IPSL-CM6A-LR',label='r5i1p1f1')" ] }, { "cell_type": "code", "execution_count": 43, "metadata": {}, "outputs": [ { "data": { "text/html": [ "
\n", "\n", "\n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", "
MODELfilenameFREQUENCYFILE_PATHTIME STARTTIME ENDREALIZATIONINDEXPHYSICSFORCINGLABELID
0IPSL-CM6A-LRtas_Amon_IPSL-CM6A-LR_historical_r5i1p1f1_gr_1...mon/home/28f6ea40-2d3059-2d4f6b-2d8429-2deb8e9564...1850012014125111r5i1p1f1IPSL-CM6A-LRr5i1p1f1
\n", "
" ], "text/plain": [ " MODEL filename FREQUENCY \\\n", "0 IPSL-CM6A-LR tas_Amon_IPSL-CM6A-LR_historical_r5i1p1f1_gr_1... mon \n", "\n", " FILE_PATH TIME START TIME END \\\n", "0 /home/28f6ea40-2d3059-2d4f6b-2d8429-2deb8e9564... 185001 201412 \n", "\n", " REALIZATION INDEX PHYSICS FORCING LABEL ID \n", "0 5 1 1 1 r5i1p1f1 IPSL-CM6A-LRr5i1p1f1 " ] }, "execution_count": 43, "metadata": {}, "output_type": "execute_result" } ], "source": [ "df" ] }, { "cell_type": "code", "execution_count": 47, "metadata": {}, "outputs": [ { "data": { "text/html": [ "
\n", "\n", "\n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", "
MODELfilenameFREQUENCYFILE_PATHTIME STARTTIME ENDREALIZATIONINDEXPHYSICSFORCINGLABELID
0IPSL-CM6A-LRtas_Amon_IPSL-CM6A-LR_historical_r2i1p1f1_gr_1...mon/home/28f6ea40-2d3059-2d4f6b-2d8429-2deb8e9564...1850012014122111r2i1p1f1IPSL-CM6A-LRr2i1p1f1
1IPSL-CM6A-LRtas_Amon_IPSL-CM6A-LR_historical_r5i1p1f1_gr_1...mon/home/28f6ea40-2d3059-2d4f6b-2d8429-2deb8e9564...1850012014125111r5i1p1f1IPSL-CM6A-LRr5i1p1f1
2IPSL-CM6A-LRtas_ImonGre_IPSL-CM6A-LR_historical_r1i1p1f1_g...mon/home/28f6ea40-2d3059-2d4f6b-2d8429-2deb8e9564...1850012014121111r1i1p1f1IPSL-CM6A-LRr1i1p1f1
3IPSL-CM6A-LRtasmin_Amon_IPSL-CM6A-LR_historical_r1i1p1f1_g...mon/home/28f6ea40-2d3059-2d4f6b-2d8429-2deb8e9564...1850012014121111r1i1p1f1IPSL-CM6A-LRr1i1p1f1
4IPSL-CM6A-LRtasmin_day_IPSL-CM6A-LR_r1i1p1f1_historical_IP...day/home/28f6ea40-2d3059-2d4f6b-2d8429-2deb8e9564...NaNNaN1111r1i1p1f1IPSL-CM6A-LRr1i1p1f1
5IPSL-CM6A-LRtasmin_day_IPSL-CM6A-LR_historical_r1i1p1f1_gr...day/home/28f6ea40-2d3059-2d4f6b-2d8429-2deb8e9564...18500101201412311111r1i1p1f1IPSL-CM6A-LRr1i1p1f1
6IPSL-CM6A-LRtas_day_IPSL-CM6A-LR_historical_r1i1p1f1_gr_18...day/home/28f6ea40-2d3059-2d4f6b-2d8429-2deb8e9564...18500101201412311111r1i1p1f1IPSL-CM6A-LRr1i1p1f1
7IPSL-CM6A-LRtas_ImonAnt_IPSL-CM6A-LR_historical_r1i1p1f1_g...mon/home/28f6ea40-2d3059-2d4f6b-2d8429-2deb8e9564...1850012014121111r1i1p1f1IPSL-CM6A-LRr1i1p1f1
8IPSL-CM6A-LRtasmax_Amon_IPSL-CM6A-LR_historical_r1i1p1f1_g...mon/home/28f6ea40-2d3059-2d4f6b-2d8429-2deb8e9564...1850012014121111r1i1p1f1IPSL-CM6A-LRr1i1p1f1
9IPSL-CM6A-LRtas_Amon_IPSL-CM6A-LR_historical_r1i1p1f1_gr_1...mon/home/28f6ea40-2d3059-2d4f6b-2d8429-2deb8e9564...1850012014121111r1i1p1f1IPSL-CM6A-LRr1i1p1f1
10IPSL-CM6A-LRtas_day_IPSL-CM6A-LR_r1i1p1f1_historical_IPSL-...day/home/28f6ea40-2d3059-2d4f6b-2d8429-2deb8e9564...NaNNaN1111r1i1p1f1IPSL-CM6A-LRr1i1p1f1
11IPSL-CM6A-LRtasmax_day_IPSL-CM6A-LR_historical_r1i1p1f1_gr...day/home/28f6ea40-2d3059-2d4f6b-2d8429-2deb8e9564...18500101201412311111r1i1p1f1IPSL-CM6A-LRr1i1p1f1
12IPSL-CM6A-LRtasmax_day_IPSL-CM6A-LR_r1i1p1f1_historical_IP...day/home/28f6ea40-2d3059-2d4f6b-2d8429-2deb8e9564...NaNNaN1111r1i1p1f1IPSL-CM6A-LRr1i1p1f1
13IPSL-CM6A-LRtas_Amon_IPSL-CM6A-LR_r1i1p1f1_historical_IPSL...mon/home/28f6ea40-2d3059-2d4f6b-2d8429-2deb8e9564...NaNNaN1111r1i1p1f1IPSL-CM6A-LRr1i1p1f1
14IPSL-CM6A-LRtas_Amon_IPSL-CM6A-LR_historical_r4i1p1f1_gr_1...mon/home/28f6ea40-2d3059-2d4f6b-2d8429-2deb8e9564...1850012014124111r4i1p1f1IPSL-CM6A-LRr4i1p1f1
15IPSL-CM6A-LRtas_Amon_IPSL-CM6A-LR_historical_r3i1p1f1_gr_1...mon/home/28f6ea40-2d3059-2d4f6b-2d8429-2deb8e9564...1850012014123111r3i1p1f1IPSL-CM6A-LRr3i1p1f1
16IPSL-CM6A-LRtas_Amon_IPSL-CM6A-LR_historical_r9i1p1f1_gr_1...mon/home/28f6ea40-2d3059-2d4f6b-2d8429-2deb8e9564...1850012014129111r9i1p1f1IPSL-CM6A-LRr9i1p1f1
17IPSL-CM6A-LRtas_Amon_IPSL-CM6A-LR_historical_r8i1p1f1_gr_1...mon/home/28f6ea40-2d3059-2d4f6b-2d8429-2deb8e9564...1850012014128111r8i1p1f1IPSL-CM6A-LRr8i1p1f1
18IPSL-CM6A-LRtas_Amon_IPSL-CM6A-LR_historical_r10i1p1f1_gr_...mon/home/28f6ea40-2d3059-2d4f6b-2d8429-2deb8e9564...18500120141210111r10i1p1f1IPSL-CM6A-LRr10i1p1f1
19IPSL-CM6A-LRtas_Amon_IPSL-CM6A-LR_historical_r7i1p1f1_gr_1...mon/home/28f6ea40-2d3059-2d4f6b-2d8429-2deb8e9564...1850012014127111r7i1p1f1IPSL-CM6A-LRr7i1p1f1
20IPSL-CM6A-LRtas_Amon_IPSL-CM6A-LR_historical_r6i1p1f1_gr_1...mon/home/28f6ea40-2d3059-2d4f6b-2d8429-2deb8e9564...1850012014126111r6i1p1f1IPSL-CM6A-LRr6i1p1f1
\n", "
" ], "text/plain": [ " MODEL filename FREQUENCY \\\n", "0 IPSL-CM6A-LR tas_Amon_IPSL-CM6A-LR_historical_r2i1p1f1_gr_1... mon \n", "1 IPSL-CM6A-LR tas_Amon_IPSL-CM6A-LR_historical_r5i1p1f1_gr_1... mon \n", "2 IPSL-CM6A-LR tas_ImonGre_IPSL-CM6A-LR_historical_r1i1p1f1_g... mon \n", "3 IPSL-CM6A-LR tasmin_Amon_IPSL-CM6A-LR_historical_r1i1p1f1_g... mon \n", "4 IPSL-CM6A-LR tasmin_day_IPSL-CM6A-LR_r1i1p1f1_historical_IP... day \n", "5 IPSL-CM6A-LR tasmin_day_IPSL-CM6A-LR_historical_r1i1p1f1_gr... day \n", "6 IPSL-CM6A-LR tas_day_IPSL-CM6A-LR_historical_r1i1p1f1_gr_18... day \n", "7 IPSL-CM6A-LR tas_ImonAnt_IPSL-CM6A-LR_historical_r1i1p1f1_g... mon \n", "8 IPSL-CM6A-LR tasmax_Amon_IPSL-CM6A-LR_historical_r1i1p1f1_g... mon \n", "9 IPSL-CM6A-LR tas_Amon_IPSL-CM6A-LR_historical_r1i1p1f1_gr_1... mon \n", "10 IPSL-CM6A-LR tas_day_IPSL-CM6A-LR_r1i1p1f1_historical_IPSL-... day \n", "11 IPSL-CM6A-LR tasmax_day_IPSL-CM6A-LR_historical_r1i1p1f1_gr... day \n", "12 IPSL-CM6A-LR tasmax_day_IPSL-CM6A-LR_r1i1p1f1_historical_IP... day \n", "13 IPSL-CM6A-LR tas_Amon_IPSL-CM6A-LR_r1i1p1f1_historical_IPSL... mon \n", "14 IPSL-CM6A-LR tas_Amon_IPSL-CM6A-LR_historical_r4i1p1f1_gr_1... mon \n", "15 IPSL-CM6A-LR tas_Amon_IPSL-CM6A-LR_historical_r3i1p1f1_gr_1... mon \n", "16 IPSL-CM6A-LR tas_Amon_IPSL-CM6A-LR_historical_r9i1p1f1_gr_1... mon \n", "17 IPSL-CM6A-LR tas_Amon_IPSL-CM6A-LR_historical_r8i1p1f1_gr_1... mon \n", "18 IPSL-CM6A-LR tas_Amon_IPSL-CM6A-LR_historical_r10i1p1f1_gr_... mon \n", "19 IPSL-CM6A-LR tas_Amon_IPSL-CM6A-LR_historical_r7i1p1f1_gr_1... mon \n", "20 IPSL-CM6A-LR tas_Amon_IPSL-CM6A-LR_historical_r6i1p1f1_gr_1... mon \n", "\n", " FILE_PATH TIME START TIME END \\\n", "0 /home/28f6ea40-2d3059-2d4f6b-2d8429-2deb8e9564... 185001 201412 \n", "1 /home/28f6ea40-2d3059-2d4f6b-2d8429-2deb8e9564... 185001 201412 \n", "2 /home/28f6ea40-2d3059-2d4f6b-2d8429-2deb8e9564... 185001 201412 \n", "3 /home/28f6ea40-2d3059-2d4f6b-2d8429-2deb8e9564... 185001 201412 \n", "4 /home/28f6ea40-2d3059-2d4f6b-2d8429-2deb8e9564... NaN NaN \n", "5 /home/28f6ea40-2d3059-2d4f6b-2d8429-2deb8e9564... 18500101 20141231 \n", "6 /home/28f6ea40-2d3059-2d4f6b-2d8429-2deb8e9564... 18500101 20141231 \n", "7 /home/28f6ea40-2d3059-2d4f6b-2d8429-2deb8e9564... 185001 201412 \n", "8 /home/28f6ea40-2d3059-2d4f6b-2d8429-2deb8e9564... 185001 201412 \n", "9 /home/28f6ea40-2d3059-2d4f6b-2d8429-2deb8e9564... 185001 201412 \n", "10 /home/28f6ea40-2d3059-2d4f6b-2d8429-2deb8e9564... NaN NaN \n", "11 /home/28f6ea40-2d3059-2d4f6b-2d8429-2deb8e9564... 18500101 20141231 \n", "12 /home/28f6ea40-2d3059-2d4f6b-2d8429-2deb8e9564... NaN NaN \n", "13 /home/28f6ea40-2d3059-2d4f6b-2d8429-2deb8e9564... NaN NaN \n", "14 /home/28f6ea40-2d3059-2d4f6b-2d8429-2deb8e9564... 185001 201412 \n", "15 /home/28f6ea40-2d3059-2d4f6b-2d8429-2deb8e9564... 185001 201412 \n", "16 /home/28f6ea40-2d3059-2d4f6b-2d8429-2deb8e9564... 185001 201412 \n", "17 /home/28f6ea40-2d3059-2d4f6b-2d8429-2deb8e9564... 185001 201412 \n", "18 /home/28f6ea40-2d3059-2d4f6b-2d8429-2deb8e9564... 185001 201412 \n", "19 /home/28f6ea40-2d3059-2d4f6b-2d8429-2deb8e9564... 185001 201412 \n", "20 /home/28f6ea40-2d3059-2d4f6b-2d8429-2deb8e9564... 185001 201412 \n", "\n", " REALIZATION INDEX PHYSICS FORCING LABEL ID \n", "0 2 1 1 1 r2i1p1f1 IPSL-CM6A-LRr2i1p1f1 \n", "1 5 1 1 1 r5i1p1f1 IPSL-CM6A-LRr5i1p1f1 \n", "2 1 1 1 1 r1i1p1f1 IPSL-CM6A-LRr1i1p1f1 \n", "3 1 1 1 1 r1i1p1f1 IPSL-CM6A-LRr1i1p1f1 \n", "4 1 1 1 1 r1i1p1f1 IPSL-CM6A-LRr1i1p1f1 \n", "5 1 1 1 1 r1i1p1f1 IPSL-CM6A-LRr1i1p1f1 \n", "6 1 1 1 1 r1i1p1f1 IPSL-CM6A-LRr1i1p1f1 \n", "7 1 1 1 1 r1i1p1f1 IPSL-CM6A-LRr1i1p1f1 \n", "8 1 1 1 1 r1i1p1f1 IPSL-CM6A-LRr1i1p1f1 \n", "9 1 1 1 1 r1i1p1f1 IPSL-CM6A-LRr1i1p1f1 \n", "10 1 1 1 1 r1i1p1f1 IPSL-CM6A-LRr1i1p1f1 \n", "11 1 1 1 1 r1i1p1f1 IPSL-CM6A-LRr1i1p1f1 \n", "12 1 1 1 1 r1i1p1f1 IPSL-CM6A-LRr1i1p1f1 \n", "13 1 1 1 1 r1i1p1f1 IPSL-CM6A-LRr1i1p1f1 \n", "14 4 1 1 1 r4i1p1f1 IPSL-CM6A-LRr4i1p1f1 \n", "15 3 1 1 1 r3i1p1f1 IPSL-CM6A-LRr3i1p1f1 \n", "16 9 1 1 1 r9i1p1f1 IPSL-CM6A-LRr9i1p1f1 \n", "17 8 1 1 1 r8i1p1f1 IPSL-CM6A-LRr8i1p1f1 \n", "18 10 1 1 1 r10i1p1f1 IPSL-CM6A-LRr10i1p1f1 \n", "19 7 1 1 1 r7i1p1f1 IPSL-CM6A-LRr7i1p1f1 \n", "20 6 1 1 1 r6i1p1f1 IPSL-CM6A-LRr6i1p1f1 " ] }, "execution_count": 47, "metadata": {}, "output_type": "execute_result" } ], "source": [ "#use star in model and/or lable\n", "df = search_cmip6_hist(wildcard='tas*',model='IPSL-CM6*',label='r*i1p1f1')\n", "df" ] }, { "cell_type": "code", "execution_count": null, "metadata": {}, "outputs": [], "source": [] } ], "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.3" } }, "nbformat": 4, "nbformat_minor": 4 }