TC气象数据的下载,首先需要下载每一年的台风的最佳路径数据集,然后根据最佳路径数据集上的台风的时间点,经纬度去NCEP上的FNL数据查找对应时间点,经纬度的环境变量,最后海温的数据从NOAA上下载。
1.NCEP的FNL资料下载
NCEP/NCAR再分析数据集是由美国气象环境预报中心(NCEP)和美国国家大气研究中心(NCAR)联合制作的,他们采用了当今最先进的全球资料同化系统和完善的数据库,对各种来源(地面、船舶、无线电探空、测风气球、飞机、卫星等)的观测资料进行质量控制和同化处理,获得了一套完整的再分析资料集,它不仅包含的要素多,范围广,而且延伸的时段长,是一个综合的数据集。 下载的话可以通过python脚本快速实现。但需要先注册一个邮箱账号,代码如下:
import sys, os
import requests
import datetime
def check_file_status(filepath, filesize):
sys.stdout.write('\r')
sys.stdout.flush()
size = int(os.stat(filepath).st_size)
percent_complete = (size/filesize)*100
sys.stdout.write('%.3f %s' % (percent_complete, '% Completed'))
sys.stdout.flush()
url = 'https://rda.ucar.edu/cgi-bin/login'
values = {'email' : '*****', 'passwd' : '******', 'action' : 'login'}
# Authenticate
ret = requests.post(url,data=values)
if ret.status_code != 200:
print('Bad Authentication')
print(ret.text)
exit(1)
dspath = 'http://rda.ucar.edu/data/ds083.2/'
stime = datetime.datetime(2017,1,1)
etime = datetime.datetime(2019,12,31)
shour = ['_00','_06','_12','_18']
filelist=[]
while stime |