iris.fileformats.grib.grib_save_rules

Grib save implementation.

..deprecated:: 1.8

This module is for legacy requirements only. It has been superceded by :mod:`iris.fileformats.grib._save_rules’, which has no public API.

In this module:

iris.fileformats.grib.grib_save_rules.background_process_id(cube, grib)

↑ top ↑

iris.fileformats.grib.grib_save_rules.centre(cube, grib)

↑ top ↑

iris.fileformats.grib.grib_save_rules.data(cube, grib)

↑ top ↑

iris.fileformats.grib.grib_save_rules.dx_dy(x_coord, y_coord, grib)

↑ top ↑

iris.fileformats.grib.grib_save_rules.generating_process_id(cube, grib)

↑ top ↑

iris.fileformats.grib.grib_save_rules.generating_process_type(cube, grib)

↑ top ↑

iris.fileformats.grib.grib_save_rules.gribbability_check(cube)

We always need the following things for grib saving.

↑ top ↑

iris.fileformats.grib.grib_save_rules.grid_dims(x_coord, y_coord, grib)

↑ top ↑

iris.fileformats.grib.grib_save_rules.grid_template(cube, grib)

↑ top ↑

iris.fileformats.grib.grib_save_rules.hybrid_surfaces(cube, grib)

↑ top ↑

iris.fileformats.grib.grib_save_rules.identification(cube, grib)

↑ top ↑

iris.fileformats.grib.grib_save_rules.latlon_common(cube, grib)

↑ top ↑

iris.fileformats.grib.grib_save_rules.latlon_first_last(x_coord, y_coord, grib)

↑ top ↑

iris.fileformats.grib.grib_save_rules.non_hybrid_surfaces(cube, grib)

↑ top ↑

iris.fileformats.grib.grib_save_rules.obs_time_after_cutoff(cube, grib)

↑ top ↑

iris.fileformats.grib.grib_save_rules.param_code(cube, grib)

↑ top ↑

iris.fileformats.grib.grib_save_rules.product_common(cube, grib)

↑ top ↑

iris.fileformats.grib.grib_save_rules.product_template(cube, grib)

↑ top ↑

iris.fileformats.grib.grib_save_rules.reference_time(cube, grib)

↑ top ↑

iris.fileformats.grib.grib_save_rules.rotated_pole(cube, grib)

↑ top ↑

iris.fileformats.grib.grib_save_rules.run(cube, grib)

Sets the keys of the grib message based on the contents of the cube.

Args:

  • cube:

    An instance of iris.cube.Cube.

  • grib_message_id:

    ID of a grib message in memory. This is typically the return value of gribapi.grib_new_from_samples().

↑ top ↑

iris.fileformats.grib.grib_save_rules.scanning_mode_flags(x_coord, y_coord, grib)

↑ top ↑

iris.fileformats.grib.grib_save_rules.shape_of_the_earth(cube, grib)

↑ top ↑

iris.fileformats.grib.grib_save_rules.surfaces(cube, grib)

↑ top ↑

iris.fileformats.grib.grib_save_rules.time_processing_period(cube, grib)

For template 4.8 (time mean, time max, etc).

The time range is taken from the ‘time’ coordinate bounds. If the cell-method coordinate is not ‘time’ itself, the type of statistic will not be derived and the save process will be aborted.

↑ top ↑

iris.fileformats.grib.grib_save_rules.time_range(cube, grib)

Grib encoding of forecast_period.

↑ top ↑

iris.fileformats.grib.grib_save_rules.type_of_statistical_processing(cube, grib, coord)

Search for processing over the given coord.