Commit acfece25 authored by Daniel Scheffler's avatar Daniel Scheffler

Updated cell output.

parent 46338d81
Pipeline #3109 passed with stages
in 1 minute and 24 seconds
...@@ -364,11 +364,11 @@ ...@@ -364,11 +364,11 @@
}, },
{ {
"cell_type": "code", "cell_type": "code",
"execution_count": 46, "execution_count": 52,
"metadata": { "metadata": {
"ExecuteTime": { "ExecuteTime": {
"end_time": "2018-08-10T12:22:26.235336Z", "end_time": "2018-08-10T12:24:17.623654Z",
"start_time": "2018-08-10T12:22:26.097353Z" "start_time": "2018-08-10T12:24:17.484858Z"
} }
}, },
"outputs": [ "outputs": [
...@@ -381,20 +381,12 @@ ...@@ -381,20 +381,12 @@
}, },
"metadata": {}, "metadata": {},
"output_type": "display_data" "output_type": "display_data"
},
{
"name": "stdout",
"output_type": "stream",
"text": [
"(50, 50, 2)\n"
]
} }
], ],
"source": [ "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", "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", "\n",
"gA_subset.show()\n", "gA_subset.show()"
"print(gA_subset.shape)"
] ]
}, },
{ {
...@@ -431,11 +423,11 @@ ...@@ -431,11 +423,11 @@
}, },
{ {
"cell_type": "code", "cell_type": "code",
"execution_count": 47, "execution_count": 51,
"metadata": { "metadata": {
"ExecuteTime": { "ExecuteTime": {
"end_time": "2018-08-10T12:22:29.703838Z", "end_time": "2018-08-10T12:24:12.992324Z",
"start_time": "2018-08-10T12:22:29.576567Z" "start_time": "2018-08-10T12:24:12.864738Z"
} }
}, },
"outputs": [ "outputs": [
...@@ -448,13 +440,6 @@ ...@@ -448,13 +440,6 @@
}, },
"metadata": {}, "metadata": {},
"output_type": "display_data" "output_type": "display_data"
},
{
"name": "stdout",
"output_type": "stream",
"text": [
"(67, 34, 8)\n"
]
} }
], ],
"source": [ "source": [
...@@ -468,8 +453,7 @@ ...@@ -468,8 +453,7 @@
"\n", "\n",
"gA_map_subset = GeoArray(nparr, geotransform=gt, projection=prj)\n", "gA_map_subset = GeoArray(nparr, geotransform=gt, projection=prj)\n",
"\n", "\n",
"gA_map_subset.show()\n", "gA_map_subset.show()"
"print(gA_map_subset.shape)"
] ]
}, },
{ {
...@@ -506,11 +490,11 @@ ...@@ -506,11 +490,11 @@
}, },
{ {
"cell_type": "code", "cell_type": "code",
"execution_count": 40, "execution_count": 50,
"metadata": { "metadata": {
"ExecuteTime": { "ExecuteTime": {
"end_time": "2018-08-10T10:27:50.252163Z", "end_time": "2018-08-10T12:24:03.555435Z",
"start_time": "2018-08-10T10:27:50.127376Z" "start_time": "2018-08-10T12:24:03.433553Z"
} }
}, },
"outputs": [ "outputs": [
...@@ -520,21 +504,29 @@ ...@@ -520,21 +504,29 @@
"text": [ "text": [
"Warping progress |==================================================| 100.0% Complete => 0:00:00\n" "Warping progress |==================================================| 100.0% Complete => 0:00:00\n"
] ]
},
{
"name": "stdout",
"output_type": "stream",
"text": [
"(70, 40, 8)\n"
]
} }
], ],
"source": [ "source": [
"gA_map_subset.reproject_to_new_grid(tgt_prj=32631, # EPSG code of target projection (also takes WKT strings, etc.)\n", "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", " 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", "cell_type": "code",
"execution_count": 48, "execution_count": 49,
"metadata": { "metadata": {
"ExecuteTime": { "ExecuteTime": {
"end_time": "2018-08-10T12:22:32.149485Z", "end_time": "2018-08-10T12:23:39.549324Z",
"start_time": "2018-08-10T12:22:32.032801Z" "start_time": "2018-08-10T12:23:39.433599Z"
} }
}, },
"outputs": [ "outputs": [
...@@ -547,28 +539,11 @@ ...@@ -547,28 +539,11 @@
}, },
"metadata": {}, "metadata": {},
"output_type": "display_data" "output_type": "display_data"
},
{
"name": "stdout",
"output_type": "stream",
"text": [
"(67, 34, 8)\n"
]
} }
], ],
"source": [ "source": [
"gA_map_subset.show()\n", "gA_map_subset.show()"
"print(gA_map_subset.shape)"
] ]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {
"collapsed": true
},
"outputs": [],
"source": []
} }
], ],
"metadata": { "metadata": {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment