cf.FieldList.__getitem__

FieldList.__getitem__(index)[source]

Called to implement evaluation of f[index]

f.__getitem_(index) <==> f[index]

Examples 1:
>>> g = f[0]
>>> g = f[-1:-4:-1]
>>> g = f[2:2:2]
Returns:
out : cf.Field or cf.FieldList

If index is an integer then a field is returned. If index is a slice then a field list is returned, which may be empty.