Skip to content

Commit

Permalink
Historical viz
Browse files Browse the repository at this point in the history
  • Loading branch information
sebastienlanglois committed Feb 22, 2021
1 parent c064a4c commit 9ac902c
Showing 1 changed file with 15 additions and 5 deletions.
20 changes: 15 additions & 5 deletions Weather_viz_hist.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -1511,7 +1511,7 @@
},
{
"cell_type": "code",
"execution_count": 6,
"execution_count": null,
"metadata": {},
"outputs": [],
"source": [
Expand All @@ -1523,20 +1523,20 @@
},
{
"cell_type": "code",
"execution_count": 7,
"execution_count": null,
"metadata": {},
"outputs": [],
"source": [
"ds = ds1.sel(latitude=slice(50.0, 57.0), \n",
" longitude=slice(-71.0, -65.0),\n",
" longitude=slice(-75.0, -62.0),\n",
" time=slice('1950-01-01', '2020-12-31')) \\\n",
" .where(ds1['time.hour'].isin([12]), drop=True) \\\n",
" .where(ds1['time.month'].isin([2,3,4]), drop=True)[['pr_wtr','tmax']].load()"
]
},
{
"cell_type": "code",
"execution_count": 8,
"execution_count": null,
"metadata": {},
"outputs": [],
"source": [
Expand Down Expand Up @@ -1571,12 +1571,22 @@
"outputs": [],
"source": [
"ds_sp = ds_p.sel(latitude=slice(50.0, 57.0), \n",
" longitude=slice(-71.0, -65.0),\n",
" longitude=slice(-75.0, -62.0),\n",
" level=500,\n",
" time=slice('1950-01-01', '2020-12-31')) \\\n",
" .where(ds_pl['time.hour'].isin([12]), drop=True)['hgt'].load()"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": [
"ds_pl['air'] = ds_pl.air - 273.15\n",
"ds['tmax'] = ds.tmax - 273.15"
]
},
{
"cell_type": "code",
"execution_count": null,
Expand Down

0 comments on commit 9ac902c

Please sign in to comment.