Please join us as we tie the knot on Saturday, May 27th at 6PM. The Ceremony and Reception will be held at Crown Valley Winery.
The ceremony will be outdoors, so dress for the weather!
Please join us as we tie the knot on Saturday, May 27th at 6PM. The Ceremony and Reception will be held at Crown Valley Winery.
Address:
23589 State Rte WW, Ste. Genevieve, MO 63670
Directions from St. Louis:
Directions from Cape Girardeau:
The ceremony will be outdoors, so dress for the weather!
Crown Country Lodging offers house/room rentals for the evening. A shuttle is provided to take you between the winery and these properties.
Nearby hotels inclide: Holiday Inn Express Farmington, Crown Pointe Lodge, Tradition Inn, and Microtel Inn & Suites Ste. Genevieve.


Network visualization in the 'ggplot2' framework. Network functionality is provided in a single 'ggplot2' layer by calling the geom 'net'. Layouts are calculated using the 'sna' package, example networks are included.
| Version: | 0.2.0 |
| Depends: | R (≥ 2.14), ggplot2 (≥ 2.2.0) |
| Imports: | sna, network, dplyr, tidyr, readr, plotly |
| Suggests: | ggrepel, knitr, igraph, ggmap |
| Published: | 2016-12-08 |
| Author: | Samantha Tyner, Heike Hofmann |
| Maintainer: | Samantha Tyner <sctyner at iastate.edu> |
| BugReports: | https://github.com/sctyner/geomnet/issues |
| License: | GPL-2 | GPL-3 [expanded from: GPL (≥ 2)] |
| URL: | http://github.com/sctyner/geomnet |
| NeedsCompilation: | no |
| Materials: | README NEWS |
| CRAN checks: | geomnet results |
| Reference manual: | geomnet.pdf |
| Package source: | geomnet_0.2.0.tar.gz |
| Windows binaries: | r-devel: geomnet_0.2.0.zip, r-release: geomnet_0.2.0.zip, r-oldrel: geomnet_0.2.0.zip |
| OS X binaries: | r-release: geomnet_0.2.0.tgz, r-oldrel: geomnet_0.2.0.tgz |
| Old sources: | geomnet archive |
Please use the canonical form https://CRAN.R-project.org/package=geomnet to link to this page.


My name is Batool Ayyad, I'm 25 years old, I studied electrical engineering al a Balqa university and graduated in 2020. My favorit things to do are traveling and meeting new people.
Job experience
- Fast food crew/Barista at Dunkin Donuts
- Relail at Noah’s ark water park
Education
- studied electrical engineering al a Balqa university
- studied softweer developer developing at LTUS
My top ten series
- Anne with an e
- breaking bad
- Vikings
- GOT
- Peaky blinders
- Last kingdom
- Friends
- la casa de papel
- 13 reson why
- outlander


Staff UI
Match Creator
Score Adjustment
Stage Control
Score Adjustment
Blue Score
0
Gold Score
0
Change
Change
Reset
Confirm


| 918 | (A) | and thay caughte the corpse and keste it in tybere |
| 925 | (C) | Thenne toke þey þe body . & kaste hit in tyber |
| 911 | (D) | And þan þei cagħt þe corps & cast it in tybre |
| 888 | (E) | & þo þei tookyn þe coors . & caste it in tybre |
| (Ex) | ---- no text ---- | |
| 943 | (L) | & kayȝt þe cors & kast in to tybre |
| 861 | (P) | And þai caght þe cors & keste it in tybre |
| 897 | (U) | And then thei catchen vp the corps / and casten in to tyber |
| (V) | ---- no text ---- |


{% include 'base.html' %} SherlockList The world is full of obvious things which nobody by any chance ever observes.


BEFORE I FORGET
December 12, 2015
Before it's all over....
before that last tear drop falls...
before my heart lays cold like a rock within my breast
and does not jump at the sight of you...
like it once did,
I want you to know...
there was a time when all I thought about ...was you,
when days and nights...blended together
to form one long ribbon of fantasies.
When your touch...could comfort me...
and excite me...at the same time
When just one soft look...
or crooked grin...
could bring me to my knees.
And so...before you win...
before the bad totally overshadows the good...
before I feel better without you, than with you...
before I forget...just how much I cared...
I want to capture this feeling
and freeze it in time.
Before it's too late...
before I forget.


le_gpio_interface.h File Reference
#include "legato.h"
Go to the source code of this file.
Typedefs | |
| typedef struct le_gpio_ChangeEventHandler * | le_gpio_ChangeEventHandlerRef_t |
| typedef void(* | le_gpio_ChangeCallbackFunc_t) (bool state, void *contextPtr) |
Enumerations | |
| enum | le_gpio_Polarity_t { LE_GPIO_ACTIVE_HIGH, LE_GPIO_ACTIVE_LOW } |
| enum | le_gpio_Edge_t { LE_GPIO_EDGE_NONE, LE_GPIO_EDGE_RISING, LE_GPIO_EDGE_FALLING, LE_GPIO_EDGE_BOTH } |
| enum | le_gpio_PullUpDown_t { LE_GPIO_PULL_OFF, LE_GPIO_PULL_DOWN, LE_GPIO_PULL_UP } |
Detailed Description
Legato GPIO include file.
Copyright (C) Sierra Wireless Inc. Use of this work is subject to license.
Typedef Documentation
| typedef void(* le_gpio_ChangeCallbackFunc_t) (bool state, void *contextPtr) |
State change event handler (callback).
- Parameters
-
state New state of pin (true = active, false = inactive). contextPtr
| typedef struct le_gpio_ChangeEventHandler* le_gpio_ChangeEventHandlerRef_t |
Reference type used by Add/Remove functions for EVENT 'le_gpio_ChangeEvent'
Enumeration Type Documentation
| enum le_gpio_Edge_t |
| enum le_gpio_Polarity_t |
| enum le_gpio_PullUpDown_t |
Function Documentation
| le_result_t le_gpio_Activate | ( | void | ) |
Set output pin to active state.
- Warning
- Only valid for output pins.
| le_gpio_ChangeEventHandlerRef_t le_gpio_AddChangeEventHandler | ( | le_gpio_Edge_t | trigger, |
| le_gpio_ChangeCallbackFunc_t | handlerPtr, | ||
| void * | contextPtr, | ||
| int32_t | sampleMs | ||
| ) |
Add handler function for EVENT 'le_gpio_ChangeEvent'
Register a callback function to be called when an input pin changes state.
If the pin is not capable of interrupt-driven operation, then it will be sampled every sampleMs milliseconds. Otherwise, sampleMs will be ignored.
If this fails, either because the handler cannot be registered, or setting the edge detection fails, then it will return a NULL reference.
- Parameters
-
[in] trigger Change(s) that should trigger the callback to be called. [in] handlerPtr [in] contextPtr [in] sampleMs If not interrupt capable, sample the input this often (ms).
| void le_gpio_ConnectService | ( | void | ) |
Connect the current client thread to the service providing this API.
This function must be called before any other functions in this API. Normally, it's automatically called for the main thread, but must be explicitly called for other threads. For details, see Client-specific Functions.
This function is created automatically.
| le_result_t le_gpio_Deactivate | ( | void | ) |
Set output pin to inactive state.
- Warning
- Only valid for output pins.
| le_result_t le_gpio_DisableEdgeSense | ( | void | ) |
Turn off edge detection
| le_result_t le_gpio_DisableResistors | ( | void | ) |
Disable the pull-up and pull-down resistors. Does nothing if both are already disabled.
| void le_gpio_DisconnectService | ( | void | ) |
Disconnect the current client thread from the service providing this API.
Normally, this function doesn't need to be called. After this function is called, there's no longer a connection to the service, and the functions in this API can't be used. For details, see Client-specific Functions.
This function is created automatically.
| le_result_t le_gpio_EnablePullDown | ( | void | ) |
Enable the pull-down resistor (disables pull-up if previously enabled).
| le_result_t le_gpio_EnablePullUp | ( | void | ) |
Enable the pull-up resistor (disables pull-down if previously enabled).
| le_gpio_Edge_t le_gpio_GetEdgeSense | ( | void | ) |
Get the current value of edge sensing.
- Returns
- The current configured value
- Note
- it is invalid to read the edge sense of an output
| le_gpio_Polarity_t le_gpio_GetPolarity | ( | void | ) |
Get the current value the pin polarity.
- Returns
- The current configured value
| le_gpio_PullUpDown_t le_gpio_GetPullUpDown | ( | void | ) |
Get the current value of pull up and down resistors.
- Returns
- The current configured value
| bool le_gpio_IsActive | ( | void | ) |
Check if the pin is currently active.
- Returns
- true = active, false = inactive.
- Note
- this function can only be used on output pins
| bool le_gpio_IsInput | ( | void | ) |
Check if the pin is configured as an input.
- Returns
- true = input, false = output.
| bool le_gpio_IsOutput | ( | void | ) |
Check if the pin is configured as an output.
- Returns
- true = output, false = input.
| bool le_gpio_Read | ( | void | ) |
Read value of GPIO input pin.
- Returns
- true = active, false = inactive.
- Note
- It is invalid to read an output pin.
| void le_gpio_RemoveChangeEventHandler | ( | le_gpio_ChangeEventHandlerRef_t | addHandlerRef | ) |
Remove handler function for EVENT 'le_gpio_ChangeEvent'
- Parameters
-
[in] addHandlerRef
| le_result_t le_gpio_SetEdgeSense | ( | le_gpio_Edge_t | trigger | ) |
Set the edge detection mode. This function can only be used when a handler is registered in order to prevent interrupts being generated and not handled
- Parameters
-
[in] trigger Change(s) that should trigger the callback to be called.
| le_result_t le_gpio_SetHighZ | ( | void | ) |
Set output pin to high impedance state.
- Warning
- Only valid for tri-state or open-drain output pins.
| le_result_t le_gpio_SetInput | ( | le_gpio_Polarity_t | polarity | ) |
Configure the pin as an input pin.
- Parameters
-
[in] polarity Active-high or active-low.
| le_result_t le_gpio_SetOpenDrainOutput | ( | le_gpio_Polarity_t | polarity, |
| bool | value | ||
| ) |
Configure the pin as an open-drain output pin. "High" is a high-impedance state, while "Low" pulls the pin to ground.
- Parameters
-
[in] polarity Active-high or active-low. [in] value Initial value to drive (true = active, false = inactive)
| le_result_t le_gpio_SetPushPullOutput | ( | le_gpio_Polarity_t | polarity, |
| bool | value | ||
| ) |
Configure the pin as a push-pull output pin.
- Parameters
-
[in] polarity Active-high or active-low. [in] value Initial value to drive (true = active, false = inactive)
| le_result_t le_gpio_SetTriStateOutput | ( | le_gpio_Polarity_t | polarity | ) |
Configure the pin as a tri-state output pin.
- Note
- The initial state will be high-impedance.
- Parameters
-
[in] polarity Active-high or active-low.


