From 35b0256034ca86a389ee578ed0252541460f3955 Mon Sep 17 00:00:00 2001 From: Jacob Bieker Date: Mon, 28 Nov 2022 15:53:09 +0000 Subject: [PATCH] Add output size #major --- ocf_datapipes/training/metnet_gsp_national.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/ocf_datapipes/training/metnet_gsp_national.py b/ocf_datapipes/training/metnet_gsp_national.py index 1148323a8..7e60ce6f5 100644 --- a/ocf_datapipes/training/metnet_gsp_national.py +++ b/ocf_datapipes/training/metnet_gsp_national.py @@ -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: @@ -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 """ @@ -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, )