cf.FieldList.subspace

FieldList.subspace

Subspace each field in the list, returning a new list of fields.

Subspaing by data array indices or by coordinate values are both allowed.

Returns :out : cf.FieldList

Examples

>>> fl
[<CF Variable: air_temperature(73, 96)>,
 <CF Variable: air_temperature(73, 96)>]
>>> fl.subspace[0,0]
[<CF Variable: air_temperature(1,1)>,
 <CF Variable: air_temperature(1,1)>]
>>> fl.slice(longitude=0, latitude=0)
[<CF Variable: air_temperature(1,1)>,
 <CF Variable: air_temperature(1,1)>]

Previous topic

cf.FieldList.squeeze

Next topic

cf.FieldList.transform

This Page