{% load staticfiles %}
Toggle navigation
MySite
Home
(current)
Blog
Contact
Forum
Undergrad at NIT Durgapur
{% block content %} {% endblock %}


Before Change
every_n_secs=None,
output_dir=None,
summary_writer=None):
if (every_n_steps is None) == (every_n_secs is None):
raise ValueError("exactly one of every_n_steps and every_n_secs should be provided.")
self._timer = tf.train.SecondOrStepTimer(
every_steps=every_n_steps,
every_secs=every_n_secs)
After Change
Raises:
RuntimeError: if :obj:`predictions` is empty.
if predictions:
raise RuntimeError("The model did not define any predictions.")
self._model = model
self._predictions = predictions
self._global_step = global_step
self._output_file = output_file


[§588-5] Admissibility of evidence. Any evidence gathered at the center shall be gathered in such manner so as to be admissible as evidence at a judicial proceeding. [L 1986, c 169, pt of §1]


Nitrogen 2.x Documentation
Home | Getting Started | API | Elements | Actions | Validators | Handlers | Configuration Options | Advanced Guides | Troubleshooting | About
Table of Contents
1 Overview
Nitrogen 2.x allows you to reference element paths using jQuery selectors. These selectors can be used in three contexts:
- As the target (first parameter) of
wf:wire/2
,wf:update/2
,wf:insert_top/2
,wf:insert_bottom/2
, etc. - As the trigger (first parameter) or target (second parameter) of
wf:wire/3
. - As the
trigger
ortarget
of an#event{}
action.
Path matching in Nitrogen is complicated because it must provide a simple, straight-forward interface while still accounting for potential name-collisions due to the nested nature of Nitrogen elements.
For example, you should be able to create two elements with the same ID, but in different areas of the element hierarchy, and be able to reference those elements in predictable ways.
2 How Are Paths Matched?
The objs(Path, Anchor)
function is used to match selectors on the
client. This is defined in nitrogen.js, and returns a jQuery
object containing all of the elements that match the selector
provided under Path
, potentially in close proximity to the
selector provided under Anchor
. If Anchor
is not provided, then
the anchor set by Nitrogen.$anchor(Anchor, Target)
is used.
Nitrogen.$anchor/2
is automatically called by Nitrogen before each
action is rendered. The Anchor
value is set to the uniquely
generated temp ID for the element to which the action applies, it
will look something like .wfid_temp23422
.
Unless you are doing some wacky stuff, your application should not
need to worry about calling objs()
or Nitrogen.$anchor()
directly, but it helps to know what is happening behind the scenes
in case you need to debug.
If you are trying to wire an action or update a command, and the
statement seems to affect the wrong elements, it may help to drop
down into a Javascript console and run objs(YourPath)
to see what
is actually getting matched.
Steps To Match a Path
Here are the steps that the objs()
function takes when matching a
path.
- If the selector has multiple parts separated by commas, then the selector is split, and each part is combined.
- If the selector is "page", then a reference to the DOM document is returned.
- The string "##" is replaced with ".wfid_". This allows you to specify Nitrogen elementIDs in a string selector. For example "##myelementid > .someclass" will be rewritten to ".wfid_myelementid > .someclass". This is done because Nitrogen uses classes to tag your elements with their ID, so an element with ID of 'myelementid' will be tagged with a class called '.wfid_myelementid'.
- If the string "me" is found surrounded by non-word characters, it is replaced with the anchor that was set. This allows you to write paths such as "me > .image" which will apply to all elements with class ".image" under the current element.
- If the path is a one word string and it is the name of an HTML element such as "table", "div", "h1", etc., then try matching as a Nitrogen element ID first, and if that doesn't work, then try matching as an HTML element.
- If a string is found containing only words separated by periods (for example, "element1.element2"), then it is assumed to be a nested series of elements, and is converted to ".wfid_element1 .wfid_element2". This will match all Nitrogen elements named 'element2' underneath any Nitrogen elements named 'element1'.
- If the path begins with "body", then match using a call to
jQuery(path)
. This will match any elements in the context of the entire document. - Otherwise, Nitrogen will try to match elements as closely as
possible starting at the current anchor. First, try to match the
path under the current anchor using
jQuery(anchor).find(path)
. If results were found, then stop and return. Otherwise, calljQuery(anchor).parents()
to get a list of parents, and then for each parent, calljQuery(parent).find(path)
. If results were found, then stop and return. - Finally, if no elements were found, then Nitrogen resorts to
matching
jQuery(path)
.
3 Nitrogen Specific Selectors
Selector: me
A keyword to specify the context of the current anchor. In other words, if you wire an event to an element, then 'me' will point to that element.
Selecter: ##element
A shortcut for referring to a Nitrogen element when you specify a string path. Because of the way Nitrogen uses class names to tag elements, this is the same as specifying ".wfid_element".
4 jQuery Selectors
Selectors and descriptions below are pulled directly from the jQuery Selectors Documentation.
Selector: *
Selects all elements.
Selector: :animated
Select all elements that are in the progress of an animation at the time the selector is run.
Selector: Attribute Contains Prefix [name|=value]
Selects elements that have the specified attribute with a value either equal to a given string or starting with that string followed by a hyphen (-).
Selector: Attribute Contains [name*=value]
Selects elements that have the specified attribute with a value containing the a given substring.
Selector: Attribute Contains Word [name~=value]
Selects elements that have the specified attribute with a value containing a given word, delimited by spaces.
Selector: Attribute Ends With [name$=value]
Selects elements that have the specified attribute with a value ending exactly with a given string.
Selector: Attribute Equals Selector [name=value]
Selects elements that have the specified attribute with a value exactly equal to a certain value.
Selector: Attribute Not Equal Selector [name!=value]
Select elements that either don't have the specified attribute, or do have the specified attribute but not with a certain value.
Selector: Attribute Starts With Selector [name^=value]
Selects elements that have the specified attribute with a value beginning exactly with a given string.
Selector: :button Selector
Selects all button elements and elements of type button.
Selector: :checkbox Selector
Selects all elements of type checkbox.
Selector: :checked Selector
Matches all elements that are checked.
Selector: Child Selector ("parent > child")
Selects all direct child elements specified by "child" of elements specified by "parent".
Selector: Class Selector (".class")
Selects all elements with the given class.
Selector: :contains() Selector
Select all elements that contain the specified text.
Selector: Descendant Selector ("ancestor descendant")
Selects all elements that are descendants of a given ancestor.
Selector: :disabled Selector
Selects all elements that are disabled.
Selector: Element Selector ("element")
Selects all elements with the given tag name.
Selector: :empty Selector
Select all elements that have no children (including text nodes).
Selector: :enabled Selector
Selects all elements that are enabled.
Selector: :eq() Selector
Select the element at index n within the matched set.
Selector: :even Selector
Selects even elements, zero-indexed. See also odd.
Selector: :file Selector
Selects all elements of type file.
Selector: :first-child Selector
Selects all elements that are the first child of their parent.
Selector: :first Selector
Selects the first matched element.
Selector: :gt() Selector
Select all elements at an index greater than index within the matched set.
Selector: Has Attribute Selector [name]
Selects elements that have the specified attribute, with any value.
Selector: :has() Selector
Selects elements which contain at least one element that matches the specified selector.
Selector: :header Selector
Selects all elements that are headers, like h1, h2, h3 and so on.
Selector: :hidden Selector
Selects all elements that are hidden.
Selector: ID Selector ("#id")
Selects a single element with the given id attribute.
Selector: :image Selector
Selects all elements of type image.
Selector: :input Selector
Selects all input, textarea, select and button elements.
Selector: :last-child Selector
Selects all elements that are the last child of their parent.
Selector: :last Selector
Selects the last matched element.
Selector: :lt() Selector
Select all elements at an index less than index within the matched set.
Selector: Multiple Attribute Selector [name=value][name2=value2]
Matches elements that match all of the specified attribute filters.
Selector: Multiple Selector ("selector1, selector2, selectorN")
Selects the combined results of all the specified selectors.
Selector: Next Adjacent Selector ("prev + next")
Selects all next elements matching "next" that are immediately preceded by a sibling "prev".
Selector: Next Siblings Selector ("prev ~ siblings")
Selects all sibling elements that follow after the "prev" element, have the same parent, and match the filtering "siblings" selector.
Selector: :not() Selector
Selects all elements that do not match the given selector.
Selector: :nth-child Selector
Selects all elements that are the nth-child of their parent.
Selector: :odd Selector
Selects odd elements, zero-indexed. See also even.
Selector: :only-child Selector
Selects all elements that are the only child of their parent.
Selector: :parent Selector
Select all elements that are the parent of another element, including text nodes.
Selector: :password Selector
Selects all elements of type password.
Selector: :radio Selector
Selects all elements of type radio.
Selector: :reset Selector
Selects all elements of type reset.
Selector: :selected Selector
Selects all elements that are selected.
Selector: :submit Selector
Selects all elements of type submit.
Selector: :text Selector
Selects all elements of type text.
Selector: :visible Selector
Selects all elements that are visible.


FaultRules or DefaultFaultRule must be used.
It's needed to prevent default error messages from the backend or from Apigee to be forwarded outside.


