Status Display Views Reference¶
- class LatestNetworkSummaryRedirectView(**kwargs)¶
Show most recent coincidence data page
Constructor. Called in the URLconf; can contain helpful extra keyword arguments, and other things.
- get_redirect_url(*args, **kwargs)¶
Return the URL redirect to. Keyword arguments from the URL pattern match generating the redirect request are provided as kwargs to this method.
- class LatestSummaryRedirectView(**kwargs)¶
Show most recent data for a particular station
Constructor. Called in the URLconf; can contain helpful extra keyword arguments, and other things.
- get_redirect_url(*args, **kwargs)¶
Return the URL redirect to. Keyword arguments from the URL pattern match generating the redirect request are provided as kwargs to this method.
- class NetworkSummaryDetailView(**kwargs)¶
Constructor. Called in the URLconf; can contain helpful extra keyword arguments, and other things.
- get_context_data(**kwargs)¶
Insert the single object into the context dict.
- get_object(queryset=None)¶
Get the object this request displays.
- get_queryset()¶
Return the QuerySet that will be used to look up the object.
This method is called by the default implementation of get_object() and may not be called if get_object() is overridden.
- http_method_names = ['get']¶
Create a month calendar with links
Create list of months with links
Create list of previous years
- template_name = 'status_display/network_coincidences.html'¶
- class SummaryDetailView(**kwargs)¶
Constructor. Called in the URLconf; can contain helpful extra keyword arguments, and other things.
- get_context_data(**kwargs)¶
Insert the single object into the context dict.
- get_object(queryset=None)¶
Get the object this request displays.
- get_queryset()¶
Return the QuerySet that will be used to look up the object.
This method is called by the default implementation of get_object() and may not be called if get_object() is overridden.
- http_method_names = ['get']¶
Create a month calendar with links
Create list of months with links
Create list of previous years
- template_name = 'status_display/station_data.html'¶
- create_plot_object(x_values, y_series, x_label, y_label)¶
- get_config_source(station_number, type)¶
Get configuration data for a specific station
- Parameters:
station_number – station for which to get the configuration data.
type – the type of configuration data to get. The following are supported: voltage, current, gps, trigger.
- Returns:
list of lists containing the configuration history.
- get_dataset_source(date, type, station_number)¶
Get a dataset for a specific date and station
- Parameters:
date – the date for which to get the dataset.
type – the type of dataset to retrieve.
station_number – the station to which the data belongs.
- Returns:
list of tuples containing (x, y) pairs.
- get_detector_timing_offsets(station_number)¶
- get_detector_timing_offsets_source(request, station_number)¶
- get_eventtime_histogram_sources(station_number, start, end)¶
- get_eventtime_source(request, station_number, start=None, end=None)¶
Get all eventtime data from start to end
- get_focus(country=None, cluster=None, subcluster=None)¶
- get_gpslocations(configs)¶
Get all valid GPS locations from the configs
- get_histogram_source(date, type, station_number=None)¶
Get histogram data for a specific date
- Parameters:
date – the date for which to get the histogram data.
type – the type of histogram to retrieve.
station_number – if None a NetworkHistogram is looked for, otherwise a DailyHistogram for a specific station is looked for.
- Returns:
list of tuples containing (bin, value) pairs.
- get_specific_config_source(request, station_number, type)¶
- get_specific_dataset_source(request, station_number, date, type)¶
- get_specific_histogram_source(request, station_number, date, type)¶
Get a station histogram for a specific date
- get_specific_network_histogram_source(request, date, type)¶
- get_station_layout_source(request, station_number)¶
- get_station_timing_offsets(ref_station_number, station_number)¶
Get all station timing offsets for a station pair
- Parameters:
ref_station_number,station_number – station numbers.
- Returns:
list of tuples with date, offset, and error.
- get_station_timing_offsets_source(request, ref_station_number, station_number)¶
- help(request)¶
Show the static help page
- none_to_nan(x)¶
- plot_config(type, configs)¶
Create a plot object from station configs
- plot_dataset(dataset)¶
Create a dataset plot object
- plot_histogram(histogram)¶
Create a histogram object
- plot_timing_offsets(station_number)¶
Create a plot object from station configs
- station_config(request, station_number)¶
Show configuration history for a particular station
- station_has_config(station)¶
Check if there is a valid configuration for the given station
- Parameters:
station – Station object for which to check.
- Returns:
boolean indicating if the station has a configuration available.
- station_has_data(station)¶
Check if there is valid event or weather data for the given station
- Parameters:
station – Station object for which to check.
- Returns:
boolean indicating if the station has recorded data, either weather or shower, between 2002 and now.
- station_latest(request, station_number)¶
Show daily histograms for a particular station
- station_status(request, station_number)¶
Show data status for a particular station
- stations(request)¶
Show the default station list
- stations_by_country(request)¶
Show a list of stations, ordered by country, cluster and subcluster
- stations_by_name(request)¶
Show a list of stations, ordered by station name
- stations_by_number(request)¶
Show a list of stations, ordered by number
- stations_by_status(request)¶
Show a list of stations, ordered by status
- stations_on_map(request, country=None, cluster=None, subcluster=None)¶
Show all stations from a subcluster on a map
- stations_with_data()¶
Get list of station numbers with valid event or weather data
- Returns:
list with station numbers for stations that recorded data, either weather or shower, between 2004 and now.
Contents: