Skip to content

Commit

Permalink
Add output size
Browse files Browse the repository at this point in the history
#major
  • Loading branch information
jacobbieker committed Nov 28, 2022
1 parent c317817 commit 35b0256
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions ocf_datapipes/training/metnet_gsp_national.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@ def metnet_national_datapipe(
use_pv: bool = False,
use_gsp: bool = True,
use_topo: bool = True,
output_size: int = 256,
start_time: datetime.datetime = datetime.datetime(2014, 1, 1),
end_time: datetime.datetime = datetime.datetime(2023, 1, 1),
) -> IterDataPipe:
Expand All @@ -80,6 +81,7 @@ def metnet_national_datapipe(
use_gsp: Whether to use GSP history
start_time: Start time to select on
end_time: End time to select from
output_size: Size, in pixels, of the output image
Returns: datapipe
"""
Expand Down Expand Up @@ -148,8 +150,8 @@ def metnet_national_datapipe(
center_height=1_000_000,
context_height=10_000_000,
context_width=10_000_000,
output_width_pixels=256,
output_height_pixels=256,
output_width_pixels=output_size,
output_height_pixels=output_size,
add_sun_features=use_sun,
)

Expand Down

0 comments on commit 35b0256

Please sign in to comment.