File tree Expand file tree Collapse file tree 1 file changed +9
-5
lines changed
Expand file tree Collapse file tree 1 file changed +9
-5
lines changed Original file line number Diff line number Diff line change 175175 " Path(hillshading_tiles).mkdir(parents=True, exist_ok=True)\n " ,
176176 " Path(slope_tiles).mkdir(parents=True, exist_ok=True)\n " ,
177177 " \n " ,
178- " gt.fetch_dem(\n " ,
179- " bbox=region_bounding_box,\n " ,
180- " txtPath=download_list,\n " ,
181- " dataset=\" National Elevation Dataset (NED) 1 arc-second Current\" ,\n " ,
182- " )\n " ,
178+ " try:\n " ,
179+ " gt.fetch_dem(\n " ,
180+ " bbox=region_bounding_box,\n " ,
181+ " txtPath=download_list,\n " ,
182+ " dataset=\" National Elevation Dataset (NED) 1 arc-second Current\" ,\n " ,
183+ " )\n " ,
184+ " except Exception as e:\n " ,
185+ " print(\" USGS portal may be down right now, let's use another source\" )\n " ,
186+ " \n " ,
183187 " gt.download_files(download_list, tiles_folder)\n " ,
184188 " print(\" You have successfully downloaded the DEMs from USGS.\" )"
185189 ]
You can’t perform that action at this time.
0 commit comments