Skip to content

Commit

Permalink
Make chunk size a variable
Browse files Browse the repository at this point in the history
  • Loading branch information
alexgleith committed Jan 4, 2024
1 parent 86ea8de commit 5ca24f7
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/run_task.py
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,7 @@ def main(
memory_limit_per_worker: str = "50GB",
n_workers: int = 2,
threads_per_worker: int = 32,
xy_chunk_size: int = 4096,
all_bands: Annotated[bool, typer.Option()] = True,
overwrite: Annotated[bool, typer.Option()] = False,
only_tier_one: Annotated[bool, typer.Option()] = True,
Expand Down Expand Up @@ -153,7 +154,7 @@ def main(
common_load_args = dict(
epsg=3832,
datetime=datetime,
dask_chunksize=dict(time=1, x=4096, y=4096),
dask_chunksize=dict(time=1, x=xy_chunk_size, y=xy_chunk_size),
nodata_value=0,
keep_ints=True,
load_as_dataset=True,
Expand Down

0 comments on commit 5ca24f7

Please sign in to comment.