MNT: replace or retire the NAM, HIRESW, NOMADS ensemble and Windy forecast sources

Đang mở
#1,247 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 3 ngày

Chưa có ai nhận issue này.

Đánh giá

Độ khó
5/5
Thời gian dự kiến
Hơn một tuần
Mức phù hợp với người mới
35/100
Loại issue
Lỗi
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
python
Lĩnh vực
api, backend, data

Hướng nghiên cứu

Start with Environment.set_atmospheric_model and the Windy request path in fetch_atmospheric_data_from_windy; the issue says failed requests currently end in UnboundLocalError. Decide whether to deprecate Windy or support its official API, and make failures report a clear error. The remaining work includes evaluating RRFS projection and pressure levels, finding replacement ensemble sources, and deciding which fetchers and mappings to remove, so done requires resolving those open questions and updating the affected shortcuts.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

Problem

Several forecast sources in Environment.set_atmospheric_model no longer work,
because the services behind them were retired or changed:

  1. NAM was retired by NOAA on 2026-11-03 12Z and replaced by RRFS
    (SCN 26-47,
    SCN 26-48).
    The last NAM file on UCAR THREDDS ends on 2026-11-06 18:00.
  2. HIRESW was retired by the same notices, also replaced by RRFS.
  3. NOMADS no longer serves OPeNDAP at all. Every
    https://nomads.ncep.noaa.gov/dods/... URL now returns "OpenDAP format has
    been retired" (Service Change Notice 25-81). Every fetcher that reads from
    NOMADS is dead: HIRESW (fetch_hiresw_file_return_dataset), the GEFS ensemble
    (fetch_gefs_ensemble, gens_bc) and the CMC ensemble (fetch_cmc_ensemble,
    cmcens).
  4. Windy: type="Windy" calls node.windy.com/forecast/meteogram/..., an
    undocumented internal endpoint. It returns 404 for every model, and so do the
    other node.windy.com paths tried. Windy's official
    Point Forecast API v2 works, but
    it takes a POST request with an API key.

What is already handled

  • file="HIRESW" and type="ensemble", file="GEFS" already raise a clear
    ValueError on develop, and CMC is no longer offered as a shortcut.
  • #1246 does the same for file="NAM" (pointing to RAP, HRRR or GFS) and fixes
    the docs build, which broke on the live NAM example. A NAM file given by path
    or URL still loads with the "NAM" or "NAM_LEGACY" mapping.

What is left

  1. Windy is not handled. A failed request ends, after five retries (about
    60 s), in UnboundLocalError: ... 'response', because
    fetch_atmospheric_data_from_windy swallows the request error. Either move
    type="Windy" to the official API with a user-supplied key, or deprecate it;
    until then, raise a clear error when the request fails.

  2. Replacements for the blocked shortcuts. RRFS is on UCAR THREDDS, in the
    "Rapid Refresh Forecast System (RRFS)" section of the
    forecast model catalog:

    • grib/NCEP/RRFS/NA_13km/Best uses the same variable names as RocketPy's
      NAM mapping (Temperature_isobaric, Geopotential_height_isobaric,
      u-component_of_wind_isobaric, v-component_of_wind_isobaric), but its
      grid uses a polar stereographic projection (NAM used a Lambert conformal
      one), and it has only 9 pressure levels, from 1000 to 200 hPa, so the
      profile stops near 12 km and is coarse;
    • grib/NCEP/RRFS/NA_3km/Best is also there, with a different variable
      layout;
    • RRFS runs every hour; the 00, 06, 12 and 18 UTC cycles forecast out to
      84 h.

    A file="RRFS" shortcut could replace NAM and HIRESW, after checking the
    projection handling and whether 9 levels are enough. GEFS and CMC need
    another ensemble source; THREDDS may serve one, not checked yet.

  3. Dead code. The blocked shortcuts still have their fetchers, exported
    from rocketpy.environment.fetchers, and their WeatherModelMapping
    entries. Decide which to deprecate and remove (keeping the mappings that
    still read files given by path).

Open questions

  • Does Windy's free API tier return usable data, or is a paid key needed?
  • The retry decorator (exponential_backoff) also retries client errors such as
    a 404, so a dead service takes about a minute to report. Should it stop on
    those?
Ngôn ngữ chính
Python
Star
1.1k
Fork
280
Merge trung bình
3 ngày 2 giờ
Pull request đã merge (30 ngày)
24

Chuẩn bị môi trường

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của RocketPy-Team/RocketPy

Tất cả issue của RocketPy-Team/RocketPy

Issue tương tự

Thêm issue về Python

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.