File tree Expand file tree Collapse file tree 3 files changed +7
-3
lines changed Expand file tree Collapse file tree 3 files changed +7
-3
lines changed Original file line number Diff line number Diff line change @@ -314,7 +314,7 @@ GDALDatasetH fp_;
314
314
lid = atoi (tokenptr + strlen (tokenptr )- 1 );
315
315
316
316
// set datatype, saturation value, and number of bands
317
- if (lid = = 8 ){
317
+ if (lid > = 8 ){
318
318
meta -> dtype = 16 ;
319
319
meta -> sat = 65535 ;
320
320
nb = 9 ;
@@ -350,6 +350,9 @@ GDALDatasetH fp_;
350
350
case 8 :
351
351
b_rsr = _RSR_START_LND08_ ;
352
352
break ;
353
+ case 9 :
354
+ b_rsr = _RSR_START_LND09_ ;
355
+ break ;
353
356
default :
354
357
printf ("unknown satellite. " );
355
358
return FAILURE ;
@@ -360,7 +363,7 @@ GDALDatasetH fp_;
360
363
#endif
361
364
362
365
b = 0 ;
363
- if (lid = = 8 ){
366
+ if (lid > = 8 ){
364
367
365
368
copy_string (meta -> cal [b ].orig_band , NPOW_03 , "1" );
366
369
meta -> cal [b ].rsr_band = b_rsr ++ ;
@@ -1377,7 +1380,6 @@ printf("there are still some things to do int meta. checking etc\n");
1377
1380
switch (mission ){
1378
1381
case LANDSAT :
1379
1382
if (parse_metadata_landsat (pl2 , meta , DN ) != SUCCESS ) return FAILURE ;
1380
-
1381
1383
break ;
1382
1384
case SENTINEL2 :
1383
1385
if (parse_metadata_sentinel2 (pl2 , meta , DN ) != SUCCESS ) return FAILURE ;
Original file line number Diff line number Diff line change @@ -106,6 +106,7 @@ const int _RSR_START_LND04_ = 0;
106
106
const int _RSR_START_LND05_ = 7;
107
107
const int _RSR_START_LND07_ = 14;
108
108
const int _RSR_START_LND08_ = 21;
109
+ const int _RSR_START_LND09_ = 21; // quick fix
109
110
const int _RSR_START_SEN2A_ = 30;
110
111
const int _RSR_START_SEN2B_ = 43;
111
112
Original file line number Diff line number Diff line change @@ -41,6 +41,7 @@ extern const int _RSR_START_LND04_;
41
41
extern const int _RSR_START_LND05_ ;
42
42
extern const int _RSR_START_LND07_ ;
43
43
extern const int _RSR_START_LND08_ ;
44
+ extern const int _RSR_START_LND09_ ;
44
45
extern const int _RSR_START_SEN2A_ ;
45
46
extern const int _RSR_START_SEN2B_ ;
46
47
extern const float _RSR_ [56 ][1991 ];
You can’t perform that action at this time.
0 commit comments