爱气象,爱气象家园! 

气象家园

 找回密码
 立即注册

QQ登录

只需一步,快速开始

新浪微博登陆

只需一步, 快速开始

搜索
查看: 6755|回复: 3

[grib] fnl数据批量下载出错,求指导

[复制链接]

新浪微博达人勋

发表于 2014-11-18 10:43:06 | 显示全部楼层 |阅读模式

登录后查看更多精彩内容~

您需要 登录 才可以下载或查看,没有帐号?立即注册 新浪微博登陆

x
用的是cywin运行csh脚本下载,下载过程中
报错:Try `wget --help' for more options.
wget -N --load-cookies auth.rda_ucar_edu http://rda.ucar.edu/data/ds083.2/grib2/2014/2014.05/fnl_20140528_12_00.grib2...
wget: missing URL
Usage: wget [OPTION]... ...

换到fedora下面下载也是同样的错误,还请批量下载过资料的大神指点一下啊..


#!/bin/csh
#################################################################
# Csh Script to retrieve 1279 online Data files of 'ds083.2',
# total 18.13G. This script uses 'wget' to download data.
#
# Highlight this script by Select All, Copy and Paste it into a file;
# make the file executable and run it on command line.
#
# You need pass in your password as a parameter to execute
# this script; or you can set an environment variable RDAPSWD
# if your Operating System supports it.
#
# Contact [url=mailto:grace@ucar.edu]grace@ucar.edu
(Grace Peng) for further assistance.
#################################################################
set pswd = $1
if(x$pswd == x && `env | grep RDAPSWD` != '') then
set pswd = $RDAPSWD
endif
if(x$pswd == x) then
echo
echo Usage: $0 YourPassword
echo
exit 1
endif
set v = `wget -V |grep 'GNU Wget ' | cut -d ' ' -f 3`
set a = `echo $v | cut -d '.' -f 1`
set b = `echo $v | cut -d '.' -f 2`
if(100 * $a + $b > 109) then
set opt = 'wget --no-check-certificate'
else
set opt = 'wget'
endif
set opt1 = '-O /dev/null --save-cookies auth.rda_ucar_edu --post-data'
set opt2 = "email=zitaxcy@gmail.com&passwd=$pswd&action=login"
$opt $opt1="$opt2" https://rda.ucar.edu/cgi-bin/login
set opt1 = "-N --load-cookies auth.rda_ucar_edu"
set opt2 = "$opt $opt1 http://rda.ucar.edu/data/ds083.2/"
set filelist = ( \
  grib2/2014/2014.01/fnl_20140101_00_00.grib2 \
  grib2/2014/2014.01/fnl_20140101_06_00.grib2 \
  grib2/2014/2014.01/fnl_20140101_12_00.grib2 \
  grib2/2014/2014.01/fnl_20140101_18_00.grib2 \
)
while($#filelist > 0)
set syscmd = "$opt2$filelist[1]"
echo "$syscmd ..."
$syscmd
shift filelist
end

密码修改失败请联系微信:mofangbao

新浪微博达人勋

发表于 2015-1-30 18:09:45 | 显示全部楼层
你是怎么实现的批量成功?
密码修改失败请联系微信:mofangbao

新浪微博达人勋

发表于 2015-10-10 17:27:42 | 显示全部楼层
想问一下楼主成功了吗
密码修改失败请联系微信:mofangbao

新浪微博达人勋

发表于 2016-1-5 21:53:56 | 显示全部楼层
想问一下楼主成功了吗
密码修改失败请联系微信:mofangbao
您需要登录后才可以回帖 登录 | 立即注册 新浪微博登陆

本版积分规则

Copyright ©2011-2014 bbs.06climate.com All Rights Reserved.  Powered by Discuz! (京ICP-10201084)

本站信息均由会员发表,不代表气象家园立场,禁止在本站发表与国家法律相抵触言论

快速回复 返回顶部 返回列表