def create_dummy_region_environment(self, time_axis, mid_point): re = api.ARegionEnvironment() re.precipitation.append(self._create_constant_geo_ts(api.PrecipitationSource, mid_point, time_axis.total_period(), 5.0)) re.temperature.append(self._create_constant_geo_ts(api.TemperatureSource, mid_point, time_axis.total_period(), 10.0)) re.wind_speed.append(self._create_constant_geo_ts(api.WindSpeedSource, mid_point, time_axis.total_period(), 2.0)) re.rel_hum.append(self._create_constant_geo_ts(api.RelHumSource, mid_point, time_axis.total_period(), 0.7)) re.radiation = api.RadiationSourceVector() # just for testing BW compat re.radiation.append(self._create_constant_geo_ts(api.RadiationSource, mid_point, time_axis.total_period(), 300.0)) return re
def _create_geo_radiation_grid(self, nx: int, ny: int, dx: int, fx) -> api.RadiationSourceVector: return self._create_geo_ts_grid(nx, ny, dx, fx, api.RadiationSourceVector(), api.RadiationSource)