Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
P
PySegCNN
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor 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
earth_observation_public
PySegCNN
Commits
648cf0d1
Commit
648cf0d1
authored
4 years ago
by
Frisinghelli Daniel
Browse files
Options
Downloads
Patches
Plain Diff
Included radiometric calibration in SPARCS preprocessing.
parent
7b8fa4c4
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
pysegcnn/preprocessing/sparcs.py
+8
-4
8 additions, 4 deletions
pysegcnn/preprocessing/sparcs.py
with
8 additions
and
4 deletions
pysegcnn/preprocessing/sparcs.py
+
8
−
4
View file @
648cf0d1
...
...
@@ -19,8 +19,8 @@ import sys
from
logging.config
import
dictConfig
# locals
from
pysegcnn.core.utils
import
(
destack_tiff
,
st
and
ard_eo_structure
,
extract_archive
)
from
pysegcnn.core.utils
import
(
destack_tiff
,
l
and
sat_radiometric_calibration
,
standard_eo_structure
,
extract_archive
)
from
pysegcnn.core.logging
import
log_conf
from
pysegcnn.core.cli
import
structure_parser
...
...
@@ -52,9 +52,13 @@ if __name__ == '__main__':
for
scene
in
args
.
target
.
iterdir
():
# the TIFF file containing the bands
try
:
data
=
nex
t
(
scene
.
glob
(
'
*data.tif
'
))
except
StopIteration
:
data
=
lis
t
(
scene
.
glob
(
'
*data.tif
'
))
.
pop
()
except
IndexError
:
continue
# build the TIFFs for each band
destack_tiff
(
data
,
overwrite
=
args
.
overwrite
,
remove
=
args
.
remove
)
# perform radiometric calibration
landsat_radiometric_calibration
(
scene
,
remove_raw
=
args
.
remove
,
overwrite
=
args
.
overwrite
)
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