Skip to content

Commit

Permalink
Merge pull request #82 from WorldCereal/develop
Browse files Browse the repository at this point in the history
Prepare release 0.7.2
  • Loading branch information
Fahdben authored Mar 21, 2022
2 parents 71946dd + 7848481 commit 7e82d40
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions src/ewoc_dag/bucket/ewoc.py
Original file line number Diff line number Diff line change
Expand Up @@ -215,11 +215,10 @@ def sar_to_satio_csv(
"""
prds_path = []
prds_datetime = []

for prd_key in self._list_prds_key(
f"{production_id}/SAR/{tileid_to_ard_path_component(tile_id)}"
):
prd_info = EwocS1ArdPrdIdInfo(prd_key.split("/")[8])
prd_info = EwocS1ArdPrdIdInfo(prd_key.split("/")[-1])
prds_path.append(f"{self._s3_basepath()}{prd_key}")
prds_datetime.append(prd_info.acquisition_datetime)

Expand Down Expand Up @@ -248,11 +247,10 @@ def optical_to_satio_csv(
"""
prds_path = []
prds_datetime = []

for prd_key in self._list_prds_key(
f"{production_id}/OPTICAL/{tileid_to_ard_path_component(tile_id)}"
):
prd_info = EwocArdPrdIdInfo(prd_key.split("/")[8])
prd_info = EwocArdPrdIdInfo(prd_key.split("/")[-1])
prds_path.append(f"{self._s3_basepath()}{prd_key}")
prds_datetime.append(prd_info.acquisition_datetime)

Expand Down Expand Up @@ -280,7 +278,7 @@ def tir_to_satio_csv(
for prd_key in self._list_prds_key(
f"{production_id}/TIR/{tileid_to_ard_path_component(tile_id)}"
):
prd_info = EwocTirArdPrdIdInfo(prd_key.split("/")[8])
prd_info = EwocTirArdPrdIdInfo(prd_key.split("/")[-1])
prds_path.append(f"{self._s3_basepath()}{prd_key}")
prds_datetime.append(prd_info.acquisition_datetime)

Expand Down

0 comments on commit 7e82d40

Please sign in to comment.