RAVE
Lib.polar_merger.polar_merger Class Reference

Helps with merging scans or volumes containing different parameters but where date/time & source matches. More...

Inheritance diagram for Lib.polar_merger.polar_merger:

Public Member Functions

 __init__ (self, interval=15)
 Constructor.
 
 merge_files (self, fstrs)
 Merges a list of files.
 
 merge (self, robjs)
 
 create_nominal_time_str (self, dstr, tstr)
 Creates a nominal date / time string.
 

Public Attributes

 interval = interval
 

Protected Member Functions

 _verify_elangles (self, pos)
 If incoming objects are all scans, then the elevation angles must be same in order to merge files.
 
 _merge_files (self, pos)
 
 _add_object_to (self, srco, tgto)
 
 _merge_parameters (self, srcscan, tgtscan)
 Merges the parameters from srcscan into tgtscan.
 

Detailed Description

Helps with merging scans or volumes containing different parameters but where date/time & source matches.

The date/time is matched on a nominal time base. Which means that if for example interval = 15, then scans from 00:00 -> 14:59 will be assumed to have the same nominal time (00:00).

Constructor & Destructor Documentation

◆ __init__()

Lib.polar_merger.polar_merger.__init__ ( self,
interval = 15 )

Constructor.

Parameters
intervalthe nominal time intervals.

Member Function Documentation

◆ _merge_parameters()

Lib.polar_merger.polar_merger._merge_parameters ( self,
srcscan,
tgtscan )
protected

Merges the parameters from srcscan into tgtscan.

If parameter already exists in tgtscan no merging of parameter is performed.

◆ _verify_elangles()

Lib.polar_merger.polar_merger._verify_elangles ( self,
pos )
protected

If incoming objects are all scans, then the elevation angles must be same in order to merge files.

If at least one of the incoming objects are a volume, we can handle any elevation angles since we will just fill the volume.

◆ create_nominal_time_str()

Lib.polar_merger.polar_merger.create_nominal_time_str ( self,
dstr,
tstr )

Creates a nominal date / time string.

◆ merge_files()

Lib.polar_merger.polar_merger.merge_files ( self,
fstrs )

Merges a list of files.

The file names should point to either polar volumes or polar scans and the what/date, what/time, what/source and eventually where/elangle needs to match.

Parameters
fstrs- a list of file strings
Returns
a rave object

The documentation for this class was generated from the following file: