satpy.cf.decoding module

CF decoding.

satpy.cf.decoding._datetime_parser_json(json_dict)[source]

Traverse JSON dictionary and parse timestamps.

satpy.cf.decoding._decode_dict_type_attrs(attrs)[source]
satpy.cf.decoding._decode_timestamps(attrs)[source]
satpy.cf.decoding._str2datetime(string)[source]

Convert string to datetime object.

satpy.cf.decoding._str2dict(val)[source]

Convert string to dictionary.

satpy.cf.decoding.decode_attrs(attrs)[source]

Decode CF-encoded attributes to Python object.

Converts timestamps to datetime and strings starting with “{” to dictionary.

Parameters:

attrs (dict) – Attributes to be decoded

Returns (dict): Decoded attributes