diff --git a/satip/eumetsat.py b/satip/eumetsat.py index 6d6232a6..79c06216 100644 --- a/satip/eumetsat.py +++ b/satip/eumetsat.py @@ -534,7 +534,7 @@ def _download_single_tailored_dataset( """ SEVIRI = "HRSEVIRI" - SEVIRI_HRV = "HRSEVIRI_HRV" + #SEVIRI_HRV = "HRSEVIRI_HRV" RSS_ID = "HRSEVIRI_RSS" CLM_ID = "MSGCLMK" @@ -549,23 +549,25 @@ def _download_single_tailored_dataset( else: raise ValueError(f"Product ID {product_id} not recognized, ending now") - if tailor_id == SEVIRI: # Also do HRV - credentials = (self.user_key, self.user_secret) - token = eumdac.AccessToken(credentials) - datastore = eumdac.DataStore(token) - product_id = datastore.get_product("EO:EUM:DAT:MSG:HRSEVIRI", dataset_id) - self.create_and_download_datatailor_data( - dataset_id=product_id, - tailor_id=SEVIRI_HRV, - roi=roi, - file_format=file_format, - projection=projection, - ) + # if tailor_id == SEVIRI_HRV: # Also do HRV + # credentials = (self.user_key, self.user_secret) + # token = eumdac.AccessToken(credentials) + # datastore = eumdac.DataStore(token) + # product_id = datastore.get_product("EO:EUM:DAT:MSG:HRSEVIRI", dataset_id) + # log.debug(f"Downloading HRV data for {dataset_id=}, {product_id=}") + # self.create_and_download_datatailor_data( + # dataset_id=product_id, + # tailor_id=SEVIRI_HRV, + # roi=roi, + # file_format=file_format, + # projection=projection, + # ) credentials = (self.user_key, self.user_secret) token = eumdac.AccessToken(credentials) datastore = eumdac.DataStore(token) product_id = datastore.get_product("EO:EUM:DAT:MSG:HRSEVIRI", dataset_id) + log.debug(f"Downloading data for {dataset_id=}, {product_id=}") self.create_and_download_datatailor_data( dataset_id=product_id, tailor_id=tailor_id, @@ -686,7 +688,8 @@ def create_and_download_datatailor_data( log.debug(f"Attempt {attempt}: Created customisation {customisation}") break except Exception as e: - log.debug(f"Attempt {attempt}: Error creating customisation: {e}") + log.debug(f"Attempt {attempt}: Error creating customisation: {e}, " + f"{dataset_id=}, {chain=}") else: log.debug( f"Attempt {attempt}: Too many running customisations. "