@classmethod
def fromDataArray(cls, data: DataArray):
    cosemAttrs = COSEMArrayAttrs.fromDataArray(data)
    pixelResolution = N5PixelResolution(cosemAttrs.transform.scale[::(- 1)], unit=cosemAttrs.transform.units[0])
    return cls(cosemAttrs.name, cosemAttrs.transform, pixelResolution)
@classmethod
def fromDataArray(cls, data: DataArray):
    cosemAttrs = COSEMArrayAttrs.fromDataArray(data)
    pixelResolution = N5PixelResolution(cosemAttrs.transform.scale[::(- 1)], unit=cosemAttrs.transform.units[0])
    return cls(cosemAttrs.name, cosemAttrs.transform, pixelResolution)