Plotting (pyrad.graph
)¶
Functions to plot graphics.
Plots¶
plot_ray (radar, field_name, ind_ray, prdcfg, …) |
plots a ray |
plot_surface (grid, field_name, level, …[, …]) |
plots a surface from gridded data |
plot_latitude_slice (grid, field_name, lon, …) |
plots a latitude slice from gridded data |
plot_longitude_slice (grid, field_name, lon, …) |
plots a longitude slice from gridded data |
plot_latlon_slice (grid, field_name, coord1, …) |
plots a croos section crossing two points in the grid |
plot_ppi (radar, field_name, ind_el, prdcfg, …) |
plots a PPI |
plot_ppi_contour (radar, field_name, ind_el, …) |
plots contour data on a PPI |
plot_ppi_map (radar, field_name, ind_el, …) |
plots a PPI on a geographic map |
plot_rhi (radar, field_name, ind_az, prdcfg, …) |
plots an RHI |
plot_rhi_contour (radar, field_name, ind_az, …) |
plots contour data on an RHI |
plot_bscope (radar, field_name, ind_sweep, …) |
plots a B-Scope (angle-range representation) |
plot_fixed_rng (radar, field_name, prdcfg, …) |
plots a fixed range plot |
plot_fixed_rng_span (radar, field_name, …) |
plots a fixed range plot |
plot_time_range (radar, field_name, …[, …]) |
plots a time-range plot |
plot_rhi_profile (data_list, hvec, fname_list) |
plots an RHI profile |
plot_along_coord (xval_list, yval_list, …) |
plots data along a certain radar coordinate |
plot_field_coverage (xval_list, yval_list, …) |
plots a time series |
plot_density (hist_obj, hist_type, …[, …]) |
density plot (angle-values representation) |
plot_cappi (radar, field_name, altitude, …) |
plots a Constant Altitude Plan Position Indicator CAPPI |
plot_traj (rng_traj, azi_traj, ele_traj, …) |
plots a trajectory on a Cartesian surface |
plot_pos (lat, lon, alt, fname_list[, ax, …]) |
plots a trajectory on a Cartesian surface |
plot_pos_map (lat, lon, alt, fname_list[, …]) |
plots a trajectory on a map |
plot_quantiles (quant, value, fname_list[, …]) |
plots quantiles |
plot_histogram (bin_edges, values, fname_list) |
computes and plots histogram |
plot_histogram2 (bin_centers, hist, fname_list) |
plots histogram |
plot_antenna_pattern (antpattern, fname_list) |
plots an antenna pattern |
plot_selfconsistency (zdrkdp_table, fname_list) |
plots a ZDR-KDP/ZH selfconsistency in rain relation |
plot_selfconsistency_instrument (zdr, kdp, …) |
plots the ZDR-KDP/ZH relationship obtained by an instrument. |
plot_timeseries (tvec, data_list, fname_list) |
plots a time series |
plot_timeseries_comp (date1, value1, date2, …) |
plots 2 time series in the same graph |
plot_monitoring_ts (date, np_t, cquant, …) |
plots a time series of monitoring data |
plot_scatter_comp (value1, value2, fname_list) |
plots the scatter between two time series |
plot_intercomp_scores_ts (date_vec, np_vec, …) |
plots a time series of radar intercomparison scores |
plot_ml_ts (dt_ml_arr, ml_top_avg_arr, …[, …]) |
plots a time series of melting layer data |
plot_sun_hits (field, field_name, fname_list, …) |
plots the sun hits |
plot_sun_retrieval_ts (sun_retrieval, …[, …]) |
plots sun retrieval time series series |
plot_Doppler (spectra, field_name, ray, rng, …) |
Makes a Doppler plot |
plot_complex_Doppler (spectra, field_name, …) |
Makes a complex Doppler plot plotting separately the real and the imaginary parts |
plot_amp_phase_Doppler (spectra, field_name, …) |
Makes a complex Doppler plot plotting separately the module and the phase of the signal |
plot_range_Doppler (spectra, field_name, ray, …) |
Makes a range-Doppler plot |
plot_complex_range_Doppler (spectra, …[, …]) |
Makes a complex range-Doppler plot. |
plot_amp_phase_range_Doppler (spectra, …[, …]) |
Makes a complex range-Doppler plot plotting separately the module and the phase of the signal |
plot_angle_Doppler (spectra, field_name, ang, …) |
Makes an angle-Doppler plot |
plot_complex_angle_Doppler (spectra, …[, …]) |
Makes an angle-Doppler plot of complex spectra |
plot_amp_phase_angle_Doppler (spectra, …[, …]) |
Makes an angle-Doppler plot of complex spectra |
plot_time_Doppler (spectra, field_name, …) |
Makes a time-Doppler plot |
plot_complex_time_Doppler (spectra, …[, …]) |
Makes a complex time-Doppler plot. |
plot_amp_phase_time_Doppler (spectra, …[, …]) |
Makes a complex time-Doppler plot plotting separately the module and the phase of the signal |
plot_roi_contour (roi_dict, prdcfg, fname_list) |
plots the contour of a region of interest on a map |
get_colobar_label (field_dict, field_name) |
creates the colorbar label using field metadata |
get_field_name (field_dict, field) |
Return a nice field name for a particular field |
_plot_time_range (rad_time, rad_range, …[, …]) |
plots a time-range plot |
-
pyrad.graph.
get_colobar_label
(field_dict, field_name)[source]¶ creates the colorbar label using field metadata
Parameters: - field_dict : dict
dictionary containing field metadata
- field_name : str
name of the field
Returns: - label : str
colorbar label
-
pyrad.graph.
get_field_name
(field_dict, field)[source]¶ Return a nice field name for a particular field
Parameters: - field_dict : dict
dictionary containing field metadata
- field : str
name of the field
Returns: - field_name : str
the field name
-
pyrad.graph.
plot_Doppler
(spectra, field_name, ray, rng, prdcfg, fname_list, xaxis_info='Doppler_velocity', ylabel=None, titl=None, vmin=None, vmax=None)[source]¶ Makes a Doppler plot
Parameters: - spectra : radar spectra object
object containing the spectra or the IQ data to plot
- field_name : str
name of the field to plot
- ray, rng : int
ray and rng index
- prdcfg : dict
dictionary containing the product configuration
- fname_list : list of str
list of names of the files where to store the plot
- xaxis_info : str
Type of x-axis. Can be ‘Doppler_velocity’, ‘Doppler_frequency’ or ‘pulse_number’
- ylabel : str or None
The label of the y-axis
- titl : str or None
The plot title
- vmin, vmax : float or None
The value limits
Returns: - fname_list : list of str
list of names of the saved plots
-
pyrad.graph.
plot_along_coord
(xval_list, yval_list, fname_list, labelx='coord', labely='Value', labels=None, title='Plot along coordinate', colors=None, linestyles=None, ymin=None, ymax=None, dpi=72)[source]¶ plots data along a certain radar coordinate
Parameters: - xval_list : list of float arrays
the x values, range, azimuth or elevation
- yval_list : list of float arrays
the y values. Parameter to plot
- fname_list : list of str
list of names of the files where to store the plot
- labelx : str
The label of the X axis
- labely : str
The label of the Y axis
- labels : array of str
The label of the legend
- title : str
The figure title
- colors : array of str
Specifies the colors of each line
- linestyles : array of str
Specifies the line style of each line
- ymin, ymax: float
Lower/Upper limit of y axis
- dpi : int
dots per inch
Returns: - fname_list : list of str
list of names of the created plots
-
pyrad.graph.
plot_amp_phase_Doppler
(spectra, field_name, ray, rng, prdcfg, fname_list, xaxis_info='Doppler_velocity', titl=None, ampli_vmin=None, ampli_vmax=None, phase_vmin=None, phase_vmax=None)[source]¶ Makes a complex Doppler plot plotting separately the module and the phase of the signal
Parameters: - spectra : radar spectra object
object containing the spectra or the IQ data to plot
- field_name : str
name of the field to plot
- ray, rng : int
ray and range index
- prdcfg : dict
dictionary containing the product configuration
- fname_list : list of str
list of names of the files where to store the plot
- xaxis_info : str
Type of x-axis. Can be ‘Doppler_velocity’, ‘Doppler_frequency’ or ‘pulse_number’
- titl : str or None
The plot title
- ampli_vmin, ampli_vmax, phase_vmin, phase_vmax : float or None
The value limits
Returns: - fname_list : list of str
list of names of the saved plots
-
pyrad.graph.
plot_amp_phase_angle_Doppler
(spectra, field_name, ang, ind_rays, ind_rng, prdcfg, fname_list, xaxis_info='Doppler_velocity', yaxis_pos='centre', along_azi=True, titl=None, ampli_vmin=None, ampli_vmax=None, phase_vmin=None, phase_vmax=None)[source]¶ Makes an angle-Doppler plot of complex spectra
Parameters: - spectra : radar spectra object
object containing the spectra or the IQ data to plot
- field_name : str
name of the field to plot
- ang : float
The fixed angle
- ind_rays : 1D int array
The indices of the rays to plot
- ind_rng : int
The index of the range to plot
- prdcfg : dict
dictionary containing the product configuration
- fname_list : list of str
list of names of the files where to store the plot
- xaxis_info : str
Type of x-axis. Can be ‘Doppler_velocity’, ‘Doppler_frequency’ or ‘pulse_number’
- yaxis_pos : str
the position that the y point represents in the y-axis bin. Can be ‘start’, end’ or ‘centre’
- along_azi : bool
If true the plot is performed along azimuth. If false it is performed along elevation
- titl : str or None
The plot title
- ampli_vmin, ampli_vmax, phase_vmin, phase_vmax : float or None
The value limits
Returns: - fname_list : list of str
list of names of the saved plots
-
pyrad.graph.
plot_amp_phase_range_Doppler
(spectra, field_name, ray, prdcfg, fname_list, xaxis_info='Doppler_velocity', titl=None, ampli_vmin=None, ampli_vmax=None, phase_vmin=None, phase_vmax=None)[source]¶ Makes a complex range-Doppler plot plotting separately the module and the phase of the signal
Parameters: - spectra : radar spectra object
object containing the spectra or the IQ data to plot
- field_name : str
name of the field to plot
- ray : int
ray index
- prdcfg : dict
dictionary containing the product configuration
- fname_list : list of str
list of names of the files where to store the plot
- xaxis_info : str
Type of x-axis. Can be ‘Doppler_velocity’, ‘Doppler_frequency’ or ‘pulse_number’
- titl : str or None
The plot title
- ampli_vmin, ampli_vmax, phase_vmin, phase_vmax : float or None
The value limits
Returns: - fname_list : list of str
list of names of the saved plots
-
pyrad.graph.
plot_amp_phase_time_Doppler
(spectra, field_name, prdcfg, fname_list, xaxis_info='Doppler_velocity', yaxis_pos='start', titl=None, ampli_vmin=None, ampli_vmax=None, phase_vmin=None, phase_vmax=None)[source]¶ Makes a complex time-Doppler plot plotting separately the module and the phase of the signal
Parameters: - spectra : radar spectra object
object containing the spectra or the IQ data to plot
- field_name : str
name of the field to plot
- prdcfg : dict
dictionary containing the product configuration
- fname_list : list of str
list of names of the files where to store the plot
- xaxis_info : str
Type of x-axis. Can be ‘Doppler_velocity’, ‘Doppler_frequency’ or ‘pulse_number’
- yaxis_pos : str
the position that the y point represents in the y-axis bin. Can be ‘start’, end’ or ‘centre’
- titl : str or None
The plot title
- ampli_vmin, ampli_vmax, phase_vmin, phase_vmax : float or None
The value limits
Returns: - fname_list : list of str
list of names of the saved plots
-
pyrad.graph.
plot_angle_Doppler
(spectra, field_name, ang, ind_rays, ind_rng, prdcfg, fname_list, xaxis_info='Doppler_velocity', yaxis_pos='centre', along_azi=True, titl=None, clabel=None, vmin=None, vmax=None)[source]¶ Makes an angle-Doppler plot
Parameters: - spectra : radar spectra object
object containing the spectra or the IQ data to plot
- field_name : str
name of the field to plot
- ang : float
The fixed angle
- ind_rays : 1D int array
The indices of the rays to plot
- ind_rng : int
The index of the range to plot
- prdcfg : dict
dictionary containing the product configuration
- fname_list : list of str
list of names of the files where to store the plot
- xaxis_info : str
Type of x-axis. Can be ‘Doppler_velocity’, ‘Doppler_frequency’ or ‘pulse_number’
- yaxis_pos : str
the position that the y point represents in the y-axis bin. Can be ‘start’, end’ or ‘centre’
- along_azi : bool
If true the plot is performed along azimuth. If false it is performed along elevation
- titl : str or None
The plot title
- clabel : str or None
The color bar label
- vmin, vmax : float or None
The value limits
Returns: - fname_list : list of str
list of names of the saved plots
-
pyrad.graph.
plot_antenna_pattern
(antpattern, fname_list, labelx='Angle [Deg]', linear=False, twoway=False, title='Antenna Pattern', ymin=None, ymax=None, dpi=72)[source]¶ plots an antenna pattern
Parameters: - antpattern : dict
dictionary with the angle and the attenuation
- value : float array
values of the time series
- fname_list : list of str
list of names of the files where to store the plot
- labelx : str
The label of the X axis
- linear : boolean
if true data is in linear units
- linear : boolean
if true data represents the two way attenuation
- titl : str
The figure title
- ymin, ymax: float
Lower/Upper limit of y axis
- dpi : int
dots per inch
Returns: - fname_list : list of str
list of names of the created plots
-
pyrad.graph.
plot_bscope
(radar, field_name, ind_sweep, prdcfg, fname_list, vmin=None, vmax=None, ray_dim='ang', xaxis_rng=True)[source]¶ plots a B-Scope (angle-range representation)
Parameters: - radar : Radar object
object containing the radar data to plot
- field_name : str
name of the radar field to plot
- ind_sweep : int
sweep index to plot
- prdcfg : dict
dictionary containing the product configuration
- fname_list : list of str
list of names of the files where to store the plot
- vmin, vmax : float
Min and max values of the colorbar
- ray_dim : str
the ray dimension. Can be ‘ang’ or ‘time’
- xaxis : bool
if true the range will be in the x-axis. Otherwise it will be in the y-axis.
Returns: - fname_list : list of str
list of names of the created plots
-
pyrad.graph.
plot_cappi
(radar, field_name, altitude, prdcfg, fname_list, beamwidth=1.0, beam_spacing=1.0, save_fig=True)[source]¶ plots a Constant Altitude Plan Position Indicator CAPPI
Parameters: - radar : Radar object
object containing the radar data to plot
- field_name : str
name of the radar field to plot
- altitude : float
the altitude [m MSL] to be plotted
- prdcfg : dict
dictionary containing the product configuration
- fname_list : list of str
list of names of the files where to store the plot
- beamwidth : float
The radar beamwidth
- beam_spacing : float
the ray angle resolution
- save_fig : bool
if true save the figure. If false it does not close the plot and returns the handle to the figure
Returns: - fname_list : list of str or
- fig, ax : tupple
list of names of the saved plots or handle of the figure an axes
-
pyrad.graph.
plot_complex_Doppler
(spectra, field_name, ray, rng, prdcfg, fname_list, xaxis_info='Doppler_velocity', ylabel=None, titl=None, vmin=None, vmax=None)[source]¶ Makes a complex Doppler plot plotting separately the real and the imaginary parts
Parameters: - spectra : radar spectra object
object containing the spectra or the IQ data to plot
- field_name : str
name of the field to plot
- ray, rng : int
ray and range index
- prdcfg : dict
dictionary containing the product configuration
- fname_list : list of str
list of names of the files where to store the plot
- xaxis_info : str
Type of x-axis. Can be ‘Doppler_velocity’, ‘Doppler_frequency’ or ‘pulse_number’
- ylabel : str or None
The label of the y-axis
- titl : str or None
The plot title
- vmin, vmax : float or None
The value limits
Returns: - fname_list : list of str
list of names of the saved plots
-
pyrad.graph.
plot_complex_angle_Doppler
(spectra, field_name, ang, ind_rays, ind_rng, prdcfg, fname_list, xaxis_info='Doppler_velocity', yaxis_pos='centre', along_azi=True, titl=None, clabel=None, vmin=None, vmax=None)[source]¶ Makes an angle-Doppler plot of complex spectra
Parameters: - spectra : radar spectra object
object containing the spectra or the IQ data to plot
- field_name : str
name of the field to plot
- ang : float
The fixed angle
- ind_rays : 1D int array
The indices of the rays to plot
- ind_rng : int
The index of the range to plot
- prdcfg : dict
dictionary containing the product configuration
- fname_list : list of str
list of names of the files where to store the plot
- xaxis_info : str
Type of x-axis. Can be ‘Doppler_velocity’, ‘Doppler_frequency’ or ‘pulse_number’
- yaxis_pos : str
the position that the y point represents in the y-axis bin. Can be ‘start’, end’ or ‘centre’
- along_azi : bool
If true the plot is performed along azimuth. If false it is performed along elevation
- titl : str or None
The plot title
- clabel : str or None
The color bar label
- vmin, vmax : float or None
The value limits
Returns: - fname_list : list of str
list of names of the saved plots
-
pyrad.graph.
plot_complex_range_Doppler
(spectra, field_name, ray, prdcfg, fname_list, xaxis_info='Doppler_velocity', titl=None, clabel=None, vmin=None, vmax=None)[source]¶ Makes a complex range-Doppler plot. Plotting separately the real and the imaginary part
Parameters: - spectra : radar spectra object
object containing the spectra or the IQ data to plot
- field_name : str
name of the field to plot
- ray : int
ray index
- prdcfg : dict
dictionary containing the product configuration
- fname_list : list of str
list of names of the files where to store the plot
- xaxis_info : str
Type of x-axis. Can be ‘Doppler_velocity’, ‘Doppler_frequency’ or ‘pulse_number’
- titl : str or None
The plot title
- clabel : str or None
The label of color bar
- vmin, vmax : float or None
The value limits
Returns: - fname_list : list of str
list of names of the saved plots
-
pyrad.graph.
plot_complex_time_Doppler
(spectra, field_name, prdcfg, fname_list, xaxis_info='Doppler_velocity', yaxis_pos='start', titl=None, clabel=None, vmin=None, vmax=None)[source]¶ Makes a complex time-Doppler plot. Plotting separately the real and the imaginary part
Parameters: - spectra : radar spectra object
object containing the spectra or the IQ data to plot
- field_name : str
name of the field to plot
- prdcfg : dict
dictionary containing the product configuration
- fname_list : list of str
list of names of the files where to store the plot
- xaxis_info : str
Type of x-axis. Can be ‘Doppler_velocity’, ‘Doppler_frequency’ or ‘pulse_number’
- yaxis_pos : str
the position that the y point represents in the y-axis bin. Can be ‘start’, end’ or ‘centre’
- titl : str or None
The plot title
- clabel : str or None
The label of color bar
- vmin, vmax : float or None
The value limits
Returns: - fname_list : list of str
list of names of the saved plots
-
pyrad.graph.
plot_density
(hist_obj, hist_type, field_name, ind_sweep, prdcfg, fname_list, quantiles=[25.0, 50.0, 75.0], ref_value=0.0, vmin=None, vmax=None)[source]¶ density plot (angle-values representation)
Parameters: - hist_obj : histogram object
object containing the histogram data to plot
- hist_type : str
type of histogram (instantaneous data or cumulative)
- field_name : str
name of the radar field to plot
- ind_sweep : int
sweep index to plot
- prdcfg : dict
dictionary containing the product configuration
- fname_list : list of str
list of names of the files where to store the plot
- quantiles : array
the quantile lines to plot
- ref_value : float
the reference value
- vmin, vmax : float
Minim and maximum extend of the vertical axis
Returns: - fname_list : list of str
list of names of the created plots
-
pyrad.graph.
plot_field_coverage
(xval_list, yval_list, fname_list, labelx='Azimuth (deg)', labely='Range extension [m]', labels=None, title='Field coverage', ymin=None, ymax=None, xmeanval=None, ymeanval=None, labelmeanval=None, dpi=72)[source]¶ plots a time series
Parameters: - xval_list : list of float arrays
the x values, azimuth
- yval_list : list of float arrays
the y values. Range extension
- fname_list : list of str
list of names of the files where to store the plot
- labelx : str
The label of the X axis
- labely : str
The label of the Y axis
- labels : array of str
The label of the legend
- title : str
The figure title
- ymin, ymax : float
Lower/Upper limit of y axis
- xmeanval, ymeanval : float array
the x and y values of a mean along elevation
- labelmeanval : str
the label of the mean
- dpi : int
dots per inch
Returns: - fname_list : list of str
list of names of the created plots
-
pyrad.graph.
plot_fixed_rng
(radar, field_name, prdcfg, fname_list, azi_res=None, ele_res=None, ang_tol=1.0, vmin=None, vmax=None)[source]¶ plots a fixed range plot
Parameters: - radar : radar object
The radar object containing the fixed range data
- field_name : str
The name of the field to plot
- prdcfg : dict
dictionary containing the product configuration
- fname_list : list of str
list of names of the files where to store the plot
- azi_res, ele_res : float
The nominal azimuth and elevation angle resolution [deg]
- ang_tol : float
The tolerance between the nominal and the actual radar angle
- vmin, vmax : float
Min and Max values of the color scale. If None it is going to be taken from the Py-ART config files
Returns: - fname_list : list of str
list of names of the created plots
-
pyrad.graph.
plot_fixed_rng_span
(radar, field_name, prdcfg, fname_list, azi_res=None, ele_res=None, ang_tol=1.0, stat='max')[source]¶ plots a fixed range plot
Parameters: - radar : radar object
The radar object containing the fixed range data
- field_name : str
The name of the field to plot
- prdcfg : dict
dictionary containing the product configuration
- fname_list : list of str
list of names of the files where to store the plot
- azi_res, ele_res : float
The nominal azimuth and elevation angle resolution [deg]
- ang_tol : float
The tolerance between the nominal and the actual radar angle
Returns: - fname_list : list of str
list of names of the created plots
-
pyrad.graph.
plot_histogram
(bin_edges, values, fname_list, labelx='bins', labely='Number of Samples', titl='histogram', dpi=72)[source]¶ computes and plots histogram
Parameters: - bin_edges : array
histogram bin edges
- values : array
data values
- fname_list : list of str
list of names of the files where to store the plot
- labelx : str
The label of the X axis
- labely : str
The label of the Y axis
- titl : str
The figure title
- dpi : int
dots per inch
Returns: - fname_list : list of str
list of names of the created plots
-
pyrad.graph.
plot_histogram2
(bin_centers, hist, fname_list, width=None, labelx='bins', labely='Number of Samples', titl='histogram', dpi=72, ax=None, fig=None, save_fig=True, color=None, alpha=None, invert_xaxis=False)[source]¶ plots histogram
Parameters: - bin_centers : array
histogram bin centers
- hist : array
values for each bin
- fname_list : list of str
list of names of the files where to store the plot
- width : scalar or array-like
the width(s) of the bars. If None it is going to be estimated from the distances between centers
- labelx : str
The label of the X axis
- labely : str
The label of the Y axis
- titl : str
The figure title
- dpi : int
dots per inch
- fig : Figure
Figure to add the colorbar to. If none a new figure will be created
- ax : Axis
Axis to plot on. if fig is None a new axis will be created
- save_fig : bool
if true save the figure. If false it does not close the plot and returns the handle to the figure
- color : str
color of the bars
- alpha : float
parameter controling the transparency
- invert_xaxis : bool
If true inverts the x axis
Returns: - fname_list or fig, ax: list of str
list of names of the created plots
-
pyrad.graph.
plot_intercomp_scores_ts
(date_vec, np_vec, meanbias_vec, medianbias_vec, quant25bias_vec, quant75bias_vec, modebias_vec, corr_vec, slope_vec, intercep_vec, intercep_slope1_vec, fname_list, ref_value=0.0, np_min=0, corr_min=0.0, labelx='Time UTC', titl='RADAR001-RADAR002 intercomparison', dpi=72)[source]¶ plots a time series of radar intercomparison scores
Parameters: - date_vec : datetime object
time of the time series
- np_vec : int array
number of points
- meanbias_vec, medianbias_vec, modebias_vec : float array
mean, median and mode bias
- quant25bias_vec, quant75bias_vec: 25th and 75th percentile of the bias
- corr_vec : float array
correlation
- slope_vec, intercep_vec : float array
slope and intercep of a linear regression
- intercep_slope1_vec : float
the intercep point of a inear regression of slope 1
- ref_value : float
the reference value
- np_min : int
The minimum number of points to consider the result valid
- corr_min : float
The minimum correlation to consider the results valid
- labelx : str
The label of the X axis
- titl : str
The figure title
Returns: - fname_list : list of str
list of names of the created plots
-
pyrad.graph.
plot_latitude_slice
(grid, field_name, lon, lat, prdcfg, fname_list)[source]¶ plots a latitude slice from gridded data
Parameters: - grid : Grid object
object containing the gridded data to plot
- field_name : str
name of the radar field to plot
- lon, lat : float
coordinates of the slice to plot
- prdcfg : dict
dictionary containing the product configuration
- fname_list : list of str
list of names of the files where to store the plot
Returns: - fname_list : list of str
list of names of the created plots
-
pyrad.graph.
plot_latlon_slice
(grid, field_name, coord1, coord2, prdcfg, fname_list)[source]¶ plots a croos section crossing two points in the grid
Parameters: - grid : Grid object
object containing the gridded data to plot
- field_name : str
name of the radar field to plot
- coord1 : tupple of floats
lat, lon of the first point
- coord2 : tupple of floats
lat, lon of the second point
- fname_list : list of str
list of names of the files where to store the plot
Returns: - fname_list : list of str
list of names of the created plots
-
pyrad.graph.
plot_longitude_slice
(grid, field_name, lon, lat, prdcfg, fname_list)[source]¶ plots a longitude slice from gridded data
Parameters: - grid : Grid object
object containing the gridded data to plot
- field_name : str
name of the radar field to plot
- lon, lat : float
coordinates of the slice to plot
- prdcfg : dict
dictionary containing the product configuration
- fname_list : list of str
list of names of the files where to store the plot
Returns: - fname_list : list of str
list of names of the created plots
-
pyrad.graph.
plot_ml_ts
(dt_ml_arr, ml_top_avg_arr, ml_top_std_arr, thick_avg_arr, thick_std_arr, nrays_valid_arr, nrays_total_arr, fname_list, labelx='Time UTC', titl='Melting layer time series', dpi=72)[source]¶ plots a time series of melting layer data
Parameters: - dt_ml_arr : datetime object
time of the time series
- np_vec : int array
number of points
- meanbias_vec, medianbias_vec, modebias_vec : float array
mean, median and mode bias
- quant25bias_vec, quant75bias_vec: 25th and 75th percentile of the bias
- corr_vec : float array
correlation
- slope_vec, intercep_vec : float array
slope and intercep of a linear regression
- intercep_slope1_vec : float
the intercep point of a inear regression of slope 1
- ref_value : float
the reference value
- np_min : int
The minimum number of points to consider the result valid
- corr_min : float
The minimum correlation to consider the results valid
- labelx : str
The label of the X axis
- titl : str
The figure title
Returns: - fname_list : list of str
list of names of the created plots
-
pyrad.graph.
plot_monitoring_ts
(date, np_t, cquant, lquant, hquant, field_name, fname_list, ref_value=None, vmin=None, vmax=None, np_min=0, labelx='Time [UTC]', labely='Value', titl='Time Series', dpi=72)[source]¶ plots a time series of monitoring data
Parameters: - date : datetime object
time of the time series
- np_t : int array
number of points
- cquant, lquant, hquant : float array
values of the central, low and high quantiles
- field_name : str
name of the field
- fname_list : list of str
list of names of the files where to store the plot
- ref_value : float
the reference value
- vmin, vmax : float
The limits of the y axis
- np_min : int
minimum number of points to consider the sample plotable
- labelx : str
The label of the X axis
- labely : str
The label of the Y axis
- titl : str
The figure title
- dpi : int
dots per inch
Returns: - fname_list : list of str
list of names of the created plots
-
pyrad.graph.
plot_pos
(lat, lon, alt, fname_list, ax=None, fig=None, save_fig=True, sort_altitude='No', dpi=72, alpha=1.0, cb_label='height [m MSL]', titl='Position', xlabel='Lon [Deg]', ylabel='Lat [Deg]', limits=None, vmin=None, vmax=None)[source]¶ plots a trajectory on a Cartesian surface
Parameters: - lat, lon, alt : float array
Points coordinates
- fname_list : list of str
list of names of the files where to store the plot
- fig : Figure
Figure to add the colorbar to. If none a new figure will be created
- ax : Axis
Axis to plot on. if fig is None a new axis will be created
- save_fig : bool
if true save the figure if false it does not close the plot and returns the handle to the figure
- sort_altitude : str
String indicating whether to sort the altitude data. Can be ‘No’, ‘Lowest_on_top’ or ‘Highest_on_top’
- dpi : int
Pixel density
- alpha : float
Transparency
- cb_label : str
Color bar label
- titl : str
Plot title
- xlabel, ylabel : str
The labels of the X and Y axis
- limits : tupple or None
The limits of the field to plot
- vmin, vmax : float
The limits of the color scale
Returns: - fname_list : list of str or
- fig, ax : tupple
list of names of the saved plots or handle of the figure an axes
-
pyrad.graph.
plot_pos_map
(lat, lon, alt, fname_list, ax=None, fig=None, save_fig=True, sort_altitude='No', dpi=72, alpha=1.0, cb_label='height [m MSL]', titl='Position', xlabel='Lon [Deg]', ylabel='Lat [Deg]', limits=None, vmin=None, vmax=None, lon_step=0.3, lat_step=0.1, background_zoom=8)[source]¶ plots a trajectory on a map
Parameters: - lat, lon, alt : float array
Points coordinates
- fname_list : list of str
list of names of the files where to store the plot
- fig : Figure
Figure to add the colorbar to. If none a new figure will be created
- ax : Axis
Axis to plot on. if fig is None a new axis will be created
- save_fig : bool
if true save the figure if false it does not close the plot and returns the handle to the figure
- sort_altitude : str
String indicating whether to sort the altitude data. Can be ‘No’, ‘Lowest_on_top’ or ‘Highest_on_top’
- dpi : int
Pixel density
- alpha : float
Transparency
- cb_label : str
Color bar label
- titl : str
Plot title
- xlabel, ylabel : str
The labels of the X and Y axis
- limits : tupple or None
The limits of the field to plot
- vmin, vmax : float
The limits of the color scale
- lon_step, lat_step : float
The step interval of the latitude, longitude lines to plot
- background_zoom : int
The zoom of the background image. A higher number will give more level of detail at the expense of speed.
Returns: - fname_list : list of str or
- fig, ax : tupple
list of names of the saved plots or handle of the figure an axes
-
pyrad.graph.
plot_ppi
(radar, field_name, ind_el, prdcfg, fname_list, plot_type='PPI', titl=None, vmin=None, vmax=None, step=None, quantiles=None, save_fig=True)[source]¶ plots a PPI
Parameters: - radar : Radar object
object containing the radar data to plot
- field_name : str
name of the radar field to plot
- ind_el : int
sweep index to plot
- prdcfg : dict
dictionary containing the product configuration
- fname_list : list of str
list of names of the files where to store the plot
- plot_type : str
type of plot (PPI, QUANTILES or HISTOGRAM)
- titl : str
Plot title
- vmin, vmax : float
The minimum and maximum value. If None the scale is going to be obtained from the Py-ART config file.
- step : float
step for histogram plotting
- quantiles : float array
quantiles to plot
- save_fig : bool
if true save the figure. If false it does not close the plot and returns the handle to the figure
Returns: - fname_list : list of str or
- fig, ax : tupple
list of names of the saved plots or handle of the figure an axes
-
pyrad.graph.
plot_ppi_contour
(radar, field_name, ind_el, prdcfg, fname_list, contour_values=None, linewidths=1.5, ax=None, fig=None, save_fig=True)[source]¶ plots contour data on a PPI
Parameters: - radar : Radar object
object containing the radar data to plot
- field_name : str
name of the radar field to plot
- ind_el : int
sweep index to plot
- prdcfg : dict
dictionary containing the product configuration
- fname_list : list of str
list of names of the files where to store the plot
- contour_values : float array
list of contours to plot
- linewidths : float
width of the contour lines
- fig : Figure
Figure to add the colorbar to. If none a new figure will be created
- ax : Axis
Axis to plot on. if fig is None a new axis will be created
- save_fig : bool
if true save the figure if false it does not close the plot and returns the handle to the figure
Returns: - fname_list : list of str or
- fig, ax : tupple
list of names of the saved plots or handle of the figure an axes
-
pyrad.graph.
plot_ppi_map
(radar, field_name, ind_el, prdcfg, fname_list, save_fig=True)[source]¶ plots a PPI on a geographic map
Parameters: - radar : Radar object
object containing the radar data to plot
- field_name : str
name of the radar field to plot
- ind_el : int
sweep index to plot
- prdcfg : dict
dictionary containing the product configuration
- fname_list : list of str
list of names of the files where to store the plot
- save_fig : bool
if true save the figure. If false it does not close the plot and returns the handle to the figure
Returns: - fname_list : list of str or
- fig, ax, display : tupple
list of names of the saved plots or handle of the figure an axes
-
pyrad.graph.
plot_quantiles
(quant, value, fname_list, labelx='quantile', labely='value', titl='quantile', vmin=None, vmax=None, dpi=72)[source]¶ plots quantiles
Parameters: - quant : array
quantiles to be plotted
- value : array
values of each quantile
- fname_list : list of str
list of names of the files where to store the plot
- labelx : str
The label of the X axis
- labely : str
The label of the Y axis
- titl : str
The figure title
- vmin, vmax: float
Lower/Upper limit of data values
- dpi : int
dots per inch
Returns: - fname_list : list of str
list of names of the created plots
-
pyrad.graph.
plot_range_Doppler
(spectra, field_name, ray, prdcfg, fname_list, xaxis_info='Doppler_velocity', titl=None, clabel=None, vmin=None, vmax=None)[source]¶ Makes a range-Doppler plot
Parameters: - spectra : radar spectra object
object containing the spectra or the IQ data to plot
- field_name : str
name of the field to plot
- ray : int
ray index
- prdcfg : dict
dictionary containing the product configuration
- fname_list : list of str
list of names of the files where to store the plot
- xaxis_info : str
Type of x-axis. Can be ‘Doppler_velocity’, ‘Doppler_frequency’ or ‘pulse_number’
- titl : str or None
The plot title
- clabel : str or None
The color bar label
- vmin, vmax : float or None
The value limits
Returns: - fname_list : list of str
list of names of the saved plots
-
pyrad.graph.
plot_ray
(radar, field_name, ind_ray, prdcfg, fname_list, titl=None, vmin=None, vmax=None, save_fig=True)[source]¶ plots a ray
Parameters: - radar : Radar object
object containing the radar data to plot
- field_name : str
name of the radar field to plot
- ind_ray : int
ray index to plot
- prdcfg : dict
dictionary containing the product configuration
- fname_list : list of str
list of names of the files where to store the plot
- plot_type : str
type of plot (PPI, QUANTILES or HISTOGRAM)
- titl : str
Plot title
- vmin, vmax : float
min and max values of the y axis
- save_fig : bool
if true save the figure. If false it does not close the plot and returns the handle to the figure
Returns: - fname_list : list of str or
- fig, ax : tupple
list of names of the saved plots or handle of the figure an axes
-
pyrad.graph.
plot_rhi
(radar, field_name, ind_az, prdcfg, fname_list, plot_type='RHI', titl=None, vmin=None, vmax=None, step=None, quantiles=None, save_fig=True)[source]¶ plots an RHI
Parameters: - radar : Radar object
object containing the radar data to plot
- field_name : str
name of the radar field to plot
- ind_az : int
sweep index to plot
- prdcfg : dict
dictionary containing the product configuration
- fname_list : list of str
list of names of the files where to store the plot
- plot_type : str
type of plot (PPI, QUANTILES or HISTOGRAM)
- titl : str
Plot title
- vmin, vmax : float
The minimum and maximum value. If None the scale is going to be obtained from the Py-ART config file.
- step : float
step for histogram plotting
- quantiles : float array
quantiles to plot
- save_fig : bool
if true save the figure. If false it does not close the plot and returns the handle to the figure
Returns: - fname_list : list of str or
- fig, ax : tupple
list of names of the saved plots or handle of the figure an axes
-
pyrad.graph.
plot_rhi_contour
(radar, field_name, ind_az, prdcfg, fname_list, contour_values=None, linewidths=1.5, ax=None, fig=None, save_fig=True)[source]¶ plots contour data on an RHI
Parameters: - radar : Radar object
object containing the radar data to plot
- field_name : str
name of the radar field to plot
- ind_az : int
sweep index to plot
- prdcfg : dict
dictionary containing the product configuration
- fname_list : list of str
list of names of the files where to store the plot
- contour_values : float array
list of contours to plot
- linewidths : float
width of the contour lines
- fig : Figure
Figure to add the colorbar to. If none a new figure will be created
- ax : Axis
Axis to plot on. if fig is None a new axis will be created
- save_fig : bool
if true save the figure if false it does not close the plot and returns the handle to the figure
Returns: - fname_list : list of str or
- fig, ax : tupple
list of names of the saved plots or handle of the figure an axes
-
pyrad.graph.
plot_rhi_profile
(data_list, hvec, fname_list, labelx='Value', labely='Height (m MSL)', labels=['Mean'], title='RHI profile', colors=None, linestyles=None, vmin=None, vmax=None, hmin=None, hmax=None, dpi=72)[source]¶ plots an RHI profile
Parameters: - data_list : list of float array
values of the profile
- hvec : float array
height points of the profile
- fname_list : list of str
list of names of the files where to store the plot
- labelx : str
The label of the X axis
- labely : str
The label of the Y axis
- labels : array of str
The label of the legend
- title : str
The figure title
- colors : array of str
Specifies the colors of each line
- linestyles : array of str
Specifies the line style of each line
- vmin, vmax: float
Lower/Upper limit of data values
- hmin, hmax: float
Lower/Upper limit of altitude
- dpi : int
dots per inch
Returns: - fname_list : list of str
list of names of the created plots
-
pyrad.graph.
plot_roi_contour
(roi_dict, prdcfg, fname_list, plot_center=True, xlabel='Lon [Deg]', ylabel='Lat [Deg]', titl='TRT cell position', ax=None, fig=None, save_fig=True)[source]¶ plots the contour of a region of interest on a map
Parameters: - roi_dict : dict
dictionary containing lon_roi, lat_roi, the points defining the contour
- prdcfg : dict
dictionary containing the product configuration
- fname_list : list of str
list of names of the files where to store the plot
- plot_center : bool
If True a marked with the center of the roi is plotted
- fig : Figure
Figure to add the colorbar to. If none a new figure will be created
- ax : Axis
Axis to plot on. if fig is None a new axis will be created
- save_fig : bool
if true save the figure if false it does not close the plot and returns the handle to the figure
Returns: - fname_list : list of str or
- fig, ax : tupple
list of names of the saved plots or handle of the figure an axes
-
pyrad.graph.
plot_scatter
(bin_edges1, bin_edges2, hist_2d, field_name1, field_name2, fname_list, prdcfg, metadata=None, lin_regr=None, lin_regr_slope1=None, rad1_name='RADAR001', rad2_name='RADAR002')[source]¶ 2D histogram
Parameters: - bin_edges1, bin_edges2 : float array2
the bins of each field
- hist_2d : ndarray 2D
the 2D histogram
- field_name1, field_name2 : str
the names of each field
- fname_list : list of str
list of names of the files where to store the plot
- prdcfg : dict
product configuration dictionary
- metadata : str
a string with metadata to write in the plot
- lin_regr : tupple with 2 values
the coefficients for a linear regression
- lin_regr_slope1 : float
the intercep point of a linear regression of slope 1
- rad1_name, rad2_name : str
name of the radars which data is used
Returns: - fname_list : list of str
list of names of the created plots
-
pyrad.graph.
plot_scatter_comp
(value1, value2, fname_list, labelx='Sensor 1', labely='Sensor 2', titl='Scatter', axis=None, metadata=None, dpi=72, ax=None, fig=None, save_fig=True, point_format='bx')[source]¶ plots the scatter between two time series
Parameters: - value1 : float array
values of the first time series
- value2 : float array
values of the second time series
- fname_list : list of str
list of names of the files where to store the plot
- labelx : str
The label of the X axis
- labely : str
The label of the Y axis
- titl : str
The figure title
- axis : str
type of axis
- metadata : string
a string containing metadata
- dpi : int
dots per inch
- fig : Figure
Figure to add the colorbar to. If none a new figure will be created
- ax : Axis
Axis to plot on. if fig is None a new axis will be created
- save_fig : bool
if true save the figure if false it does not close the plot and returns the handle to the figure
- point_format : str
format of the scatter point
Returns: - fname_list : list of str
list of names of the created plots
-
pyrad.graph.
plot_selfconsistency
(zdrkdp_table, fname_list, labelx='ZDR [dB]', labely='KDP/Zh [(deg*m3)/(km*mm6)]', title='Selfconsistency in rain', ymin=None, ymax=None, dpi=72, save_fig=True, ax=None, fig=None)[source]¶ plots a ZDR-KDP/ZH selfconsistency in rain relation
Parameters: - antpattern : dict
dictionary with the angle and the attenuation
- value : float array
values of the time series
- fname_list : list of str
list of names of the files where to store the plot
- labelx : str
The label of the X axis
- linear : boolean
if true data is in linear units
- linear : boolean
if true data represents the two way attenuation
- titl : str
The figure title
- ymin, ymax: float
Lower/Upper limit of y axis
- dpi : int
dots per inch
Returns: - fname_list : list of str
list of names of the created plots
-
pyrad.graph.
plot_selfconsistency_instrument
(zdr, kdp, zh, fname_list, bins_zdr_step=0.05, bins_zdr_min=0.0, bins_zdr_max=6.0, bins_kdpzh_step=0.1, bins_kdpzh_min=-2.0, bins_kdpzh_max=20.0, normalize=True, vmin=0.0, vmax=0.01, parametrization='None', zdr_kdpzh_dict=None, retrieve_relation=True, plot_theoretical=True, dpi=72)[source]¶ plots the ZDR-KDP/ZH relationship obtained by an instrument. The theoretical curve and the retrieved curve
Parameters: - zdr, kdp, zh : 1D ndarray
The valid values of ZDR [dB], KDP [deg/km] and Zh [mm6/m3] collected by the instrument
- fname_list : list of str
list of names of the files where to store the plot
- bins_zdr_step : float
The step of the ZDR axis of the histogram [dB]
- bins_zdr_min, bins_zdr_max : float
The limits of the ZDR axis of the histogram (bins center) [dB]
- bins_kdpzh_step : float
The step of the 1e5*KDP^a/ZH^b axis of the histogram [(deg*m3)/(km*mm6)]
- bins_kdpzh_min, bins_kdpzh_max : float
The limits of the 1e5*KDP^a/ZH^b axis of the histogram (bins center) [(deg*m3)/(km*mm6)]
- normalize : Bool
If True the occurrence density of ZH/KDP for each ZDR bin is going to be represented. Otherwise it will show the number of gates at each bin
- vmin, vmax : float
min and max values of the colorbar
- parametrization : str
The type of parametrization for the self-consistency curves. Can be ‘None’, ‘Gourley’, ‘Wolfensberger’, ‘Louf’, ‘Gorgucci’ or ‘Vaccarono’. ‘None’ will use tables contained in zdr_kdpzh_dict. The parametrized curves are obtained from literature except for Wolfensberger that was derived from disdrometer data obtained by MeteoSwiss and EPFL. All parametrizations are valid for C-band only except that of Gourley.
- zdr_kdpzh_dict : dict
dictionary containing a look up table relating ZDR with KDP/Zh for different elevations and the frequency band of the radar
- retrieve_relation : boolean
if true a zdr-kdp/zh relationship is retrieved from the data
- plot_theoretical : bool
if true the theoretical relationship is retrieved
- dpi : int
dots per inch
Returns: - fname_list : list of str
list of names of the created plots
-
pyrad.graph.
plot_sun_hits
(field, field_name, fname_list, prdcfg)[source]¶ plots the sun hits
Parameters: - radar : Radar object
object containing the radar data to plot
- field_name : str
name of the radar field to plot
- altitude : float
the altitude [m MSL] to be plotted
- prdcfg : dict
dictionary containing the product configuration
- fname_list : list of str
list of names of the files where to store the plot
Returns: - fname_list : list of str
list of names of the created plots
-
pyrad.graph.
plot_sun_retrieval_ts
(sun_retrieval, data_type, fname_list, labelx='Date', titl='Sun retrieval Time Series', dpi=72)[source]¶ plots sun retrieval time series series
Parameters: - sun_retrieval : tuple
tuple containing the retrieved parameters
- data_type : str
parameter to be plotted
- fname_list : list of str
list of names of the files where to store the plot
- labelx : str
the x label
- titl : str
the title of the plot
- dpi : int
dots per inch
Returns: - fname_list : list of str
list of names of the created plots
-
pyrad.graph.
plot_surface
(grid, field_name, level, prdcfg, fname_list, titl=None, save_fig=True, use_basemap=False)[source]¶ plots a surface from gridded data
Parameters: - grid : Grid object
object containing the gridded data to plot
- field_name : str
name of the radar field to plot
- level : int
level index
- prdcfg : dict
dictionary containing the product configuration
- fname_list : list of str
list of names of the files where to store the plot
- titl : str
Plot title
- save_fig : bool
if true save the figure. If false it does not close the plot and returns the handle to the figure
Returns: - fname_list : list of str or
- fig, ax, display : tupple
list of names of the saved plots or handle of the figure an axes
-
pyrad.graph.
plot_time_Doppler
(spectra, field_name, prdcfg, fname_list, xaxis_info='Doppler_velocity', yaxis_pos='start', titl=None, clabel=None, vmin=None, vmax=None)[source]¶ Makes a time-Doppler plot
Parameters: - spectra : radar spectra object
object containing the spectra or the IQ data to plot
- field_name : str
name of the field to plot
- prdcfg : dict
dictionary containing the product configuration
- fname_list : list of str
list of names of the files where to store the plot
- xaxis_info : str
Type of x-axis. Can be ‘Doppler_velocity’, ‘Doppler_frequency’ or ‘pulse_number’
- yaxis_pos : str
the position that the y point represents in the y-axis bin. Can be ‘start’, end’ or ‘centre’
- titl : str or None
The plot title
- clabel : str or None
The color bar label
- vmin, vmax : float or None
The value limits
Returns: - fname_list : list of str
list of names of the saved plots
-
pyrad.graph.
plot_time_range
(radar, field_name, ind_sweep, prdcfg, fname_list, vmin=None, vmax=None, ylabel='range (Km)')[source]¶ plots a time-range plot
Parameters: - radar : Radar object
object containing the radar data to plot
- field_name : str
name of the radar field to plot
- ind_sweep : int
sweep index to plot
- prdcfg : dict
dictionary containing the product configuration
- fname_list : list of str
list of names of the files where to store the plot
- vmin, vmax : float
Min and max values of the colorbar
- ylabel : str
The y-axis label
Returns: - fname_list : list of str
list of names of the created plots
-
pyrad.graph.
plot_timeseries
(tvec, data_list, fname_list, labelx='Time [UTC]', labely='Value', labels=['Sensor'], title='Time Series', period=0, timeformat=None, colors=None, linestyles=None, markers=None, ymin=None, ymax=None, dpi=72)[source]¶ plots a time series
Parameters: - tvec : datetime object
time of the time series
- data_list : list of float array
values of the time series
- fname_list : list of str
list of names of the files where to store the plot
- labelx : str
The label of the X axis
- labely : str
The label of the Y axis
- labels : array of str
The label of the legend
- title : str
The figure title
- period : float
measurement period in seconds used to compute accumulation. If 0 no accumulation is computed
- timeformat : str
Specifies the tvec and time format on the x axis
- colors : array of str
Specifies the colors of each line
- linestyles : array of str
Specifies the line style of each line
- markers: array of str
Specify the markers to be used for each line
- ymin, ymax: float
Lower/Upper limit of y axis
- dpi : int
dots per inch
Returns: - fname_list : list of str
list of names of the created plots
-
pyrad.graph.
plot_timeseries_comp
(date1, value1, date2, value2, fname_list, labelx='Time [UTC]', labely='Value', label1='Sensor 1', label2='Sensor 2', titl='Time Series Comparison', period1=0, period2=0, ymin=None, ymax=None, dpi=72)[source]¶ plots 2 time series in the same graph
Parameters: - date1 : datetime object
time of the first time series
- value1 : float array
values of the first time series
- date2 : datetime object
time of the second time series
- value2 : float array
values of the second time series
- fname_list : list of str
list of names of the files where to store the plot
- labelx : str
The label of the X axis
- labely : str
The label of the Y axis
- label1, label2 : str
legend label for each time series
- titl : str
The figure title
- period1, period2 : float
measurement period in seconds used to compute accumulation. If 0 no accumulation is computed
- dpi : int
dots per inch
- ymin, ymax : float
The limits of the Y-axis. None will keep the default limit.
Returns: - fname_list : list of str
list of names of the created plots
-
pyrad.graph.
plot_traj
(rng_traj, azi_traj, ele_traj, time_traj, prdcfg, fname_list, rad_alt=None, rad_tstart=None, ax=None, fig=None, save_fig=True)[source]¶ plots a trajectory on a Cartesian surface
Parameters: - rng_traj, azi_traj, ele_traj : float array
antenna coordinates of the trajectory [m and deg]
- time_traj : datetime array
trajectory time
- prdcfg : dict
dictionary containing the product configuration
- fname_list : list of str
list of names of the files where to store the plot
- rad_alt : float or None
radar altitude [m MSL]
- rad_tstart : datetime object or None
start time of the radar scan
- surface_alt : float
surface altitude [m MSL]
- color_ref : str
What the color code represents. Can be ‘None’, ‘rel_altitude’, ‘altitude’ or ‘time’
- fig : Figure
Figure to add the colorbar to. If none a new figure will be created
- ax : Axis
Axis to plot on. if fig is None a new axis will be created
- save_fig : bool
if true save the figure if false it does not close the plot and returns the handle to the figure
Returns: - fname_list : list of str or
- fig, ax : tupple
list of names of the saved plots or handle of the figure an axes


A sub-trope of the Wire Dilemma, cutting the Wrong Wire will very often simply speed up the countdown to detonation or, for some reason, jump it ahead an arbitrary amount, typically just enough time to pull out a Million-to-One Chance at salvation.
Of course, this would realistically require a far more exotically-designed detonator than most would bother with. In reality, if cutting the Wrong Wire doesn't cause the bomb to go off, there's really no reason why it should do anything at all. In point of fact, the easiest to make, and by far most reliable bombs only have two or three wires: a positive and a negative to the ignition switch, and perhaps a ground. Cutting either of the non-ground wires would logically disable the bombnote , since without power to the ignition switch, there's nothing to trigger the detonator, and the ground wire would do absolutely nothing.
Of course, any bomb maker would know this, and could conceivably start thinking of countermeasures to stop a bomb squad if they start to enjoy the "game" too much. They might even be willing to risk the bomb being disarmed Just in Time to rub their superiority in their enemy's face.
There is one particularly good reason to build a detonator with wiggle room; if the bombmaker screws up while assembling the bomb, they thus have time to correct that screwup before it kills them. And just in passing, cops and soldiers have a good hard laugh and a round of drinks whenever a DIY bomb-maker gets (literally) Hoist by His Own Petard.
Examples:
- In Gunsmith Cats, bomb-maker Ken Taki uses Wrong Wires for safety reasons, and has become more safety-focused recently as he has early stage multiple sclerosis, but was forced by The Syndicate to keep making bombs despite having a degenerative nerve condition that made his hands shake uncontrollably under stress.
Minnie-May: Oh, Crap! The power cut off and the power-off switch cycled! We've got ten minutes before it blows!Rally: Why use a timer when the power's cut? Why not just, "Boom?"Ken: Hey, everyone makes mistakes, huh? And I like living!
- The Shadow: In The Movie, a colorblind scientist cuts the wrong wire on the nuclear bomb, making the timer go to warp speed. By the time he's reconnected that wire to fix it, he's gone from having hours to having about two minutes.
- In Lethal Weapon 3 the use of this trope leads to the memorable "Grab the cat" line.
- The climax of the mid-90s Denzel Washington vehicle Virtuosity looks like a straight example of this trope, with a virtual recording of the now-dead antagonist mocking every wrong choice thrown in for flavor... until the timer hits 3 seconds, freezes, and begins looping back over the last 30 seconds or so of video. He'd actually gotten the right wire some time ago, but had broken the detonation program in the process.
- When Myung-shik is attempting to defuse the bomb on the bridge in Quick, he sneezes at the wrong moment and cuts the wrong wire. The countdown immediately speeds up.
- When the student-built atomic bomb in The Manhattan Project is accidentally activated, it's initially set for 999 hours. Plenty of time, right? Except that the circuitry has been damaged, and the clock begins speeding up exponentially...
- Sneakers. Not a bomb, but amusing nonetheless —
Bishop: You're sure you know which one to cut?
Carl: Yes! The alarm's always the green one.
*snip* Darkness falls around them as the fire alarm keeps ringing.
Bishop: Good, Carl...
- The (in)famous ending of Digital Fortress does this with a computer virus, accelerating the destruction when the wrong password is entered. Considering that the password is THE NUMBER THREE, they deserved all they got.
- In The Frogmen by Robb White, a Drill Sergeant Nasty at the Navy's frogman school becomes infamous for the fiendish tricks he puts in his training mines. Unfortunate trainees who fail receive a shock.
- The pilot for MacGyver has one of these in its opening scene, prompting him to get out a paper clip and do his thing for the first time in the series.
- In Eureka, a doomsday machine jumps from 20-something hours to 7 hours when the wrong wire is cut.
- A similar situation (not with wires, but close enough) occurs in the Stargate SG-1 episode "Serpent's Venom", where Carter and Daniel have to enter a combination code into a mine in order to reprogram it, but they enter the wrong code, resulting in a countdown starting up (as this is the defense mechanism put in place on the mine so it wouldn't be tampered with.)
- An episode of CSI had a bomb tech disarm a bomb, only to discover that it has come back on.  The bomber specifically designed the bomb to kill the cops trying to disarm it and was playing games with them.
- In the BBC series Danger: UXB our heroes are constantly discovering that the Germans have added new and ingenious Wrong Wires to their bombs. Because this was Real Life, it's never as simple as a literal wire, and it's rarely as harmless as "countdown speeds up".
- In M*A*S*H, a rogue U.S. bomb once landed near the camp and Hawkeye and Trapper went out to disarm it with the instructions read out by Col. Blake. Unfortunately, one of the instructions was written in reverse (i.e. "do A but first do B") and with Henry reading the instructions out one line at a time, they don't become aware of the "but first" until after they've done the thing they weren't supposed to do yet. Hawkeye and Trapper run before the bomb goes off. Luckily, it's a leaflet bomb.
- Pixelface: In "Saving Private Romford", Romford's self-destruct protocol has been activated and is counting down to an electronic pulse that will wipe out all the data in the console. Clairparker comes up with a plan that amounts to 'pull out a random cog and hope that it stops things'.  The other characters scream at her to put it back.
- Riverdale: In "Dog Day Afternoon", Polly has been forced to wear a bomb vest. Charles talks Betty through disarming it and tells her to cut the wire that is connected to the battery. She cuts a wire, but it makes the timer count down faster. In the nick of time, Betty disarms it by sticking her bobby pin into an override switch.
- A particularly nasty, not bomb-related, takes place in electrical circuits that have three phases plus neutral to provide power to devices that use single phase (thus lower voltage). If the latter is cut or disconnected while having single-phased devices connected, those will suffer higher voltages and have a very high probability of ending up fried, especially electronic devices.
- Subverted in Data East Pinball's Lethal Weapon 3; while there is a Wire Dilemma in the game, getting the wrong wire results in an animated explosion but no penalty.
- Happens on The Navy Lark when the crew of HMS Troutbridge is attempting to defuse the self-destruct mechanism on an American satellite. Fortunately, the first time this happens it turns out that what they have retrieved is not the satellite but a marker buoy. The second time, however...
- The classic point-and-click adventure game Discworld 2: Missing Presumed...? further spoofs the above Lethal Weapon 3 example in the intro, with Rincewind and the Librarian standing in for Riggs and Murtaugh. This being Discworld, the Clock Punk bomb three flasks of mysterious bubbling liquid, rather than wires.
- A variation occurs in the Playstation/N64/PC game based on Spiderman, where a group of terrorists have set up a massive bomb in a bank: the player has to pick up the bomb and carry it over to an explosion-proof safe, but dropping the bomb at any point speeds up the countdown.
- In Bomb Squad, incorrectly replacing a piece will cause the Magic Countdown to speed up until you remove it. Cutting the wrong piece causes the bomb to explode unless you quickly resolder it.
- Keep Talking and Nobody Explodes plays this trope both ways, and extends it to every bomb module possible.  Screw up when there aren't any strikes left? Bye bye.
- During one mission in Return to Castle Wolfenstein, two German soldiers are working on disarming an aerial bomb and discussing which wire to cut. They cut the wrong one and blow themselves up.
- Justice League uses the "wrong wire speeds up the countdown" method in the episode "Wild Cards." Justified because the Joker built the bomb in question, and it turned out to be a fake anyway.
- Happens more than once. This becomes an Overly Long Gag which The Flash is happy to "run with it".
- On Archer, cutting the green wire of a bomb speeds up the timer, because Archer misread the bomb's serial number to their bomb expert. M... as in Mancy?


Responsive Web Design (RWD) is the solution for putting our apps on mobile devices. Or is it? Bloated web applications that simply shrink in width are not usable. Squishy design is not the only, or even the main, solution for improved mobile web user experience. Other than responsive design, how can we improve performance so our mobile web applications, responsive or not, are usable and accessible no matter how a user chooses to access it.
Responsive Web Design is the solution for improving your mobile site. Or is it?
A bloated site that simply shrinks in width is not necessarily a usable site. Squishy design is not the only, or even the main, solution for improved mobile user experience.
Learn how to leverage modern web standards to improve performance so your sites, responsive or not, are more usable, accessible.


{% extends "redirect.html" %} {% block content %}
You will be redirected to {{url}} shortly. Click on the link to speed things up.


A PopConfirm is a pop-up with an ok button and a cancel button. It's used when you are executing an action that requires confirmation.
You must use javascript to open apopconfirm.
$('#my-btn').on('click', function(e) {
$(this).popConfirm({
content: 'Delete this record?',
onOK: function() {
// Your code goes here...
Z.Message.success('Successfully deleted');
}
})
});
| Name | Type | Default | Desc |
|---|---|---|---|
| position | String | 'bottom' |
The position of the pop-up
Values: 'top', 'bottom', 'left', 'right' |
| content | String | '' | The text of the pop-up |
| onOK | Function | function() {} | Fires when the 'OK' button is clicked |


If there is no balance on the target currency, the currency will remain converted to RON.
Transaction failed.
{{ errorText }}


To demonstrate how easy "web development" basics are.
A DB with some data (script to run found in dbscripts folder)
Visual studio: new project
Remove authentication
Remove the place holder controller from the generated API
Add Data connection
Connect to generated DB
Add ADO.Net entity data model
Connect to database
Choose EF version
Choose DB objects to include
Build project
Add controller
Configure
[HttpGet, Route("CoolPersons/AverageCoolness")]
public decimal? GetAverageCoolness()
{
return db.CoolPersons.Average(cP => cP.Coolness);
}
Install-Package Microsoft.AspNet.WebApi.Cors
config.EnableCors();
[EnableCors(origins: "*", headers: "*", methods: "*")]
API is done
A service is a singleton that we use to let the controller access business logic (in our case do http requests to the api)
The basics are always easy


Outcomes
Outcomes are used to track your learning objectives or course competencies. They are produced at three levels: Program outcomes, Course outcomes, and Activity outcomes.
Getting Started
To get started, click the "Create New" button under Outcomes in the left panel. This will create a new Program level outcome. You can then click on the outcome's text to edit it. When you mouse over the outcome, you will see the
symbol appear. Click on this to create a new outcome at the next level – in this case a Course level outcome. Clicking this button for a Course outcome will instead create an Activity outcome.
Types of Outcomes
Outcomes are sorted by level:
- Program Outcomes
A Program outcome is the top-most level: it is a learning outcome that would be designed at the curriculum development stage. Often the Program outcomes for a program will roughly correspond to the different courses, and in some fields may match up one to one with individual courses. These are sometimes called Competencies.
- Course Outcomes
A Course outcome is the next highest level: a program outcome is made up of probably 3-8 course outcomes, which are the main broad points a course should address. These might correspond to units in a course or be more nebulous depending on the field of study. These are sometimes called Elements of Competency.
- Activity Outcomes
An Activity outcome is the finest grain outcome. This should correspond to specific things a student should learn or be able to do after taking the course. They should generally be something that an activity will be specifically geared to address, either in part or entirely.
Assigning Outcomes
Program outcomes can be assigned to courses with the right hand panel to signify that the course will address the outcome either in part or entirely. Once the outcome has been assigned, the individual Activity outcomes can be assigned to individual nodes by dragging them onto the node. You can also assign a Course outcome this way, which may be useful if an assessment (such as an exam) addresses all the Activity outcomes within the Course outcome.
As you add outcomes, indicators will appear next to the outcome to display to which types of nodes it has been assigned. Generally speaking, each Activity outcome should be addressed in each column: the students should be prepared for the outcome, there should be an activity which addresses it, and the students should be assessed on that outcome. Once the outcome has been assigned to at least one node in each column, the indicators will turn to a green checkmark to denote that the outcome has been fully addressed (at least in theory). When all Activity outcomes have been addressed, the Course outcome will also be addressed, and when all Course outcomes have been addressed so will the Program outcome.
To see which outcomes have been assigned to a node, mouse over it. To see to which nodes a specific outcome has been assigned, you can mouse over it to highlight all nodes, or click it to toggle highlighting on/off. To remove an outcome from the node, mouse over the outcome attached to the node and click the
icon on the outcome.
The Outcome View
The outcome view is a different way to visualize course and program level workflows, with a focus on the outcomes and assessments (in the case of course workflows) or outcomes and courses (in the case of program workflows). A table is used to visualize these, with assigned outcomes displayed vertically and relevant nodes shown horizontally, grouped into categories by assessment type (for courses) or term (for programs).
The table shows where outcomes are addressed (or assessed) in a condensed manner, and a total column for each category shows whether or not an outcome is addressed in that category. A check mark (
) indicates that an outcome is completely addressed, while an open circle (
) indicates it is only partially addressed (one or more but not all of its children are addressed). An exclamation mark (
) in the totals column means the outcome has not been addressed at all.
Clicking a table cell will toggle that outcome on/off for that node. You may also create or delete nodes in each category, or edit a node by clicking its name.


The top level Utils module. The Utils module is a set of common JavaScript functions that are useful for applications.
| Name | Description |
|---|---|
| addEventListener | add an event listener for the instance to receive view triggered events |
| base64decode | decode a Base64 string |
| base64encode | encode a string into Base64 |
| fireEvent | fire a synthesized event to the views listener |
| md5HexDigest | compute a MD5 hash algorithm against the input and return a hex-based string |
| removeEventListener | remove a previously added event listener |


Preparation time
30 mins to 1 hour
Cooking time
10 to 30 mins
Serves
Serves 2
Heat up the wok for a delicious dinner for two with stir-fried strips of chicken, spicy black bean sauce, greens and egg-fried rice.
Put the chicken in a bowl with one tablespoon each of the soy sauce, Shaoxing rice wine and sesame oil. Add the cornflour then mix to combine and leave to marinate for 10 minutes.
Heat a wok or large frying pan over high heat until it is hot. Add one tablespoon of the vegetable oil, and when it is hot and slightly smoking, add the chicken and stir fry for 2-3 minutes, or until nearly cooked through. Lift out with a slotted spoon and set aside then wipe out the wok and return to the heat.
Mix together the ginger, garlic and chilli.
Add another tablespoon of the vegetable oil and when it’s hot and slightly smoking again, add a third of the ginger, garlic, chilli mix and all the black beans and stir-fry for 2-3 minutes until just softened.
Add the remaining two tablespoons of Shaoxing rice wine, one tablespoon of the soy, all the sugar and chicken stock and bring to the boil. Return the chicken to the pan and cook for 1-2 minutes, or until the sauce has thickened slightly and the chicken is cooked through.
Finish with a third of the spring onion and a tablespoon of coriander and stir through.
Set aside and heat another wok until hot, add one tablespoon of vegetable oil, half the remaining ginger, garlic and chilli mix and half the remaining spring onion and stir fry for one minute. Add the bok choi and 75ml/3fl oz of water and stir fry until the bok choi is tender and the liquid evaporated. Add one tablespoon of coriander and half the remaining spring onion and stir fry for one minute then put onto the serving plate.
Wipe out the wok and return to the heat, then add the last of the vegetable oil, ginger, garlic and chilli and stir fry for one minute then add the cooked rice and stir fry for one minute.
Pour the beaten egg into the centre of the wok, then stir fry through for a couple of minutes so the rice is hot and the egg cooked through.
Stir in the last tablespoon of sesame oil, and the remaining coriander and spring onion and fry for another minute.
To serve, pile the rice onto plates, spoon some chicken next to it, then finish with the bok choi.