Skip to content

Commit

Permalink
Fix #274
Browse files Browse the repository at this point in the history
  • Loading branch information
2320sharon committed Jul 20, 2024
1 parent 08ce024 commit c6ba68a
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 11 deletions.
2 changes: 1 addition & 1 deletion scripts/preview_images_for_dates.py
Original file line number Diff line number Diff line change
Expand Up @@ -315,7 +315,7 @@ def main():

# Check if EE was initialized or not
try:
ee.ImageCollection("LANDSAT/LT05/C01/T1_TOA")
ee.ImageCollection("LANDSAT/LC08/C02/T1_TOA")
except:
ee.Initialize()

Expand Down
9 changes: 0 additions & 9 deletions src/coastseg/common.py
Original file line number Diff line number Diff line change
Expand Up @@ -1488,15 +1488,6 @@ def get_filtered_files_dict(directory: str, file_type: str, sitename: str) -> di
)
continue

# satname_parts = parts[-1].split(".")

# if len(satname_parts) < 2:
# logging.warning(
# f"Skipping file with unexpected name format: {old_filename}"
# )
# continue

# satname = satname_parts[0]

tif_filename = f"{date}_{satname}_{sitename}_ms.tif"
if satname in satellites:
Expand Down
2 changes: 1 addition & 1 deletion src/coastseg/downloads.py
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@ def count_images_in_ee_collection(

# Check if EE was initialized or not
try:
ee.ImageCollection("LANDSAT/LT05/C01/T1_TOA")
ee.ImageCollection("LANDSAT/LC08/C02/T1_TOA")
except:
ee.Initialize()

Expand Down

0 comments on commit c6ba68a

Please sign in to comment.