Skip to main content

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(
    '2025-05-23', utc=0, ft=6, var='tmpprs', pvar='yes',lon_range=(45,90),lat_range=(10,20)
)

# Example: Download temperature on surface level for 6 forecast hours
ds = get_data_preprocess(
    '2025-05-23', utc=0, ft=6, var='pratesfc', pvar='no',lon_range=(45,90),lat_range=(10,20)
)




# Example: Download  variable at single forecast hour
ds_surface = get_data_preprocess_s(
    '2025-05-23', utc=0, ft=6, var='tmpprs', pvar='yes',lon_range=(45,90),lat_range=(10,20)
)


# Example: Download  variable on surface level at single forecast hour
ds = get_data_preprocess(
    '2025-05-23', utc=0, ft=6, var='pratesfc', pvar='no',lon_range=(45,90),lat_range=(10,20)
)


Parameters
Longitude: 0.00000000000°E to 359.75000000000°E (1440 points, avg. res. 0.25°)
Latitude: -90.00000000000°N to 90.00000000000°N (721 points, avg. res. 0.25°)
Altitude: 1000.00000000000 to 20. (26 points, )

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

Metadata

Release files for ncep-data-req 0.1.2.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Built distribution (wheel)

Table of built distributions (wheels) for ncep-data-req 0.1.2.2
File Interpreter ABI Platform Actions
ncep_data_req-0.1.2.2-py3-none-any.whl Python 3 none any Details for ncep_data_req-0.1.2.2-py3-none-any.whl

Release files / ncep_data_req-0.1.2.2-py3-none-any.whl

Download URL ncep_data_req-0.1.2.2-py3-none-any.whl
Size 4.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
4834ce61c09b0e97ae478566e32b071486f731366e68b36067562b96776c58c6
BLAKE2b-256 checksum
How to use checksums
58da21085e2c5d0b120c362fa7207549e603975c42cadc754f96db307716800c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.13.2

Security for ncep-data-req 0.1.2.2

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.1.2.2 This release

1 release file No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page