Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

globalDownload is a simple script that will allow you to download a whole series of files, in any format - ascii, Hdf5, or the old Cedar format. Generate the script using the Madrigal 3 web site at http://madrigal3.haystack.mit.edu and choose Access Data, then Create a command to download multiple exps. You specify the time range, the instruments, and, optionally, the kinds of data.

Use one the three scripts above to download all Arecibo linefeed (kinst=20) with MRACF (kindat=2010) for 2010 in Hdf5 format. If you run into problems, see the answers at the bottom of the page for all three languages. 

Step 3: Create and run a globalIsprint script

...

This notebook will walk you though all the calls available as part of the Madrigal API.

globalDownload answers

Python command

 

...

.

...

 

Matlab command

Code Block
url = 'http://madrigal.naic.edu/madrigal'; 
outputDir = '/tmp';
user_fullname = 'your name';
user_email = 'your email';
user_affiliation = 'your affiliation';
format = 'hdf5';
startTime = datenum('1-Jan-2012 00:00:00');
endTime = datenum('31-Dec-2012 23:59:59');
inst = 20;
kindats = [2010];


globalDownload(url, ...
    outputDir, ...
    user_fullname, ...
    user_email, ...
    user_affiliation, ...
    format, ...
    startTime, ...
    endTime, ...
    inst, ...
    kindats);

 

IDL command

...