cf.AncillaryVariables.subspace

AncillaryVariables.subspace

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

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

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.AncillaryVariables.squeeze

Next topic

cf.AncillaryVariables.transpose

This Page