Skip to content

Commit 70e92fd

Browse files
committed
dev
1 parent 67294b4 commit 70e92fd

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

cf/aggregate.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -505,6 +505,7 @@ def __init__(
505505
"identity": dim_identity,
506506
"key": dim_coord_key,
507507
"units": units,
508+
"cf_role": None,
508509
"hasdata": dim_coord.has_data(),
509510
"hasbounds": hasbounds,
510511
"coordrefs": self.find_coordrefs(axis),
@@ -542,11 +543,14 @@ def __init__(
542543
aux_coord, aux_identity, relaxed_units=relaxed_units
543544
)
544545

546+
cf_role = self.featureType and aux_coord.get_property("cf_role", None)
547+
545548
info_aux.append(
546549
{
547550
"identity": aux_identity,
548551
"key": key,
549552
"units": units,
553+
"cf_role": cf_role,
550554
"hasdata": aux_coord.has_data(),
551555
"hasbounds": aux_coord.has_bounds(),
552556
"coordrefs": self.find_coordrefs(key),
@@ -595,6 +599,7 @@ def __init__(
595599
"ids": "identity",
596600
"keys": "key",
597601
"units": "units",
602+
"cf_role": "cf_role",
598603
"hasdata": "hasdata",
599604
"hasbounds": "hasbounds",
600605
"coordrefs": "coordrefs",
@@ -1821,6 +1826,7 @@ def structural_signature(self):
18211826
]
18221827
),
18231828
),
1829+
("cf_role", axis[identity]["cf_role"]),
18241830
("hasdata", axis[identity]["hasdata"]),
18251831
("hasbounds", axis[identity]["hasbounds"]),
18261832
("coordrefs", axis[identity]["coordrefs"]),

0 commit comments

Comments
 (0)