We're updating the issue view to help you get more done. 

Allow NetCDF unit library configuration, and fix regression with some outputs caused by unit library upgrade

Description

The current code gets the unit for each band from the read and formats it using its own "toString()" method, which internally uses a formatter.
During NetCDF encoding it has then to parse such string back to a unit, but the uom library we are using nowadays cannot do so reliably: https://github.com/unitsofmeasurement/uom-se/issues/201
The long term fix will eventually require an overhaul of the unit libraries we use, but for the time being, a formatter that properly round-trips has been added in GeoTools.

At the same time, allow the configuration of NetCDF unit management via config files.

Environment

None

Status

Assignee

Andrea Aime

Reporter

Andrea Aime

Triage

None

Fix versions

Affects versions

None

Components

Priority

Medium