Skip to content

Commit

Permalink
Merge pull request #32 from worldbank/hotfix-quality_flag_rm
Browse files Browse the repository at this point in the history
Add missing args
  • Loading branch information
ramarty authored Dec 7, 2023
2 parents 4d57ded + d6deeba commit b67b6d1
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/blackmarble/raster.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ def h5_to_geotiff(
output_path: Path
Path to which GeoTIFF
"""
output_path = Path(output_directory, f.stem).with_suffix(".tif")
output_path = Path(output_directory, f"{output_prefix}{f.stem}").with_suffix(".tif")
product_id = Product(f.stem.split(".")[0])

if variable is None:
Expand Down Expand Up @@ -242,7 +242,7 @@ def bm_raster(
file_directory: pathlib.Path, optional
Where to produce output. By default, the output will be procuded onto a temporary directory.
file_directory_prefix: str, optional
file_prefix: str, optional
Prefix
file_skip_if_exists: bool, default=True
Expand Down Expand Up @@ -275,7 +275,6 @@ def bm_raster(

dx = []
for date in tqdm(date_range, desc="COLLATING RESULTS | Processing..."):
# _pivot_paths_by_date(pathnames), desc="COLLATING RESULTS | Processing..."
filenames = _pivot_paths_by_date(pathnames).get(date)

# Open each GeoTIFF file as a DataArray and store in a list
Expand All @@ -284,6 +283,8 @@ def bm_raster(
h5_to_geotiff(
f,
variable=variable,
quality_flag_rm=quality_flag_rm,
output_prefix=file_prefix,
output_directory=d,
)
)
Expand Down

0 comments on commit b67b6d1

Please sign in to comment.