Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Updating timezone cli call #1551

Merged
merged 7 commits into from
Sep 21, 2021
Merged
Changes from 4 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions improver/cli/map_to_timezones.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,15 +37,11 @@
@cli.clizefy
@cli.with_output
def process(
timezone_cube: cli.inputcube, local_time: str, *cubes: cli.inputcube,
local_time: str, *cubes: cli.inputcube, timezone_cube: cli.inputcube,
):
"""Calculates timezone-offset data for the specified UTC output times

Args:
timezone_cube (iris.cube.Cube):
Cube describing the UTC offset for the local time at each grid location.
Must have the same spatial coords as input_cube.
Use generate-timezone-mask-ancillary to create this.
local_time (str):
The "local" time of the output cube as %Y%m%dT%H%M. This will form a
scalar "time_in_local_timezone" coord on the output cube, while the "time"
Expand All @@ -55,6 +51,10 @@ def process(
Source data to be remapped onto time-zones. Must contain an exact 1-to-1
mapping of times to time-zones. Multiple input files will be merged into one
cube.
timezone_cube (iris.cube.Cube):
Cube describing the UTC offset for the local time at each grid location.
Must have the same spatial coords as input_cube.
Use generate-timezone-mask-ancillary to create this.

Returns:
iris.cube.Cube:
Expand Down