Skip to main content

Download NASA NEX-GDDP-CMIP6 climate projection data by variable, model, scenario, year, and spatial extent.

Project description

nex-gddp

Download NASA NEX-GDDP-CMIP6 climate projection data with spatial and temporal filtering.

Installation

pip install nex-gddp

Or install from source:

git clone https://github.com/your-username/nasa-nex-gddp-cmip6-download.git
cd nasa-nex-gddp-cmip6-download
pip install -e .

Python API

from nex_gddp import download

# Download daily minimum temperature for a single model and year
download(
    variables="tasmin",
    years=2030,
    models="ACCESS-CM2",
    scenarios="ssp245",
    bbox=(26.2, 36.3, 30.0, 39.4),  # west, south, east, north
)

# Download multiple variables, years, and models
download(
    variables=["tasmin", "tasmax", "pr"],
    years=range(2020, 2051),
    models=["ACCESS-CM2", "MIROC6", "CanESM5"],
    scenarios=["ssp245", "ssp585"],
    output_dir="./my_data",
    max_workers=5,
)

# Download all models (omit the models argument)
download(variables="pr", years=2025, scenarios="ssp245")

Listing available options

from nex_gddp import list_models, list_variables, list_scenarios

list_models()      # 34 CMIP6 models
list_variables()   # 9 variables
list_scenarios()   # historical + 4 SSP scenarios

CLI

# Download data
nex-gddp download -v tasmin -y 2030 -m ACCESS-CM2 -s ssp245 -b 26.2,36.3,30.0,39.4

# Year ranges and multiple values
nex-gddp download -v tasmin tasmax pr -y 2020-2050 -m ACCESS-CM2 MIROC6 -s ssp245 ssp585

# Download all models for a variable
nex-gddp download -v pr -y 2025 -s ssp245

# List available models, variables, and scenarios
nex-gddp list-models
nex-gddp list-variables
nex-gddp list-scenarios

CLI options

Flag Short Description
--variable -v Variable(s) to download (required)
--years -y Year or range: 2020, 2020-2050, 2020,2025,2030 (required)
--models -m Model name(s). Omit for all 34 models
--scenario -s SSP scenario(s) (default: ssp245)
--bbox -b Bounding box: west,south,east,north (omit for global)
--output -o Output directory (default: ./data)
--workers -w Concurrent downloads (default: 5)

Available data

Variables

Variable Description
hurs Near-Surface Relative Humidity
huss Near-Surface Specific Humidity
pr Precipitation
rlds Surface Downwelling Longwave Radiation
rsds Surface Downwelling Shortwave Radiation
sfcWind Near-Surface Wind Speed
tas Daily Mean Near-Surface Air Temperature
tasmax Daily Maximum Near-Surface Air Temperature
tasmin Daily Minimum Near-Surface Air Temperature

Scenarios

Scenario Description
historical Historical (1950-2014)
ssp126 Low emissions
ssp245 Medium emissions
ssp370 Medium-high emissions
ssp585 High emissions

Models

34 CMIP6 models are available. Run nex-gddp list-models or list_models() to see the full list.

Output structure

Files are saved as NetCDF with the following directory layout:

data/
  ACCESS-CM2/
    ssp245/
      tasmin/
        tasmin_ACCESS-CM2_r1i1p1f1_gn_2030.nc

License

MIT

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

nex_gddp-0.1.0.tar.gz (11.6 kB view details)

Uploaded Source

Built Distribution

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

nex_gddp-0.1.0-py3-none-any.whl (8.9 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: nex_gddp-0.1.0.tar.gz
  • Upload date:
  • Size: 11.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.14

File hashes

Hashes for nex_gddp-0.1.0.tar.gz
Algorithm Hash digest
SHA256 0d2d745aca967cf1fc799861884d22406ca3a92f3285650294ac1574d3f5a6fe
MD5 b26f379d566f9681248d88e0181da795
BLAKE2b-256 5829a3e5323b0745e2d9c01f17fb2ed2ef475cf3299cccdcd8730af59e4edae9

See more details on using hashes here.

File details

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

File metadata

  • Download URL: nex_gddp-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 8.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.14

File hashes

Hashes for nex_gddp-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 ef6257518ff1357ac2c37541d5ce30ce81395a82987f73513a1a3fe834daa0fc
MD5 5058ce2e5cd5daf53021fce51f4983a8
BLAKE2b-256 73fb68af5a99a46588c462f56b206b104dc5abc62dcd5a9bbbe9f224402c0397

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