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:
- 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:
- 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:
- 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
- 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
- varunayan.search_and_desc.search_and_desc_functions.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.search_and_desc_functions.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.search_and_desc_functions.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.search_and_desc_functions.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.search_and_desc_functions.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