cf.Field.finalize

Field.finalize(chunksize=None)[source]

Finalize a newly created field.

It is essential that this is carried out on every new field to ensure that methods and functions of fields work correctly. Finalization entails:

  • Expanding scalar coordinate and cell measures to 1-d.
  • Setting the direction of the domain’s dimensions.
  • Conforming the domain’s internal dimension names.
  • Partitioning the data arrays for LAMA functionality.
Parameters :
chunksize : int, optional

Set the maximum size in bytes of partition data arrays for storage and processing. By default the size used by the cf.CHUNKSIZE function is used.

Returns :

None

Examples

>>> f.finalize()
>>> f.finalize(2**30)

Previous topic

cf.Field.expand_dims

Next topic

cf.Field.flip

This Page