cf.DimensionCoordinate.creation_commands¶
-
DimensionCoordinate.creation_commands(representative_data=False, namespace='cf', indent=0, string=True, name='c', data_name='d', bounds_name='b', interior_ring_name='i')[source]¶ Return the commands that would create the construct.
New in version 3.2.0.
- Parameters
- representative_data:
bool, optional Return one-line representations of
Datainstances, which are not executable code but prevent the data being converted in its entirety to a string representation.- namespace:
str, optional The namespace containing classes of the
cfpackage. This is prefixed to the class name in commands that instantiate instances ofcfobjects. By default, namespace is'cf', i.e. it is assumed thatcfwas imported asimport cf.- Parameter example:
If
cfwas imported asimport cf as cfpthen setnamespace='cfp'- Parameter example:
If
cfwas imported asfrom cf import *then setnamespace=''
- indent:
int, optional Indent each line by this many spaces. By default no indentation is applied. Ignored if string is False.
- string:
bool, optional If False then return each command as an element of a
list. By default the commands are concatenated into a string, with a new line inserted between each command.
- representative_data:
- Returns
Examples:
TODO