Skip to contents

ERA5 data functions

Download ERA5 reanalysis data from Copernicus climate data store

ERA5ifyBbox() era5ify_bbox()
ERA5 data download and processing for bounding box regions
ERA5ifyGeojson() era5ify_geojson()
PascalCase Aliases
ERA5ifyPoint() era5ify_point()
ERA5 data download and processing for point locations
SetupCdsCredentials() setup_cds_credentials()
ERA5 data download functions using ecmwfr Set up CDS credentials for ERA5 data access

IMD data functions

Download gridded climate data from Indian Meteorological Department

IMDRainfallBbox() imd_rainfall_bbox()
IMD data download and processing for custom regions Download and process IMD rainfall data for a bounding box
IMDRainfallGeojson() imd_rainfall_geojson()
Download and process IMD rainfall data for a GeoJSON region
IMDTemperatureBbox() imd_temperature_bbox()
Download and process IMD temperature data for a bounding box
IMDTemperatureGeojson() imd_temperature_geojson()
Download and process IMD temperature data for a GeoJSON region

Variable discovery

Search and explore available climate variables

SearchVariable() search_variable()
Search and description functions for ERA5 variables Search for ERA5 variables by keyword
DescribeVariables() describe_variables()
Describe ERA5 variables in detail
ListAvailableVariables() list_available_variables()
List all available variables for a dataset type

Cache management

Manage downloaded data cache

ShowCacheInfo() show_cache_info()
Show cache contents and statistics
ClearCache() clear_cache()
Clear cache

All other functions

