Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
G
geoarray
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
6
Issues
6
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Daniel Scheffler
geoarray
Commits
acfece25
Commit
acfece25
authored
Aug 10, 2018
by
Daniel Scheffler
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Updated cell output.
parent
46338d81
Pipeline
#3109
passed with stages
in 1 minute and 24 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
24 additions
and
49 deletions
+24
-49
examples/notebooks/features_and_usage.ipynb
examples/notebooks/features_and_usage.ipynb
+24
-49
No files found.
examples/notebooks/features_and_usage.ipynb
View file @
acfece25
...
...
@@ -364,11 +364,11 @@
},
{
"cell_type": "code",
"execution_count":
46
,
"execution_count":
52
,
"metadata": {
"ExecuteTime": {
"end_time": "2018-08-10T12:2
2:26.235336
Z",
"start_time": "2018-08-10T12:2
2:26.097353
Z"
"end_time": "2018-08-10T12:2
4:17.623654
Z",
"start_time": "2018-08-10T12:2
4:17.484858
Z"
}
},
"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:2
2:29.703838
Z",
"start_time": "2018-08-10T12:2
2:29.576567
Z"
"end_time": "2018-08-10T12:2
4:12.992324
Z",
"start_time": "2018-08-10T12:2
4:12.864738
Z"
}
},
"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":
4
0,
"execution_count":
5
0,
"metadata": {
"ExecuteTime": {
"end_time": "2018-08-10T1
0:27:50.252163
Z",
"start_time": "2018-08-10T1
0:27:50.127376
Z"
"end_time": "2018-08-10T1
2:24:03.555435
Z",
"start_time": "2018-08-10T1
2:24:03.433553
Z"
}
},
"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": 4
8
,
"execution_count": 4
9
,
"metadata": {
"ExecuteTime": {
"end_time": "2018-08-10T12:2
2:32.149485
Z",
"start_time": "2018-08-10T12:2
2:32.032801
Z"
"end_time": "2018-08-10T12:2
3:39.549324
Z",
"start_time": "2018-08-10T12:2
3:39.433599
Z"
}
},
"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": {
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment