Skip to content

Commit

Permalink
lon_tz.py WIP: add --latitude and --type
Browse files Browse the repository at this point in the history
  • Loading branch information
ikluft committed May 9, 2024
1 parent 3c8f0a5 commit 034e255
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions src/python/scripts/lon_tz.py
Original file line number Diff line number Diff line change
Expand Up @@ -182,13 +182,27 @@ def _gen_arg_parser() -> argparse.ArgumentParser:
excl_group.add_argument(
"--tzfile",
"--tzdata",
action=argparse.BooleanOptionalAction,
help="generate solar time zones tzdata text",
)

# --longitude sets degrees of longitude for a specified time zone
excl_group.add_argument(
"--longitude",
type=float,
help="longitude for solar time zone (required when not using --tzfile)",
)

# parameters for timezone_solar
top_parser.add_argument(
"--latitude",
type=float,
help="latitude for solar time zone (optional)",
)
top_parser.add_argument(
"--type",
choices=['hour', 'longitude'],
help="solar time zone type: 'hour' or 'longitude' (default: hour)",
)

return top_parser
Expand Down

0 comments on commit 034e255

Please sign in to comment.