aws_oa_client
KMA AWS Objective Analysis API client.
This module provides a client for accessing the Korea Meteorological Administration's AWS Objective Analysis (AWS 객관분석) API for objectively analyzed weather data.
AWS Objective Analysis provides gridded meteorological data derived from AWS observations through objective analysis techniques for improved spatial coverage.
AWSOAClient
¶
Client for KMA AWS Objective Analysis API.
The AWS Objective Analysis system provides gridded meteorological data derived from AWS observations through objective analysis techniques, offering improved spatial coverage and consistency for weather analysis.
Source code in python/src/kma_mcp/surface/aws_oa_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 | |
close()
¶
get_analysis_data(tm, x, y)
¶
Get AWS objective analysis data for a specific location and time.
Parameters:
-
tm(str | datetime) –Time in 'YYYYMMDDHHmm' format or datetime object
-
x(float) –Longitude coordinate
-
y(float) –Latitude coordinate
Returns:
Example
client = AWSOAClient('your_auth_key') data = client.get_analysis_data('202501011200', 127.0, 37.5)
Or using datetime¶
from datetime import datetime data = client.get_analysis_data(datetime(2025, 1, 1, 12, 0), 127.0, 37.5)
Source code in python/src/kma_mcp/surface/aws_oa_client.py
get_analysis_period(tm1, tm2, x, y)
¶
Get AWS objective analysis data for a location over 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
-
x(float) –Longitude coordinate
-
y(float) –Latitude coordinate
Returns:
Example
client = AWSOAClient('your_auth_key') data = client.get_analysis_period('202501010000', '202501020000', 127.0, 37.5)