Skip to content

Commit

Permalink
reverse 2.12.12 changes
Browse files Browse the repository at this point in the history
  • Loading branch information
peterdudfield committed Nov 5, 2024
1 parent 48108f6 commit a5a067e
Showing 1 changed file with 14 additions and 14 deletions.
28 changes: 14 additions & 14 deletions satip/eumetsat.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"

Expand All @@ -549,19 +549,19 @@ def _download_single_tailored_dataset(
else:
raise ValueError(f"Product ID {product_id} not recognized, ending now")

# 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,
# )
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)
Expand Down

0 comments on commit a5a067e

Please sign in to comment.