From acfece2564b90f537f2f5656958a161765e99366 Mon Sep 17 00:00:00 2001 From: Daniel Scheffler Date: Fri, 10 Aug 2018 14:24:42 +0200 Subject: [PATCH] Updated cell output. --- examples/notebooks/features_and_usage.ipynb | 73 +++++++-------------- 1 file changed, 24 insertions(+), 49 deletions(-) diff --git a/examples/notebooks/features_and_usage.ipynb b/examples/notebooks/features_and_usage.ipynb index 74d9336..1ca02af 100644 --- a/examples/notebooks/features_and_usage.ipynb +++ b/examples/notebooks/features_and_usage.ipynb @@ -364,11 +364,11 @@ }, { "cell_type": "code", - "execution_count": 46, + "execution_count": 52, "metadata": { "ExecuteTime": { - "end_time": "2018-08-10T12:22:26.235336Z", - "start_time": "2018-08-10T12:22:26.097353Z" + "end_time": "2018-08-10T12:24:17.623654Z", + "start_time": "2018-08-10T12:24:17.484858Z" } }, "outputs": [ @@ -381,20 +381,12 @@ }, "metadata": {}, "output_type": "display_data" - }, - { - "name": "stdout", - "output_type": "stream", - "text": [ - "(50, 50, 2)\n" - ] } ], "source": [ "gA_subset = gA.get_subset(xslice=slice(0,50), yslice=slice(0,50), zslice=slice(0,2)) # return a subset GeoArray instance of the upper left corner (first 2 bands)\n", "\n", - "gA_subset.show()\n", - "print(gA_subset.shape)" + "gA_subset.show()" ] }, { @@ -431,11 +423,11 @@ }, { "cell_type": "code", - "execution_count": 47, + "execution_count": 51, "metadata": { "ExecuteTime": { - "end_time": "2018-08-10T12:22:29.703838Z", - "start_time": "2018-08-10T12:22:29.576567Z" + "end_time": "2018-08-10T12:24:12.992324Z", + "start_time": "2018-08-10T12:24:12.864738Z" } }, "outputs": [ @@ -448,13 +440,6 @@ }, "metadata": {}, "output_type": "display_data" - }, - { - "name": "stdout", - "output_type": "stream", - "text": [ - "(67, 34, 8)\n" - ] } ], "source": [ @@ -468,8 +453,7 @@ "\n", "gA_map_subset = GeoArray(nparr, geotransform=gt, projection=prj)\n", "\n", - "gA_map_subset.show()\n", - "print(gA_map_subset.shape)" + "gA_map_subset.show()" ] }, { @@ -506,11 +490,11 @@ }, { "cell_type": "code", - "execution_count": 40, + "execution_count": 50, "metadata": { "ExecuteTime": { - "end_time": "2018-08-10T10:27:50.252163Z", - "start_time": "2018-08-10T10:27:50.127376Z" + "end_time": "2018-08-10T12:24:03.555435Z", + "start_time": "2018-08-10T12:24:03.433553Z" } }, "outputs": [ @@ -520,21 +504,29 @@ "text": [ "Warping progress |==================================================| 100.0% Complete => 0:00:00\n" ] + }, + { + "name": "stdout", + "output_type": "stream", + "text": [ + "(70, 40, 8)\n" + ] } ], "source": [ "gA_map_subset.reproject_to_new_grid(tgt_prj=32631, # EPSG code of target projection (also takes WKT strings, etc.)\n", " tgt_xygrid=[[0,30], [30, 0]] # characteristics of target pixel grid (defines pixel origin and pixel size)\n", - " )" + " )\n", + "print(gA_map_subset.shape)" ] }, { "cell_type": "code", - "execution_count": 48, + "execution_count": 49, "metadata": { "ExecuteTime": { - "end_time": "2018-08-10T12:22:32.149485Z", - "start_time": "2018-08-10T12:22:32.032801Z" + "end_time": "2018-08-10T12:23:39.549324Z", + "start_time": "2018-08-10T12:23:39.433599Z" } }, "outputs": [ @@ -547,28 +539,11 @@ }, "metadata": {}, "output_type": "display_data" - }, - { - "name": "stdout", - "output_type": "stream", - "text": [ - "(67, 34, 8)\n" - ] } ], "source": [ - "gA_map_subset.show()\n", - "print(gA_map_subset.shape)" + "gA_map_subset.show()" ] - }, - { - "cell_type": "code", - "execution_count": null, - "metadata": { - "collapsed": true - }, - "outputs": [], - "source": [] } ], "metadata": { -- GitLab