Module Expr Str ImportFrom alias Import alias Import alias Import alias identifier ImportFrom alias alias ImportFrom alias ImportFrom alias ImportFrom alias alias ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam defaults NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad body If CompareNotIn Str NameLoad body Assign SubscriptStore NameLoad Index Str Str Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr Call NameLoad SubscriptLoad NameLoad Index Str Assign AttributeStore NameLoad attr Call NameLoad SubscriptLoad NameLoad Index Str Assign AttributeStore NameLoad attr Call NameLoad SubscriptLoad NameLoad Index Str Assign AttributeStore NameLoad attr Dict Str Str Str NameLoad Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call NameLoad Call NameLoad Str Expr Call AttributeLoad NameLoad attr Str Call NameLoad NameLoad Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call NameLoad Call NameLoad Str Expr Call AttributeLoad NameLoad attr Str Call NameLoad NameLoad Num Assign AttributeStore NameLoad attr NameLoad Assign NameStore Call NameLoad Call NameLoad Str Expr Call AttributeLoad NameLoad attr Str Call NameLoad NameLoad Num Assign AttributeStore NameLoad attr NameLoad Assign NameStore Call NameLoad Call NameLoad Str Expr Call AttributeLoad NameLoad attr Str Call NameLoad NameLoad Num Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call NameLoad Call NameLoad Str Expr Call AttributeLoad NameLoad attr Str Call NameLoad NameLoad Num Assign AttributeStore NameLoad attr NameLoad Assign NameStore Call NameLoad Call NameLoad Str Expr Call AttributeLoad NameLoad attr Str Call NameLoad NameLoad Num Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call NameLoad Call NameLoad Str Expr Call AttributeLoad NameLoad attr Str Call NameLoad NameLoad Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str If BoolOpOr CompareLt NameLoad Num CompareGtE NameLoad AttributeLoad NameLoad attr body Raise Call NameLoad Str NameLoad Return decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str If CompareNotIn NameLoad AttributeLoad NameLoad attr body Raise Call NameLoad BinOpAdd Str NameLoad Return decorator_list FunctionDef arguments args NameParam defaults body Expr Str Return GeneratorExp NameLoad comprehension NameStore SubscriptLoad AttributeLoad NameLoad attr Index Str decorator_list FunctionDef arguments args NameParam defaults body Expr Str Return GeneratorExp NameLoad comprehension NameStore SubscriptLoad AttributeLoad NameLoad attr Index Str decorator_list FunctionDef arguments args NameParam defaults body Expr Str Return GeneratorExp TupleLoad NameLoad NameLoad comprehension TupleStore NameStore NameStore Call NameLoad Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Str Return GeneratorExp Call NameLoad NameLoad BinOpAdd NameLoad Num comprehension TupleStore NameStore NameStore Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Expr Call AttributeLoad NameLoad attr NameLoad Return GeneratorExp SubscriptLoad SubscriptLoad SubscriptLoad AttributeLoad NameLoad attr Index NameLoad Index Str Index NameLoad comprehension NameStore Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Str Return GeneratorExp SubscriptLoad SubscriptLoad AttributeLoad NameLoad attr Index Str Index NameLoad comprehension NameStore Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Str Return GeneratorExp SubscriptLoad SubscriptLoad AttributeLoad NameLoad attr Index Str Index NameLoad comprehension NameStore Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Expr Call AttributeLoad NameLoad attr NameLoad Return SubscriptLoad SubscriptLoad AttributeLoad NameLoad attr Index Str Index NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Expr Call AttributeLoad NameLoad attr NameLoad Return SubscriptLoad SubscriptLoad AttributeLoad NameLoad attr Index Str Index NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Return TupleLoad Call AttributeLoad NameLoad attr NameLoad Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign TupleStore NameStore NameStore Call AttributeLoad NameLoad attr NameLoad Return Call NameLoad NameLoad BinOpAdd NameLoad Num decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults NameLoad body Expr Str Expr Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore SubscriptLoad SubscriptLoad SubscriptLoad AttributeLoad NameLoad attr Index NameLoad Index Str Index NameLoad If NameLoad body Return Call AttributeLoad NameLoad attr orelse Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults NameLoad body Expr Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore SubscriptLoad SubscriptLoad AttributeLoad NameLoad attr Index Str Index NameLoad If NameLoad body Return Call AttributeLoad NameLoad attr orelse Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults NameLoad body Expr Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore SubscriptLoad SubscriptLoad AttributeLoad NameLoad attr Index Str Index NameLoad If NameLoad body Return Call AttributeLoad NameLoad attr orelse Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults NameLoad NameLoad body Expr Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad If BoolOpAnd NameLoad CompareIsNot AttributeLoad NameLoad attr NameLoad body Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore CompareEq SubscriptLoad SubscriptLoad AttributeLoad NameLoad attr Index Str Index NameLoad Num Assign NameStore SubscriptLoad NameLoad Index NameLoad Assign NameStore SubscriptLoad NameLoad Index NameLoad Return Call NameLoad SubscriptLoad AttributeLoad NameLoad attr Index Str NameLoad NameLoad keyword NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults NameLoad body Expr Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad TryExcept body Assign NameStore SubscriptLoad SubscriptLoad SubscriptLoad AttributeLoad NameLoad attr Index Str Index Str Index NameLoad handlers ExceptHandler body Raise Call NameLoad Str If NameLoad body If Call AttributeLoad NameLoad attr CompareNotEq NameLoad SubscriptLoad NameLoad Index Num body Raise Call NameLoad Str Return Call NameLoad SubscriptLoad NameLoad Index Num decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults Str AttributeLoad NameLoad attr body Expr Str If CompareEq NameLoad Str body Assign NameStore Str orelse If CompareEq NameLoad Str body Assign NameStore Str orelse If CompareEq NameLoad Str body Assign NameStore Str If CompareNotIn NameLoad ListLoad Str Str Str body Raise Call NameLoad Str Expr Call AttributeLoad NameLoad attr Str NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Str NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Str NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Str NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Str NameLoad NameLoad Expr Call NameLoad Str keyword NameLoad For TupleStore NameStore NameStore Call AttributeLoad AttributeLoad NameLoad attr attr body Expr Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad NameLoad Num Expr Call AttributeLoad NameLoad attr Str NameLoad NameLoad If CompareIs AttributeLoad NameLoad attr NameLoad body Expr Call NameLoad Str keyword NameLoad orelse Expr Call NameLoad Str keyword NameLoad For TupleStore NameStore NameStore Call AttributeLoad AttributeLoad NameLoad attr attr body Expr Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad NameLoad Num Expr Call AttributeLoad NameLoad attr Str NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Str NameLoad NameLoad Expr Call NameLoad Str AttributeLoad NameLoad attr keyword NameLoad Expr Call NameLoad Str AttributeLoad NameLoad attr keyword NameLoad Expr Call NameLoad Str AttributeLoad NameLoad attr keyword NameLoad If CompareIs AttributeLoad NameLoad attr NameLoad body Expr Call NameLoad Str keyword NameLoad orelse Expr Call NameLoad Str keyword NameLoad For TupleStore NameStore NameStore Call AttributeLoad AttributeLoad NameLoad attr attr body Expr Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad NameLoad Num Expr Call AttributeLoad NameLoad attr Str NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Str NameLoad NameLoad Expr Call NameLoad Str AttributeLoad NameLoad attr keyword NameLoad Expr Call AttributeLoad NameLoad attr Str NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Str NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Str NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Str NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Str NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Str NameLoad NameLoad If CompareIsNot AttributeLoad NameLoad attr NameLoad body Expr Call AttributeLoad NameLoad attr Str NameLoad NameLoad If CompareIsNot AttributeLoad NameLoad attr NameLoad body Expr Call AttributeLoad NameLoad attr Str NameLoad NameLoad If CompareIsNot AttributeLoad NameLoad attr NameLoad body Expr Call AttributeLoad NameLoad attr Str NameLoad NameLoad If CompareIsNot AttributeLoad NameLoad attr NameLoad body Expr Call AttributeLoad NameLoad attr Str NameLoad NameLoad If CompareIsNot AttributeLoad NameLoad attr NameLoad body Expr Call AttributeLoad NameLoad attr Str NameLoad NameLoad If CompareIsNot AttributeLoad NameLoad attr NameLoad body Expr Call AttributeLoad NameLoad attr Str NameLoad NameLoad If CompareIsNot AttributeLoad NameLoad attr NameLoad body Expr Call AttributeLoad NameLoad attr Str NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Str Str NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam NameParam defaults NameLoad Num body Expr Str If CompareIs NameLoad NameLoad body Assign NameStore Call NameLoad NameLoad NameLoad Assign NameStore BinOpMult Str NameLoad Assign NameStore BinOpMult Str BinOpAdd NameLoad Num If CompareIs NameLoad NameLoad body Expr Call NameLoad BinOpAdd NameLoad Str keyword NameLoad Return If CompareNotIn Str NameLoad body Assign NameStore Str orelse If UnaryOpNot Call NameLoad SubscriptLoad NameLoad Index Str AttributeLoad NameLoad attr body Assign NameStore Str orelse Assign NameStore SubscriptLoad NameLoad Index Str Assign NameStore TupleLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign NameStore BinOpMod Str NameLoad If CompareEq NameLoad Str body Expr Call NameLoad BinOpAdd BinOpAdd NameLoad NameLoad Str NameLoad keyword NameLoad orelse If CompareEq NameLoad Str body Expr Call NameLoad BinOpAdd BinOpAdd NameLoad NameLoad Str keyword NameLoad Expr Call NameLoad BinOpAdd NameLoad Str NameLoad keyword NameLoad For TupleStore NameStore NameStore Call AttributeLoad NameLoad attr body If CompareEq NameLoad Str body Continue Expr Call NameLoad BinOpAdd BinOpAdd NameLoad NameLoad Str NameLoad keyword NameLoad orelse If CompareEq NameLoad Str body Expr Call NameLoad BinOpAdd NameLoad Str keyword NameLoad If CompareIn Str NameLoad body Expr Call NameLoad BinOpAdd NameLoad Str SubscriptLoad NameLoad Index Str keyword NameLoad For TupleStore NameStore NameStore Call AttributeLoad NameLoad attr body If CompareEq NameLoad Str body Continue Expr Call NameLoad BinOpAdd BinOpAdd NameLoad NameLoad Str NameLoad keyword NameLoad Return decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults NameLoad body Expr Str If BoolOpAnd CompareIn NameLoad AttributeLoad NameLoad attr CompareIs NameLoad NameLoad body Assign NameStore BinOpMod Str NameLoad Raise Call NameLoad NameLoad If CompareNotIn Str NameLoad body Raise Call NameLoad Str If CompareNotEq AttributeLoad SubscriptLoad NameLoad Index Str attr TupleLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr body Assign NameStore TupleLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign NameStore BinOpMod Str NameLoad Raise Call NameLoad NameLoad Assign SubscriptStore AttributeLoad NameLoad attr Index NameLoad NameLoad Return decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam defaults NameLoad body Expr Str If CompareNotIn NameLoad AttributeLoad NameLoad attr body Assign NameStore BinOpMod Str NameLoad Raise Call NameLoad NameLoad Assign NameStore Dict For TupleStore NameStore NameStore Call AttributeLoad SubscriptLoad AttributeLoad NameLoad attr Index NameLoad attr body If CompareNotEq NameLoad Str body Assign SubscriptStore NameLoad Index NameLoad NameLoad Assign SubscriptStore NameLoad Index Str NameLoad Return Call AttributeLoad NameLoad attr NameLoad NameLoad keyword NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad keyword Str If Call AttributeLoad NameLoad attr CompareGt NameLoad BinOpSub AttributeLoad NameLoad attr Num body Raise Call NameLoad Str If Call AttributeLoad NameLoad attr CompareLt NameLoad Num body Raise Call NameLoad Str FunctionDef arguments args NameParam NameParam defaults body Expr Str If CompareIs NameLoad NameLoad body Return NameLoad Assign NameStore Call AttributeLoad NameLoad attr If BoolOpAnd CompareIn Str NameLoad CompareIsNot NameLoad NameLoad body Assign SubscriptStore NameLoad Index Str Call AttributeLoad SubscriptLoad SubscriptLoad NameLoad Index Str Index NameLoad attr Return NameLoad decorator_list Assign NameStore SubscriptLoad BinOpAdd BinOpSub SubscriptLoad AttributeLoad NameLoad attr Index Str SubscriptLoad AttributeLoad NameLoad attr Index Str Num Index NameLoad Assign NameStore SubscriptLoad SubscriptLoad AttributeLoad NameLoad attr Index Str Index NameLoad Assign NameStore Call AttributeLoad Call AttributeLoad NameLoad attr ListComp Call NameLoad NameLoad BinOpAdd NameLoad NameLoad comprehension TupleStore NameStore NameStore Call NameLoad NameLoad NameLoad attr Str If CompareEq Call NameLoad SubscriptLoad AttributeLoad NameLoad attr Index Str Num body Assign NameStore NameLoad orelse Assign NameStore NameLoad Assign NameStore Call NameLoad AttributeLoad NameLoad attr NameLoad Assign NameStore Call NameLoad AttributeLoad NameLoad attr NameLoad Assign NameStore Dict For TupleStore NameStore NameStore Call AttributeLoad AttributeLoad NameLoad attr attr body Assign SubscriptStore NameLoad Index NameLoad Call NameLoad NameLoad NameLoad Assign NameStore Call NameLoad AttributeLoad NameLoad attr NameLoad Assign NameStore Call NameLoad AttributeLoad NameLoad attr Assign NameStore Call NameLoad AttributeLoad NameLoad attr NameLoad Assign NameStore Call NameLoad AttributeLoad NameLoad attr NameLoad Assign NameStore Call NameLoad AttributeLoad NameLoad attr NameLoad Assign NameStore Call NameLoad AttributeLoad NameLoad attr NameLoad Assign NameStore Call NameLoad AttributeLoad NameLoad attr NameLoad Assign NameStore Call NameLoad AttributeLoad NameLoad attr NameLoad Assign NameStore Call NameLoad AttributeLoad NameLoad attr NameLoad Assign NameStore Call NameLoad AttributeLoad NameLoad attr NameLoad Assign SubscriptStore NameLoad Index Str Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr ListLoad Num SubscriptLoad NameLoad Slice Num Assign NameStore Call NameLoad AttributeLoad NameLoad attr NameLoad Assign SubscriptStore NameLoad Index Str BinOpSub Call AttributeLoad NameLoad attr NameLoad Num Assign NameStore Call NameLoad AttributeLoad NameLoad attr NameLoad Assign NameStore Call NameLoad AttributeLoad NameLoad attr NameLoad Assign NameStore Call NameLoad AttributeLoad NameLoad attr NameLoad Assign NameStore Call NameLoad AttributeLoad NameLoad attr NameLoad Assign NameStore Call NameLoad AttributeLoad NameLoad attr NameLoad If CompareIs AttributeLoad NameLoad attr NameLoad body Assign NameStore NameLoad orelse Assign NameStore Dict For TupleStore NameStore NameStore Call AttributeLoad AttributeLoad NameLoad attr attr body If CompareNotEq AttributeLoad SubscriptLoad NameLoad Index Str attr Num body Assign NameStore SubscriptLoad AttributeLoad SubscriptLoad NameLoad Index Str attr Index Num orelse Assign NameStore Num If CompareEq NameLoad AttributeLoad NameLoad attr body Assign NameStore Call NameLoad NameLoad NameLoad orelse If CompareEq NameLoad AttributeLoad NameLoad attr body Assign NameStore Call NameLoad NameLoad NameLoad orelse Assign NameStore Call NameLoad NameLoad NameLoad Assign SubscriptStore NameLoad Index NameLoad NameLoad If CompareIs AttributeLoad NameLoad attr NameLoad body Assign NameStore NameLoad orelse Assign NameStore Dict For TupleStore NameStore NameStore Call AttributeLoad AttributeLoad NameLoad attr attr body If CompareEq NameLoad Str body Assign SubscriptStore NameLoad Index NameLoad Call NameLoad NameLoad NameLoad orelse Assign SubscriptStore NameLoad Index NameLoad Call NameLoad NameLoad NameLoad Return Call NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad keyword NameLoad keyword NameLoad keyword NameLoad keyword NameLoad keyword NameLoad keyword NameLoad decorator_list decorator_list FunctionDef arguments args NameParam defaults body Expr Str FunctionDef arguments args defaults body Expr Str Return BinOpAdd BinOpSub SubscriptLoad AttributeLoad NameLoad attr Index Str SubscriptLoad AttributeLoad NameLoad attr Index Str Num decorator_list Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str FunctionDef arguments args defaults body Expr Str Assign NameStore SubscriptLoad AttributeLoad NameLoad attr Index Str Assign NameStore SubscriptLoad AttributeLoad NameLoad attr Index Str Assign NameStore SubscriptLoad AttributeLoad NameLoad attr Index Str Assign NameStore Call NameLoad NameLoad NameLoad NameLoad keyword NameLoad If CompareNotEq NameLoad Num body Assign SubscriptStore AttributeLoad NameLoad attr Index Str SubscriptLoad NameLoad Index Num If CompareNotEq NameLoad Num body Assign SubscriptStore AttributeLoad NameLoad attr Index Str SubscriptLoad NameLoad Index Num If CompareNotEq NameLoad Num body Assign SubscriptStore AttributeLoad NameLoad attr Index Str SubscriptLoad NameLoad Index Num Return SubscriptLoad NameLoad Index NameLoad decorator_list Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str FunctionDef arguments args defaults body Expr Str Assign NameStore SubscriptLoad AttributeLoad NameLoad attr Index Str Assign NameStore SubscriptLoad AttributeLoad NameLoad attr Index Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr If Call AttributeLoad NameLoad attr Str NameLoad body Assign SubscriptStore NameLoad Index Str SubscriptLoad SubscriptLoad AttributeLoad NameLoad attr Index Str Index Num Assign SubscriptStore NameLoad Index Str SubscriptLoad SubscriptLoad AttributeLoad NameLoad attr Index Str Index Num Assign NameStore Call NameLoad NameLoad NameLoad NameLoad If CompareEq NameLoad Num body Assign SubscriptStore AttributeLoad NameLoad attr Index Str SubscriptLoad NameLoad Index Num orelse Assign SubscriptStore AttributeLoad NameLoad attr Index Str SubscriptLoad NameLoad Index Num Return SubscriptLoad NameLoad Index NameLoad decorator_list Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str FunctionDef arguments args defaults body Expr Str Return BinOpAdd SubscriptLoad AttributeLoad NameLoad attr Index Str SubscriptLoad AttributeLoad NameLoad attr Index Str decorator_list Return NameLoad decorator_list
N/A N/A 
pyart.core.radar
================

