NCAS-CMS / cfdm

A Python reference implementation of the CF data model
http://ncas-cms.github.io/cfdm
MIT License
28 stars 11 forks source link

Creat new `SubsampledSubarray` subclass for the case of no standardised interpolation algorithm #228

Closed davidhassell closed 2 years ago

davidhassell commented 2 years ago

A SubsampledSubarray subclass for the case of no standardised interpolation algorithm is not strictly required by cfdm, as it doesn't create SubsampledSubarray subclasses until SubsampledArray.__getitem__ is called, and at that time an exception can be raised.

However, downstream applications may need to instantiate SubsampledSubarray subclasses when their Data object is created, as is the case for cf-python. In this case, the downstream application may need a container for the "no standardised interpolation algorithm" case if it expects to create SubsampledSubarray subclasses prior to SubsampledArray.__getitem__ being called.

To remedy this, I propose: