weather-model-data-fetching
यह क्या करती है
यह टूल मौसम पूर्वानुमान वाले जटिल मॉडलों से डेटा डाउनलोड करता है। यह पूरी फ़ाइल डाउनलोड करने के बजाय सिर्फ़ फ़ाइल का ज़रूरी हिस्सा लाता है, जिससे काम तेज़ी से होता है।
कब इस्तेमाल करें
- ✓जब GFS या HRRR जैसे मॉडलों से खास डेटा चाहिए हो।
- ✓जब पूर्वानुमान का डेटा इतना बड़ा हो कि एक साथ संभालना मुश्किल हो।
- ✓जब पिछला डाउनलोड फ़ेल हो गया हो, बीच में रुक गया हो या बहुत धीमा हो।
Skill का लिंक
https://github.com/sickn33/agentic-awesome-skills/blob/main/plugins/agentic-awesome-skills-claude/skills/weather-model-data-fetching/SKILL.mdइसे कॉपी करके अपने AI (Claude, ChatGPT या Cursor) में पेस्ट करें और निर्देशों का पालन करने को कहें।
कैसे इस्तेमाल करें
सबसे आसान तरीका: मैसेज कॉपी करके अपने AI में पेस्ट करें। वह skill पढ़कर निर्देशों का पालन करेगा।
पेस्ट करने के लिए तैयार मैसेज
Claude Code, Codex या Cursor के लिए: प्रोजेक्ट फ़ोल्डर में चलाएँ और skill इंस्टॉल हो जाएगी।
SKILL.md डाउनलोड करें और अपने एजेंट के skills फ़ोल्डर में रखें।
AI से क्या माँगें: उदाहरण
“12 अप्रैल 2023 के 00Z के लिए HRRR मॉडल का प्रेशर डेटा डाउनलोड करो, फ़ोरकास्ट आवर +3 के लिए।”
हर हफ़्ते 5 नई skills, 1 मिनट में पढ़ें।
यह कैसे काम करती है
टूल पहले तय करता है कि किस डेटा की ज़रूरत है और वह कहाँ मिलेगा। फिर 'addressing' सिस्टम की मदद से फ़ाइलों के सिर्फ़ वही हिस्से माँगता है जो चाहिए, ताकि सिर्फ़ ज़रूरी डेटा ही डाउनलोड और स्टोर हो।
तकनीकी सामग्री (मूल SKILL.md)
लेखक का मूल टेक्स्ट, अंग्रेज़ी में, सीधे GitHub से।
Weather Model Data Fetching
Overview
Fetch numerical weather prediction data without treating a multi-gigabyte GRIB2 file as one indivisible download. Prefer an existing project adapter or Herbie; use direct object-store byte ranges only when the supported path cannot express the request.
This skill covers transport, inventory selection, caching, and verification. It does not interpret the forecast or decide whether a model is meteorologically appropriate.
When to Use This Skill
- A task needs GFS, GEFS, HRRR, RAP, NAM, IFS, or similar model output.
- Data lives in a public AWS S3 bucket, NOMADS, or a public cloud mirror.
- The input is GRIB2 and only selected variables or levels are needed.
- A point, sounding, time series, map, or batch job needs a reliable fetch path.
- A download is missing, partial, unexpectedly large, slow, or hard to resume.
Do not activate this skill for ordinary weather-forecast questions that do not require model files.
Define the Request First
Resolve these values before downloading:
- model and product;
- initialization cycle in UTC;
- forecast hour and therefore valid time (
valid = initialization + lead); - ensemble member when applicable;
- variables, vertical levels, and surface fields;
- point, region, or full-grid output;
- cache location and when the downloaded data may be deleted.
Confirm that the cycle is complete, the forecast hour exists for that cycle,
and the requested location is inside the model domain. A recent 404 often
means the cycle is not published yet; step back to a completed cycle instead of
retrying indefinitely.
Choose the Smallest Retrieval Route
- Reuse the project's existing fetch/cache abstraction when it already handles the model.
- Use Herbie for a supported GRIB2 model. It discovers AWS, NOMADS, Google, Azure, and other configured sources and understands their key layouts.
- Use a provider-native point or Zarr endpoint when the task needs a tiny spatial slice from many times or members.
- Use direct S3 or HTTPS object access when the key is known and no suitable adapter exists.
Do not recursively list a large public bucket to discover one run. Build the documented prefix for the model, cycle, product, forecast hour, and member, then probe that exact object and its inventory.
Use an explicit provider priority and record the provider that succeeded. A fallback must refer to the same model run, product, member, and forecast hour; never silently substitute a different forecast.
Subset GRIB2 by Inventory
GRIB2 files contain consecutive messages. A companion inventory such as
.idx, .grib2.idx, or .grb2.inv records each message's starting byte.
- Fetch the small inventory first.
- Inspect its actual rows before writing a regex.
- Select exact variables, levels, and forecast-step records.
- Set each selected message's end byte to one less than the next message's start; request the final selected message through EOF when no end is known.
- Coalesce adjacent selected messages into one range.
- Issue one
Range: bytes=START-ENDrequest per range. S3 does not support multiple ranges in oneGetObjectrequest. - Require
206 Partial Contentand a matchingContent-Range. If a server answers200, do not append the whole object as though it were a fragment. - Pin the object's length and identity (
ETagand/orLast-Modified) while downloading. Discard fragments if the object changes. - Assemble into a temporary file, verify it with a GRIB decoder, then rename atomically into the cache.
A GRIB message contains one field over its grid. Message-range subsetting saves variables and levels, not geography. A point request still downloads the full grid for every selected message unless the provider offers a point, regional, Zarr, or other chunked endpoint.
Herbie Example
Use the current search argument; searchString is deprecated. Start from the
inventory, fail on an empty match, and keep the download directory explicit.
from pathlib import Path
from herbie import Herbie
PRESSURE_FIELDS = (
r":(?:HGT|TMP|RH|SPFH|UGRD|VGRD):\d+(?:\.\d+)? mb:"
)
def fetch_hrrr_pressure_run(initialization, forecast_hour, cache_dir):
cache_dir = Path(cache_dir)
h = Herbie(
initialization,
model="hrrr",
product="prs",
fxx=forecast_hour,
priority=["aws", "nomads", "google", "azure"],
save_dir=cache_dir,
verbose=False,
…
अक्सर पूछे जाने वाले सवाल
'numerical weather prediction data' क्या है?
यह कंप्यूटर द्वारा बनाया गया विस्तृत डेटा है, जो वायुमंडल की नकल करके मौसम का अनुमान लगाता है। मौसम विज्ञानी इसी डेटा से पूर्वानुमान बनाते हैं।
फ़ाइल का सिर्फ़ 'हिस्सा' ही क्यों डाउनलोड करें?
मौसम पूर्वानुमान की फ़ाइलें बहुत बड़ी (कई गीगाबाइट) हो सकती हैं। सिर्फ़ ज़रूरी हिस्सा लेने से समय, डेटा और स्टोरेज की बचत होती है।
GRIB2 क्या है?
यह मौसम का डेटा स्टोर करने का एक आम फ़ाइल फ़ॉर्मेट है। यह कुशल है, लेकिन खास टूल के बिना इसके साथ काम करना मुश्किल हो सकता है।
जानकारी
लेखक का मूल विवरण
Retrieve numerical weather prediction data from public AWS S3 and HTTP archives using GRIB2 inventories, byte ranges, Herbie, provider fallbacks, and verified caching.
लोकप्रियता
- GitHub स्टार
- 48k
- रैंकिंग में स्थान
- #6146
- लाइसेंस
- MIT
- अपडेट की गई
- 15/10/2026
कमेंट
- …
इस repository की और skills
00-andruia-consultant
48kआपके एजेंट को AI प्रोजेक्ट शुरू करने या उन्हें बेहतर बनाने में मदद करता है। यह code का विश्लेषण करता है, tools सुझाता है और स्पेनिश भाषा में action plan बनाता है।
007
48kआपका एजेंट security audit और threat modeling करता है। यह प्रोजेक्ट को हमलों और कमजोरियों से बचाने में काम आता है।
10-andruia-skill-smith
48kआपके एजेंट को AI tools बनाने या उन्हें बेहतर करने में मदद करता है। यह तय करता है कि tools कैसे काम करेंगे, documentation लिखता है और structure की जांच करता है।
20-andruia-niche-intelligence
48kआपका एजेंट किसी खास industry का summary बनाता है। भरोसेमंद स्रोतों की मदद से यह प्रोजेक्ट का संदर्भ, नियम, इस्तेमाल के तरीके और जोखिम समझने में मदद करता है।
मिलती-जुलती skills
tavily
394kयह आपके एजेंट को Tavily से वेब पर खोजने और खास वेब पेजों से टेक्स्ट निकालने देती है, गहराई, डोमेन और तारीख के विकल्पों के साथ।
blogwatcher
394kयह आपके एजेंट को ब्लॉग और RSS या Atom फ़ीड फ़ॉलो करने, उनमें नए लेख जांचने और जो लेख आपने पढ़ लिए हों उन्हें चिह्नित करने देती है।
data-scraper-agent
280kएजेंट को किसी भी public स्रोत से अपने-आप डेटा इकट्ठा करने में मदद करता है। इसे schedule किया जा सकता है, जानकारी को और बेहतर बनाया जा सकता है और नतीजे सेव किए जा सकते हैं। ऑनलाइन डेटा पर नज़र रखने के लिए उपयोगी है।