Skip to content

Commit b46956a

Browse files
committed
band subsets for S2C/D
1 parent 61c9f2c commit b46956a

File tree

2 files changed

+16
-5
lines changed

2 files changed

+16
-5
lines changed

misc/force-version.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
3.7.12-dev:::2024-12-20_10:18:04
1+
3.7.12-dev:::2024-12-20_10:21:01

src/modules/higher-level/param-hl.c

Lines changed: 15 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1042,15 +1042,22 @@ const int ns = _SEN_LENGTH_, nb = _WVL_LENGTH_;
10421042
const char sensor[_SEN_LENGTH_][NPOW_10] = {
10431043
"LND04", "LND05", "LND07",
10441044
"LND08", "LND09", "SEN2A",
1045-
"SEN2B", "sen2a", "sen2b",
1045+
"SEN2B", "SEN2C", "SEN2D",
1046+
"sen2a", "sen2b", "sen2c",
1047+
"sen2d",
10461048
"LNDLG", "SEN2L", "SEN2H",
10471049
"R-G-B", "S1AIA", "S1AID",
10481050
"S1BIA", "S1BID", "VVVHP",
10491051
"MOD01", "MOD02", "MODIS" };
10501052
bool adjustable[_SEN_LENGTH_] = {
1051-
true, true, true, true, true, true,
1052-
true, false, false, false, false, false,
1053-
false, false, false, false, false, false,
1053+
true, true, true,
1054+
true, true, true,
1055+
true, true, true,
1056+
false, false, false,
1057+
false,
1058+
false, false, false,
1059+
false, false, false,
1060+
false, false, false,
10541061
true, true, false };
10551062
const int band[_SEN_LENGTH_][_WVL_LENGTH_] = {
10561063
{ 1, 2, 3, 0, 0, 0, 0, 4, 0, 5, 6, 0, 0 }, // Landsat 4 TM (legacy bands)
@@ -1060,8 +1067,12 @@ const int band[_SEN_LENGTH_][_WVL_LENGTH_] = {
10601067
{ 1, 2, 3, 0, 0, 0, 0, 4, 0, 5, 6, 0, 0 }, // Landsat 9 OLI (legacy bands)
10611068
{ 1, 2, 3, 4, 5, 6, 7, 8, 0, 9, 10, 0, 0 }, // Sentinel-2A MSI (land surface bands)
10621069
{ 1, 2, 3, 4, 5, 6, 7, 8, 0, 9, 10, 0, 0 }, // Sentinel-2B MSI (land surface bands)
1070+
{ 1, 2, 3, 4, 5, 6, 7, 8, 0, 9, 10, 0, 0 }, // Sentinel-2C MSI (land surface bands)
1071+
{ 1, 2, 3, 4, 5, 6, 7, 8, 0, 9, 10, 0, 0 }, // Sentinel-2D MSI (land surface bands)
10631072
{ 1, 2, 3, 0, 0, 0, 7, 0, 0, 0, 0, 0, 0 }, // Sentinel-2A MSI (high-res bands)
10641073
{ 1, 2, 3, 0, 0, 0, 7, 0, 0, 0, 0, 0, 0 }, // Sentinel-2B MSI (high-res bands)
1074+
{ 1, 2, 3, 0, 0, 0, 7, 0, 0, 0, 0, 0, 0 }, // Sentinel-2C MSI (high-res bands)
1075+
{ 1, 2, 3, 0, 0, 0, 7, 0, 0, 0, 0, 0, 0 }, // Sentinel-2D MSI (high-res bands)
10651076
{ 1, 2, 3, 0, 0, 0, 0, 4, 0, 5, 6, 0, 0 }, // Landsat legacy bands
10661077
{ 1, 2, 3, 4, 5, 6, 7, 8, 0, 9, 10, 0, 0 }, // Sentinel-2 land surface bands
10671078
{ 1, 2, 3, 0, 0, 0, 0, 4, 0, 5, 6, 0, 0 }, // Sentinel-2 high-res bands

0 commit comments

Comments
 (0)