Skip to content

Commit

Permalink
- Remove unused code and packages
Browse files Browse the repository at this point in the history
  • Loading branch information
observingClouds committed Apr 8, 2020
1 parent 08e31de commit ff11f75
Showing 1 changed file with 2 additions and 30 deletions.
32 changes: 2 additions & 30 deletions notebooks/create_overview_figures.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -32,15 +32,12 @@
"outputs": [],
"source": [
"import sys\n",
"# Path to pycloud folder (https://github.com/raspstephan/sugar-flower-fish-or-gravel/tree/master/pyclouds)\n",
"sys.path.append(\"/Users/haukeschulz/Documents/PhD/Work/Own/AI_CloudClassification/CloudClassificationDay/cloud-classification/\")\n",
"\n",
"sys.path.append(\"../helpers/\")"
]
},
{
"cell_type": "code",
"execution_count": 15,
"execution_count": 11,
"metadata": {},
"outputs": [],
"source": [
Expand All @@ -58,7 +55,6 @@
"import dask.array as da\n",
"import xarray as xr\n",
"import zarr\n",
"from pyclouds import *\n",
"from helpers import *"
]
},
Expand All @@ -77,15 +73,6 @@
"savefig = False # True: loop through all images and save heatmap, otherwise show first day inline"
]
},
{
"cell_type": "code",
"execution_count": 5,
"metadata": {},
"outputs": [],
"source": [
"# pattern_dic_inv = {0: 'Sugar', 1: 'Flower', 2: 'Fish', 3: 'Gravel'}"
]
},
{
"cell_type": "markdown",
"metadata": {},
Expand Down Expand Up @@ -130,18 +117,6 @@
"da_arr = ds_l2.mask"
]
},
{
"cell_type": "code",
"execution_count": 9,
"metadata": {},
"outputs": [],
"source": [
"# # Connect level1 data and level2 data (level2 only contains masks and no additional information)\n",
"# classification_id_idx_dict = {}\n",
"# for c, (clas_id, df) in enumerate(df_l1.groupby('classification_id')):\n",
"# classification_id_idx_dict[clas_id] = c"
]
},
{
"cell_type": "markdown",
"metadata": {},
Expand All @@ -159,7 +134,7 @@
},
{
"cell_type": "code",
"execution_count": 16,
"execution_count": 12,
"metadata": {},
"outputs": [
{
Expand Down Expand Up @@ -285,8 +260,6 @@
"instrument = 'MODIS'\n",
"\n",
"for d, (date, date_df) in enumerate(df_l1.groupby(df_l1['date'].dt.date)):\n",
"# if date != dt.datetime(2020,2,7).date(): continue\n",
" \n",
" date_arr = np.zeros((len(np.unique(date_df.user_name)),\n",
" da_arr.shape[1],\n",
" da_arr.shape[2],\n",
Expand Down Expand Up @@ -414,7 +387,6 @@
" fig, ax = plt.subplots(1,6,figsize=(15,2), dpi=150, gridspec_kw={'width_ratios':[1,1,1,1,1,0.1]})\n",
"# plt.suptitle(date,y=1.1)\n",
"\n",
"\n",
" norm = Normalize(vmin = 0, vmax = len(np.unique(date_df_sel.user_name)), clip = False)\n",
" for p in range(1,5):\n",
" m = Basemap(ax=ax.flat[p], projection='merc',llcrnrlat=5,urcrnrlat=20,\\\n",
Expand Down

0 comments on commit ff11f75

Please sign in to comment.