EBAS观测数据下载

记录一下 下载EBAS-Thredds数据的流程, 以全站点的ozone为例


1. 下载ebas-thredds-harvest的脚本

https://git.nilu.no/ebas/ebas-thredds-harvest

2. 获取所有的文件名列表 => EBAS.filelist.txt

这里复制过来, 并掐头去尾, 保持每一行格式固定,都是文件名

3. 获取含ozone的文件名列表 => EBAS.filelist.ozone.txt

# in wsl
grep ozone EBAS.filelist.txt > EBAS.filelist.ozone.txt

4. 获取站点列表 => EBAS.sites.txt

# in wsl
awk -F. '{print $1}' EBAS.filelist.ozone.txt | sort | uniq > EBAS.sites.txt

5. python配置必要环境

netCDF4包, thredds包等等, 按需来,

6. 执行脚本获取所有站点对应的urls => urls.txt

执行下面的powershell脚本, 循环调用python脚本, 获取http下载链接, 并保存至urls.txt

这一步比较慢

# get_ozone_urls.ps1

$sites = "AM0001R", "AR0001R", "AR0002G", "AR0004R", "AR0005R", "AT0002R", "AT0003R", "AT0004R", "AT0005R", "AT0030R", "AT0032R", "AT0033R", "AT0034G", "AT0037R", "AT0038R", "AT0040R", "AT0041R", "AT0042R", "AT0043R", "AT0044R", "AT0045R", "AT0046R", "AT0047R", "AT0048R", "AT0049R", "AT0050R", "AU0002G", "BB0001R", "BE0001R", "BE0032R", "BE0035R", "BG0053R", "BM0001R", "BO0001R", "CA0002R", "CA0003R", "CA0006R", "CA0010R", "CA0011R", "CA0012R", "CA0023R", "CA0103R", "CA0420G", "CH0001G", "CH0002R", "CH0003R", "CH0004R", "CH0005R", "CH0010U", "CH0031R", "CH0053R", "CL0001R", "CV0001G", "CY0002R", "CZ0001R", "CZ0003R", "CZ0005R", "DE0001R", "DE0002R", "DE0003R", "DE0004R", "DE0005R", "DE0006R", "DE0007R", "DE0008R", "DE0009R", "DE0011R", "DE0012R", "DE0013R", "DE0014R", "DE0017R", "DE0018R", "DE0026R", "DE0031R", "DE0035R", "DE0038R", "DE0039R", "DE0042R", "DE0043G", "DE0045R", "DE0046R", "DE0047R", "DE0054R", "DE0057G", "DE0060G", "DK0005R", "DK0009R", "DK0010G", "DK0012R", "DK0025G", "DK0031R", "DK0032R", "DK0041R", "EE0009R", "EE0011R", "EG0001U", "EG0002U", "EG0004R", "ES0001R", "ES0002R", "ES0003R", "ES0004R", "ES0005R", "ES0006R", "ES0007R", "ES0008R", "ES0009R", "ES0010R", "ES0011R", "ES0012R", "ES0013R", "ES0014R", "ES0015R", "ES0016R", "ES0017R", "ES0018G", "FI0004R", "FI0009R", "FI0017R", "FI0018R", "FI0022R", "FI0037R", "FI0096G", "FR0008R", "FR0009R", "FR0010R", "FR0011R", "FR0012R", "FR0013R", "FR0014R", "FR0015R", "FR0016R", "FR0017R", "FR0018R", "FR0019R", "FR0020R", "FR0023R", "FR0024R", "FR0025R", "FR0026R", "FR0028R", "FR0030R", "FR0031R", "FR0032R", "FR0034G", "GB0002R", "GB0006R", "GB0013R", "GB0014R", "GB0015R", "GB0031R", "GB0033R", "GB0035R", "GB0036R", "GB0037R", "GB0038R", "GB0039R", "GB0041R", "GB0043R", "GB0044R", "GB0045R", "GB0048R", "GB0049R", "GB0050R", "GB0051R", "GB0052R", "GB0053R", "GB0059G", "GB1055R", "GR0001R", "GR0002R", "GR0003R", "GR0101R", "HU0002R", "HU0003R", "HU0017R", "ID1013R", "IE0001R", "IE0031R", "IS0091R", "IT0001R", "IT0004R", "IT0009R", "IT0014R", "IT0015U", "IT0016R", "IT0018R", "IT0019R", "JP0002G", "JP0003U", "JP1020R", "JP1028G", "JP1029R", "KE0001G", "KG0002U", "KR0100R", "KR0101R", "LT0015R", "LV0010R", "LV0016R", "LV2000U", "MK0007R", "MT0001R", "NL0007R", "NL0009R", "NL0010R", "NL0011R", "NL0091R", "NL0644R", "NO0001R", "NO0002R", "NO0015R", "NO0030R", "NO0039R", "NO0041R", "NO0042G", "NO0043R", "NO0044R", "NO0045R", "NO0047R", "NO0048R", "NO0052R", "NO0055R", "NO0056R", "NO0058G", "NO0059G", "NO0488R", "NO0489R", "NO0492R", "NO0762R", "NO0977R", "NO1007R", "NO1011R", "NO1083R", "NO1200R", "NP0001G", "NZ0001R", "NZ0002R", "NZ0003G", "PE0001R", "PL0002R", "PL0003R", "PL0004R", "PL0005R", "PT0004R", "RO0003R", "RO0008R", "RS0005R", "RU0001R", "RU0013R", "RU0016R", "RU0018R", "RU0100R", "SE0002R", "SE0003R", "SE0005R", "SE0011R", "SE0012R", "SE0013R", "SE0014R", "SE0018R", "SE0019R", "SE0020R", "SE0022R", "SE0032R", "SE0033R", "SE0034R", "SE0035R", "SE0039R", "SE0094R", "SI0008R", "SI0031R", "SI0032R", "SI0033R", "SK0002R", "SK0004R", "SK0005R", "SK0006R", "SK0007R", "US0008R", "US0039G", "US0142R", "US0204R", "US0602R", "US0901R", "US1200R", "US6001R", "US6004G", "US6005G", "US6006R", "VN0001R", "ZA0001G"

foreach ($s in $sites){
    echo $s
    python ebas-thredds-harvest/get_tds_data.py -s "ozone" -c "$s" -p "http" >> urls.txt
}

7. 下载这些链接

wget, curl之类的去下载urls.txt里的http链接即可



后续的处理逻辑记在EBAS观测数据处理

最后编辑于
©著作权归作者所有,转载或内容合作请联系作者
  • 序言:七十年代末,一起剥皮案震惊了整个滨河市,随后出现的几起案子,更是在滨河造成了极大的恐慌,老刑警刘岩,带你破解...
    沈念sama阅读 212,884评论 6 492
  • 序言:滨河连续发生了三起死亡事件,死亡现场离奇诡异,居然都是意外死亡,警方通过查阅死者的电脑和手机,发现死者居然都...
    沈念sama阅读 90,755评论 3 385
  • 文/潘晓璐 我一进店门,熙熙楼的掌柜王于贵愁眉苦脸地迎上来,“玉大人,你说我怎么就摊上这事。” “怎么了?”我有些...
    开封第一讲书人阅读 158,369评论 0 348
  • 文/不坏的土叔 我叫张陵,是天一观的道长。 经常有香客问我,道长,这世上最难降的妖魔是什么? 我笑而不...
    开封第一讲书人阅读 56,799评论 1 285
  • 正文 为了忘掉前任,我火速办了婚礼,结果婚礼上,老公的妹妹穿的比我还像新娘。我一直安慰自己,他们只是感情好,可当我...
    茶点故事阅读 65,910评论 6 386
  • 文/花漫 我一把揭开白布。 她就那样静静地躺着,像睡着了一般。 火红的嫁衣衬着肌肤如雪。 梳的纹丝不乱的头发上,一...
    开封第一讲书人阅读 50,096评论 1 291
  • 那天,我揣着相机与录音,去河边找鬼。 笑死,一个胖子当着我的面吹牛,可吹牛的内容都是我干的。 我是一名探鬼主播,决...
    沈念sama阅读 39,159评论 3 411
  • 文/苍兰香墨 我猛地睁开眼,长吁一口气:“原来是场噩梦啊……” “哼!你这毒妇竟也来了?” 一声冷哼从身侧响起,我...
    开封第一讲书人阅读 37,917评论 0 268
  • 序言:老挝万荣一对情侣失踪,失踪者是张志新(化名)和其女友刘颖,没想到半个月后,有当地人在树林里发现了一具尸体,经...
    沈念sama阅读 44,360评论 1 303
  • 正文 独居荒郊野岭守林人离奇死亡,尸身上长有42处带血的脓包…… 初始之章·张勋 以下内容为张勋视角 年9月15日...
    茶点故事阅读 36,673评论 2 327
  • 正文 我和宋清朗相恋三年,在试婚纱的时候发现自己被绿了。 大学时的朋友给我发了我未婚夫和他白月光在一起吃饭的照片。...
    茶点故事阅读 38,814评论 1 341
  • 序言:一个原本活蹦乱跳的男人离奇死亡,死状恐怖,灵堂内的尸体忽然破棺而出,到底是诈尸还是另有隐情,我是刑警宁泽,带...
    沈念sama阅读 34,509评论 4 334
  • 正文 年R本政府宣布,位于F岛的核电站,受9级特大地震影响,放射性物质发生泄漏。R本人自食恶果不足惜,却给世界环境...
    茶点故事阅读 40,156评论 3 317
  • 文/蒙蒙 一、第九天 我趴在偏房一处隐蔽的房顶上张望。 院中可真热闹,春花似锦、人声如沸。这庄子的主人今日做“春日...
    开封第一讲书人阅读 30,882评论 0 21
  • 文/苍兰香墨 我抬头看了看天上的太阳。三九已至,却和暖如春,着一层夹袄步出监牢的瞬间,已是汗流浃背。 一阵脚步声响...
    开封第一讲书人阅读 32,123评论 1 267
  • 我被黑心中介骗来泰国打工, 没想到刚下飞机就差点儿被人妖公主榨干…… 1. 我叫王不留,地道东北人。 一个月前我还...
    沈念sama阅读 46,641评论 2 362
  • 正文 我出身青楼,却偏偏与公主长得像,于是被迫代替她去往敌国和亲。 传闻我的和亲对象是个残疾皇子,可洞房花烛夜当晚...
    茶点故事阅读 43,728评论 2 351

推荐阅读更多精彩内容