GeoEco.Datasets.Virtual.ClimatologicalGridCollection.TestCapability

classmethod ClimatologicalGridCollection.TestCapability(capability)

Tests whether a capability is supported by this class or an instance of it.

If called on an instance, this method tests whether the underlying object represented by the instance supports the capability.

If called on the class, this method tests whether at least one instance can possibly support the capability. If no instances can ever support the capability, this method will indicate that the capability is not supported.

Parameters:

capability (str) – Capability to test. Minimum length꞉ 1.

Returns:

None if the capability is supported, or an instance of Exception if it is not supported. The string representation of the Exception explains why the capability is not supported (if possible) in the context of when it might be needed.

Return type:

Exception