Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
arosics
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Daniel Scheffler
arosics
Commits
421fdc3e
There was a problem fetching the pipeline summary.
Commit
421fdc3e
authored
7 years ago
by
Daniel Scheffler
Browse files
Options
Downloads
Patches
Plain Diff
Changed imports of IO module.
parent
6a5673df
No related branches found
No related tags found
No related merge requests found
Pipeline
#
Changes
1
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
arosics/io.py
+2
-1
2 additions, 1 deletion
arosics/io.py
with
2 additions
and
1 deletion
arosics/io.py
+
2
−
1
View file @
421fdc3e
...
...
@@ -10,7 +10,6 @@ try:
import
gdal
except
ImportError
:
from
osgeo
import
gdal
from
spectral.io
import
envi
# internal modules
from
.utilities
import
get_image_tileborders
,
convertGdalNumpyDataType
...
...
@@ -39,6 +38,7 @@ def wait_if_used(path_file,lockfile, timeout=100, try_kill=0):
def
write_envi
(
arr
,
outpath
,
gt
=
None
,
prj
=
None
):
from
spectral.io
import
envi
if
gt
or
prj
:
assert
gt
and
prj
,
'
gt and prj must be provided together or left out.
'
meta
=
{
'
map info
'
:
geotransform2mapinfo
(
gt
,
prj
),
'
coordinate system string
'
:
prj
}
if
gt
else
None
shape
=
(
arr
.
shape
[
0
],
arr
.
shape
[
1
],
1
)
if
len
(
arr
.
shape
)
==
3
else
arr
.
shape
...
...
@@ -185,6 +185,7 @@ def write_numpy_to_image(array,path_out,outFmt='GTIFF',gt=None,prj=None):
shared_array_on_disk__memmap
=
None
def
init_SharedArray_on_disk
(
out_path
,
dims
,
gt
=
None
,
prj
=
None
):
from
spectral.io
import
envi
global
shared_array_on_disk__memmap
global
shared_array_on_disk__path
path
=
out_path
if
not
os
.
path
.
splitext
(
out_path
)[
1
]
==
'
.bsq
'
else
\
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment