eva package#
Subpackages#
- eva.data package
- Submodules
- eva.data.cubed_sphere_restart module
- eva.data.data_collections module
DataCollections
DataCollections.add_variable_to_collection()
DataCollections.adjust_channel_dimension_name()
DataCollections.adjust_location_dimension_name()
DataCollections.create_or_add_to_collection()
DataCollections.display_collections()
DataCollections.get_variable_data()
DataCollections.get_variable_data_array()
DataCollections.nan_float_values_outside_threshold()
DataCollections.validate_names()
- eva.data.data_driver module
- eva.data.eva_dataset_base module
- eva.data.gsi_obs_space module
- eva.data.ioda_obs_space module
- eva.data.jedi_log module
- eva.data.lat_lon module
- eva.data.mon_data_space module
- eva.data.soca_restart module
- Module contents
- eva.plotting package
- eva.tests package
- eva.transforms package
- eva.utilities package
- Submodules
- eva.utilities.config module
- eva.utilities.ioda_definitions module
- eva.utilities.ioda_netcdf_api module
- eva.utilities.logger module
- eva.utilities.stats module
- eva.utilities.timing module
- eva.utilities.utils module
- Module contents
Submodules#
eva.eva_driver module#
- eva.eva_driver.eva(eva_config, eva_logger=None)[source]#
Execute the Evaluation and Visualization Analysis (EVA) process based on the provided configuration.
- Parameters:
eva_config (dict or str) – Configuration data for the EVA process. It can be a dictionary or
file. (the path to a YAML configuration) –
eva_logger (Logger, optional) – An instance of the logger for logging messages. Default is
None. –
- Returns:
None
eva.eva_interactive module#
- class eva.eva_interactive.EvaInteractive[source]#
Bases:
object
A class for interactive data manipulation and visualization using the EVA framework.
This class provides methods to load data collections, perform data transformations, and generate various types of plots.
- dc_dict#
A dictionary containing data collections indexed by collection names.
- Type:
dict
- fn_dict#
A dictionary containing filenames associated with data collections.
- Type:
dict
- ch_required_dict#
A dictionary indicating whether channel requirements are needed for
- Type:
dict
- each data collection.
- var_cache#
A list to cache variable names.
- Type:
list
Initialize the EvaInteractive instance with necessary attributes.
- accept_where(new_name, starting_field, where, collection, var_list=[])[source]#
Apply an ‘accept_where’ transformation to the data collection based on specified conditions.
- Parameters:
new_name (str) – Name of the new variable to be created.
starting_field (str) – Field to which the ‘where’ conditions are applied.
where (list) – List of expressions specifying conditions for accepting data.
collection (str) – Name of the data collection.
var_list (list, optional) – List of variable names to be used in the expressions. Default
list. (is an empty) –
- arithmetic(new_name, expression, collection, var_list=[])[source]#
Apply an arithmetic transformation to the data collection.
- Parameters:
new_name (str) – Name of the new variable to be created.
expression (str) – Arithmetic expression to be evaluated.
collection (str) – Name of the data collection.
var_list (list, optional) – List of variable names to be used in the expression. Default
list. (is an empty) –
- density_plot(plot_list)[source]#
Generate a density plot using specified data collections and variables.
- Parameters:
plot_list (list) – List of dictionaries specifying the plot configuration.
- Returns:
The generated density plot.
- Return type:
holoviews.plotting.ElementPlot
- get_data_collection(collection_name)[source]#
Retrieve a data collection by its name.
- Parameters:
collection_name (str) – Name of the data collection to retrieve.
- Returns:
The retrieved data collection instance.
- Return type:
- Raises:
Exception – If the specified collection does not exist.
- histogram(plot_list)[source]#
Generate a histogram plot using specified data collections and variables.
- Parameters:
plot_list (list) – List of dictionaries specifying the plot configuration.
- Returns:
The generated histogram plot.
- Return type:
holoviews.plotting.ElementPlot
- line_plot(plot_list)[source]#
Generate a line plot using specified data collections and variables.
- Parameters:
plot_list (list) – List of dictionaries specifying the plot configuration.
- Returns:
The generated line plot.
- Return type:
holoviews.plotting.ElementPlot
- load_collection(collection_name, filenames, eva_class_name, control_file=None)[source]#
Load a data collection into the EvaInteractive instance.
- Parameters:
collection_name (str) – Name for the loaded data collection.
filenames (str or list) – Filename(s) containing the data.
eva_class_name (str) – Name of the EVA class for creating the data collection.
control_file (str, optional) – Path to the control file for configuring data collection.
None. (Default is) –
- map_scatter(plot_entry)[source]#
Generate a scatter plot on a map using specified data collection and variables.
- Parameters:
plot_entry (dict) – Dictionary specifying the plot configuration.
- Returns:
The generated scatter plot on a map.
- Return type:
holoviews.plotting.ElementPlot
- print_data_collection(collection_name)[source]#
Print the content of a data collection.
- Parameters:
collection_name (str) – Name of the data collection to print.
- print_statistics(df)[source]#
Print statistics for each column in the given DataFrame.
- Parameters:
df (DataFrame) – The DataFrame containing data.
- retrieve_var_list(collection, group)[source]#
Retrieve a list of variable names from a data collection’s group.
- Parameters:
collection (str) – Name of the data collection.
group (str) – Name of the group within the data collection.
- Returns:
List of variable names within the specified group.
- Return type:
list
- scatter(x, y)[source]#
Generate a scatter plot using specified data collections, variables, and coordinates.
- Parameters:
x (str) – Name of the variable for the x-coordinate.
y (str) – Name of the variable for the y-coordinate.
- Returns:
The generated scatter plot.
- Return type:
holoviews.plotting.ElementPlot