- Use '/' key to quickly access this field.
- Enter a name of repository, or repository group for quick search.
- Prefix query to allow special search:
user:admin, to search for usernames, always global
user_group:devops, to search for user groups, always global
pr:303, to search for pull request number, title, or description, always global
commit:efced4, to search for commits, scoped to repositories or groups
file:models.py, to search for file paths, scoped to repositories or groups
For advanced full text search visit: repository search
<aclass="sectref"href="{%url'docs''rt_python.html'%}"><!-- InstanceBeginEditable name="NextTitle" -->Remote access using python <!-- InstanceEndEditable --></A></div>
<hr/>
<!-- InstanceBeginEditable name="EditDoc" -->
<h1>Matlab Madrigal remote data access tutorial</h1>
<p>The easiest way to use the Madrigal Matlab remote data access API is to simply let the web interface write the script you need for you.
Just choose the <i>Access data</i> pull-down menu and choose <i>Create a command to download multiple exps</i>. Then follow the instructions, and you will
have the command you need to download whatever you want from Madrigal. Be sure to select Matlab as the language you want to create the command with.
You can choose to download files as they are in Madrigal in either column-delimited ascii, Hdf5, or netCDF4 formats, or you can choose the
parameters yourself (including derived parameters), and optionally include filters on the data you get back.</p>
<p> The rest of this tutorial is for those who want to go beyond the automatically generated commands and write more advanced Matlab applications that
access Madrigal data.</p>
<blockquote>
<p> The following are the Matlab methods for accessing Madrigal data remotely:</p>
</blockquote>
<ul>
<li><ahref="#getMadrigalCgiUrl">getMadrigalCgiUrl</a> - converts the Madrigal url to the cgi form required by the other methods</li>
<li><ahref="#getVersion">getVersion</a> - returns a a string representing the Madrigal version</li>
<li><ahref="#getInstrumentsWeb">getInstrumentsWeb</a> - returns a list of all instruments in Madrigal database</li>
<li><ahref="#getExperimentsWeb">getExperimentsWeb</a> - returns a list of experiments for a given instument(s) and date range</li>
<li><ahref="#getCgiurlForExperiment">getCgiurlForExperiment</a> - returns cgiurl of experiment.url as returned by getExperimentsWeb</li>
<li><ahref="#getExperimentFilesWeb">getExperimentFilesWeb</a> - returns a list of files in a given experiment</li>
<li><ahref="#getParametersWeb">getParametersWeb</a> - returns a list of measured parameters in a file, and derived parameters available</li>
<li><ahref="#isprintWeb">isprintWeb</a> - returns data from a file as an array of doubles using user specified parameters and filters</li>
<li><ahref="#madDownloadFile">madDownloadFile</a> - downloads a Madrigal file to local computer in various formats</li>
<li><ahref="#madCalculatorWeb">madCalculatorWeb</a> - returns derived parameters for a given time and set of spatial locations</li>
<li><ahref="#globalDownload">globalDownload</a> - globalDownload is a script to search through the entire Madrigal database for appropriate files to store locally. You can generate the arguments for this command via the web interface.</li>
<li><ahref="#globalIsprint">globalIsprint</a> - returns user-specified data from multiple experiments. You can generate the arguments for this command via the web interface.</li>
</ul>
<p> A good way to learn how to use this Matlab API is to run this <ahref=#example>example</a>.