Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
F
fragmentation
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
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
no67wuwu
fragmentation
Commits
b91deceb
Commit
b91deceb
authored
1 year ago
by
Emma Oceguera-Conchas
Browse files
Options
Downloads
Patches
Plain Diff
Has ben updated
parent
5727717b
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
3.generate_list_valid_tiles.py
+2
-2
2 additions, 2 deletions
3.generate_list_valid_tiles.py
with
2 additions
and
2 deletions
3.generate_list_valid_tiles.py
+
2
−
2
View file @
b91deceb
...
@@ -38,7 +38,7 @@ def get_stdout(cmd, verbose=False):
...
@@ -38,7 +38,7 @@ def get_stdout(cmd, verbose=False):
# Define the pathe where all the combined files are
# Define the pathe where all the combined files are
# path = r'S:\Emmanuel_OcegueraConchas\Fragmentation\frag_and_land\*.tif'
# path = r'S:\Emmanuel_OcegueraConchas\Fragmentation\frag_and_land\*.tif'
path
=
r
"
S:\Emmanuel_OcegueraConchas\fragmentation_
estonia_t
est\frag_and_
lan
d\*.tif
"
path
=
r
"
S:\Emmanuel_OcegueraConchas\
eu_
fragmentation_
for
est\frag_
l
and_
combine
d\*.tif
"
# get the list of all the files
# get the list of all the files
files
=
glob
(
path
)
files
=
glob
(
path
)
...
@@ -47,7 +47,7 @@ files = glob(path)
...
@@ -47,7 +47,7 @@ files = glob(path)
cmd
=
'
gdalinfo -stats %s
'
cmd
=
'
gdalinfo -stats %s
'
# Open a text file in writing modus. This file will be used to store the paths of the tif files that meet cetain criteria
# Open a text file in writing modus. This file will be used to store the paths of the tif files that meet cetain criteria
vrt_imgs
=
open
(
r
'
S:\Emmanuel_OcegueraConchas\fragmentation_
estonia_t
est\valid_tiles.txt
'
,
'
w
'
)
vrt_imgs
=
open
(
r
'
S:\Emmanuel_OcegueraConchas\
eu_
fragmentation_
for
est\valid_tiles
_combined
.txt
'
,
'
w
'
)
for
f
in
files
:
for
f
in
files
:
stats
=
get_stdout
(
cmd
%
f
)
stats
=
get_stdout
(
cmd
%
f
)
...
...
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