satpy.readers.xmlformat module

Reads a format from an xml file to create dtypes and scaling factor arrays.

class satpy.readers.xmlformat.XMLFormat(filename)[source]

Bases: object

XMLFormat object.

Init the format reader.

apply_scales(array)[source]

Apply scales to array.

dtype(key)[source]

Get the dtype for the format object.

satpy.readers.xmlformat._apply_scales(array, scales, dtype)[source]

Apply scales to the array.

satpy.readers.xmlformat.parse_format(xml_file)[source]

Parse the xml file to create types, scaling factor types, and scales.

satpy.readers.xmlformat.process_array(elt, text=False)[source]

Process an ‘array’ tag.

satpy.readers.xmlformat.process_delimiter(elt, text=False)[source]

Process a ‘delimiter’ tag.

satpy.readers.xmlformat.process_field(elt, text=False)[source]

Process a ‘field’ tag.

satpy.readers.xmlformat.to_dtype(val)[source]

Parse val to return a dtype.

satpy.readers.xmlformat.to_scaled_dtype(val)[source]

Parse val to return a dtype.

satpy.readers.xmlformat.to_scales(val)[source]

Parse val to return an array of scale factors.