A R package to manipulate GCM data from NEX-GDDP dataset

 NEX-GDDP数据集介绍:

  • The NEX-GDDP dataset includes downscaled projections for RCP 4.5 and RCP 8.5 from the 21 models and scenarios for which daily scenarios were produced and distributed under CMIP5.
  • Each of the climate projections includes daily maximum temperature, minimum temperature, and precipitation for the periods from 1950 through 2100. The spatial coverage encompasses the entire earth at a resolution of 0.25 degrees (~25 km x 25 km).For further information on the methods and contents of the data refer to the technical note on the NEX-GDDP dataset.

GCM_download_data()

Download and reshape netCDF files from NASA's NEX-GDDP

源代码:https://rdrr.io/github/hllauca/RClimChange/src/R/GCM_download_data.R

GCM_download_data(FileURLs, Variable = "pr", RangeLat, RangeLon)
FileURLs

Text file with NEX-GDDP URLs to be downloaded.

下载URL文件:

https://drive.google.com/open?id=1yr3iDTPyPds6QZy_exW7COkEUKmzqnc6

Variable

Variable of interest to be downloaded (pr, tasmax or tasmin). 'pr' as default.

RangeLat

Range (min,max) of latitudes to subset data.

RangeLon

Range (min,max) of longitudes to subset data.

 Examples:

install.packages("devtools")
devtools::install_github("hllauca/RClimChange")
library(RClimChange)

setwd("D:/NEX-GDDP_URLs/") #储存数据集URL信息文件夹
GCM_download_data(FileURLs='pr_rcp4.5text.txt', 
                  Variable='pr',
                  RangeLat=c(30.2,34.5),
                  RangeLon=c(105.5,112.5)) #研究区

 

 

GCM_extract_region()

读取GCM子集并使用netCDF GCM的文件构建一个5D[lon,lat,day,year,model]数组

GCM_extract_region(Path.GCM, Region, Var)
Path.GCM

Directory where GCM netCDF files are located.

Region

Lat/Lon ranges for subsetting data (MinLon, MaxLon, MinLat, MaxLat).

Var

Variable of intereset to be extracted (Pp, Tmax or Tmin).

Value:


5D array [lon,lat,day,year,model] with GCM subset data.

 

 

GCM_spatial_down()

Extract a downscaled GCM data for a point of interest

GCM_spatial_down(Input, RegLon, RegLat, XYcoords, YearIni, b = 2)
Input

5D array [lon,lat,day,year,model] with GCM subset data.

RegLon

Vector of longitudes for the study area.

RegLat

Vector of latitudes for the study area.

XYcoords

Station coordinates (lon, lat) for downscaling data.

YearIni

Initial year of data (to compute leap years).

b

IDW exponent (2 as default).

Value


GCM time series for a point of interest.

 

  • 1
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 打赏
    打赏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

Leon_124

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值