{
"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",
" MODEL | \n",
" filename | \n",
" FREQUENCY | \n",
" FILE_PATH | \n",
" TIME START | \n",
" TIME END | \n",
" REALIZATION | \n",
" INDEX | \n",
" PHYSICS | \n",
" FORCING | \n",
" LABEL | \n",
" ID | \n",
"
\n",
" \n",
" \n",
" \n",
" 369 | \n",
" SAM0-UNICON | \n",
" tasmin_day_SAM0-UNICON_historical_r1i1p1f1_gn_... | \n",
" day | \n",
" /home/28f6ea40-2d3059-2d4f6b-2d8429-2deb8e9564... | \n",
" 19140101 | \n",
" 19141231 | \n",
" 1 | \n",
" 1 | \n",
" 1 | \n",
" 1 | \n",
" r1i1p1f1 | \n",
" SAM0-UNICONr1i1p1f1 | \n",
"
\n",
" \n",
" 2114 | \n",
" EC-Earth3-Veg | \n",
" tas_Amon_EC-Earth3-Veg_historical_r1i1p1f1_gr_... | \n",
" mon | \n",
" /home/28f6ea40-2d3059-2d4f6b-2d8429-2deb8e9564... | \n",
" 186201 | \n",
" 186212 | \n",
" 1 | \n",
" 1 | \n",
" 1 | \n",
" 1 | \n",
" r1i1p1f1 | \n",
" EC-Earth3-Vegr1i1p1f1 | \n",
"
\n",
" \n",
" 676 | \n",
" CanESM5 | \n",
" tas_day_CanESM5_historical_r13i1p2f1_gn_185001... | \n",
" day | \n",
" /home/28f6ea40-2d3059-2d4f6b-2d8429-2deb8e9564... | \n",
" 18500101 | \n",
" 20141231 | \n",
" 13 | \n",
" 1 | \n",
" 2 | \n",
" 1 | \n",
" r13i1p2f1 | \n",
" CanESM5r13i1p2f1 | \n",
"
\n",
" \n",
" 2517 | \n",
" FGOALS-g3 | \n",
" tas_Amon_FGOALS-g3_historical_r1i1p1f1_gn_1930... | \n",
" mon | \n",
" /home/28f6ea40-2d3059-2d4f6b-2d8429-2deb8e9564... | \n",
" 193001 | \n",
" 193912 | \n",
" 1 | \n",
" 1 | \n",
" 1 | \n",
" 1 | \n",
" r1i1p1f1 | \n",
" FGOALS-g3r1i1p1f1 | \n",
"
\n",
" \n",
" 2447 | \n",
" FGOALS-g3 | \n",
" tasmax_day_FGOALS-g3_historical_r1i1p1f1_gn_18... | \n",
" day | \n",
" /home/28f6ea40-2d3059-2d4f6b-2d8429-2deb8e9564... | \n",
" 18560101 | \n",
" 18561231 | \n",
" 1 | \n",
" 1 | \n",
" 1 | \n",
" 1 | \n",
" r1i1p1f1 | \n",
" FGOALS-g3r1i1p1f1 | \n",
"
\n",
" \n",
"
\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",
" MODEL | \n",
" filename | \n",
" FREQUENCY | \n",
" FILE_PATH | \n",
" TIME START | \n",
" TIME END | \n",
" REALIZATION | \n",
" INDEX | \n",
" PHYSICS | \n",
" FORCING | \n",
" LABEL | \n",
" ID | \n",
"
\n",
" \n",
" \n",
" \n",
" 0 | \n",
" IPSL-CM6A-LR | \n",
" tas_Amon_IPSL-CM6A-LR_historical_r5i1p1f1_gr_1... | \n",
" mon | \n",
" /home/28f6ea40-2d3059-2d4f6b-2d8429-2deb8e9564... | \n",
" 185001 | \n",
" 201412 | \n",
" 5 | \n",
" 1 | \n",
" 1 | \n",
" 1 | \n",
" r5i1p1f1 | \n",
" IPSL-CM6A-LRr5i1p1f1 | \n",
"
\n",
" \n",
"
\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",
" MODEL | \n",
" filename | \n",
" FREQUENCY | \n",
" FILE_PATH | \n",
" TIME START | \n",
" TIME END | \n",
" REALIZATION | \n",
" INDEX | \n",
" PHYSICS | \n",
" FORCING | \n",
" LABEL | \n",
" ID | \n",
"
\n",
" \n",
" \n",
" \n",
" 0 | \n",
" IPSL-CM6A-LR | \n",
" tas_Amon_IPSL-CM6A-LR_historical_r2i1p1f1_gr_1... | \n",
" mon | \n",
" /home/28f6ea40-2d3059-2d4f6b-2d8429-2deb8e9564... | \n",
" 185001 | \n",
" 201412 | \n",
" 2 | \n",
" 1 | \n",
" 1 | \n",
" 1 | \n",
" r2i1p1f1 | \n",
" IPSL-CM6A-LRr2i1p1f1 | \n",
"
\n",
" \n",
" 1 | \n",
" IPSL-CM6A-LR | \n",
" tas_Amon_IPSL-CM6A-LR_historical_r5i1p1f1_gr_1... | \n",
" mon | \n",
" /home/28f6ea40-2d3059-2d4f6b-2d8429-2deb8e9564... | \n",
" 185001 | \n",
" 201412 | \n",
" 5 | \n",
" 1 | \n",
" 1 | \n",
" 1 | \n",
" r5i1p1f1 | \n",
" IPSL-CM6A-LRr5i1p1f1 | \n",
"
\n",
" \n",
" 2 | \n",
" IPSL-CM6A-LR | \n",
" tas_ImonGre_IPSL-CM6A-LR_historical_r1i1p1f1_g... | \n",
" mon | \n",
" /home/28f6ea40-2d3059-2d4f6b-2d8429-2deb8e9564... | \n",
" 185001 | \n",
" 201412 | \n",
" 1 | \n",
" 1 | \n",
" 1 | \n",
" 1 | \n",
" r1i1p1f1 | \n",
" IPSL-CM6A-LRr1i1p1f1 | \n",
"
\n",
" \n",
" 3 | \n",
" IPSL-CM6A-LR | \n",
" tasmin_Amon_IPSL-CM6A-LR_historical_r1i1p1f1_g... | \n",
" mon | \n",
" /home/28f6ea40-2d3059-2d4f6b-2d8429-2deb8e9564... | \n",
" 185001 | \n",
" 201412 | \n",
" 1 | \n",
" 1 | \n",
" 1 | \n",
" 1 | \n",
" r1i1p1f1 | \n",
" IPSL-CM6A-LRr1i1p1f1 | \n",
"
\n",
" \n",
" 4 | \n",
" IPSL-CM6A-LR | \n",
" tasmin_day_IPSL-CM6A-LR_r1i1p1f1_historical_IP... | \n",
" day | \n",
" /home/28f6ea40-2d3059-2d4f6b-2d8429-2deb8e9564... | \n",
" NaN | \n",
" NaN | \n",
" 1 | \n",
" 1 | \n",
" 1 | \n",
" 1 | \n",
" r1i1p1f1 | \n",
" IPSL-CM6A-LRr1i1p1f1 | \n",
"
\n",
" \n",
" 5 | \n",
" IPSL-CM6A-LR | \n",
" tasmin_day_IPSL-CM6A-LR_historical_r1i1p1f1_gr... | \n",
" day | \n",
" /home/28f6ea40-2d3059-2d4f6b-2d8429-2deb8e9564... | \n",
" 18500101 | \n",
" 20141231 | \n",
" 1 | \n",
" 1 | \n",
" 1 | \n",
" 1 | \n",
" r1i1p1f1 | \n",
" IPSL-CM6A-LRr1i1p1f1 | \n",
"
\n",
" \n",
" 6 | \n",
" IPSL-CM6A-LR | \n",
" tas_day_IPSL-CM6A-LR_historical_r1i1p1f1_gr_18... | \n",
" day | \n",
" /home/28f6ea40-2d3059-2d4f6b-2d8429-2deb8e9564... | \n",
" 18500101 | \n",
" 20141231 | \n",
" 1 | \n",
" 1 | \n",
" 1 | \n",
" 1 | \n",
" r1i1p1f1 | \n",
" IPSL-CM6A-LRr1i1p1f1 | \n",
"
\n",
" \n",
" 7 | \n",
" IPSL-CM6A-LR | \n",
" tas_ImonAnt_IPSL-CM6A-LR_historical_r1i1p1f1_g... | \n",
" mon | \n",
" /home/28f6ea40-2d3059-2d4f6b-2d8429-2deb8e9564... | \n",
" 185001 | \n",
" 201412 | \n",
" 1 | \n",
" 1 | \n",
" 1 | \n",
" 1 | \n",
" r1i1p1f1 | \n",
" IPSL-CM6A-LRr1i1p1f1 | \n",
"
\n",
" \n",
" 8 | \n",
" IPSL-CM6A-LR | \n",
" tasmax_Amon_IPSL-CM6A-LR_historical_r1i1p1f1_g... | \n",
" mon | \n",
" /home/28f6ea40-2d3059-2d4f6b-2d8429-2deb8e9564... | \n",
" 185001 | \n",
" 201412 | \n",
" 1 | \n",
" 1 | \n",
" 1 | \n",
" 1 | \n",
" r1i1p1f1 | \n",
" IPSL-CM6A-LRr1i1p1f1 | \n",
"
\n",
" \n",
" 9 | \n",
" IPSL-CM6A-LR | \n",
" tas_Amon_IPSL-CM6A-LR_historical_r1i1p1f1_gr_1... | \n",
" mon | \n",
" /home/28f6ea40-2d3059-2d4f6b-2d8429-2deb8e9564... | \n",
" 185001 | \n",
" 201412 | \n",
" 1 | \n",
" 1 | \n",
" 1 | \n",
" 1 | \n",
" r1i1p1f1 | \n",
" IPSL-CM6A-LRr1i1p1f1 | \n",
"
\n",
" \n",
" 10 | \n",
" IPSL-CM6A-LR | \n",
" tas_day_IPSL-CM6A-LR_r1i1p1f1_historical_IPSL-... | \n",
" day | \n",
" /home/28f6ea40-2d3059-2d4f6b-2d8429-2deb8e9564... | \n",
" NaN | \n",
" NaN | \n",
" 1 | \n",
" 1 | \n",
" 1 | \n",
" 1 | \n",
" r1i1p1f1 | \n",
" IPSL-CM6A-LRr1i1p1f1 | \n",
"
\n",
" \n",
" 11 | \n",
" IPSL-CM6A-LR | \n",
" tasmax_day_IPSL-CM6A-LR_historical_r1i1p1f1_gr... | \n",
" day | \n",
" /home/28f6ea40-2d3059-2d4f6b-2d8429-2deb8e9564... | \n",
" 18500101 | \n",
" 20141231 | \n",
" 1 | \n",
" 1 | \n",
" 1 | \n",
" 1 | \n",
" r1i1p1f1 | \n",
" IPSL-CM6A-LRr1i1p1f1 | \n",
"
\n",
" \n",
" 12 | \n",
" IPSL-CM6A-LR | \n",
" tasmax_day_IPSL-CM6A-LR_r1i1p1f1_historical_IP... | \n",
" day | \n",
" /home/28f6ea40-2d3059-2d4f6b-2d8429-2deb8e9564... | \n",
" NaN | \n",
" NaN | \n",
" 1 | \n",
" 1 | \n",
" 1 | \n",
" 1 | \n",
" r1i1p1f1 | \n",
" IPSL-CM6A-LRr1i1p1f1 | \n",
"
\n",
" \n",
" 13 | \n",
" IPSL-CM6A-LR | \n",
" tas_Amon_IPSL-CM6A-LR_r1i1p1f1_historical_IPSL... | \n",
" mon | \n",
" /home/28f6ea40-2d3059-2d4f6b-2d8429-2deb8e9564... | \n",
" NaN | \n",
" NaN | \n",
" 1 | \n",
" 1 | \n",
" 1 | \n",
" 1 | \n",
" r1i1p1f1 | \n",
" IPSL-CM6A-LRr1i1p1f1 | \n",
"
\n",
" \n",
" 14 | \n",
" IPSL-CM6A-LR | \n",
" tas_Amon_IPSL-CM6A-LR_historical_r4i1p1f1_gr_1... | \n",
" mon | \n",
" /home/28f6ea40-2d3059-2d4f6b-2d8429-2deb8e9564... | \n",
" 185001 | \n",
" 201412 | \n",
" 4 | \n",
" 1 | \n",
" 1 | \n",
" 1 | \n",
" r4i1p1f1 | \n",
" IPSL-CM6A-LRr4i1p1f1 | \n",
"
\n",
" \n",
" 15 | \n",
" IPSL-CM6A-LR | \n",
" tas_Amon_IPSL-CM6A-LR_historical_r3i1p1f1_gr_1... | \n",
" mon | \n",
" /home/28f6ea40-2d3059-2d4f6b-2d8429-2deb8e9564... | \n",
" 185001 | \n",
" 201412 | \n",
" 3 | \n",
" 1 | \n",
" 1 | \n",
" 1 | \n",
" r3i1p1f1 | \n",
" IPSL-CM6A-LRr3i1p1f1 | \n",
"
\n",
" \n",
" 16 | \n",
" IPSL-CM6A-LR | \n",
" tas_Amon_IPSL-CM6A-LR_historical_r9i1p1f1_gr_1... | \n",
" mon | \n",
" /home/28f6ea40-2d3059-2d4f6b-2d8429-2deb8e9564... | \n",
" 185001 | \n",
" 201412 | \n",
" 9 | \n",
" 1 | \n",
" 1 | \n",
" 1 | \n",
" r9i1p1f1 | \n",
" IPSL-CM6A-LRr9i1p1f1 | \n",
"
\n",
" \n",
" 17 | \n",
" IPSL-CM6A-LR | \n",
" tas_Amon_IPSL-CM6A-LR_historical_r8i1p1f1_gr_1... | \n",
" mon | \n",
" /home/28f6ea40-2d3059-2d4f6b-2d8429-2deb8e9564... | \n",
" 185001 | \n",
" 201412 | \n",
" 8 | \n",
" 1 | \n",
" 1 | \n",
" 1 | \n",
" r8i1p1f1 | \n",
" IPSL-CM6A-LRr8i1p1f1 | \n",
"
\n",
" \n",
" 18 | \n",
" IPSL-CM6A-LR | \n",
" tas_Amon_IPSL-CM6A-LR_historical_r10i1p1f1_gr_... | \n",
" mon | \n",
" /home/28f6ea40-2d3059-2d4f6b-2d8429-2deb8e9564... | \n",
" 185001 | \n",
" 201412 | \n",
" 10 | \n",
" 1 | \n",
" 1 | \n",
" 1 | \n",
" r10i1p1f1 | \n",
" IPSL-CM6A-LRr10i1p1f1 | \n",
"
\n",
" \n",
" 19 | \n",
" IPSL-CM6A-LR | \n",
" tas_Amon_IPSL-CM6A-LR_historical_r7i1p1f1_gr_1... | \n",
" mon | \n",
" /home/28f6ea40-2d3059-2d4f6b-2d8429-2deb8e9564... | \n",
" 185001 | \n",
" 201412 | \n",
" 7 | \n",
" 1 | \n",
" 1 | \n",
" 1 | \n",
" r7i1p1f1 | \n",
" IPSL-CM6A-LRr7i1p1f1 | \n",
"
\n",
" \n",
" 20 | \n",
" IPSL-CM6A-LR | \n",
" tas_Amon_IPSL-CM6A-LR_historical_r6i1p1f1_gr_1... | \n",
" mon | \n",
" /home/28f6ea40-2d3059-2d4f6b-2d8429-2deb8e9564... | \n",
" 185001 | \n",
" 201412 | \n",
" 6 | \n",
" 1 | \n",
" 1 | \n",
" 1 | \n",
" r6i1p1f1 | \n",
" IPSL-CM6A-LRr6i1p1f1 | \n",
"
\n",
" \n",
"
\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
}