Set weather values individually
(args, weather)
| 58 | |
| 59 | |
| 60 | def apply_weather_values(args, weather): |
| 61 | """Set weather values individually""" |
| 62 | if args.azimuth is not None: |
| 63 | weather.sun_azimuth_angle = args.azimuth |
| 64 | if args.altitude is not None: |
| 65 | weather.sun_altitude_angle = args.altitude |
| 66 | if args.clouds is not None: |
| 67 | weather.cloudiness = args.clouds |
| 68 | if args.rain is not None: |
| 69 | weather.precipitation = args.rain |
| 70 | if args.puddles is not None: |
| 71 | weather.precipitation_deposits = args.puddles |
| 72 | if args.wind is not None: |
| 73 | weather.wind_intensity = args.wind |
| 74 | if args.fog is not None: |
| 75 | weather.fog_density = args.fog |
| 76 | if args.fogdist is not None: |
| 77 | weather.fog_distance = args.fogdist |
| 78 | if args.wetness is not None: |
| 79 | weather.wetness = args.wetness |
| 80 | |
| 81 | |
| 82 | def main(): |