async_radar_client
Async KMA Weather Radar API client.
This module provides a client for accessing the Korea Meteorological Administration's Weather Radar (레이더) API for precipitation detection and monitoring.
Weather radar provides real-time precipitation patterns, intensity, and movement for nowcasting and severe weather monitoring.
AsyncRadarClient
¶
Async client for KMA Weather Radar API.
The Weather Radar system provides real-time precipitation detection and monitoring using radar reflectivity data for nowcasting, severe weather tracking, and precipitation analysis.
Source code in python/src/kma_mcp/radar/async_radar_client.py
16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 | |
close()
async
¶
get_radar_image(tm, radar_id='ALL')
async
¶
Get weather radar image data.
Parameters:
-
tm(str | datetime) –Time in 'YYYYMMDDHHmm' format or datetime object
-
radar_id(str, default:'ALL') –Radar station ID (default: 'ALL' for composite)
Returns:
Example
async with AsyncRadarClient('your_auth_key') ... data = await client.get_radar_image('202501011200')
Source code in python/src/kma_mcp/radar/async_radar_client.py
get_radar_image_sequence(tm1, tm2, radar_id='ALL')
async
¶
Get weather radar image sequence for a time period.
Parameters:
-
tm1(str | datetime) –Start time in 'YYYYMMDDHHmm' format or datetime object
-
tm2(str | datetime) –End time in 'YYYYMMDDHHmm' format or datetime object
-
radar_id(str, default:'ALL') –Radar station ID (default: 'ALL' for composite)
Returns:
Example
async with AsyncRadarClient('your_auth_key') ... data = await client.get_radar_image_sequence('202501011200', '202501011300')
Source code in python/src/kma_mcp/radar/async_radar_client.py
get_radar_reflectivity(tm, x, y)
async
¶
Get radar reflectivity data for a specific location.
Parameters:
-
tm(str | datetime) –Time in 'YYYYMMDDHHmm' format or datetime object
-
x(float) –Longitude coordinate
-
y(float) –Latitude coordinate
Returns:
Example
async with AsyncRadarClient('your_auth_key') ... data = await client.get_radar_reflectivity('202501011200', 127.0, 37.5)