GetERA5DailyClimate() get_era5_daily_climate()
Download daily ERA5 climate data
GetERA5DailyHeatIndexData() get_era5_daily_heat_index_data() GetERA5DailyHeatData() get_era5_daily_heat_data()
Download ERA5 data and calculate heat stress indices
GetERA5DailyHumidity() get_era5_daily_humidity()
Download daily ERA5 humidity data
GetERA5DailyTemperature() get_era5_daily_temperature()
Download daily ERA5 temperature data
GetERA5DailyWetBulb() get_era5_daily_wet_bulb()
Download daily ERA5 wet bulb temperature data
GetERA5DailyWind() get_era5_daily_wind()
Download daily ERA5 wind data
GetERA5MonthlyHeatIndexData() get_era5_monthly_heat_index_data() GetERA5MonthlyHeatData() get_era5_monthly_heat_data()
Get monthly ERA5 heat stress index data
aggregate_by_frequency()
Aggregate data by temporal frequency
aggregate_imd_by_frequency()
Aggregate IMD data by temporal frequency
aggregate_to_polygons()
Spatial utilities for aggregating gridded data to polygons Aggregate gridded data to polygon regions
cache_stats()
Get cache statistics
calc_heat_indices()
Calculate all heat stress indices
categorize_variables()
Categorize variables by aggregation method
check_grid_coverage()
Check grid coverage statistics for polygons
CheckSystemReadiness() check_system_readiness()
Check system readiness for varunayan operations
cleanup_temp_files()
Clean up temporary files matching pattern
ClearCache() clear_cache()
Clear cache
clear_timings()
Clear all timing data
combine_netcdf_files()
Combine multiple NetCDF files into single data.frame
compare_grids()
Compare multiple grids
convert_to_geojson()
Convert data to GeoJSON format
create_geojson_from_bbox()
Create GeoJSON from bounding box coordinates
create_temp_geojson_file()
Create temporary GeoJSON file
create_temporal_chunks()
Apply temporal chunking for large date ranges
DescribeVariables() describe_variables()
Describe ERA5 variables in detail
download_era5_pressure()
Download ERA5 pressure-level data using ecmwfr
download_era5_single()
Download ERA5 single-level data using ecmwfr
download_imd_rainfall()
IMD data download functions
download_imd_temperature()
Download IMD gridded temperature data
ensure_output_dir()
Create output directory if it doesn't exist
ERA5ifyBbox() era5ify_bbox()
ERA5 data download and processing for bounding box regions
ERA5ifyGeojson() era5ify_geojson()
PascalCase Aliases
ERA5ifyPoint() era5ify_point()
ERA5 data download and processing for point locations
exclude_cols
Columns to exclude from aggregation
extract_point_data()
Extract data for specific point location (nearest neighbor)
filter_dataframe_by_geojson()
Filter data.frame by GeoJSON polygon (optimized)
filter_imd_by_bbox()
Filter IMD data by spatial boundaries
filter_imd_by_geojson()
Filter IMD data by GeoJSON polygon
filter_netcdf_by_bbox()
Filter NetCDF data by spatial boundaries (bounding box)
filter_netcdf_by_geojson()
Filter NetCDF data by GeoJSON polygon
format_date_range()
Format date range for CDS API requests
format_pressure_levels()
Convert pressure levels to character format required by CDS API
get_available_datasets()
Get available dataset types
GetAvailablePressureLevels() get_available_pressure_levels()
Get standard pressure levels available in ERA5
get_bbox_from_sf()
Get bounding box from sf object
GetCacheDir() get_cache_dir()
Cache management for downloaded NetCDF files
get_cds_credentials()
Get CDS API credentials from multiple sources
get_imd_grid_specs()
Get IMD grid specifications
GetPackageInfo() get_package_info()
Get package version information
get_pressure_level_variable_names()
Get all valid pressure-level variable names
get_pressure_level_variables()
Get pressure-level variables dataset
get_single_level_variable_names()
Get all valid single-level variable names
get_single_level_variables()
Get single-level variables dataset
get_time_values()
Get time values based on frequency
get_timings()
Get all recorded timings
heat_index()
Calculate heat index (apparent temperature)
heat_index_from_dewpoint()
Calculate heat index from dewpoint
heat_index_risk_category()
Heat index risk categories
heat_stress
heat stress index calculations
humidex()
Calculate humidex (Canadian heat index)
IMDRainfallBbox() imd_rainfall_bbox()
IMD data download and processing for custom regions Download and process IMD rainfall data for a bounding box
IMDRainfallGeojson() imd_rainfall_geojson()
Download and process IMD rainfall data for a GeoJSON region
IMDTemperatureBbox() imd_temperature_bbox()
Download and process IMD temperature data for a bounding box
IMDTemperatureGeojson() imd_temperature_geojson()
Download and process IMD temperature data for a GeoJSON region
is_max_var()
Check if a variable should use maximum
is_min_var()
Check if a variable should use minimum
is_rate_var()
Check if a variable is a rate variable
is_sum_var()
Check if a variable should be summed
is_valid_geojson()
Check if data is valid GeoJSON
ListAvailableVariables() list_available_variables()
List all available variables for a dataset type
list_cache()
List cached files
list_imd_datasets()
List available IMD datasets
max_vars
Variables that should use maximum aggregation
mean_radiant_temperature()
Estimate mean radiant temperature
min_vars
Variables that should use minimum aggregation
parse_date_flexible()
Parse date string flexibly
PopulateSampleCache() populate_sample_cache()
Populate cache with sample IMD data
print_timing_summary()
Print timing summary
process_imd_files()
Process multiple IMD files
process_netcdf_to_dataframe()
NetCDF processing functions for ERA5 data Process NetCDF file and extract data as data.frame
rate_vars
Rate variables that should be averaged
read_cdsapirc()
Read CDS API credentials from ~/.cdsapirc file
read_imd_rainfall()
Read IMD NetCDF rainfall file
read_imd_temperature()
IMD data processing functions Read IMD binary temperature file
read_netcdf_with_ncdf4()
Read NetCDF using ncdf4 as fallback when stars fails
relative_humidity_from_dewpoint()
Calculate relative humidity from temperature and dewpoint
SearchVariable() search_variable()
Search and description functions for ERA5 variables Search for ERA5 variables by keyword
SetupCdsCredentials() setup_cds_credentials()
ERA5 data download functions using ecmwfr Set up CDS credentials for ERA5 data access
ShowCacheInfo() show_cache_info()
Show cache contents and statistics
sum_vars
Variables that should be summed over time
time_operation()
Time an operation and log the duration
utci()
Calculate UTCI (Universal Thermal Climate Index)
utci_category()
UTCI thermal stress categories
utci_sparse()
Calculate UTCI using sparse regression approximation
validate_bbox()
Validate bounding box coordinates
validate_coordinates()
Validate geographic coordinates
validate_era5_variables()
Validate ERA5 variable names
vapor_pressure_from_dewpoint()
Calculate vapor pressure from dewpoint temperature
variable_lists
Variable lists for ERA5 data aggregation
varunayan-utils
Utility functions for Varunayan R package
visualize_grid_overlap()
Visualize grid-polygon overlap
wbgt_from_dewpoint()
Calculate WBGT from dewpoint
wbgt_risk_category()
heat stress risk categories
wbgt_simple()
Calculate WBGT (Wet Bulb Globe Temperature)
wet_bulb_from_dewpoint()
Calculate wet bulb temperature from dewpoint
wet_bulb_temperature()
Calculate wet bulb temperature