I would like to be able to import/read a file into Mathematica from an ftp server that requires explicit TSL security with anonymous connection.
Import["ftp://gdc.cddis.eosdis.nasa.gov/pub/products/iers/finals2000A.all"]
In other words, I want to connect to server gdc.cddis.eosdis.nasa.gov, and download, for example, /pub/products/iers/finals2000A.all.
or under https:
Import["https://cddis.nasa.gov/archive/products/iers/finals2000A.all"]
Help on this is provided here: https://cddis.nasa.gov/Data_and_Derived_Products/CDDIS_Archive_Access.html, but unfortunately there is nothing specific for Mathematica.
I can't get it to work with Mathematica (Import/URLRead/Authentication ...). Could anyone give me an idea on how to do it?
curl
orwget
to download the file and thenImport
? If you can get either to work then you can call them from WL andImport
. $\endgroup$curl
andwget
using eitherhttps
orftp-ssl
. I don't have an Earthdata account so I cannot test them.curl
andwget
are command line tools. $\endgroup$Import["ftp://gdc.cddis.eosdis.nasa.gov/pub/products/iers/finals2000A.all"]
verbatim. The result was a string ofStringLength
3372719. Adding the option"Table"
to theImport
gave me a list of 17940 sublists. The first sublist was {73, 1, 2, 41684., "I", 0.120733, 0.009786, 0.136966, 0.015902, "I", 0.808418, 0.000271, 0., 0.1916, "P", -0.766, 0.199, -0.72, 0.3, 0.143, 0.137, 0.8075, -18.637, -3.667}, I did not visit the website itself and do not have any account or credentials that I know of. MMA 12.1.0 for Linux. $\endgroup$