Commit
•
6ee48af
1
Parent(s):
1978bd3
Fix typos
Browse files
S4A.py
CHANGED
@@ -140,7 +140,6 @@ class S4A(datasets.GeneratorBasedBuilder):
|
|
140 |
for y_i in range(y + 1):
|
141 |
downloaded_paths = dl_manager.download(_URL + f'/{year}' + f'/{tile}' + f'/{year}_{tile}_patch_{str(x_i).zfill(2)}_{str(y_i).zfill(2)}.nc')
|
142 |
root_paths.append(downloaded_paths)
|
143 |
-
|
144 |
elif self.config.name == 'cat_2019':
|
145 |
year = '2019'
|
146 |
for tile in CAT_TILES:
|
@@ -149,7 +148,6 @@ class S4A(datasets.GeneratorBasedBuilder):
|
|
149 |
for y_i in range(y + 1):
|
150 |
downloaded_paths = dl_manager.download(_URL + f'/{year}' + f'/{tile}' + f'/{year}_{tile}_patch_{str(x_i).zfill(2)}_{str(y_i).zfill(2)}.nc')
|
151 |
root_paths.append(downloaded_paths)
|
152 |
-
|
153 |
elif self.config.name == 'cat_2020':
|
154 |
year = '2020'
|
155 |
for tile in CAT_TILES:
|
@@ -157,8 +155,7 @@ class S4A(datasets.GeneratorBasedBuilder):
|
|
157 |
for x_i in range(x + 1):
|
158 |
for y_i in range(y + 1):
|
159 |
downloaded_paths = dl_manager.download(_URL + f'/{year}' + f'/{tile}' + f'/{year}_{tile}_patch_{str(x_i).zfill(2)}_{str(y_i).zfill(2)}.nc')
|
160 |
-
root_paths.append(downloaded_paths)
|
161 |
-
|
162 |
elif self.config.name == 'fr_2019':
|
163 |
year = '2019'
|
164 |
for tile in FR_TILES:
|
@@ -166,7 +163,7 @@ class S4A(datasets.GeneratorBasedBuilder):
|
|
166 |
for x_i in range(x + 1):
|
167 |
for y_i in range(y + 1):
|
168 |
downloaded_paths = dl_manager.download(_URL + f'/{year}' + f'/{tile}' + f'/{year}_{tile}_patch_{str(x_i).zfill(2)}_{str(y_i).zfill(2)}.nc')
|
169 |
-
root_paths.append(downloaded_paths)
|
170 |
|
171 |
return [
|
172 |
datasets.SplitGenerator(
|
|
|
140 |
for y_i in range(y + 1):
|
141 |
downloaded_paths = dl_manager.download(_URL + f'/{year}' + f'/{tile}' + f'/{year}_{tile}_patch_{str(x_i).zfill(2)}_{str(y_i).zfill(2)}.nc')
|
142 |
root_paths.append(downloaded_paths)
|
|
|
143 |
elif self.config.name == 'cat_2019':
|
144 |
year = '2019'
|
145 |
for tile in CAT_TILES:
|
|
|
148 |
for y_i in range(y + 1):
|
149 |
downloaded_paths = dl_manager.download(_URL + f'/{year}' + f'/{tile}' + f'/{year}_{tile}_patch_{str(x_i).zfill(2)}_{str(y_i).zfill(2)}.nc')
|
150 |
root_paths.append(downloaded_paths)
|
|
|
151 |
elif self.config.name == 'cat_2020':
|
152 |
year = '2020'
|
153 |
for tile in CAT_TILES:
|
|
|
155 |
for x_i in range(x + 1):
|
156 |
for y_i in range(y + 1):
|
157 |
downloaded_paths = dl_manager.download(_URL + f'/{year}' + f'/{tile}' + f'/{year}_{tile}_patch_{str(x_i).zfill(2)}_{str(y_i).zfill(2)}.nc')
|
158 |
+
root_paths.append(downloaded_paths)
|
|
|
159 |
elif self.config.name == 'fr_2019':
|
160 |
year = '2019'
|
161 |
for tile in FR_TILES:
|
|
|
163 |
for x_i in range(x + 1):
|
164 |
for y_i in range(y + 1):
|
165 |
downloaded_paths = dl_manager.download(_URL + f'/{year}' + f'/{tile}' + f'/{year}_{tile}_patch_{str(x_i).zfill(2)}_{str(y_i).zfill(2)}.nc')
|
166 |
+
root_paths.append(downloaded_paths)
|
167 |
|
168 |
return [
|
169 |
datasets.SplitGenerator(
|