varunayan.search_and_desc package

Submodules

Module contents

varunayan.search_and_desc.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_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)

varunayan.search_and_desc.list_available_variables(dataset_type: str = 'single') List[str][source]

List all available variable names for a dataset type.

Parameters:

dataset_type – Dataset type (“single”, “pressure”, or “all”)

Returns:

List of variable names

varunayan.search_and_desc.get_available_pressure_levels() List[str][source]

Get list of available pressure levels for ERA5 pressure level data.

Returns:

List of pressure level strings (in hPa)

varunayan.search_and_desc.get_variable_info(variable_name: str, dataset_type: str = 'all') Dict[str, Any] | None[source]

Get detailed information about a specific variable.

Parameters:
  • variable_name – Name of the variable

  • dataset_type – Dataset type to search

Returns:

Dictionary with variable info or None if not found

varunayan.search_and_desc.get_variable_units(variable_name: str, dataset_type: str = 'all') str | None[source]

Get the units for a specific variable.

Parameters:
  • variable_name – Name of the variable

  • dataset_type – Dataset type to search

Returns:

Unit string or None if not found

varunayan.search_and_desc.get_variable_long_name(variable_name: str, dataset_type: str = 'all') str | None[source]

Get the long/descriptive name for a variable.

Parameters:
  • variable_name – Name of the variable

  • dataset_type – Dataset type to search

Returns:

Description string or None if not found

varunayan.search_and_desc.list_variable_categories(dataset_type: str = 'single') List[str][source]

List all variable categories for a dataset type.

Parameters:

dataset_type – Dataset type (“single” or “pressure”)

Returns:

List of category names