Fix errors when write micaps file.
Add a config file and its parser for converting grads to micpas class 4 data.