varunayan.search_and_desc.search_and_desc_functions module

varunayan.search_and_desc.search_and_desc_functions.get_available_datasets() List[str][source]

Get list of available dataset types

Returns:

Available dataset types

Return type:

list

varunayan.search_and_desc.search_and_desc_functions.get_single_levels_dataset() Dict[str, List[Dict[str, Any]]][source]

Helper function to combine all single level variable categories

Returns:

Dictionary with all single level variable categories

Return type:

dict

varunayan.search_and_desc.search_and_desc_functions.get_pressure_levels_dataset() List[Dict[str, Any]][source]

Helper function to get pressure level variables

Returns:

List of pressure level variable dictionaries

Return type:

list

varunayan.search_and_desc.search_and_desc_functions.describe_variables(variable_names: List[str], dataset_type: str) Dict[str, str][source]

Get descriptions for specific variables

Parameters:
  • variable_names (list) – List of variable names to describe

  • dataset_type (str) – Dataset type to search (“single”, “pressure”, “all”, or any other registered dataset)

varunayan.search_and_desc.search_and_desc_functions.search_variable(pattern: str | None, dataset_type: str = 'all') None[source]

Search for variables in the dataset by pattern

Parameters:
  • pattern (str or None) – The string pattern to search for in variable names. If None, prints all variables.

  • dataset_type (str) – Dataset type to search (“single”, “pressure”, “all”, or any other registered dataset)