improver.cli.map_to_timezones module
Script to map multiple forecast times into a local time grid
- process(local_time, *cubes)[source]
Calculates timezone-offset data for the specified UTC output times
- Parameters
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” coord will be auxillary to the spatial coords and will show the UTC time that matches the local_time at each point. This can also be provided in the form of a filepath where the ‘local_time’ is denoted in this format at the beginning of the basename.
cubes (list of iris.cube.Cube) – 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. Assumes the final argument is a timezone_cube, which is a 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
Processed cube.
- Return type