[ncl-talk] Question about using curl instead of wget in system call
Barry Lynn
barry.h.lynn at gmail.com
Wed Aug 22 01:49:08 MDT 2018
Hi:
I can use wget in a system's call to download data. Thank you for taking a
look.
system ("wget http://ftp.ncep.noaa.gov/data/nccf/com/gfs/prod/gfs.2018082200
/gfs.t00z.pgrb2.0p25.f240")
However, if I want to use curl, I am not sure where and how to place the
quotation marks.
This works outside of ncl.
curl -s "
http://nomads.ncep.noaa.gov/cgi-bin/filter_gfs_0p25.pl?file=gfs.t00z.pgrb2.0p25.f240&all_lev=on&all_var=on&subregion=&leftlon=15&rightlon=50&toplat=50&bottomlat=15&dir=%2Fgfs.2018082200
" -o junk
This does not:
system ( "curl -s
http://nomads.ncep.noaa.gov/cgi-bin/filter_gfs_0p25.pl?file=gfs.t00z.pgrb2.0p25.f240&all_lev=on&all_var=on&subregion=&leftlon=15&rightlon=50&toplat=50&bottomlat=15&dir=%2Fgfs.201808
2200 -o junk")
--
Barry H. Lynn, Ph.D
Senior Associate Scientist, Lecturer,
The Institute of the Earth Science,
The Hebrew University of Jerusalem,
Givat Ram, Jerusalem 91904, Israel
Tel: 972 547 231 170
Fax: (972)-25662581
C.E.O, Weather It Is, LTD
Weather and Climate Focus
http://weather-it-is.com
Jerusalem, Israel
Local: 02 930 9525
Cell: 054 7 231 170
Int-IS: x972 2 930 9525
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20180822/5b955cda/attachment.html>
More information about the ncl-talk
mailing list