Hi team.
I was trying to download Sentinel-1 data with the code below.
search_bbox = BBox(bbox=state_bbox[state], crs=CRS.WGS84)
search_time_interval_tuple = [['2020-05-01T00:00:00', '2020-07-31T23:59:59'],
['2018-05-01T00:00:00', '2018-07-31T23:59:59'],]
for search_time_interval in search_time_interval_tuple:
try:
year = search_time_interval[0][0:4]
print(f'========{year}========')
if not os.path.exists(f"./Sentinel1/{year}"):
print(f'No Directory for ./Sentinel1/{year}, now making directory...')
os.makedirs(f"./Sentinel1/{year}")
print("searching start...")
wfs_iterator = WebFeatureService(
search_bbox,
search_time_interval,
data_collection=DataCollection.SENTINEL1_IW,
config=config,
)
print("searching end...")
except:
with open('cache.txt', 'w', encoding='utf-8') as cache:
cache.write('SEARCHING')
sys.exit('SEARCHING') #
print('start downloading Files...')
for num, tile_info in enumerate(wfs_iterator):
# try: #
aws_idx = tile_info['properties']['path']
download_name = aws_idx.split('/')[-1]
print(download_name)
os.system(f"aws s3 sync {aws_idx} ./Sentinel1/{year}/{download_name} --request-payer requester")
# except Exception as e:
# print('Exception Occured in the process of', aws_idx)
# print(e)
print('download complete!')
However, this code gave me only Sentinel-1A data.
Is there any way to solve this problem?
Thanks a lot.