/
domainancillary.py
47 lines (33 loc) · 1.34 KB
/
domainancillary.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
import cfdm
from . import Bounds
from . import mixin
class DomainAncillary(mixin.PropertiesDataBounds,
cfdm.DomainAncillary):
'''A domain ancillary construct of the CF data model.
A domain ancillary construct provides information which is needed
for computing the location of cells in an alternative coordinate
system. It is referenced by a term of a coordinate conversion
formula of a coordinate reference construct. It contains a data
array which depends on zero or more of the domain axes.
It also contains an optional array of cell bounds, stored in a
`cf.Bounds` object, recording the extents of each cell (only
applicable if the array contains coordinate data), and properties
to describe the data.
An array of cell bounds spans the same domain axes as the data
array, with the addition of an extra dimension whose size is that
of the number of vertices of each cell.
**NetCDF interface**
{{netcdf variable}}
'''
def __new__(cls, *args, **kwargs):
'''
'''
instance = super().__new__(cls)
instance._Bounds = Bounds
return instance
def __repr__(self):
'''Called by the `repr` built-in function.
x.__repr__() <==> repr(x)
'''
return super().__repr__().replace('<', '<CF ', 1)
# --- End: class