FIDUCEO / FCDR_HIRS

Other
1 stars 2 forks source link

Make sure global attributes consistent with BC template #320

Open gerritholl opened 5 years ago

gerritholl commented 5 years ago

I should make sure that my global attributes are consistent with the template. Certainly I shouldn't be overwriting anything (see #319) but also I should only write to attributes that are already defined in the template, and if they aren't, they should be added.

gerritholl commented 5 years ago

See https://github.com/FIDUCEO/FCDRTools/issues/19 and https://github.com/FIDUCEO/FCDRTools/issues/20

gerritholl commented 5 years ago

This also affects variable attributes, as we should replace the lines

        for (k, v) in _fcdr_defs.FCDR_extra_attrs.items():
            easy[k].attrs.update(v)