Advanced Microwave Precipitation Radiometer (AMPR) brightness temperature data from NASA field projects are in ASCII format. This Python script defines a class that will read in a single file from an individual aircraft flight and pull out timing, brightness temperatures from each channel, geolocation, and other information and store them as attributes using numpy arrays of the appropriate type.
The approach is to ingest the entire file as a text string and then parse and type-convert as necessary. The file is read and the data are populated when the class is instantiated with the full path and name of an AMPR file. Numerous visualization methods are provided, including track plots, strip charts, and Google Earth KMZs. In addition, polarization deconvolution is available. The PyAMPR software is intended for noncommercialized scientific research.