Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
Remote Modules
let-it-snow
Commits
514565a6
Commit
514565a6
authored
Nov 19, 2018
by
Germain Salgues
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ENH: add support for L8 new format
parent
025960f1
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
37 additions
and
16 deletions
+37
-16
app/build_json.py
app/build_json.py
+37
-16
No files found.
app/build_json.py
View file @
514565a6
...
...
@@ -85,6 +85,23 @@ SEN2COR_parameters = {"mode":"sen2cor",
"high_cloud_mask"
:
10
,
"rf"
:
12
}
Take5_parameters
=
{
"multi"
:
1
,
"green_band"
:
".*ORTHO_SURF_CORR_PENTE.*\.TIF$"
,
"green_bandNumber"
:
1
,
"red_band"
:
".*ORTHO_SURF_CORR_PENTE.*\.TIF$"
,
"red_bandNumber"
:
2
,
"swir_band"
:
".*ORTHO_SURF_CORR_PENTE.*\.TIF$"
,
"swir_bandNumber"
:
4
,
"cloud_mask"
:
".*NUA.*\.TIF$"
,
"div_mask"
:
".*DIV.*\.TIF$"
,
"div_slope_thres"
:
8
,
"dem"
:
".*\.tif"
,
"shadow_in_mask"
:
64
,
"shadow_out_mask"
:
128
,
"all_cloud_mask"
:
1
,
"high_cloud_mask"
:
32
,
"rf"
:
8
}
S2_parameters
=
{
"multi"
:
10
,
"green_band"
:
".*FRE_B3.*\.tif$"
,
"green_bandNumber"
:
1
,
...
...
@@ -102,21 +119,21 @@ S2_parameters = {"multi":10,
"high_cloud_mask"
:
128
,
"rf"
:
12
}
Take5
_parameters
=
{
"multi"
:
1
,
"green_band"
:
".*
ORTHO_SURF_CORR_PENTE
.*\.
TIF
$"
,
L8
_parameters
_new_format
=
{
"multi"
:
1
,
"green_band"
:
".*
FRE_B3
.*\.
tif
$"
,
"green_bandNumber"
:
1
,
"red_band"
:
".*
ORTHO_SURF_CORR_PENTE
.*\.
TIF
$"
,
"red_bandNumber"
:
2
,
"swir_band"
:
".*
ORTHO_SURF_CORR_PENTE
.*\.
TIF
$"
,
"swir_bandNumber"
:
4
,
"cloud_mask"
:
".*
NUA
.*\.
TIF
$"
,
"div_mask"
:
".*DIV.*
\.TIF$"
,
"div_
slope_thres"
:
8
,
"dem"
:
".*\.tif"
,
"shadow_in_mask"
:
64
,
"shadow_out_mask"
:
128
,
"red_band"
:
".*
FRE_B4
.*\.
tif
$"
,
"red_bandNumber"
:
1
,
"swir_band"
:
".*
FRE_B6
.*\.
tif
$"
,
"swir_bandNumber"
:
1
,
"cloud_mask"
:
".*
CLM_XS
.*\.
tif
$"
,
"dem"
:
".*ALT_R2
\.TIF$"
,
"div_
mask"
:
".*MG2_XS.*\.tif$"
,
"div_slope_thres"
:
64
,
"shadow_in_mask"
:
32
,
"shadow_out_mask"
:
64
,
"all_cloud_mask"
:
1
,
"high_cloud_mask"
:
32
,
"high_cloud_mask"
:
128
,
"rf"
:
8
}
L8_parameters
=
{
"multi"
:
1
,
...
...
@@ -154,6 +171,7 @@ LANDSAT8_LASRC_parameters = {"mode":"lasrc",
mission_parameters
=
{
"S2"
:
S2_parameters
,
\
"LANDSAT8"
:
L8_parameters
,
\
"LANDSAT8_new_format"
:
L8_parameters_new_format
,
\
"Take5"
:
Take5_parameters
,
\
"MAJA"
:
MAJA_parameters
,
\
"SEN2COR"
:
SEN2COR_parameters
,
\
...
...
@@ -297,6 +315,9 @@ def main():
elif
"Take5"
in
inputPath
:
logging
.
info
(
"THEIA Take5 product detected."
)
jsonData
=
read_product
(
inputPath
,
"Take5"
)
elif
"LANDSAT8-OLITIRS-XS"
in
inputPath
:
logging
.
info
(
"THEIA LANDSAT8 product detected. (new version)"
)
jsonData
=
read_product
(
inputPath
,
"LANDSAT8_new_format"
)
elif
"LANDSAT8"
in
inputPath
:
logging
.
info
(
"THEIA LANDSAT8 product detected."
)
jsonData
=
read_product
(
inputPath
,
"LANDSAT8"
)
...
...
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