kvos / CoastSat

Global shoreline mapping tool from satellite imagery
http://coastsat.space
GNU General Public License v3.0
697 stars 252 forks source link

[Depreciation Warning] : landsat_c1_to_c2 #517

Closed thekester closed 3 months ago

thekester commented 4 months ago

Hello, i got that DeprecationWarning when i try to execute the code

Attention required for LANDSAT/LT05/C01/T1_TOA! You are using a deprecated asset. To ensure continued functionality, please update it by July 1, 2024. Learn more: https://developers.google.com/earth-engine/landsat_c1_to_c2

warnings.warn(warning, category=DeprecationWarning)

landsatdepreciationwarning

in SDS_download.py eight occurrences of T1_TOA in check_images_available function and get_image_info

kvos commented 4 months ago

did you specify inputs['landsat_collection'] = 'C02'? if you specify collection 1 you should not get that warning, if you still do let me know. I want to keep collection 1 in there as some people may have extracted shorelines a while back and the only way they can reproduce their results is using collection 1.

thekester commented 4 months ago

When I use collection = 'C01', I get a DeprecationWarning. However, if I use collection = 'C02', I do not get this DeprecationWarning. I understand you want to keep collection 1, but unfortunately after checking this guide, it indicates that the Landsat1 collection will be removed in the second half of 2024. You can check the Landsat collection status here image

kvos commented 4 months ago

yes I think they removed Collection 1 this week. Will adjust the code soon.

thekester commented 3 months ago

Closed by #526