Closed xiaojiujiu999 closed 2 years ago
I download Landsat8 Collection2 Data, bue get a Collection1 Data The downloading file doesn't match the local file I don't know why it happens......
The function of downloading is paste here as following:
def Download_from_Landsatexplore(dataset,scene_list): if len(scene_list) > 0: for scene in scene_list: if dataset.lower() == "landsat_8_c1": output_dir = r'G:\landsat_download\landsat_8_c1' elif dataset.lower() == "landsat_ot_c2_l1": output_dir = r'G:\landsat_download\landsat_ot_c2_l1' elif dataset.lower() == "landsat_ot_c2_l2": output_dir = r'G:\landsat_download\landsat_ot_c2_l2' else: output_dir = r'G:\landsat_download\other' if not os.path.isdir(output_dir): os.mkdir(output_dir) output_dir_demon = output_dir+'\\'+str(scene['acquisition_date'].year) if not os.path.isdir(output_dir_demon): os.mkdir(output_dir_demon) ee = EarthExplorer(username, password) print("Downloading: "+scene['display_id']) ee.download(identifier=scene['entity_id'], output_dir=output_dir_demon)
I download Landsat8 Collection2 Data, bue get a Collection1 Data The downloading file doesn't match the local file I don't know why it happens......
The function of downloading is paste here as following: