When running Component using the BritishNationalGrid, Y and X axes have both dimension coordinates (i.e. projection_y|x_coordinate) and auxiliary coordinates (i.e. latitude|longitude). In several places in cm4twc the cf.Field method construct is used to get access to dimension coordinates, but this fails with:
When running
Component
using theBritishNationalGrid
, Y and X axes have both dimension coordinates (i.e. projection_y|x_coordinate) and auxiliary coordinates (i.e. latitude|longitude). In several places incm4twc
thecf.Field
methodconstruct
is used to get access to dimension coordinates, but this fails with:This is because Y|X axes feature both a dimension and a auxiliary coordinate.
This can be fixed by explicitly getting access to the dimension coordinates through the
cf.Field
methoddimension_coordinate
(or its aliasdim
).