A general central radial scanning (or dwelling) instrument class.

.. autosummary::
    :toctree: generated/

    _rays_per_sweep_data_factory
    _gate_data_factory
    _gate_lon_lat_data_factory
    _gate_altitude_data_factory

.. autosummary::
    :toctree: generated/
    :template: dev_template.rst

    Radar


 __future__ print_function N/A copy N/A sys N/A numpy np netCDF4 num2date date2num config get_metadata lazydict LazyLoadDict transforms antenna_vectors_to_cartesian cartesian_to_geographic Radar N/A object N/A N/A 
    A class for storing antenna coordinate radar data.

    The structure of the Radar class is based on the CF/Radial Data file
    format.  Global attributes and variables (section 4.1 and 4.3) are
    represented as a dictionary in the metadata attribute.  Other required and
    optional variables are represented as dictionaries in a attribute with the
    same name as the variable in the CF/Radial standard.  When a optional
    attribute not present the attribute has a value of None.  The data for a
    given variable is stored in the dictionary under the 'data' key.  Moment
    field data is stored as a dictionary of dictionaries in the fields
    attribute.  Sub-convention variables are stored as a dictionary of
    dictionaries under the meta_group attribute.

    Refer to the attribute section for information on the parameters.

    Attributes
    ----------
    time : dict
        Time at the center of each ray.
    range : dict
        Range to the center of each gate (bin).
    fields : dict of dicts
        Moment fields.
    metadata : dict
        Metadata describing the instrument and data.
    scan_type : str
        Type of scan, one of 'ppi', 'rhi', 'sector' or 'other'.  If the scan
        volume contains multiple sweep modes this should be 'other'.
    latitude : dict
        Latitude of the instrument.
    longitude : dict
        Longitude of the instrument.
    altitude : dict
        Altitude of the instrument, above sea level.
    altitude_agl : dict or None
        Altitude of the instrument above ground level.  If not provided this
        attribute is set to None, indicating this parameter not available.
    sweep_number : dict
        The number of the sweep in the volume scan, 0-based.
    sweep_mode : dict
        Sweep mode for each mode in the volume scan.
    fixed_angle : dict
        Target angle for thr sweep.  Azimuth angle in RHI modes, elevation
        angle in all other modes.
    sweep_start_ray_index : dict
        Index of the first ray in each sweep relative to the start of the
        volume, 0-based.
    sweep_end_ray_index : dict
        Index of the last ray in each sweep relative to the start of the
        volume, 0-based.
    rays_per_sweep : LazyLoadDict
        Number of rays in each sweep.  The data key of this attribute is
        create upon first access from the data in the sweep_start_ray_index and
        sweep_end_ray_index attributes.  If the sweep locations needs to be
        modified, do this prior to accessing this attribute or use
        :py:func:`init_rays_per_sweep` to reset the attribute.
    target_scan_rate : dict or None
        Intended scan rate for each sweep.  If not provided this attribute is
        set to None, indicating this parameter is not available.
    rays_are_indexed : dict or None
        Indication of whether ray angles are indexed to a regular grid in
        each sweep.  If not provided this attribute is set to None, indicating
        ray angle spacing is not determined.
    ray_angle_res : dict or None
        If rays_are_indexed is not None, this provides the angular resolution
        of the grid.  If not provided or available this attribute is set to
        None.
    azimuth : dict
        Azimuth of antenna, relative to true North.
    elevation : dict
        Elevation of antenna, relative to the horizontal plane.
    gate_x, gate_y, gate_z : LazyLoadDict
        Location of each gate in a Cartesian coordinate system assuming a
        standard atmosphere with a 4/3 Earth's radius model. The data keys of
        these attributes are create upon first access from the data in the
        range, azimuth and elevation attributes. If these attributes are
        changed use :py:func:`init_gate_x_y_z` to reset.
    gate_longitude, gate_latitude : LazyLoadDict
        Geographic location of each gate.  The projection parameter(s) defined
        in the `projection` attribute are used to perform an inverse map
        projection from the Cartesian gate locations relative to the radar
        location to longitudes and latitudes. If these attributes are changed
        use :py:func:`init_gate_longitude_latitude` to reset the attributes.
    projection : dic or str
        Projection parameters defining the map projection used to transform
        from Cartesian to geographic coordinates.  The default dictionary sets
        the 'proj' key to 'pyart_aeqd' indicating that the native Py-ART
        azimuthal equidistant projection is used. This can be modified to
        specify a valid pyproj.Proj projparams dictionary or string.
        The special key '_include_lon_0_lat_0' is removed when interpreting
        this dictionary. If this key is present and set to True, which is
        required when proj='pyart_aeqd', then the radar longitude and
        latitude will be added to the dictionary as 'lon_0' and 'lat_0'.
    gate_altitude : LazyLoadDict
        The altitude of each radar gate as calculated from the altitude of the
        radar and the Cartesian z location of each gate.  If this attribute
        is changed use :py:func:`init_gate_altitude` to reset the attribute.
    scan_rate : dict or None
        Actual antenna scan rate.  If not provided this attribute is set to
        None, indicating this parameter is not available.
    antenna_transition : dict or None
        Flag indicating if the antenna is in transition, 1 = yes, 0 = no.
        If not provided this attribute is set to None, indicating this
        parameter is not available.
    rotation : dict or None
        The rotation angle of the antenna.  The angle about the aircraft
        longitudinal axis for a vertically scanning radar.
    tilt : dict or None
        The tilt angle with respect to the plane orthogonal (Z-axis) to
        aircraft longitudinal axis.
    roll : dict or None
        The roll angle of platform, for aircraft right wing down is positive.
    drift : dict or None
        Drift angle of antenna, the angle between heading and track.
    heading : dict or None
        Heading (compass) angle, clockwise from north.
    pitch : dict or None
        Pitch angle of antenna, for aircraft nose up is positive.
    georefs_applied : dict or None
        Indicates whether the variables have had georeference calculation
        applied.  Leading to Earth-centric azimuth and elevation angles.
    instrument_parameters : dict of dicts or None
        Instrument parameters, if not provided this attribute is set to None,
        indicating these parameters are not avaiable.  This dictionary also
        includes variables in the radar_parameters CF/Radial subconvention.
    radar_calibration : dict of dicts or None
        Instrument calibration parameters.  If not provided this attribute is
        set to None, indicating these parameters are not available
    ngates : int
        Number of gates (bins) in the volume.
    nrays : int
        Number of rays in the volume.
    nsweeps : int
        Number of sweep in the volume.

     __init__ N/A N/A self time _range fields metadata scan_type latitude longitude altitude sweep_number sweep_mode fixed_angle sweep_start_ray_index sweep_end_ray_index azimuth elevation altitude_agl target_scan_rate rays_are_indexed ray_angle_res scan_rate antenna_transition instrument_parameters radar_calibration rotation tilt roll drift heading pitch georefs_applied N/A None None None None None None None None None None None None None None None N/A N/A N/A calendar time N/A N/A N/A time N/A calendar gregorian N/A N/A self time time N/A N/A self range _range N/A N/A self fields fields N/A N/A self metadata metadata N/A N/A self scan_type scan_type N/A N/A self latitude latitude N/A N/A self longitude longitude N/A N/A self altitude altitude N/A N/A self altitude_agl altitude_agl N/A N/A self sweep_number sweep_number N/A N/A self sweep_mode sweep_mode N/A N/A self fixed_angle fixed_angle N/A N/A self sweep_start_ray_index sweep_start_ray_index N/A N/A self sweep_end_ray_index sweep_end_ray_index N/A N/A self target_scan_rate target_scan_rate N/A N/A self rays_are_indexed rays_are_indexed N/A N/A self ray_angle_res ray_angle_res N/A N/A self azimuth azimuth N/A N/A self elevation elevation N/A N/A self scan_rate scan_rate N/A N/A self antenna_transition antenna_transition N/A N/A self rotation rotation N/A N/A self tilt tilt N/A N/A self roll roll N/A N/A self drift drift N/A N/A self heading heading N/A N/A self pitch pitch N/A N/A self georefs_applied georefs_applied N/A N/A self instrument_parameters instrument_parameters N/A N/A self radar_calibration radar_calibration N/A N/A self ngates N/A len N/A _range N/A data N/A N/A self nrays N/A len N/A time N/A data N/A N/A self nsweeps N/A len N/A sweep_number N/A data N/A N/A self projection N/A proj _include_lon_0_lat_0 pyart_aeqd True N/A N/A N/A self init_rays_per_sweep N/A N/A N/A self init_gate_x_y_z N/A N/A N/A self init_gate_longitude_latitude N/A N/A N/A self init_gate_altitude N/A init_rays_per_sweep N/A N/A self N/A N/A N/A  Initialize or reset the rays_per_sweep attribute.  N/A lazydic N/A LazyLoadDict N/A get_metadata rays_per_sweep N/A N/A N/A lazydic set_lazy data N/A _rays_per_sweep_data_factory self N/A N/A self rays_per_sweep lazydic N/A init_gate_x_y_z N/A N/A self N/A N/A N/A  Initialize or reset the gate_{x, y, z} attributes.  N/A gate_x N/A LazyLoadDict N/A get_metadata gate_x N/A N/A N/A gate_x set_lazy data N/A _gate_data_factory self 0 N/A N/A self gate_x gate_x N/A gate_y N/A LazyLoadDict N/A get_metadata gate_y N/A N/A N/A gate_y set_lazy data N/A _gate_data_factory self 1 N/A N/A self gate_y gate_y N/A gate_z N/A LazyLoadDict N/A get_metadata gate_z N/A N/A N/A gate_z set_lazy data N/A _gate_data_factory self 2 N/A N/A self gate_z gate_z N/A init_gate_longitude_latitude N/A N/A self N/A N/A N/A 
        Initialize or reset the gate_longitude and gate_latitude attributes.
         N/A gate_longitude N/A LazyLoadDict N/A get_metadata gate_longitude N/A N/A N/A gate_longitude set_lazy data N/A _gate_lon_lat_data_factory self 0 N/A N/A self gate_longitude gate_longitude N/A gate_latitude N/A LazyLoadDict N/A get_metadata gate_latitude N/A N/A N/A gate_latitude set_lazy data N/A _gate_lon_lat_data_factory self 1 N/A N/A self gate_latitude gate_latitude N/A init_gate_altitude N/A N/A self N/A N/A N/A  Initialize the gate_altitude attribute.  N/A gate_altitude N/A LazyLoadDict N/A get_metadata gate_altitude N/A N/A N/A gate_altitude set_lazy data N/A _gate_altitude_data_factory self N/A N/A self gate_altitude gate_altitude N/A _check_sweep_in_range N/A N/A self sweep N/A N/A N/A  Check that a sweep number is in range.  N/A N/A N/A sweep 0 N/A sweep N/A self nsweeps N/A N/A N/A IndexError Sweep out of range:  sweep N/A N/A check_field_exists N/A N/A self field_name N/A N/A N/A 
        Check that a field exists in the fields dictionary.

        If the field does not exist raise a KeyError.

        Parameters
        ----------
        field_name : str
            Name of field to check.

         N/A N/A field_name N/A self fields N/A N/A N/A KeyError N/A Field not available:  field_name N/A N/A iter_start N/A N/A self N/A N/A N/A  Return an iterator over the sweep start indices.  N/A N/A s N/A s N/A N/A self sweep_start_ray_index N/A data N/A iter_end N/A N/A self N/A N/A N/A  Return an iterator over the sweep end indices.  N/A N/A s N/A s N/A N/A self sweep_end_ray_index N/A data N/A iter_start_end N/A N/A self N/A N/A N/A  Return an iterator over the sweep start and end indices.  N/A N/A N/A s e N/A N/A s e N/A zip N/A N/A self iter_start N/A N/A self iter_end N/A iter_slice N/A N/A self N/A N/A N/A  Return an iterator which returns sweep slice objects.  N/A N/A N/A slice s N/A e 1 N/A N/A s e N/A N/A self iter_start_end N/A iter_field N/A N/A self field_name N/A N/A N/A  Return an iterator which returns sweep field data.  N/A N/A N/A self check_field_exists field_name N/A N/A N/A N/A N/A N/A self fields N/A field_name N/A data N/A s N/A s N/A N/A self iter_slice N/A iter_azimuth N/A N/A self N/A N/A N/A  Return an iterator which returns sweep azimuth data.  N/A N/A N/A N/A N/A self azimuth N/A data N/A s N/A s N/A N/A self iter_slice N/A iter_elevation N/A N/A self N/A N/A N/A  Return an iterator which returns sweep elevation data.  N/A N/A N/A N/A N/A self elevation N/A data N/A s N/A s N/A N/A self iter_slice N/A get_start N/A N/A self sweep N/A N/A N/A  Return the starting ray index for a given sweep.   N/A N/A N/A self _check_sweep_in_range sweep N/A N/A N/A N/A self sweep_start_ray_index N/A data N/A sweep N/A get_end N/A N/A self sweep N/A N/A N/A  Return the ending ray for a given sweep.  N/A N/A N/A self _check_sweep_in_range sweep N/A N/A N/A N/A self sweep_end_ray_index N/A data N/A sweep N/A get_start_end N/A N/A self sweep N/A N/A N/A  Return the starting and ending ray for a given sweep.  N/A N/A N/A N/A self get_start sweep N/A N/A self get_end sweep N/A get_slice N/A N/A self sweep N/A N/A N/A  Return a slice for selecting rays for a given sweep.  N/A N/A start end N/A N/A self get_start_end sweep N/A N/A slice start N/A end 1 N/A get_field N/A N/A self sweep field_name copy N/A False N/A N/A 
        Return the field data for a given sweep.

        When used with :py:func:`get_gate_x_y_z` this method can be used to
        obtain the data needed for plotting a radar field with the correct
        spatial context.

        Parameters
        ----------
        sweep : int
            Sweep number to retrieve data for, 0 based.
        field_name : str
            Name of the field from which data should be retrieved.
        copy : bool, optional
            True to return a copy of the data. False, the default, returns
            a view of the data (when possible), changing this data will
            change the data in the underlying Radar object.

        Returns
        -------
        data : array
            Array containing data for the requested sweep and field.

         N/A N/A N/A self check_field_exists field_name N/A s N/A N/A self get_slice sweep N/A data N/A N/A N/A N/A self fields N/A field_name N/A data N/A s N/A copy N/A N/A N/A N/A data copy N/A N/A data N/A get_azimuth N/A N/A self sweep copy N/A False N/A N/A 
        Return an array of azimuth angles for a given sweep.

        Parameters
        ----------
        sweep : int
            Sweep number to retrieve data for, 0 based.
        copy : bool, optional
            True to return a copy of the azimuths. False, the default, returns
            a view of the azimuths (when possible), changing this data will
            change the data in the underlying Radar object.

        Returns
        -------
        azimuths : array
            Array containing the azimuth angles for a given sweep.

         N/A s N/A N/A self get_slice sweep N/A azimuths N/A N/A N/A self azimuth N/A data N/A s N/A copy N/A N/A N/A N/A azimuths copy N/A N/A azimuths N/A get_elevation N/A N/A self sweep copy N/A False N/A N/A 
        Return an array of elevation angles for a given sweep.

        Parameters
        ----------
        sweep : int
            Sweep number to retrieve data for, 0 based.
        copy : bool, optional
            True to return a copy of the elevations. False, the default,
            returns a view of the elevations (when possible), changing this
            data will change the data in the underlying Radar object.

        Returns
        -------
        azimuths : array
            Array containing the elevation angles for a given sweep.

         N/A s N/A N/A self get_slice sweep N/A elevation N/A N/A N/A self elevation N/A data N/A s N/A copy N/A N/A N/A N/A elevation copy N/A N/A elevation N/A get_gate_x_y_z N/A N/A self sweep edges filter_transitions N/A False False N/A N/A 
        Return the x, y and z gate locations in meters for a given sweep.

        With the default parameter this method returns the same data as
        contained in the gate_x, gate_y and gate_z attributes but this method
        performs the gate location calculations only for the specified sweep
        and therefore is more efficient than accessing this data through these
        attribute.

        When used with :py:func:`get_field` this method can be used to obtain
        the data needed for plotting a radar field with the correct spatial
        context.

        Parameters
        ----------
        sweep : int
            Sweep number to retrieve gate locations from, 0 based.
        edges : bool, optional
            True to return the locations of the gate edges calculated by
            interpolating between the range, azimuths and elevations.
            False (the default) will return the locations of the gate centers
            with no interpolation.
        filter_transitions : bool, optional
            True to remove rays where the antenna was in transition between
            sweeps. False will include these rays. No rays will be removed
            if the antenna_transition attribute is not available (set to None).

        Returns
        -------
        x, y, z : 2D array
            Array containing the x, y and z, distances from the radar in
            meters for the center (or edges) for all gates in the sweep.

         N/A azimuths N/A N/A self get_azimuth sweep N/A elevations N/A N/A self get_elevation sweep N/A N/A filter_transitions N/A N/A self antenna_transition None N/A N/A sweep_slice N/A N/A self get_slice sweep N/A valid N/A N/A N/A N/A self antenna_transition N/A data N/A sweep_slice 0 N/A azimuths N/A azimuths N/A valid N/A elevations N/A elevations N/A valid N/A N/A antenna_vectors_to_cartesian N/A N/A self range N/A data azimuths elevations edges edges N/A get_nyquist_vel N/A N/A self sweep check_uniform N/A True N/A N/A 
        Return the Nyquist velocity in meters per second for a given sweep.

        Raises a LookupError if the Nyquist velocity is not available, an
        Exception is raised if the velocities are not uniform in the sweep
        unless check_uniform is set to False.

        Parameters
        ----------
        sweep : int
            Sweep number to retrieve data for, 0 based.
        check_uniform : bool
            True to check to perform a check on the Nyquist velocities that
            they are uniform in the sweep, False will skip this check and
            return the velocity of the first ray in the sweep.

        Returns
        -------
        nyquist_velocity : float
            Array containing the Nyquist velocity in m/s for a given sweep.

         N/A s N/A N/A self get_slice sweep N/A N/A N/A nyq_vel N/A N/A N/A N/A self instrument_parameters N/A nyquist_velocity N/A data N/A s N/A N/A N/A N/A N/A LookupError Nyquist velocity unavailable N/A check_uniform N/A N/A N/A N/A np any N/A nyq_vel N/A nyq_vel N/A 0 N/A N/A N/A Exception Nyquist velocities are not uniform in sweep N/A N/A float N/A nyq_vel N/A 0 N/A info N/A N/A self level out N/A standard N/A sys stdout N/A N/A 
        Print information on radar.

        Parameters
        ----------
        level : {'compact', 'standard', 'full', 'c', 's', 'f'}
            Level of information on radar object to print, compact is
            minimal information, standard more and full everything.
        out : file-like
            Stream to direct output to, default is to print information
            to standard out (the screen).

         N/A N/A level c N/A N/A level compact N/A N/A N/A level s N/A N/A level standard N/A N/A N/A level f N/A N/A level full N/A N/A level N/A standard compact full N/A N/A N/A ValueError invalid level parameter N/A N/A N/A self _dic_info altitude level out N/A N/A N/A self _dic_info altitude_agl level out N/A N/A N/A self _dic_info antenna_transition level out N/A N/A N/A self _dic_info azimuth level out N/A N/A N/A self _dic_info elevation level out N/A N/A print fields: file out N/A N/A field_name field_dic N/A N/A N/A self fields items N/A N/A N/A N/A self _dic_info field_name level out field_dic 1 N/A N/A N/A self _dic_info fixed_angle level out N/A N/A N/A self instrument_parameters None N/A N/A N/A print instrument_parameters: None file out N/A N/A N/A print instrument_parameters: file out N/A N/A name dic N/A N/A N/A self instrument_parameters items N/A N/A N/A N/A self _dic_info name level out dic 1 N/A N/A N/A self _dic_info latitude level out N/A N/A N/A self _dic_info longitude level out N/A N/A print nsweeps: N/A self nsweeps file out N/A N/A print ngates: N/A self ngates file out N/A N/A print nrays: N/A self nrays file out N/A N/A N/A self radar_calibration None N/A N/A N/A print radar_calibration: None file out N/A N/A N/A print radar_calibration: file out N/A N/A name dic N/A N/A N/A self radar_calibration items N/A N/A N/A N/A self _dic_info name level out dic 1 N/A N/A N/A self _dic_info range level out N/A N/A N/A self _dic_info scan_rate level out N/A N/A print scan_type: N/A self scan_type file out N/A N/A N/A self _dic_info sweep_end_ray_index level out N/A N/A N/A self _dic_info sweep_mode level out N/A N/A N/A self _dic_info sweep_number level out N/A N/A N/A self _dic_info sweep_start_ray_index level out N/A N/A N/A self _dic_info target_scan_rate level out N/A N/A N/A self _dic_info time level out N/A N/A N/A self rotation None N/A N/A N/A N/A self _dic_info rotation level out N/A N/A N/A self tilt None N/A N/A N/A N/A self _dic_info tilt level out N/A N/A N/A self roll None N/A N/A N/A N/A self _dic_info roll level out N/A N/A N/A self drift None N/A N/A N/A N/A self _dic_info drift level out N/A N/A N/A self heading None N/A N/A N/A N/A self _dic_info heading level out N/A N/A N/A self pitch None N/A N/A N/A N/A self _dic_info pitch level out N/A N/A N/A self georefs_applied None N/A N/A N/A N/A self _dic_info georefs_applied level out N/A N/A N/A self _dic_info metadata full out N/A _dic_info N/A N/A self attr level out dic ident_level N/A None 0 N/A N/A  Print information on a dictionary attribute.  N/A N/A dic None N/A N/A dic N/A getattr self attr N/A ilvl0 N/A ident_level N/A ilvl1 N/A N/A ident_level 1 N/A N/A dic None N/A N/A N/A print N/A attr : None file out N/A N/A N/A data dic N/A N/A d_str Missing N/A N/A N/A N/A isinstance N/A dic N/A data N/A np ndarray N/A N/A d_str <not a ndarray> N/A N/A data N/A dic N/A data N/A t N/A N/A data dtype N/A data shape N/A d_str N/A <ndarray of type: %s and shape: %s> t N/A N/A level compact N/A N/A N/A print N/A N/A ilvl0 attr : d_str file out N/A N/A N/A level standard N/A N/A N/A print N/A N/A ilvl0 attr : file out N/A N/A print N/A ilvl1 data: d_str file out N/A N/A key val N/A N/A dic items N/A N/A N/A key data N/A N/A N/A N/A print N/A N/A ilvl1 key : val file out N/A N/A N/A level full N/A N/A N/A print N/A attr : file out N/A N/A data dic N/A N/A N/A print N/A ilvl1 data: N/A dic N/A data file out N/A N/A key val N/A N/A dic items N/A N/A N/A key data N/A N/A N/A N/A print N/A N/A ilvl1 key : val file out N/A N/A add_field N/A N/A self field_name dic replace_existing N/A False N/A N/A 
        Add a field to the object.

        Parameters
        ----------
        field_name : str
            Name of the field to add to the dictionary of fields.
        dic : dict
            Dictionary contain field data and metadata.
        replace_existing : bool
            True to replace the existing field with key field_name if it
            exists, loosing any existing data.  False will raise a ValueError
            when the field already exists.

         N/A N/A N/A field_name N/A self fields N/A replace_existing False N/A N/A err N/A A field with name: %s already exists field_name N/A N/A ValueError err N/A N/A data dic N/A N/A N/A KeyError dic must contain a 'data' key N/A N/A N/A N/A dic N/A data shape N/A N/A self nrays N/A self ngates N/A N/A t N/A N/A self nrays N/A self ngates N/A err N/A 'data' has invalid shape, should be (%i, %i) t N/A N/A ValueError err N/A N/A N/A self fields N/A field_name dic N/A N/A add_field_like N/A N/A self existing_field_name field_name data replace_existing N/A False N/A N/A 
        Add a field to the object with metadata from a existing field.

        Note that the data parameter is not copied by this method.
        If data refers to a 'data' array from an existing field dictionary, a
        copy should be made within or prior to using this method.  If this is
        not done the 'data' key in both field dictionaries will point to the
        same NumPy array and modification of one will change the second.  To
        copy NumPy arrays use the copy() method.  See the Examples section
        for how to create a copy of the 'reflectivity' field as a field named
        'reflectivity_copy'.

        Parameters
        ----------
        existing_field_name : str
            Name of an existing field to take metadata from when adding
            the new field to the object.
        field_name : str
            Name of the field to add to the dictionary of fields.
        data : array
            Field data. A copy of this data is not made, see the note above.
        replace_existing : bool
            True to replace the existing field with key field_name if it
            exists, loosing any existing data.  False will raise a ValueError
            when the field already exists.

        Examples
        --------
        >>> radar.add_field_like('reflectivity', 'reflectivity_copy',
        ...                      radar.fields['reflectivity']['data'].copy())

         N/A N/A existing_field_name N/A self fields N/A N/A err N/A field %s does not exist in object existing_field_name N/A N/A ValueError err N/A dic N/A N/A N/A k v N/A N/A N/A N/A self fields N/A existing_field_name items N/A N/A N/A k data N/A N/A N/A dic N/A k v N/A N/A dic N/A data data N/A N/A N/A self add_field field_name dic replace_existing replace_existing N/A extract_sweeps N/A N/A self sweeps N/A N/A N/A 
        Create a new radar contains only the data from select sweeps.

        Parameters
        ----------
        sweeps : array_like
            Sweeps (0-based) to include in new Radar object.

        Returns
        -------
        radar : Radar
            Radar object which contains a copy of data from the selected
            sweeps.

         N/A sweeps N/A N/A np array sweeps dtype int32 N/A N/A N/A np any N/A sweeps N/A N/A self nsweeps 1 N/A N/A N/A ValueError invalid sweeps indices in sweeps parameter N/A N/A N/A np any N/A sweeps 0 N/A N/A N/A ValueError only positive sweeps can be extracted mkdic N/A N/A dic select N/A N/A N/A  Make a dictionary, selecting out select from data key  N/A N/A dic None N/A N/A None N/A d N/A N/A dic copy N/A N/A N/A data d N/A select None N/A N/A N/A d N/A data N/A N/A N/A N/A d N/A data N/A select copy N/A d N/A N/A ray_count N/A N/A N/A N/A N/A self sweep_end_ray_index N/A data N/A N/A self sweep_start_ray_index N/A data 1 N/A sweeps N/A ssri N/A N/A N/A self sweep_start_ray_index N/A data N/A sweeps N/A rays N/A N/A N/A N/A np concatenate N/A N/A range s N/A s e N/A N/A s e N/A zip ssri ray_count astype int32 N/A N/A N/A len N/A N/A self altitude N/A data 1 N/A N/A loc_select None N/A N/A loc_select sweeps N/A time N/A mkdic N/A self time rays N/A _range N/A mkdic N/A self range None N/A fields N/A N/A N/A field_name dic N/A N/A N/A self fields items N/A N/A N/A fields N/A field_name N/A mkdic dic rays N/A metadata N/A mkdic N/A self metadata None N/A scan_type N/A str N/A self scan_type N/A latitude N/A mkdic N/A self latitude loc_select N/A longitude N/A mkdic N/A self longitude loc_select N/A altitude N/A mkdic N/A self altitude loc_select N/A altitude_agl N/A mkdic N/A self altitude_agl loc_select N/A sweep_number N/A mkdic N/A self sweep_number sweeps N/A sweep_mode N/A mkdic N/A self sweep_mode sweeps N/A fixed_angle N/A mkdic N/A self fixed_angle sweeps N/A sweep_start_ray_index N/A mkdic N/A self sweep_start_ray_index None N/A N/A sweep_start_ray_index N/A data N/A N/A np cumsum N/A N/A np append N/A 0 N/A ray_count N/A -1 N/A sweep_end_ray_index N/A mkdic N/A self sweep_end_ray_index None N/A N/A sweep_end_ray_index N/A data N/A N/A N/A np cumsum ray_count 1 N/A target_scan_rate N/A mkdic N/A self target_scan_rate sweeps N/A azimuth N/A mkdic N/A self azimuth rays N/A elevation N/A mkdic N/A self elevation rays N/A scan_rate N/A mkdic N/A self scan_rate rays N/A antenna_transition N/A mkdic N/A self antenna_transition rays N/A N/A N/A self instrument_parameters None N/A N/A instrument_parameters None N/A N/A instrument_parameters N/A N/A N/A key dic N/A N/A N/A self instrument_parameters items N/A N/A N/A N/A N/A dic N/A data ndim 0 N/A N/A dim0_size N/A N/A N/A dic N/A data shape N/A 0 N/A N/A dim0_size -1 N/A N/A dim0_size N/A self nsweeps N/A N/A fdic N/A mkdic dic sweeps N/A N/A N/A dim0_size N/A self nrays N/A N/A fdic N/A mkdic dic rays N/A N/A fdic N/A mkdic dic None N/A N/A instrument_parameters N/A key fdic N/A N/A N/A self radar_calibration None N/A N/A radar_calibration None N/A N/A radar_calibration N/A N/A N/A key dic N/A N/A N/A self radar_calibration items N/A N/A N/A key r_calib_index N/A N/A N/A radar_calibration N/A key N/A mkdic dic rays N/A N/A N/A radar_calibration N/A key N/A mkdic dic None N/A N/A Radar time _range fields metadata scan_type latitude longitude altitude sweep_number sweep_mode fixed_angle sweep_start_ray_index sweep_end_ray_index azimuth elevation altitude_agl altitude_agl target_scan_rate target_scan_rate scan_rate scan_rate antenna_transition antenna_transition instrument_parameters instrument_parameters radar_calibration radar_calibration N/A N/A _rays_per_sweep_data_factory N/A N/A radar N/A N/A N/A  Return a function which returns the number of rays per sweep.  _rays_per_sweep_data N/A N/A N/A N/A N/A  The function which returns the number of rays per sweep.  N/A N/A N/A N/A N/A radar sweep_end_ray_index N/A data N/A N/A radar sweep_start_ray_index N/A data 1 N/A N/A _rays_per_sweep_data N/A _gate_data_factory N/A N/A radar coordinate N/A N/A N/A  Return a function which returns the Cartesian locations of gates.  _gate_data N/A N/A N/A N/A N/A  The function which returns the Cartesian locations of gates.  N/A ranges N/A N/A radar range N/A data N/A azimuths N/A N/A radar azimuth N/A data N/A elevations N/A N/A radar elevation N/A data N/A cartesian_coords N/A antenna_vectors_to_cartesian ranges azimuths elevations edges False N/A N/A coordinate 0 N/A N/A N/A N/A radar gate_x N/A data N/A cartesian_coords N/A 0 N/A N/A coordinate 1 N/A N/A N/A N/A radar gate_y N/A data N/A cartesian_coords N/A 1 N/A N/A coordinate 2 N/A N/A N/A N/A radar gate_z N/A data N/A cartesian_coords N/A 2 N/A N/A cartesian_coords N/A coordinate N/A N/A _gate_data N/A _gate_lon_lat_data_factory N/A N/A radar coordinate N/A N/A N/A  Return a function which returns the geographic locations of gates.  _gate_lon_lat_data N/A N/A N/A N/A N/A  The function which returns the geographic locations gates.  N/A x N/A N/A radar gate_x N/A data N/A y N/A N/A radar gate_y N/A data N/A projparams N/A N/A N/A radar projection copy N/A N/A N/A projparams pop _include_lon_0_lat_0 False N/A N/A N/A projparams N/A lon_0 N/A N/A N/A radar longitude N/A data N/A 0 N/A N/A projparams N/A lat_0 N/A N/A N/A radar latitude N/A data N/A 0 N/A geographic_coords N/A cartesian_to_geographic x y projparams N/A N/A coordinate 0 N/A N/A N/A N/A radar gate_latitude N/A data N/A geographic_coords N/A 1 N/A N/A N/A N/A radar gate_longitude N/A data N/A geographic_coords N/A 0 N/A N/A geographic_coords N/A coordinate N/A N/A _gate_lon_lat_data N/A _gate_altitude_data_factory N/A N/A radar N/A N/A N/A  Return a function which returns the gate altitudes.  _gate_altitude_data N/A N/A N/A N/A N/A  The function which returns the gate altitudes.  N/A N/A N/A N/A radar altitude N/A data N/A N/A radar gate_z N/A data N/A N/A _gate_altitude_data N/A