Hi Everyone,
To use MADIS in Digital Atmosphere for now you can do the following:
1.) Download CURL from the offical CURL web site at
http://curl.haxx.se/download.html. You will
need to download the appropriate version for your system. The binary that most likely will work
for you is the static Win32 binary with SSL support. Do not just download libcurl but also the
CURL program.
A direct link is provided for the latest version here:
Code:
http://www.gknw.net/mirror/curl/win32/curl-7.21.6-ssl-sspi-zlib-static-bin-w32.zip
2.) Use the following command prompt script to download the latest MADIS file and save it to
your hard disk using curl:
Since CURL doesn't support the redirect that MADIS uses you must decode the MADIS string at the
end (after ?rdr=) and replace the proper user to the new MADIS account. You must also specify
that this is an insecure download.
Do NOT re-encode the URL.
To find a URL encoder/decoder on the Internet you can use the following site:
Code:
http://meyerweb.com/eric/tools/dencoder/
madis.bat:
Code:
set PATH=%PATH%
@echo OFF
echo MADIS Download Script for Digital Atmosphere...
echo Now starting MADIS download with public access account...
curl -L --insecure "https://public_madis_public:0823p!nIaB@madis-
data.nws.noaa.gov/madisPublic1/cgi-bin/madisXmlPublicDir?&time=0&minbck=-
60&minfwd=0&recwin=3&dfltrsel=1&state=AK&latll=25&lonll=-130&latur=55&lonur=-
60&stanam=&stasel=0&pvdrsel=0&varsel=2&qcsel=1&xml=0" > madis.txt
echo Done downloading MADIS information...
3.) Now import the file into Digital Atmosphere. In the same directory create a script:
Make sure to replace PATH_TO_MADIS to the path of your downloaded madis.txt File from
madis.bat!
madis.dsf
Code:
INGEST,PATH_TO_MADIS\madis.txt
To run open Digital Atmopshere and go to the Scripting tab and click "Run" and run the
"madis.dsf" file after proper modifications are made to the script.
This will take a while with the HUGE MADIS file!
4.) Now try a sample plot to make sure data has imported into the program from MADIS.
Now you are able to use MADIS data. Feel free to modify this in any way you see for your
application. The only requirement is that you need is CURL for Windows with the SSL libraries.
Enjoy!
Christopher Zenzel