Madrigal Databaseiri2019.frederick.ac.cy/docs/lectures/Madrigal_Database.pdfOpen Madrigal 2 • A...
Transcript of Madrigal Databaseiri2019.frederick.ac.cy/docs/lectures/Madrigal_Database.pdfOpen Madrigal 2 • A...
Madrigal Databasehttp://openmadrigal.org
Shunrong Zhang
MIT Haystack Observatory
September 6, 2019
Based on slides Bill Rideout prepared
Open Madrigal
2
• A robust, World Wide Web based system that manages
and serves archival and real-time data, in a variety of
formats.
• Geospace data (mostly for ground-based observations),
• Distributed data centers. Each Madrigal site controls
(and updates) its data, and shares metadata with other
Madrigal sites.
• Led by MIT Haystack Observatory since 1980, and
supported by community members.
The Madrigal database stores data from a wide variety of upper
atmosphere research instruments
Incoherent Scatter Radar TEC via GPS MF Radar
Examples of number of instruments in Madrigal:
• Incoherent scatter radars: 22
• MST radars: 3
• MF radars: 16
• Meteor radars: 11
• FPI: 32
• Michelson Interferometers: 6
• Lidars: 9
• Photometers: 7
Other examples:
GPS TEC
DMSP
4
• Continuous data since 2000
• 1x1 (latxlon); every 5 min • GPS (200-)
• GLONASS (May 2019 -)
6
7
Madrigal is a distributed database
8
Madrigal DB
Madrigal DB
Madrigal DB
Madrigal DB
Madrigal DB
Madrigal DB
Madrigal DB
Madrigal DB
Madrigal DBMadrigal DB
Shared
metadata
CEDAR Madrigal archive imports all data weekly
9
Madrigal DB
Madrigal DB
Madrigal DB
Madrigal DB
Madrigal DB
Madrigal DB
Madrigal DB
Madrigal DB
Madrigal DBMadrigal DB
Shared
metadata
How can the Madrigal database be accessed?
User
Web
interface
Web services API•From anywhere on internet
•Python API
•Matlab API
•IDL API
•Other could be written
Typical use - data discoveryTypical use - data downloading of many
experiments at a time - zero clicks to data
Outputs: ASCII, HDF5, netCDF4
Remote Access to
Madrigal Data
Simple Most complex
I just want to
download lots of
files to my PC
I want to
only download
filtered data with
derived parameters
I want to
write my own
script
globalDownload globalIsprint Work with API’s
Wed-created script to download files
1
2
Write your own script
• Use python, Matlab, IDL
• Methods
getInstrumentsWeb
getExperimentsWeb
getExperimentFilesWeb
getParametersWeb
isprintWeb
madDownloadFile
madCalculatorWeb
• Methods match Madrigal model
Extending/contributing to Madrigal
• Madrigal is completely open source
See www.openmadrigal.org for CVS
• All new code is Python or C.
Imported derivation methods sometimes in Fortran.
• We appreciate all contributions
Suggestions and ideas
Finding bugs
Code
Rules of the road
If you want to use data in Madrigal in a paper or talk, contact the PI
The PI is listed on every web page
1
5
Use of data without informing
PI may lead to seven years of
bad luck in grant writing -
don’t let this happen to you!
1
6
1
7