diff --git a/coastsat/SDS_download.py b/coastsat/SDS_download.py index 55f552c7..f826d6c7 100644 --- a/coastsat/SDS_download.py +++ b/coastsat/SDS_download.py @@ -165,7 +165,10 @@ def retrieve_images(inputs): else: acc_georef = -1 # add additional metadata for Sharon's Sniffer ['PASSED' or 'FAILED'] - im_quality.append(im_meta['properties']['RADIOMETRIC_QUALITY']) + flag_names = ['RADIOMETRIC_QUALITY', 'RADIOMETRIC_QUALITY_FLAG'] + for key in flag_names: + if key in im_meta['properties'].keys(): break + im_quality.append(im_meta['properties'][key]) georef_accs.append(acc_georef) # download the images as .tif files