Skip to content

Commit 4439788

Browse files
committed
Fix base.yml hdf GetSubDatasets name
1 parent 2291e99 commit 4439788

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

src/IHEWAcollect/base/base.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4360,7 +4360,7 @@ products:
43604360
freq: '16D'
43614361
variables:
43624362
NDVI:
4363-
variable: '250m_16_days_NDVI'
4363+
variable: '250m 16 days NDVI'
43644364
name: 'Sixteen Daily NDVI'
43654365
description:
43664366
''
@@ -4929,7 +4929,7 @@ products:
49294929
freq: '16D'
49304930
variables:
49314931
NDVI:
4932-
variable: '250m_16_days_NDVI'
4932+
variable: '250m 16 days NDVI'
49334933
name: 'Sixteen Daily NDVI'
49344934
description:
49354935
''
@@ -5013,8 +5013,8 @@ products:
50135013
freq: 'D'
50145014
variables:
50155015
NDVI:
5016-
# variable: '//LEVEL3/NDVI/NDVI'
5017-
variable: 'NDVI'
5016+
# variable: 'NDVI'
5017+
variable: '//LEVEL3/NDVI/NDVI'
50185018
name: 'Daily NDVI'
50195019
description:
50205020
''

src/IHEWAcollect/templates/collect.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -179,10 +179,10 @@ def Convert_hdf5_to_tiff(inputname_hdf, Filename_tiff_end, Band, scale=1.0, geo=
179179

180180
if isinstance(Band, str):
181181
for i in range(0, len(g.GetSubDatasets()), 1):
182-
print(' ', g.GetSubDatasets()[i][0].split(':')[-1])
182+
# print(' ', g.GetSubDatasets()[i][0].split(':')[-1])
183183
if Band == g.GetSubDatasets()[i][0].split(':')[-1]:
184184
Band_number = i
185-
print(Band, g.GetSubDatasets()[i][0].split(':')[-1], Band_number)
185+
# print(Band, g.GetSubDatasets()[i][0].split(':')[-1], Band_number)
186186

187187
name_in = g.GetSubDatasets()[Band_number][0]
188188

0 commit comments

Comments
 (0)