pydsd.aux_readers

Module contents

Auxillary Readers Module.

GPMApuWallopsRawReader

class pydsd.aux_readers.GPMApuWallopsRawReader.GPMApuWallopsRawReader(filename)[source]

Bases: object

This class reads and parses parsivel disdrometer data from nasa ground campaigns. These conform to document.

conv_md_to_nd(Md, t=0.16666666666666666)[source]
diameter = {'data': array([ 0.06, 0.19, 0.32, 0.45, 0.58, 0.71, 0.84, 0.96, 1.09, 1.22, 1.42, 1.67, 1.93, 2.19, 2.45, 2.83, 3.35, 3.86, 4.38, 4.89, 5.66, 6.7 , 7.72, 8.76, 9.78, 11.33, 13.39, 15.45, 17.51, 19.57, 22.15, 25.24]), 'long_name': 'Particle diameter of bins', 'standard_name': 'diameter', 'units': 'mm'}
spread = {'data': array([0.129, 0.129, 0.129, 0.129, 0.129, 0.129, 0.129, 0.129, 0.129, 0.129, 0.257, 0.257, 0.257, 0.257, 0.257, 0.515, 0.515, 0.515, 0.515, 0.515, 1.03 , 1.03 , 1.03 , 1.03 , 1.03 , 2.06 , 2.06 , 2.06 , 2.06 , 2.06 , 3.09 , 3.09 ]), 'long_name': 'Bin size spread of bins', 'standard_name': 'spread', 'units': 'mm'}
supported_campaigns = ['ifloods', 'mc3e_dsd', 'mc3e_raw']
velocity = {'data': array([ 0.05, 0.15, 0.25, 0.35, 0.45, 0.55, 0.65, 0.75, 0.85, 0.96, 1.13, 1.35, 1.59, 1.83, 2.08, 2.4 , 2.78, 3.15, 3.5 , 3.84, 4.4 , 5.2 , 6. , 6.8 , 7.6 , 8.8 , 10.4 , 12. , 13.6 , 15.2 , 17.6 , 20.8 ]), 'long_name': 'Terminal fall velocity for each bin', 'standard_name': 'velocity', 'units': 'm s^-1'}
pydsd.aux_readers.GPMApuWallopsRawReader.read_gpm_nasa_apu_raw_wallops(filename)[source]

Takes a filename pointing to a parsivel NASA Field Campaign file with RAW Data and returns a drop size distribution object.

Usage: dsd = read_gpm_nasa_apu_raw_wallops(filename)

Returns: DropSizeDistrometer object

Note: NASA’s processing strips out rain rate so we have to recalculate it based upon a fall speed relationship.

NASA_2DVD_reader

class pydsd.aux_readers.NASA_2DVD_reader.NASA_2DVD_dsd_reader(filename, skip_header)[source]

Bases: object

This class reads and parses 2dvd disdrometer data from NASA ground campaigns. It works with the _dropCounts files from IFloodS.

Use the read_2dvd_dsd_nasa_gv() function to interface with this.

supported_campaigns = ['mc3e', 'ifloods']
class pydsd.aux_readers.NASA_2DVD_reader.NASA_2DVD_sav_reader(filename, campaign)[source]

Bases: object

This class reads and parses 2dvd disdrometer data from nasa ground campaigns.

Use the read_2dvd_sav_nasa_gv() function to interface with this.

supported_campaigns = ['ifloods']
pydsd.aux_readers.NASA_2DVD_reader.read_2dvd_dsd_nasa_gv(filename, skip_header=None)[source]
Takes a filename pointing to a 2D-Video Disdrometer NASA Field Campaign

_dsd file and returns a drop size distribution object.

This reader processes the _dsd files generated.

Usage: dsd = read_2dvd_dsd_nasa_gv(filename)

Returns: DropSizeDistrometer object

pydsd.aux_readers.NASA_2DVD_reader.read_2dvd_sav_nasa_gv(filename, campaign='ifloods')[source]

Takes a filename pointing to a 2D-Video Disdrometer NASA Field Campaign file and returns a drop size distribution object.

This reader processes the .sav files generated.

Usage: dsd = read_2dvd_sav_nasa_gv(filename, campaign=’ifloods’)

Current Options for campaign are:

‘ifloods’

Returns: DropSizeDistrometer object