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.Datasetobjects 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
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file ncep_data_req-0.1.2-py3-none-any.whl.
File metadata
- Download URL: ncep_data_req-0.1.2-py3-none-any.whl
- Upload date:
- Size: 4.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.10.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1e0ef98638f8799e2d592cebaf60d93012a0e1c2f093db2ab84e418c7ba723de
|
|
| MD5 |
b1db81b06814d22fa8b16b7f29ba89b8
|
|
| BLAKE2b-256 |
ba2d22db588158f02c98296d6c865eafbbde744825289f42936671f11b9fe424
|