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
P
py_tools_ds
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
4
Issues
4
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
py_tools_ds
Commits
c5d501ff
Commit
c5d501ff
authored
Nov 18, 2020
by
Daniel Scheffler
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Bugfix.
Signed-off-by:
Daniel Scheffler
<
danschef@gfz-potsdam.de
>
parent
322a88ce
Pipeline
#15840
passed with stage
in 21 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
py_tools_ds/geo/raster/reproject.py
py_tools_ds/geo/raster/reproject.py
+2
-2
No files found.
py_tools_ds/geo/raster/reproject.py
View file @
c5d501ff
...
...
@@ -157,8 +157,8 @@ def warp_ndarray_rasterio(ndarray, in_gt, in_prj, out_prj, out_gt=None, outRowsC
raise
NotImplementedError
(
'Different projections are currently not supported.'
)
else
:
# ('projected','geographic')
px_size_LatLon
=
np
.
array
(
pixelToLatLon
([
1
,
1
],
geotransform
=
in_gt
,
projection
=
in_prj
))
-
\
np
.
array
(
pixelToLatLon
([
0
,
0
],
geotransform
=
in_gt
,
projection
=
in_prj
))
px_size_LatLon
=
np
.
array
(
pixelToLatLon
([
[
1
,
1
]
],
geotransform
=
in_gt
,
projection
=
in_prj
))
-
\
np
.
array
(
pixelToLatLon
([
[
0
,
0
]
],
geotransform
=
in_gt
,
projection
=
in_prj
))
out_res
=
tuple
(
reversed
(
abs
(
px_size_LatLon
)))
print
(
'OUT_RES NOCHMAL CHECKEN: '
,
out_res
)
...
...
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