comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » Re: FTP downloading in IDL
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Re: FTP downloading in IDL [message #80936 is a reply to message #80935] Sat, 21 July 2012 14:25 Go to previous messageGo to previous message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
JBT writes:

> So, does anyone know a working solution to download a file from an FTP server, please? Your help is much appreciated!

I had no trouble whatsoever accessing this file. Here is
the code I used. Windows 7 64-bit OS, IDL 7.1.2.

oUrl = OBJ_NEW('IDLnetUrl', URL_SCHEME='ftp', $
URL_HOST='ftp.ngdc.noaa.gov', $
URL_Port=21, $
URL_USERNAME='anonymous', URL_PASSWORD='', $
URL_PATH='STP/GEOMAGNETIC_DATA/INDICES/KP_AP/2008')
void = oURL -> Get(FILENAME='C:\IDL\test\file_2008')

The file was retrieved nearly instantaneously.

I've gotten this CCurlException error quite a bit working
with Google static maps. It is essential that the
directory where the file will be saved actually
exists and is writeable when the Get method is
called. In my case, the problem has almost always been
writing to a particular directory. I always give it
an absolute file name, but I'm not sure if that is
a learned behavior or not. :-)

Cheers,

David


--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.idlcoyote.com/
Sepore ma de ni thui. ("Perhaps thou speakest truth.")
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: IDL User Group Meeting 2012
Next Topic: libcurl error with Mac OS X upgrade

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Thu Oct 09 20:42:27 PDT 2025

Total time taken to generate the page: 0.55901 seconds