Skip to main content

Download and process NCEP GFS 0.25° data via ASCII interface

Project description

ncep-data-req

Download and preprocess NCEP GFS 0.25° atmospheric forecast data from NOAA using ASCII interface.

Overview

This package provides utility functions to directly download and preprocess Global Forecast System (GFS) 0.25-degree resolution data from the NOAA NOMADS server. It supports extraction of pressure-level and surface-level variables for specific forecast hours, structured into usable xarray.Dataset objects.

Features

  • Access GFS 0.25° forecast data from NOAA
  • Support for both pressure-level and surface variables
  • Handles multiple or single forecast hours
  • Outputs structured xarray.Dataset objects for easy analysis

Installation

You can install the package from PyPI (after publishing):

pip install ncep_data_req

from ncep_data_req import get_data_preprocess, get_data_preprocess_s

# Example: Download temperature on pressure levels for 6 forecast hours
ds = get_data_preprocess(
    yy=2025, mm=5, dd=23, utc=0, ft=6, var='tmpprs', pvar='yes'
)

# Example: Download surface variable at one forecast hour
ds_surface = get_data_preprocess_s(
    yy=2025, mm=5, dd=23, utc=0, ft=3, var='tmp2m', pvar='no'
)


Parameters
yy, mm, dd: Year, month, day

utc: Initialization hour (0, 6, 12, or 18 UTC)

ft: Forecast hour (0 to 384 depending on GFS run)

var: GFS variable name (e.g., tmpprs, rhprs, ugrdprs, etc.)

pvar: 'yes' if pressure-level variable, 'no' for surface

Output
Returns an xarray.Dataset containing:

Dimensions: time/levels, lat, lon

Coordinates: pressure levels, lat/lon grid

Data variables: selected GFS variable 
check this link ( https://nomads.ncep.noaa.gov/dods/gfs_0p25_1hr/)


contact:subhrjitrath17@gmail.com

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

ncep_data_req-0.1.0.tar.gz (2.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

ncep_data_req-0.1.0-py3-none-any.whl (2.1 kB view details)

Uploaded Python 3

File details

Details for the file ncep_data_req-0.1.0.tar.gz.

File metadata

  • Download URL: ncep_data_req-0.1.0.tar.gz
  • Upload date:
  • Size: 2.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.8

File hashes

Hashes for ncep_data_req-0.1.0.tar.gz
Algorithm Hash digest
SHA256 a08091836789c9ee6b839fe040231514442652bd7f2a19f095f42729bb548cfd
MD5 3d570690d39ed804b6ea2ef91aed9818
BLAKE2b-256 8a47abf2b48d68d5fa10681a885240fb3b658d2ac0cdb365797af7d590a6d3c1

See more details on using hashes here.

File details

Details for the file ncep_data_req-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: ncep_data_req-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 2.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.8

File hashes

Hashes for ncep_data_req-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 234180f3c8f78d683f4eef51bd314542d13fe7a3af17067172a54890380e5bdc
MD5 3125557478aab77b0b4af72d0eda5326
BLAKE2b-256 49d48b4512547e35aed13f83b65c6852ccb086bf8f17d2ef011e5faefbc84c30

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page